public static final class TvContract.Channels extends Object implements TvContract.BaseTvColumns
Modifier and Type | Class and Description |
---|---|
static class |
TvContract.Channels.Logo
A sub-directory of a single TV channel that represents its primary logo.
|
Modifier and Type | Field and Description |
---|---|
static String |
COLUMN_APP_LINK_COLOR
The accent color of the app link template for this channel.
|
static String |
COLUMN_APP_LINK_ICON_URI
The URI for the app badge icon of the app link template for this channel.
|
static String |
COLUMN_APP_LINK_INTENT_URI
The intent URI of the app link for this channel.
|
static String |
COLUMN_APP_LINK_POSTER_ART_URI
The URI for the poster art used as the background of the app link template for this
channel.
|
static String |
COLUMN_APP_LINK_TEXT
The link text of the app link template for this channel.
|
static String |
COLUMN_BROWSABLE
The flag indicating whether this TV channel is browsable or not.
|
static String |
COLUMN_DESCRIPTION
The description of this TV channel.
|
static String |
COLUMN_DISPLAY_NAME
The channel name that is displayed to the user.
|
static String |
COLUMN_DISPLAY_NUMBER
The channel number that is displayed to the user.
|
static String |
COLUMN_INPUT_ID
The ID of the TV input service that provides this TV channel.
|
static String |
COLUMN_INTERNAL_PROVIDER_DATA
Internal data used by individual TV input services.
|
static String |
COLUMN_INTERNAL_PROVIDER_FLAG1
Internal integer flag used by individual TV input services.
|
static String |
COLUMN_INTERNAL_PROVIDER_FLAG2
Internal integer flag used by individual TV input services.
|
static String |
COLUMN_INTERNAL_PROVIDER_FLAG3
Internal integer flag used by individual TV input services.
|
static String |
COLUMN_INTERNAL_PROVIDER_FLAG4
Internal integer flag used by individual TV input services.
|
static String |
COLUMN_LOCKED
The flag indicating whether this TV channel is locked or not.
|
static String |
COLUMN_NETWORK_AFFILIATION
The network affiliation for this TV channel.
|
static String |
COLUMN_ORIGINAL_NETWORK_ID
The original network ID of this TV channel.
|
static String |
COLUMN_SEARCHABLE
The flag indicating whether this TV channel is searchable or not.
|
static String |
COLUMN_SERVICE_ID
The service ID of this channel.
|
static String |
COLUMN_SERVICE_TYPE
The predefined service type of this TV channel.
|
static String |
COLUMN_TRANSPORT_STREAM_ID
The transport stream ID of this channel.
|
static String |
COLUMN_TYPE
The broadcast system type of this TV channel.
|
static String |
COLUMN_VERSION_NUMBER
The version number of this row entry used by TV input services.
|
static String |
COLUMN_VIDEO_FORMAT
The typical video format for programs from this TV channel.
|
static String |
CONTENT_ITEM_TYPE
The MIME type of a single TV channel.
|
static String |
CONTENT_TYPE
The MIME type of a directory of TV channels.
|
static Uri |
CONTENT_URI
The content:// style URI for this table.
|
static String |
SERVICE_TYPE_AUDIO
The service type for radio channels that have audio only.
|
static String |
SERVICE_TYPE_AUDIO_VIDEO
The service type for regular TV channels that have both audio and video.
|
static String |
SERVICE_TYPE_OTHER
A generic service type.
|
static String |
TYPE_1SEG
The channel type for 1seg (handheld).
|
static String |
TYPE_ATSC_C
The channel type for ATSC (cable).
|
static String |
TYPE_ATSC_M_H
The channel type for ATSC-M/H (mobile/handheld).
|
static String |
TYPE_ATSC_T
The channel type for ATSC (terrestrial).
|
static String |
TYPE_CMMB
The channel type for CMMB (handheld).
|
static String |
TYPE_DTMB
The channel type for DTMB (terrestrial).
|
static String |
TYPE_DVB_C
The channel type for DVB-C (cable).
|
static String |
TYPE_DVB_C2
The channel type for DVB-C2 (cable).
|
static String |
TYPE_DVB_H
The channel type for DVB-H (handheld).
|
static String |
TYPE_DVB_S
The channel type for DVB-S (satellite).
|
static String |
TYPE_DVB_S2
The channel type for DVB-S2 (satellite).
|
static String |
TYPE_DVB_SH
The channel type for DVB-SH (satellite).
|
static String |
TYPE_DVB_T
The channel type for DVB-T (terrestrial).
|
static String |
TYPE_DVB_T2
The channel type for DVB-T2 (terrestrial).
|
static String |
TYPE_ISDB_C
The channel type for ISDB-C (cable).
|
static String |
TYPE_ISDB_S
The channel type for ISDB-S (satellite).
|
static String |
TYPE_ISDB_T
The channel type for ISDB-T (terrestrial).
|
static String |
TYPE_ISDB_TB
The channel type for ISDB-Tb (Brazil).
|
static String |
TYPE_NTSC
The channel type for NTSC.
|
static String |
TYPE_OTHER
A generic channel type.
|
static String |
TYPE_PAL
The channel type for PAL.
|
static String |
TYPE_S_DMB
The channel type for S-DMB (satellite).
|
static String |
TYPE_SECAM
The channel type for SECAM.
|
static String |
TYPE_T_DMB
The channel type for T-DMB (terrestrial).
|
static String |
VIDEO_FORMAT_1080I
The video format for 1080i.
|
static String |
VIDEO_FORMAT_1080P
The video format for 1080p.
|
static String |
VIDEO_FORMAT_2160P
The video format for 2160p.
|
static String |
VIDEO_FORMAT_240P
The video format for 240p.
|
static String |
VIDEO_FORMAT_360P
The video format for 360p.
|
static String |
VIDEO_FORMAT_4320P
The video format for 4320p.
|
static String |
VIDEO_FORMAT_480I
The video format for 480i.
|
static String |
VIDEO_FORMAT_480P
The video format for 480p.
|
static String |
VIDEO_FORMAT_576I
The video format for 576i.
|
static String |
VIDEO_FORMAT_576P
The video format for 576p.
|
static String |
VIDEO_FORMAT_720P
The video format for 720p.
|
static String |
VIDEO_RESOLUTION_ED
The video resolution for enhanced-definition.
|
static String |
VIDEO_RESOLUTION_FHD
The video resolution for full high-definition.
|
static String |
VIDEO_RESOLUTION_HD
The video resolution for high-definition.
|
static String |
VIDEO_RESOLUTION_SD
The video resolution for standard-definition.
|
static String |
VIDEO_RESOLUTION_UHD
The video resolution for ultra high-definition.
|
COLUMN_PACKAGE_NAME
_COUNT, _ID
Modifier and Type | Method and Description |
---|---|
static String |
getVideoResolution(String videoFormat)
Returns the video resolution (definition) for a given video format.
|
public static final Uri CONTENT_URI
public static final String CONTENT_TYPE
public static final String CONTENT_ITEM_TYPE
public static final String TYPE_OTHER
COLUMN_TYPE
,
Constant Field Valuespublic static final String TYPE_NTSC
COLUMN_TYPE
,
Constant Field Valuespublic static final String TYPE_PAL
COLUMN_TYPE
,
Constant Field Valuespublic static final String TYPE_SECAM
COLUMN_TYPE
,
Constant Field Valuespublic static final String TYPE_DVB_T
COLUMN_TYPE
,
Constant Field Valuespublic static final String TYPE_DVB_T2
COLUMN_TYPE
,
Constant Field Valuespublic static final String TYPE_DVB_S
COLUMN_TYPE
,
Constant Field Valuespublic static final String TYPE_DVB_S2
COLUMN_TYPE
,
Constant Field Valuespublic static final String TYPE_DVB_C
COLUMN_TYPE
,
Constant Field Valuespublic static final String TYPE_DVB_C2
COLUMN_TYPE
,
Constant Field Valuespublic static final String TYPE_DVB_H
COLUMN_TYPE
,
Constant Field Valuespublic static final String TYPE_DVB_SH
COLUMN_TYPE
,
Constant Field Valuespublic static final String TYPE_ATSC_T
COLUMN_TYPE
,
Constant Field Valuespublic static final String TYPE_ATSC_C
COLUMN_TYPE
,
Constant Field Valuespublic static final String TYPE_ATSC_M_H
COLUMN_TYPE
,
Constant Field Valuespublic static final String TYPE_ISDB_T
COLUMN_TYPE
,
Constant Field Valuespublic static final String TYPE_ISDB_TB
COLUMN_TYPE
,
Constant Field Valuespublic static final String TYPE_ISDB_S
COLUMN_TYPE
,
Constant Field Valuespublic static final String TYPE_ISDB_C
COLUMN_TYPE
,
Constant Field Valuespublic static final String TYPE_1SEG
COLUMN_TYPE
,
Constant Field Valuespublic static final String TYPE_DTMB
COLUMN_TYPE
,
Constant Field Valuespublic static final String TYPE_CMMB
COLUMN_TYPE
,
Constant Field Valuespublic static final String TYPE_T_DMB
COLUMN_TYPE
,
Constant Field Valuespublic static final String TYPE_S_DMB
COLUMN_TYPE
,
Constant Field Valuespublic static final String SERVICE_TYPE_OTHER
public static final String SERVICE_TYPE_AUDIO_VIDEO
public static final String SERVICE_TYPE_AUDIO
public static final String VIDEO_FORMAT_240P
public static final String VIDEO_FORMAT_360P
public static final String VIDEO_FORMAT_480I
public static final String VIDEO_FORMAT_480P
public static final String VIDEO_FORMAT_576I
public static final String VIDEO_FORMAT_576P
public static final String VIDEO_FORMAT_720P
public static final String VIDEO_FORMAT_1080I
public static final String VIDEO_FORMAT_1080P
public static final String VIDEO_FORMAT_2160P
public static final String VIDEO_FORMAT_4320P
public static final String VIDEO_RESOLUTION_SD
public static final String VIDEO_RESOLUTION_ED
public static final String VIDEO_RESOLUTION_HD
public static final String VIDEO_RESOLUTION_FHD
public static final String VIDEO_RESOLUTION_UHD
public static final String COLUMN_INPUT_ID
Use TvContract.buildInputId(android.content.ComponentName)
to build the ID.
This is a required field.
Type: TEXT
public static final String COLUMN_TYPE
This is used to indicate the broadcast standard (e.g. ATSC, DVB or ISDB) the current
channel conforms to. Use TYPE_OTHER
for streaming-based channels, which is the
default channel type. The value should match to one of the followings:
TYPE_1SEG
,
TYPE_ATSC_C
,
TYPE_ATSC_M_H
,
TYPE_ATSC_T
,
TYPE_CMMB
,
TYPE_DTMB
,
TYPE_DVB_C
,
TYPE_DVB_C2
,
TYPE_DVB_H
,
TYPE_DVB_S
,
TYPE_DVB_S2
,
TYPE_DVB_SH
,
TYPE_DVB_T
,
TYPE_DVB_T2
,
TYPE_ISDB_C
,
TYPE_ISDB_S
,
TYPE_ISDB_T
,
TYPE_ISDB_TB
,
TYPE_NTSC
,
TYPE_OTHER
,
TYPE_PAL
,
TYPE_SECAM
,
TYPE_S_DMB
, and
TYPE_T_DMB
.
This is a required field.
Type: TEXT
public static final String COLUMN_SERVICE_TYPE
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
public static final String COLUMN_ORIGINAL_NETWORK_ID
It is used to identify the originating delivery system, if applicable. Use the same
coding for original_network_id
for ETSI EN 300 468/TR 101 211 and ARIB STD-B10.
This is a required field only if the underlying broadcast standard defines the same name field. Otherwise, leave empty.
Type: INTEGER
public static final String COLUMN_TRANSPORT_STREAM_ID
It 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.
This is a required field only if the current channel is transmitted via the MPEG Transport Stream. Leave empty otherwise.
Type: INTEGER
public static final String COLUMN_SERVICE_ID
It is used to identify the current service, or channel from any other services within
a given Transport Stream, if applicable. Use the same coding for service_id
in
ETSI EN 300 468 and ARIB STD-B10 or program_number
in ISO/IEC 13818-1.
This is a required field only if the underlying broadcast standard defines the same name field, or the current channel is transmitted via the MPEG Transport Stream. Leave empty otherwise.
Type: INTEGER
public static final String COLUMN_DISPLAY_NUMBER
The format can vary depending on broadcast standard and product specification.
Type: TEXT
public static final String COLUMN_DISPLAY_NAME
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
public static final String COLUMN_NETWORK_AFFILIATION
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
public static final String COLUMN_DESCRIPTION
Can be empty initially.
Type: TEXT
public static final String COLUMN_VIDEO_FORMAT
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 TvContract.Programs.COLUMN_VIDEO_WIDTH
and
TvContract.Programs.COLUMN_VIDEO_HEIGHT
to get more accurate video resolution.
Type: TEXT
public static final String COLUMN_BROWSABLE
A value of 1 indicates the channel is included in the channel list that applications use to browse channels, a value of 0 indicates the channel is not included in the list. If not specified, this value is set to 0 (not browsable) by default.
Type: INTEGER (boolean)
public static final String COLUMN_SEARCHABLE
The columns of searchable channels can be read by other applications that have proper permission. Care must be taken not to open sensitive data.
A value of 1 indicates that the channel is searchable and its columns can be read by other applications, a value of 0 indicates that the channel is hidden and its columns can be read only by the package that owns the channel and the system. If not specified, this value is set to 1 (searchable) by default.
Type: INTEGER (boolean)
public static final String COLUMN_LOCKED
This is primarily used for alternative parental control to prevent unauthorized users from watching the current channel regardless of the content rating. A value of 1 indicates the channel is locked and the user is required to enter passcode to unlock it in order to watch the current program from the channel, a value of 0 indicates the channel is not locked thus the user is not prompted to enter passcode If not specified, this value is set to 0 (not locked) by default.
Type: INTEGER (boolean)
public static final String COLUMN_APP_LINK_ICON_URI
This small icon is overlaid at the bottom of the poster art specified by
COLUMN_APP_LINK_POSTER_ART_URI
. The data in the column must be a URI in one of
the following formats:
ContentResolver.SCHEME_CONTENT
)ContentResolver.SCHEME_ANDROID_RESOURCE
)
ContentResolver.SCHEME_FILE
)The app-linking allows channel input sources to provide activity links from their live channel programming to another activity. This enables content providers to increase user engagement by offering the viewer other content or actions.
Type: TEXT
public static final String COLUMN_APP_LINK_POSTER_ART_URI
The data in the column must be a URL, or a URI in one of the following formats:
ContentResolver.SCHEME_CONTENT
)ContentResolver.SCHEME_ANDROID_RESOURCE
)
ContentResolver.SCHEME_FILE
)The app-linking allows channel input sources to provide activity links from their live channel programming to another activity. This enables content providers to increase user engagement by offering the viewer other content or actions.
Type: TEXT
public static final String COLUMN_APP_LINK_TEXT
This provides a short description of the action that happens when the corresponding app link is clicked.
The app-linking allows channel input sources to provide activity links from their live channel programming to another activity. This enables content providers to increase user engagement by offering the viewer other content or actions.
Type: TEXT
public static final String COLUMN_APP_LINK_COLOR
The app-linking allows channel input sources to provide activity links from their live channel programming to another activity. This enables content providers to increase user engagement by offering the viewer other content or actions.
Type: INTEGER (color value)
public static final String COLUMN_APP_LINK_INTENT_URI
The URI is created using Intent.toUri(int)
with Intent.URI_INTENT_SCHEME
and converted back to the original intent with Intent.parseUri(java.lang.String, int)
. The intent is
launched when the user clicks the corresponding app link for the current channel.
The app-linking allows channel input sources to provide activity links from their live channel programming to another activity. This enables content providers to increase user engagement by offering the viewer other content or actions.
Type: TEXT
public static final String COLUMN_INTERNAL_PROVIDER_DATA
This is internal to the provider that inserted it, and should not be decoded by other apps.
Type: BLOB
public static final String COLUMN_INTERNAL_PROVIDER_FLAG1
This is internal to the provider that inserted it, and should not be decoded by other apps.
Type: INTEGER
public static final String COLUMN_INTERNAL_PROVIDER_FLAG2
This is internal to the provider that inserted it, and should not be decoded by other apps.
Type: INTEGER
public static final String COLUMN_INTERNAL_PROVIDER_FLAG3
This is internal to the provider that inserted it, and should not be decoded by other apps.
Type: INTEGER
public static final String COLUMN_INTERNAL_PROVIDER_FLAG4
This is internal to the provider that inserted it, and should not be decoded by other apps.
Type: INTEGER
public static final String COLUMN_VERSION_NUMBER
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
public static final String getVideoResolution(String videoFormat)
videoFormat
- The video format defined in TvContract.Channels
.null
if the resolution string
is not defined for the given video format.COLUMN_VIDEO_FORMAT