TableRequest


public final class TableRequest
extends BroadcastInfoRequest implements Parcelable

java.lang.Object
   ↳ android.media.tv.BroadcastInfoRequest
     ↳ android.media.tv.TableRequest


A request for Table from broadcast signal.

Summary

Constants

int TABLE_NAME_BAT

Bouquet Association Table

int TABLE_NAME_CAT

Conditional Access Table

int TABLE_NAME_EIT

Event Information Table

int TABLE_NAME_NIT

Network Information Table

int TABLE_NAME_PAT

Program Association Table

int TABLE_NAME_PMT

Program Mapping Table

int TABLE_NAME_SDT

Service Description Table

int TABLE_NAME_SIT

Selection Information Table

int TABLE_NAME_TDT

Time and Date Table

int TABLE_NAME_TOT

Time Offset Table

Inherited constants

int REQUEST_OPTION_AUTO_UPDATE

Request option: auto update.

int REQUEST_OPTION_ONESHOT

Request option: one-shot

With this option, only one response will be given per request.

int REQUEST_OPTION_ONEWAY

Request option: one-way

With this option, no response is expected after sending the request.

int REQUEST_OPTION_REPEAT

Request option: repeat.

int CONTENTS_FILE_DESCRIPTOR

Descriptor bit used with describeContents(): indicates that the Parcelable object's flattened representation includes a file descriptor.

int PARCELABLE_WRITE_RETURN_VALUE

Flag for use with writeToParcel(Parcel, int): the object being written is a return value, that is the result of a function such as "Parcelable someFunction()", "void someFunction(out Parcelable)", or "void someFunction(inout Parcelable)".

Fields

public static final Creator<TableRequest> CREATOR

Inherited fields

public static final Creator<BroadcastInfoRequest> CREATOR

Public constructors

TableRequest(int requestId, int option, int tableId, int tableName, int version)

Public methods

int describeContents()

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.

int getTableId()

Gets the ID of requested table.

int getTableName()

Gets the name of requested table.

int getVersion()

Gets the version number of requested table.

void writeToParcel(Parcel dest, int flags)

Flatten this object in to a Parcel.

Inherited methods

int describeContents()

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.

int getOption()

Gets the request option of the request.

int getRequestId()

Gets the ID of the request.

int getType()

Gets the broadcast info type.

void writeToParcel(Parcel dest, int flags)

Flatten this object in to a Parcel.

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.

abstract int describeContents()

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.

abstract void writeToParcel(Parcel dest, int flags)

Flatten this object in to a Parcel.

Constants

TABLE_NAME_BAT

Added in API level 34
public static final int TABLE_NAME_BAT

Bouquet Association Table

Constant Value: 4 (0x00000004)

TABLE_NAME_CAT

Added in API level 34
public static final int TABLE_NAME_CAT

Conditional Access Table

Constant Value: 2 (0x00000002)

TABLE_NAME_EIT

Added in API level 34
public static final int TABLE_NAME_EIT

Event Information Table

Constant Value: 6 (0x00000006)

TABLE_NAME_NIT

Added in API level 34
public static final int TABLE_NAME_NIT

Network Information Table

Constant Value: 3 (0x00000003)

TABLE_NAME_PAT

Added in API level 33
public static final int TABLE_NAME_PAT

Program Association Table

Constant Value: 0 (0x00000000)

TABLE_NAME_PMT

Added in API level 33
public static final int TABLE_NAME_PMT

Program Mapping Table

Constant Value: 1 (0x00000001)

TABLE_NAME_SDT

Added in API level 34
public static final int TABLE_NAME_SDT

Service Description Table

Constant Value: 5 (0x00000005)

TABLE_NAME_SIT

Added in API level 34
public static final int TABLE_NAME_SIT

Selection Information Table

Constant Value: 9 (0x00000009)

TABLE_NAME_TDT

Added in API level 34
public static final int TABLE_NAME_TDT

Time and Date Table

Constant Value: 7 (0x00000007)

TABLE_NAME_TOT

Added in API level 34
public static final int TABLE_NAME_TOT

Time Offset Table

Constant Value: 8 (0x00000008)

Fields

CREATOR

Added in API level 33
public static final Creator<TableRequest> CREATOR

Public constructors

TableRequest

Added in API level 33
public TableRequest (int requestId, 
                int option, 
                int tableId, 
                int tableName, 
                int version)

Public methods

describeContents

Added in API level 33
public int describeContents ()

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(android.os.Parcel, int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit.

Returns
int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or CONTENTS_FILE_DESCRIPTOR

getTableId

Added in API level 33
public int getTableId ()

Gets the ID of requested table.

Returns
int

getTableName

Added in API level 33
public int getTableName ()

Gets the name of requested table.

getVersion

Added in API level 33
public int getVersion ()

Gets the version number of requested table. If it is null, value will be -1.

The consistency of version numbers between request and response depends on BroadcastInfoRequest.getOption(). If the request has RequestOption value REQUEST_OPTION_AUTO_UPDATE, then the response may be set to the latest version which may be different from the version of the request. Otherwise, response with a different version from its request will be considered invalid.

Returns
int

writeToParcel

Added in API level 33
public void writeToParcel (Parcel dest, 
                int flags)

Flatten this object in to a Parcel.

Parameters
dest Parcel: This value cannot be null.

flags int: Additional flags about how the object should be written. May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of Parcelable.PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES