MediaMetricsManager


public final class MediaMetricsManager
extends Object

java.lang.Object
   ↳ android.media.metrics.MediaMetricsManager


This class gives information about, and interacts with media metrics.

Summary

Constants

long INVALID_TIMESTAMP

Public methods

BundleSession createBundleSession()

Creates a generic bundle session.

EditingSession createEditingSession()

Creates a editing session.

PlaybackSession createPlaybackSession()

Creates a playback session.

RecordingSession createRecordingSession()

Creates a recording session.

TranscodingSession createTranscodingSession()

Creates a transcoding session.

void releaseSessionId(String sessionId)

Creates a generic bundle session.

Inherited methods

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

Constants

INVALID_TIMESTAMP

Added in API level 31
public static final long INVALID_TIMESTAMP

Constant Value: -1 (0xffffffffffffffff)

Public methods

createBundleSession

Added in API level 33
public BundleSession createBundleSession ()

Creates a generic bundle session.

Returns
BundleSession This value cannot be null.

createEditingSession

Added in API level 33
public EditingSession createEditingSession ()

Creates a editing session.

Returns
EditingSession This value cannot be null.

createPlaybackSession

Added in API level 31
public PlaybackSession createPlaybackSession ()

Creates a playback session.

Returns
PlaybackSession This value cannot be null.

createRecordingSession

Added in API level 31
public RecordingSession createRecordingSession ()

Creates a recording session.

Returns
RecordingSession This value cannot be null.

createTranscodingSession

Added in API level 33
public TranscodingSession createTranscodingSession ()

Creates a transcoding session.

Returns
TranscodingSession This value cannot be null.

releaseSessionId

Added in API level 33
public void releaseSessionId (String sessionId)

Creates a generic bundle session.

Parameters
sessionId String: This value cannot be null.

Returns
void This value cannot be null.