Stay organized with collections Save and categorize content based on your preferences.

androidx.media3.common.util

Interfaces

Clock

An interface through which system clocks can be read and HandlerWrappers created.

Consumer

Represents an operation that accepts a single input argument and returns no result.

EGLSurfaceTexture.TextureImageListener

Listener to be called when the texture image on SurfaceTexture has been updated.

HandlerWrapper

An interface to call through to a Handler.

HandlerWrapper.Message

A message obtained from the handler.

ListenerSet.Event

An event sent to a listener.

ListenerSet.IterationFinishedEvent

An event sent to a listener when all other events sent during one Looper message queue iteration were handled by the listener.

Log.Logger

Interface for a logger that can output messages with a tag.

NetworkTypeObserver.Listener

A listener for network type changes.

Classes

Assertions

Provides methods for asserting the truth of expressions and properties.

AtomicFile

A helper class for performing atomic operations on a file by creating a backup file until a write has successfully completed.

BundleUtil

Utilities for Bundle.

BundleableUtil

Utilities for Bundleable.

CodecSpecificDataUtil

Provides utilities for handling various types of codec-specific data.

ColorParser

Parser for color expressions found in styling formats, e.g.

ConditionVariable

An interruptible condition variable.

CopyOnWriteMultiset

An unordered collection of elements that allows duplicates, but also allows access to a set of unique elements.

EGLSurfaceTexture

Generates a SurfaceTexture using EGL/GLES functions.

GlProgram

Represents a GLSL shader program.

GlUtil

OpenGL ES utilities.

LibraryLoader

Configurable loader for native libraries.

ListenerSet

A set of listeners.

Log

Wrapper around android.util.Log which allows to set the log level and to specify a custom log output.

LongArray

An append-only, auto-growing long[].

MediaFormatUtil

Helper class containing utility methods for managing MediaFormat instances.

NetworkTypeObserver

Observer for network type changes.

NotificationUtil

Utility methods for displaying Notifications.

ParsableBitArray

Wraps a byte array, providing methods that allow it to be read as a bitstream.

ParsableByteArray

Wraps a byte array, providing a set of methods for parsing data from it.

RepeatModeUtil

Util class for repeat mode handling.

RunnableFutureTask

A RunnableFuture that supports additional uninterruptible operations to query whether execution has started and finished.

Size

Immutable class for describing width and height dimensions in pixels.

SystemClock

The standard implementation of Clock, an instance of which is available via DEFAULT.

TimedValueQueue

A utility class to keep a queue of values with timestamps.

TimestampAdjuster

Adjusts and offsets sample timestamps.

TraceUtil

Calls through to android.os.Trace methods on supported API levels.

UriUtil

Utility methods for manipulating URIs.

Util

Miscellaneous utility methods.

XmlPullParserUtil

XmlPullParser utility methods.

Exceptions

GlUtil.GlException

Thrown when an OpenGL error occurs.

Annotations

EGLSurfaceTexture.SecureMode

Secure mode to be used by the EGL surface and context.

Log.LogLevel

Log level for ExoPlayer logcat logging.

NonNullApi

Annotation to declare all type usages in the annotated instance as Nonnull, unless explicitly marked with a nullable annotation.

NotificationUtil.Importance

Notification channel importance levels.

RepeatModeUtil.RepeatToggleModes

Set of repeat toggle modes.

UnknownNull

Annotation for specifying unknown nullness.

UnstableApi

Signifies that a public API (class, method or field) is subject to incompatible changes, or even removal, in a future release.