media/testutils/src/main/java/com/google/android/exoplayer2/testutil
tonihei 46731cdd1d Fix prepare position of DeferredMediaPeriods for windows with non-zero offset.
If we prepare a deferred media period before the actual timeline is available,
we either prepare with position zero (= the default) or with a non-zero
initial seek position.

So far, the zero (default) position got replaced by the actual default position
(including any potential non-zero window offset) when the timeline became known.

However, a non-zero initial seek position was not corrected by the non-zero
window offset. This is fixed by this change.

Related to that, we always assumed that the deferred media period will the
first period in the actual timeline. This is not true if we prepare with an
offset (either because of an initial seek position or because of a default
window position). So, we also determine the actual first period when the
timeline becomes known.

Issue:#4873

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=215213030
2018-10-01 19:34:29 +01:00
..
Action.java Add wrapper for Log messages to allow settig the log level. 2018-09-20 12:12:21 +01:00
ActionSchedule.java Fix prepare position of DeferredMediaPeriods for windows with non-zero offset. 2018-10-01 19:34:29 +01:00
AutoAdvancingFakeClock.java Migrate ExoPlayerTest to Robolectric. 2018-01-23 19:30:41 +00:00
DebugRenderersFactory.java Add VideoFrameMetadataListener 2018-08-24 15:21:03 +01:00
DecoderCountersUtil.java Use Truth instead of framework asserts in all tests. 2018-01-23 19:29:12 +00:00
DummyMainThread.java Use lamdas everywhere 2018-08-24 15:19:30 +01:00
Dumper.java Sanitize constants 2016-08-31 15:25:18 +01:00
ExoHostedTest.java Add wrapper for Log messages to allow settig the log level. 2018-09-20 12:12:21 +01:00
ExoPlayerTestRunner.java Move playback tests off deprecated APIs 2018-08-24 16:05:40 +01:00
ExtractorAsserts.java Move (almost all) remaining core library instrumentation tests to Robolectric. 2018-02-16 11:46:34 +00:00
FakeAdaptiveDataSet.java Add MediaChunkIterator for FakeAdaptiveDataSet. 2018-07-06 14:25:38 +01:00
FakeAdaptiveMediaPeriod.java Clean up use of deprecated APIs 2018-08-24 16:12:44 +01:00
FakeAdaptiveMediaSource.java Move playback tests off deprecated APIs 2018-08-24 16:05:40 +01:00
FakeChunkSource.java Extend updateSelectedTrack method with additional information. 2018-09-03 14:04:45 +01:00
FakeClock.java Replace message delay with send at time in playback loop. 2018-01-04 15:48:11 +00:00
FakeDataSet.java SegmentDownloader loadManifest cleanup. 2017-08-17 22:32:57 +01:00
FakeDataSource.java Move playback tests off deprecated APIs 2018-08-24 16:05:40 +01:00
FakeExtractorInput.java Add static Util.EMPTY_BYTE_ARRAY 2018-09-12 14:57:01 +01:00
FakeExtractorOutput.java Move (almost all) remaining core library instrumentation tests to Robolectric. 2018-02-16 11:46:34 +00:00
FakeMediaPeriod.java Add response headers to LoadEventInfo. 2018-08-24 15:55:01 +01:00
FakeMediaSource.java Add response headers to LoadEventInfo. 2018-08-24 15:55:01 +01:00
FakeRenderer.java Automated g4 rollback of changelist 192816182. 2018-04-16 10:55:42 +01:00
FakeSampleStream.java Clean up easy cases of downstream format notification 2018-09-12 15:17:19 +01:00
FakeTimeline.java Add helper method to get uid of timeline period. 2018-07-23 12:22:57 +01:00
FakeTrackOutput.java Add static Util.EMPTY_BYTE_ARRAY 2018-09-12 14:57:01 +01:00
HostActivity.java Add wrapper for Log messages to allow settig the log level. 2018-09-20 12:12:21 +01:00
LogcatMetricsLogger.java Add wrapper for Log messages to allow settig the log level. 2018-09-20 12:12:21 +01:00
MetricsLogger.java Move playback test utils to testutils. 2017-06-12 10:18:50 +01:00
TestUtil.java Be explicit about character set. 2018-09-12 14:58:33 +01:00