media/libraries
christosts 25004f8988 Remove CountDownLatch from MockPlayer
The MockPlayer has a single CountDownLatch field and multiple boolean
flags that track if a player method was called. Upon calling the methods
the latch count. Tests set the latch count to match exactly with the
number of expected player interactions then block the test thread until
the latch reaches zero and assert the respective method flags are true.

This is subject to false positives. If the underneath implementation
changes and call more player method, then the test thread will unblock
as soon as a certain number of interactions is performed, which may be
less than what the test expected originally. However, the test may stil
pass if the player thread had enough time to update the expected method
flag.

This change removes the single CountDownLatch and the boolean flags and
instead it adds APIs to query the MockPlayer if a method has been called
and await until a method is called. Internally, the MockPlayer has a
ConditionVariable per method.

PiperOrigin-RevId: 432399077
(cherry picked from commit 45d512160c)
2022-03-08 16:58:05 +00:00
..
cast Fix incorrect parameter name 2022-02-21 17:04:13 +00:00
common Version bump to exoplayer:2.17.0 and media3:1.0.0-alpha02 2022-02-23 16:46:17 +00:00
database Mark all non-public IntDefs as only TYPE_USE 2022-02-21 16:56:36 +00:00
datasource Fix the position of IntDefs to match TYPE_USE 2022-02-21 17:04:12 +00:00
datasource_cronet Remove deprecated CronetDataSource constructors 2022-02-21 17:04:12 +00:00
datasource_okhttp Update to androidx.media3 2021-10-27 09:12:46 +01:00
datasource_rtmp Make package in test manifest consistent 2021-11-08 15:18:26 +00:00
decoder Fix the position of IntDefs to match TYPE_USE 2022-02-21 17:04:12 +00:00
decoder_av1 Make sure native library loads use correct class loader 2022-02-22 11:25:44 +00:00
decoder_ffmpeg Depend on llvm-xy bin utils instead of GNU's binutils 2022-02-22 11:25:51 +00:00
decoder_flac Make sure native library loads use correct class loader 2022-02-22 11:25:44 +00:00
decoder_opus Make sure native library loads use correct class loader 2022-02-22 11:25:44 +00:00
decoder_vp9 Make sure native library loads use correct class loader 2022-02-22 11:25:44 +00:00
exoplayer Fix E-AC3 output capability check without sample rate 2022-03-08 16:58:05 +00:00
exoplayer_dash Fix the position of IntDefs to match TYPE_USE 2022-02-21 17:04:12 +00:00
exoplayer_hls Fix the position of IntDefs to match TYPE_USE 2022-02-21 17:04:12 +00:00
exoplayer_ima Drop ads for which we don't have metadata when joining a live stream 2022-03-08 16:58:05 +00:00
exoplayer_rtsp Fix the position of IntDefs to match TYPE_USE 2022-02-21 17:04:12 +00:00
exoplayer_smoothstreaming Remove setTag from (Ss|Hls|Dash)MediaSource.Factory 2022-01-11 13:44:06 +00:00
exoplayer_workmanager Update to androidx.media3 2021-10-27 09:12:46 +01:00
extractor FMP4: Fix output of mixed v0 and v1 emsg samples 2022-03-08 16:58:04 +00:00
session Accept page index 0 for getChildren() in MediaLibraryServiceLegacyStub 2022-03-08 16:58:05 +00:00
test_data Skip played server side inserted ads in a single period window 2022-02-21 17:11:38 +00:00
test_exoplayer_playback Extend support for audio spatialization in MediaCodecAudioRenderer 2022-01-25 18:59:43 +00:00
test_session_common Fix flaky MediaBrowserListenerTest 2022-01-25 18:34:25 +00:00
test_session_current Remove CountDownLatch from MockPlayer 2022-03-08 16:58:05 +00:00
test_utils Do not manipulate the duration of SSAI periods in FakeTimeline 2022-02-21 17:11:38 +00:00
test_utils_robolectric Fix the position of IntDefs to match TYPE_USE 2022-02-21 17:04:12 +00:00
transformer Suppress @VisibleForTesting violation in Transformer 2022-02-23 09:56:26 +00:00
ui Set character limit for accessability strings to NONE 2022-02-21 17:11:38 +00:00
ui_leanback Fixes for some minor misc issues 2021-11-19 14:44:25 +00:00