java.lang.Object | |
↳ | android.media.tv.TvContract.Channels |
Column definitions for the TV channels table.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
TvContract.Channels.Logo | A sub-directory of a single TV channel that represents its primary logo. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | COLUMN_DESCRIPTION | The description of this TV channel. | |||||||||
String | COLUMN_DISPLAY_NAME | The channel name that is displayed to the user. | |||||||||
String | COLUMN_DISPLAY_NUMBER | The channel number that is displayed to the user. | |||||||||
String | COLUMN_INPUT_ID | The ID of the TV input service that provides this TV channel. | |||||||||
String | COLUMN_INTERNAL_PROVIDER_DATA | Internal data used by individual TV input services. | |||||||||
String | COLUMN_NETWORK_AFFILIATION | The network affiliation for this TV channel. | |||||||||
String | COLUMN_ORIGINAL_NETWORK_ID | The original network ID of this TV channel. | |||||||||
String | COLUMN_SEARCHABLE | The flag indicating whether this TV channel is searchable or not. | |||||||||
String | COLUMN_SERVICE_ID | The service ID of this channel. | |||||||||
String | COLUMN_SERVICE_TYPE | The predefined service type of this TV channel. | |||||||||
String | COLUMN_TRANSPORT_STREAM_ID | The transport stream ID of this channel. | |||||||||
String | COLUMN_TYPE | The predefined type of this TV channel. | |||||||||
String | COLUMN_VERSION_NUMBER | The version number of this row entry used by TV input services. | |||||||||
String | COLUMN_VIDEO_FORMAT | The typical video format for programs from this TV channel. | |||||||||
String | CONTENT_ITEM_TYPE | The MIME type of a single TV channel. | |||||||||
String | CONTENT_TYPE | The MIME type of a directory of TV channels. | |||||||||
String | SERVICE_TYPE_AUDIO | The service type for radio channels that have audio only. | |||||||||
String | SERVICE_TYPE_AUDIO_VIDEO | The service type for regular TV channels that have both audio and video. | |||||||||
String | SERVICE_TYPE_OTHER | A generic service type. | |||||||||
String | TYPE_1SEG | The channel type for 1seg (handheld). | |||||||||
String | TYPE_ATSC_C | The channel type for ATSC (cable). | |||||||||
String | TYPE_ATSC_M_H | The channel type for ATSC-M/H (mobile/handheld). | |||||||||
String | TYPE_ATSC_T | The channel type for ATSC (terrestrial). | |||||||||
String | TYPE_CMMB | The channel type for CMMB (handheld). | |||||||||
String | TYPE_DTMB | The channel type for DTMB (terrestrial). | |||||||||
String | TYPE_DVB_C | The channel type for DVB-C (cable). | |||||||||
String | TYPE_DVB_C2 | The channel type for DVB-C2 (cable). | |||||||||
String | TYPE_DVB_H | The channel type for DVB-H (handheld). | |||||||||
String | TYPE_DVB_S | The channel type for DVB-S (satellite). | |||||||||
String | TYPE_DVB_S2 | The channel type for DVB-S2 (satellite). | |||||||||
String | TYPE_DVB_SH | The channel type for DVB-SH (satellite). | |||||||||
String | TYPE_DVB_T | The channel type for DVB-T (terrestrial). | |||||||||
String | TYPE_DVB_T2 | The channel type for DVB-T2 (terrestrial). | |||||||||
String | TYPE_ISDB_C | The channel type for ISDB-C (cable). | |||||||||
String | TYPE_ISDB_S | The channel type for ISDB-S (satellite). | |||||||||
String | TYPE_ISDB_T | The channel type for ISDB-T (terrestrial). | |||||||||
String | TYPE_ISDB_TB | The channel type for ISDB-Tb (Brazil). | |||||||||
String | TYPE_NTSC | The channel type for NTSC. | |||||||||
String | TYPE_OTHER | A generic channel type. | |||||||||
String | TYPE_PAL | The channel type for PAL. | |||||||||
String | TYPE_SECAM | The channel type for SECAM. | |||||||||
String | TYPE_S_DMB | The channel type for S-DMB (satellite). | |||||||||
String | TYPE_T_DMB | The channel type for T-DMB (terrestrial). | |||||||||
String | VIDEO_FORMAT_1080I | The video format for 1080i. | |||||||||
String | VIDEO_FORMAT_1080P | The video format for 1080p. | |||||||||
String | VIDEO_FORMAT_2160P | The video format for 2160p. | |||||||||
String | VIDEO_FORMAT_240P | The video format for 240p. | |||||||||
String | VIDEO_FORMAT_360P | The video format for 360p. | |||||||||
String | VIDEO_FORMAT_4320P | The video format for 4320p. | |||||||||
String | VIDEO_FORMAT_480I | The video format for 480i. | |||||||||
String | VIDEO_FORMAT_480P | The video format for 480p. | |||||||||
String | VIDEO_FORMAT_576I | The video format for 576i. | |||||||||
String | VIDEO_FORMAT_576P | The video format for 576p. | |||||||||
String | VIDEO_FORMAT_720P | The video format for 720p. | |||||||||
String | VIDEO_RESOLUTION_ED | The video resolution for enhanced-definition. | |||||||||
String | VIDEO_RESOLUTION_FHD | The video resolution for full high-definition. | |||||||||
String | VIDEO_RESOLUTION_HD | The video resolution for high-definition. | |||||||||
String | VIDEO_RESOLUTION_SD | The video resolution for standard-definition. | |||||||||
String | VIDEO_RESOLUTION_UHD | The video resolution for ultra high-definition. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.media.tv.TvContract.BaseTvColumns
| |||||||||||
From interface
android.provider.BaseColumns
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CONTENT_URI | The content:// style URI for this table. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the video resolution (definition) for a given video format.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
The description of this TV channel.
Can be empty initially.
Type: TEXT
The channel name that is displayed to the user.
A call sign is a good candidate to use for this purpose but any name that helps the user recognize the current channel will be enough. Can also be empty depending on broadcast standard.
Type: TEXT
The channel number that is displayed to the user.
The format can vary depending on broadcast standard and product specification.
Type: TEXT
The ID of the TV input service that provides this TV channel.
Use buildInputId(ComponentName)
to build the ID.
This is a required field.
Type: TEXT
Internal data used by individual TV input services.
This is internal to the provider that inserted it, and should not be decoded by other apps.
Type: BLOB
The network affiliation for this TV channel.
This is used to identify a channel that is commonly called by its network affiliation instead of the display name. Examples include ABC for the channel KGO-HD, FOX for the channel KTVU-HD and NBC for the channel KNTV-HD. Can be empty if not applicable.
Type: TEXT
The original network ID of this TV channel.
This is used to identify the originating delivery system, if applicable. Use the same
coding for original_network_id
in the underlying broadcast standard if it is
defined there (e.g. ETSI EN 300 468/TR 101 211 and ARIB STD-B10). If channels cannot be
globally identified by 2-tuple {COLUMN_TRANSPORT_STREAM_ID
,
COLUMN_SERVICE_ID
}, one must carefully assign a value to this field to form a
unique 3-tuple identification {COLUMN_ORIGINAL_NETWORK_ID
,
COLUMN_TRANSPORT_STREAM_ID
, COLUMN_SERVICE_ID
} for its channels.
This is a required field if the channel cannot be uniquely identified by a 2-tuple
{COLUMN_TRANSPORT_STREAM_ID
, COLUMN_SERVICE_ID
}.
Type: INTEGER
The flag indicating whether this TV channel is searchable or not.
In some regions, it is not allowed to surface search results for a given channel without broadcaster's consent. This is used to impose such restriction. Channels marked with "not searchable" cannot be used by other services except for the system service that shows the TV content. A value of 1 indicates the channel is searchable and can be included in search results, a value of 0 indicates the channel and its TV programs are hidden from search. If not specified, this value is set to 1 (searchable) by default.
Type: INTEGER (boolean)
The service ID of this channel.
This is used to identify the current service (roughly equivalent to channel) from any
other service within the Transport Stream, if applicable. Use the same coding for
service_id
in the underlying broadcast standard if it is defined there (e.g. ETSI
EN 300 468 and ARIB STD-B10) or program_number
(which usually has the same value
as service_id
) in ISO/IEC 13818-1 if the channel is transmitted via the MPEG
Transport Stream.
This is a required field if the current channel is transmitted via the MPEG Transport Stream.
Type: INTEGER
The predefined service type of this TV channel.
This is primarily used to indicate whether the current channel is a regular TV channel or
a radio-like channel. Use the same coding for service_type
in the underlying
broadcast standard if it is defined there (e.g. ATSC A/53, ETSI EN 300 468 and ARIB
STD-B10). Otherwise use one of the followings: SERVICE_TYPE_OTHER
,
SERVICE_TYPE_AUDIO_VIDEO
, SERVICE_TYPE_AUDIO
This is a required field.
Type: TEXT
The transport stream ID of this channel.
This is used to identify the Transport Stream that contains the current channel from any
other multiplex within a network, if applicable. Use the same coding for
transport_stream_id
defined in ISO/IEC 13818-1 if the channel is transmitted via
the MPEG Transport Stream as is the case for many digital broadcast standards.
This is a required field if the current channel is transmitted via the MPEG Transport Stream.
Type: INTEGER
The predefined type of this TV channel.
This is primarily used to indicate which broadcast standard (e.g. ATSC, DVB or ISDB) the
current channel conforms to. The value should match to one of the followings:
TYPE_OTHER
, TYPE_DVB_T
, TYPE_DVB_T2
, TYPE_DVB_S
,
TYPE_DVB_S2
, TYPE_DVB_C
, TYPE_DVB_C2
, TYPE_DVB_H
,
TYPE_DVB_SH
, TYPE_ATSC_T
, TYPE_ATSC_C
,
TYPE_ATSC_M_H
, TYPE_ISDB_T
, TYPE_ISDB_TB
,
TYPE_ISDB_S
, TYPE_ISDB_C
, TYPE_1SEG
, TYPE_DTMB
,
TYPE_CMMB
, TYPE_T_DMB
, TYPE_S_DMB
This is a required field.
Type: TEXT
The version number of this row entry used by TV input services.
This is best used by sync adapters to identify the rows to update. The number can be
defined by individual TV input services. One may assign the same value as
version_number
that appears in ETSI EN 300 468 or ATSC A/65, if the data are
coming from a TV broadcast.
Type: INTEGER
The typical video format for programs from this TV channel.
This is primarily used to filter out channels based on video format by applications. The
value should match one of the followings: VIDEO_FORMAT_240P
,
VIDEO_FORMAT_360P
, VIDEO_FORMAT_480I
, VIDEO_FORMAT_480P
,
VIDEO_FORMAT_576I
, VIDEO_FORMAT_576P
, VIDEO_FORMAT_720P
,
VIDEO_FORMAT_1080I
, VIDEO_FORMAT_1080P
, VIDEO_FORMAT_2160P
,
VIDEO_FORMAT_4320P
. Note that the actual video resolution of each program from a
given channel can vary thus one should use COLUMN_VIDEO_WIDTH
and
COLUMN_VIDEO_HEIGHT
to get more accurate video resolution.
Type: TEXT
The MIME type of a single TV channel.
The MIME type of a directory of TV channels.
The service type for radio channels that have audio only.
The service type for regular TV channels that have both audio and video.
A generic service type.
The channel type for 1seg (handheld).
The channel type for ATSC (cable).
The channel type for ATSC-M/H (mobile/handheld).
The channel type for ATSC (terrestrial).
The channel type for CMMB (handheld).
The channel type for DTMB (terrestrial).
The channel type for DVB-C (cable).
The channel type for DVB-C2 (cable).
The channel type for DVB-H (handheld).
The channel type for DVB-S (satellite).
The channel type for DVB-S2 (satellite).
The channel type for DVB-SH (satellite).
The channel type for DVB-T (terrestrial).
The channel type for DVB-T2 (terrestrial).
The channel type for ISDB-C (cable).
The channel type for ISDB-S (satellite).
The channel type for ISDB-T (terrestrial).
The channel type for ISDB-Tb (Brazil).
The channel type for NTSC.
A generic channel type.
The channel type for PAL.
The channel type for SECAM.
The channel type for S-DMB (satellite).
The channel type for T-DMB (terrestrial).
The video format for 1080i.
The video format for 1080p.
The video format for 2160p.
The video format for 240p.
The video format for 360p.
The video format for 4320p.
The video format for 480i.
The video format for 480p.
The video format for 576i.
The video format for 576p.
The video format for 720p.
The video resolution for enhanced-definition.
The video resolution for full high-definition.
The video resolution for high-definition.
The video resolution for standard-definition.
The video resolution for ultra high-definition.
Returns the video resolution (definition) for a given video format.
videoFormat | The video format defined in TvContract.Channels . |
---|
null
if the resolution string
is not defined for the given video format.