androidx.media3.test.utils.robolectric


Interfaces

CapturingRenderersFactory.TextRendererFactory

A factory for Renderer instances that handle TRACK_TYPE_TEXT tracks.

PlayerAudioFocusContractTest.PlayerInfo

Interface that allows access to a Player instance and its internal Clock and processing Looper.

ScrubbingModeContractTest.PlayerInfo

Interface that allows access to a Player instance, relevant internals, and other methods not implemented within the Player interface required for testing.

Classes

CapturingRenderersFactory

A RenderersFactory that captures interactions with the audio and video MediaCodecAdapter instances and ImageOutput instances.

CapturingRenderersFactory.CapturingMediaCodecVideoRenderer

A MediaCodecVideoRenderer that will not skip or drop buffers due to slow processing.

FakeDownloader

A fake Downloader.

IdlingMediaCodecAdapterFactory

A MediaCodecAdapter.Factory which can idle all the async queueing and callback threads used in async MediaCodec mode.

PlaybackOutput

Class to capture output from a playback test.

PlayerAudioFocusContractTest

A collection of contract tests for Player implementations that support COMMAND_SET_AUDIO_ATTRIBUTES.

RandomizedMp3Decoder

Generates randomized, but correct amount of data on MP3 audio input.

RobolectricUtil

Utility methods for Robolectric-based tests.

ScrubbingModeContractTest

A collection of contract tests for Player implementations that support COMMAND_SET_AUDIO_ATTRIBUTES and scrubbing mode.

ShadowMediaCodecConfig

A JUnit @Rule to configure Robolectric's ShadowMediaCodec.

ShadowMediaCodecConfig.CodecInfo

Class that holds information about a CodecImpl configuration.

TestDownloadManagerListener

Allows tests to block for, and assert properties of, calls from a DownloadManager to its DownloadManager.Listener.

TestPlayerRunHelper

Helper methods to block the calling thread until the provided ExoPlayer instance reaches a particular state.

TestPlayerRunHelper.CompositionPlayerRunResult

A CompositionPlayer specific subclass of PlayerRunResult, giving access to conditions that only make sense for CompositionPlayer.

TestPlayerRunHelper.ExoPlayerRunResult

An ExoPlayer specific subclass of PlayerRunResult, giving access to conditions that only make sense for the ExoPlayer interface.

TestPlayerRunHelper.PlayerRunResult

Intermediate type that allows callers to run the main Looper until certain conditions are met.