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

Fields

public static final Creator<TableRequest> CREATOR

Inherited fields

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

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)

Parameters
requestId int

option int: Value is BroadcastInfoRequest.REQUEST_OPTION_REPEAT, BroadcastInfoRequest.REQUEST_OPTION_AUTO_UPDATE, android.media.tv.BroadcastInfoRequest.REQUEST_OPTION_ONEWAY, or android.media.tv.BroadcastInfoRequest.REQUEST_OPTION_ONESHOT

tableId int

tableName int: Value is TABLE_NAME_PAT, TABLE_NAME_PMT, TABLE_NAME_CAT, TABLE_NAME_NIT, TABLE_NAME_BAT, TABLE_NAME_SDT, TABLE_NAME_EIT, TABLE_NAME_TDT, TABLE_NAME_TOT, or TABLE_NAME_SIT

version int

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.

Returns
int Value is TABLE_NAME_PAT, TABLE_NAME_PMT, TABLE_NAME_CAT, TABLE_NAME_NIT, TABLE_NAME_BAT, TABLE_NAME_SDT, TABLE_NAME_EIT, TABLE_NAME_TDT, TABLE_NAME_TOT, or TABLE_NAME_SIT

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