media/libraries
christosts 45d512160c 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
2022-03-07 11:30:00 +00:00
..
cast Remove deprecated Player track methods 2022-02-22 10:35:04 +00:00
common TrackSelectionOverride: Remove select-all-tracks constructor 2022-03-03 12:14:42 +00:00
database Reformat some javadoc 2022-02-18 14:54:02 +00:00
datasource Reformat some javadoc 2022-02-18 14:54:02 +00:00
datasource_cronet Reformat some javadoc 2022-02-18 14:54:02 +00:00
datasource_okhttp Reformat some javadoc 2022-02-18 14:54:02 +00:00
datasource_rtmp Reformat some javadoc 2022-02-18 14:54:02 +00:00
decoder Reformat some javadoc 2022-02-18 14:54:02 +00:00
decoder_av1 Make sure native library loads use correct class loader 2022-02-17 15:00:31 +00:00
decoder_ffmpeg Depend on llvm-xy bin utils instead of GNU's binutils 2022-02-17 15:08:04 +00:00
decoder_flac Make sure native library loads use correct class loader 2022-02-17 15:00:31 +00:00
decoder_opus Libopus Support For WebM DiscardPadding 2022-02-18 14:56:25 +00:00
decoder_vp9 Make sure native library loads use correct class loader 2022-02-17 15:00:31 +00:00
exoplayer Fix E-AC3 output capability check without sample rate 2022-03-07 11:29:06 +00:00
exoplayer_dash Reformat some javadoc 2022-02-18 14:54:02 +00:00
exoplayer_hls Reformat some javadoc 2022-02-18 14:54:02 +00:00
exoplayer_ima Drop ads for which we don't have metadata when joining a live stream 2022-03-01 09:42:24 +00:00
exoplayer_rtsp Merge pull request #36 from ittiam-systems:rtp-h265 2022-02-18 16:41:12 +00:00
exoplayer_smoothstreaming Reformat some javadoc 2022-02-18 14:54:02 +00:00
exoplayer_workmanager Reformat some javadoc 2022-02-18 14:54:02 +00:00
extractor FMP4: Fix output of mixed v0 and v1 emsg samples 2022-03-01 09:35:58 +00:00
session Avoid NPE in onStartCommand when action factory isn't instantiated 2022-03-03 12:15:34 +00:00
test_data Clarify instructions for updating expected output bitmaps. 2022-02-23 16:17:57 +00:00
test_exoplayer_playback Extend support for audio spatialization in MediaCodecAudioRenderer 2022-01-25 18:59:43 +00:00
test_session_common Reformat some javadoc 2022-02-18 14:54:02 +00:00
test_session_current Remove CountDownLatch from MockPlayer 2022-03-07 11:30:00 +00:00
test_utils Remove deprecated Player track methods 2022-02-22 10:35:04 +00:00
test_utils_robolectric Fix the position of IntDefs to match TYPE_USE 2022-02-08 11:07:50 +00:00
transformer Use asset with increasing timestamps for matrix transformation test. 2022-03-03 12:13:46 +00:00
ui TrackSelectionParameters: Simplify disabling of track types 2022-03-01 09:45:38 +00:00
ui_leanback Fixes for some minor misc issues 2021-11-19 14:44:25 +00:00