- 01 May, 2020 11 commits
-
-
- Assertion chaining is generally discouraged. For example, because it's harder to determine which assertion failed given a line number. - Also removed chaining of the form obj.actionX().assertY(), because it's easy for someone editing the test to accidentally delete actionX() when deleting assertY(), where-as actionX() may often be important for subsequent assertions. PiperOrigin-RevId: 308820503
olly committed -
- Remove assertReleased and replace it with a proper condition variable that's opened when Downloader.download or Download.remove finish. As far as I can tell assertReleased was basically implementing "sleep for 10 seconds after the Downloader starts". Note fixing this properly also makes the tests run much faster! - Use ConditionVariable instead of CountDownLatch(1). - Use AtomicInteger instead of volatile int because it's clearer and allows removal of explanatory comments. PiperOrigin-RevId: 308819204
olly committed -
The mocking setup is quite messy/unclear compared to the fakes, but it seems worth switching over because IMA API changes have already required changes to fakes in the past, and there are more API changes in the version we are about to upgrade to. This change should generally remove the need to keep the fakes up-to-date. PiperOrigin-RevId: 308819176
andrewlewis committed -
PiperOrigin-RevId: 308815613
olly committed -
- Improve documentation explaining the benefits of ExoPlayer's ConditionVariable over the one that the platform provides - Allow Clock injection - Create TestUtil method for obtaining a ConditionVariable whose block(long) method times out correctly when used in a Robolectric test - Add basic unit tests for ConditionVariable PiperOrigin-RevId: 308812698
olly committed -
This allows users to verify their own usage before the default value is changed to an opt-out. issue:#4463 PiperOrigin-RevId: 308808722
tonihei committed -
Android scheduler has performance issues when a device has a combiation of big/medium/little cores. Add a heuristic to set the default number of threads used for deocding to the number of "performance" (i.e. big) cores. PiperOrigin-RevId: 308683989
vigneshv committed -
To be used by the LoadErrorHandlingPolicy. PiperOrigin-RevId: 308657905
aquilescanta committed -
This will make it a bit easier to push manifest loads to an Executor. Issue: #5978 PiperOrigin-RevId: 308608155
olly committed -
A previous change added these getters to CacheDataSource, but it can also be useful to retrieve these components directly from the factory. This is useful for tasks where we're going to need to build multiple CacheDataSource instances (e.g., to make requests in parallel), and also need to operate directly on the same components. It's a bit more natural to retrieve them from the factory than from an arbitrary CacheDataSource in this case, since it can avoid unnatural code where you create a CacheDataSource instance earlier than you would otherwise just to use its getters, and/or create one just to use its getters and then throw it away. PiperOrigin-RevId: 308606020
olly committed -
PiperOrigin-RevId: 308597964
olly committed
-
- 27 Apr, 2020 29 commits
-
-
- Executor is a superclass of ExecutorService, so this is arguably a little more flexible. - It removes the need to use null for direct execution, because Runnable::run is a direct executor that can be trivially used instead. - Removing the error-prone "cannot be a direct executor" restriction in the parallel version of SegmentDownloader requires not relying on the futures returned from ExecutorService.submit() anyway. Issue: #5978 PiperOrigin-RevId: 308586620
olly committed -
When pausing and resuming a playback using an AdsLoader it is necessary to call setPlayer again. This fixes an issue where playback was stuck in the buffering state when pausing and resuming an ad playback in the demo app. PiperOrigin-RevId: 308582143
andrewlewis committed -
Notes: this doesn't fix the current issue where the component containing the ad overlay view leaks, but is good practice anyway. PiperOrigin-RevId: 308582036
andrewlewis committed -
PiperOrigin-RevId: 308229206
Ian Baker committed -
Currently, this method is only supposed to be called before removing the listener from the player or when releasing the player. If called at other times, it will throw an exception later when a playback session is ended automatically. issue:#7193 PiperOrigin-RevId: 308254993
tonihei committed -
PiperOrigin-RevId: 308246116
tonihei committed -
The error type thrown when acquiring a license that has already been released changed from MediaDrmStateException to IllegalStateException from API 29. Update the tests to assert the correct type of error based on API version. PiperOrigin-RevId: 308239508
tonihei committed -
Issue: #7273 PiperOrigin-RevId: 308238035
aquilescanta committed -
The method is used to finish a brief "seeking" state that can be removed entirely now state changes for seeking are masked. PiperOrigin-RevId: 308237009
tonihei committed -
sneelavara committed
-
sneelavara committed
-
Sadashiva Neelavara committed
-
This changes fixes issue #7181. Removing CEA-608 captions that timeout after 16 seconds without a clear.
Sadashiva Neelavara committed -
This makes the distinction more clear between the methods that test a specific behaviour (and are meant to be used with parameterized tests) and those that test everything in one go. Also add a TODO to FlacExtractorTest to migrate it when we can PiperOrigin-RevId: 308228421
ibaker committed -
Also mark the two assertOutput methods private, to make the API surface smaller. PiperOrigin-RevId: 308228186
ibaker committed -
Unmarshal from json to MediaItem instead of Sample. Further the playlist of MediaItems is converted to Intent extras which are read by the PlayerActivity. PiperOrigin-RevId: 308141231
bachinger committed -
While most ExoPlayer code parsing ByteBuffers is called with buffers in big endian, in certain situation, buffers in little endian are used too. MediaCodec produced ByteBuffers are in little endian, while buffers receive from the sources are in big endian (ByteBuffer's default). As a result, some code called from AudioSink in passthrough parsed bytebuffer in little endian. This is not correct because those format are specified in BigEndian. Changing the endianness of the ByteBuffer returned from MediaCodec would impact a lot more code that can currently be tested in the current COVID lockdown situation. As a result, this patch instead make the parsing code independent of the ByteBuffer.order() set. All the code that is called from DefaultAudioSink now parses the buffer explicitly in Big Endian. Additionally, the MPEG big endian header data of size 4 bytes was retrieved with ByteBuffer.get, which only returns one byte. PiperOrigin-RevId: 308116173
krocard committed -
PiperOrigin-RevId: 308115863
krocard committed -
The first session should only be created once we have the media items and/or called prepare. Otherwise the first session is created with an EventTime having an empty timeline making it less useful. issue:#7193 PiperOrigin-RevId: 308100555
tonihei committed -
Issue: #5978 PiperOrigin-RevId: 308076851
olly committed -
LoadEventInfo needs to also be sent to the LoadErrorHandlingPolicy. PiperOrigin-RevId: 308066998
aquilescanta committed -
This better supports custom listener types defined by MediaSource subclasses. Part of issue:#6765 PiperOrigin-RevId: 308050575
ibaker committed -
This is just some trivial cleanup to get things into a better state to implement parallel segment downloads. Issue: #5978 PiperOrigin-RevId: 308041996
olly committed -
PiperOrigin-RevId: 308041841
aquilescanta committed -
PiperOrigin-RevId: 308031992
olly committed -
The MediaSessionConnector gets a Bundle passed to the MediaSession.Callback from the framework which can be null. This needs to be properly annotated with @Nullable. Issue: #7234 PiperOrigin-RevId: 307822764
bachinger committed -
Issue: #5978 PiperOrigin-RevId: 307819608
olly committed -
Handles pixel aspect ratio changes in playlists where video resolution does not change. Issue:#6646 PiperOrigin-RevId: 307817028
samrobinson committed -
PiperOrigin-RevId: 307789384
aquilescanta committed
-