media/libraries
sheenachhabra c0e8513b7a Make dump files deterministic
Issue: When running the Transformer related test cases, the tests are flaky
because the order in which audio and video samples are interleaved seems to
differ in few instances.

Root cause: When running a transformation the sample producer (Asset loader)
and sample consumer (Sample pipeline) both runs on different thread and
theoretically there is no reason for behaviour to be deterministic because
the number of samples produced/written depends on how fast individual thread
works. So it is indeed surprising that test somehow worked deterministically in
majority of instances (may be something to do with Robolectric environment).

Solution: Since we don't expect the order of sample interleaving to be deterministic, make the dumping logic deterministic where all the video
samples will be collected and then dumped together (similarly for audio). This would mean we won't be able to see the interleaving so for that we need to
add separate test case verifying the interleaving logic only.

Pending: Test case for interleaving.
PiperOrigin-RevId: 540930871
2023-06-19 16:28:07 +01:00
..
cast Replace deprecated NullableType from checkerframework with our own one 2023-06-19 16:08:20 +01:00
common GL: Remove configAttributes from createFocusedPlaceholderEglSurface. 2023-06-19 16:27:02 +01:00
container Replace CreationTime class with Mp4TimestampData class 2023-06-14 20:42:36 +01:00
database Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
datasource Replace deprecated NullableType from checkerframework with our own one 2023-06-19 16:08:20 +01:00
datasource_cronet Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
datasource_okhttp Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
datasource_rtmp Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
decoder Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
decoder_av1 Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
decoder_ffmpeg Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
decoder_flac Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
decoder_midi Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
decoder_opus Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
decoder_vp9 Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
effect GL: Remove configAttributes from createFocusedPlaceholderEglSurface. 2023-06-19 16:27:02 +01:00
exoplayer Merge pull request #436 from jaeho-lee104:feature/improve_condition 2023-06-19 16:25:40 +01:00
exoplayer_dash Refactor method CmcdLog.createInstance to accept bufferedDurationUs 2023-06-19 16:19:04 +01:00
exoplayer_hls Refactor method CmcdLog.createInstance to accept bufferedDurationUs 2023-06-19 16:19:04 +01:00
exoplayer_ima Fix splitting ad playback state for partial ad group when joining 2023-06-10 20:23:56 +00:00
exoplayer_rtsp Replace deprecated NullableType from checkerframework with our own one 2023-06-19 16:08:20 +01:00
exoplayer_smoothstreaming Refactor method CmcdLog.createInstance to accept bufferedDurationUs 2023-06-19 16:19:04 +01:00
exoplayer_workmanager Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
extractor Replace deprecated NullableType from checkerframework with our own one 2023-06-19 16:08:20 +01:00
muxer Remove copying sample data in Mp4Muxer 2023-06-19 16:18:09 +01:00
session Default RepeatMode for conversion is NONE/OFF 2023-06-19 16:13:39 +01:00
test_data Make dump files deterministic 2023-06-19 16:28:07 +01:00
test_exoplayer_playback Add android.namespace to all build.gradle files 2023-05-19 17:19:15 +01:00
test_session_common Rollback of 7956c80f73 2023-06-19 16:09:13 +01:00
test_session_current Rollback of 7956c80f73 2023-06-19 16:09:13 +01:00
test_utils Reset the simple frame dropping logic on flush or EOS. 2023-06-19 16:20:09 +01:00
test_utils_robolectric Replace deprecated NullableType from checkerframework with our own one 2023-06-19 16:08:20 +01:00
transformer Make dump files deterministic 2023-06-19 16:28:07 +01:00
ui Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
ui_leanback Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00