media/libraries
andrewlewis ef016832b2 Reduce flakiness of GL release test
Based on experimentation it seems that buffers can occasionally (roughly 1% of test runs) be dropped when rendering off-screen from EGL on the emulator. Specifically, in this test, sometimes after rendering three buffers with distinct timestamps only the first and third buffers' timestamps are handled in the `ImageReader`'s image available callback causing the assertion checking all frames rendered to fail. This behavior seems to be independent of the nanosecond presentation time attached to the buffers (as expected for off-screen rendering).

Introducing a pause of 1 second between rendering each frame reduces the flake rate to around 1/2000. This increases the run time of some of the tests, so this change also removes the 5 second `FRAME_PROCESSING_WAIT_MS` (it seems to be unnecessary when rendering off-screen) and instead uses a latch to wait until the frame processor has handled 'end of stream'.

PiperOrigin-RevId: 499440591
2023-01-04 21:49:53 +00:00
..
cast Clarify behavior for out-of-bounds indices and align implementations 2022-12-21 15:07:20 +00:00
common Optimise bundling for AdPlaybackState using AdPlaybackState.NONE 2023-01-04 21:33:18 +00:00
database Add javadoc links to README files 2022-12-12 11:19:23 +00:00
datasource Add javadoc links to README files 2022-12-12 11:19:23 +00:00
datasource_cronet Add javadoc links to README files 2022-12-12 11:19:23 +00:00
datasource_okhttp Add javadoc links to README files 2022-12-12 11:19:23 +00:00
datasource_rtmp Add javadoc links to README files 2022-12-12 11:19:23 +00:00
decoder Add javadoc links to README files 2022-12-12 11:19:23 +00:00
decoder_av1 Add javadoc links to README files 2022-12-12 11:19:23 +00:00
decoder_ffmpeg Add javadoc links to README files 2022-12-12 11:19:23 +00:00
decoder_flac Add javadoc links to README files 2022-12-12 11:19:23 +00:00
decoder_opus Add javadoc links to README files 2022-12-12 11:19:23 +00:00
decoder_vp9 Add javadoc links to README files 2022-12-12 11:19:23 +00:00
effect Reduce flakiness of GL release test 2023-01-04 21:49:53 +00:00
exoplayer Support previewing HDR on API33+ 2022-12-21 15:10:20 +00:00
exoplayer_dash Add javadoc links to README files 2022-12-12 11:19:23 +00:00
exoplayer_hls Add javadoc links to README files 2022-12-12 11:19:23 +00:00
exoplayer_ima Remove player listener on the application thread of the player 2023-01-04 21:40:32 +00:00
exoplayer_rtsp Add javadoc links to README files 2022-12-12 11:19:23 +00:00
exoplayer_smoothstreaming Add javadoc links to README files 2022-12-12 11:19:23 +00:00
exoplayer_workmanager Add javadoc links to README files 2022-12-12 11:19:23 +00:00
extractor Add javadoc links to README files 2022-12-12 11:19:23 +00:00
session Add BitmapLoader injection in MediaController 2022-12-21 15:23:38 +00:00
test_data Add TextureOverlay.configure() to configure overlay before frame processing 2023-01-04 21:43:33 +00:00
test_exoplayer_playback Fix instrumentation tests not working via Gradle 2022-09-30 18:03:11 +00:00
test_session_common Migrate BROWSER_ROOT_HINTS_KEY_ROOT_CHILDREN_SUPPORTED_FLAGS to Media3 2022-11-24 14:38:41 +00:00
test_session_current Add BitmapLoader injection in MediaController 2022-12-21 15:23:38 +00:00
test_utils Rollback of 7e63997459 2022-12-21 15:13:24 +00:00
test_utils_robolectric Rollback of 7e63997459 2022-12-21 15:13:24 +00:00
transformer Remove unnecessary exceptions in tests 2023-01-04 21:47:57 +00:00
ui Fix order of playback controls in RTL layout 2023-01-04 21:38:29 +00:00
ui_leanback Fix Dackka error due to param name mismatch 2022-12-21 15:17:34 +00:00