am d71fcb60: am a5103b9b: Merge "TIF: Add the columns for the app-linking to TvContract.Channels" into mnc-dev

* commit 'd71fcb60c6978ec67f0801ec62f86b283312d614':
  TIF: Add the columns for the app-linking to TvContract.Channels
This commit is contained in:
Jae Seo
2015-06-21 21:51:53 +00:00
committed by Android Git Automerger
3 changed files with 114 additions and 0 deletions

View File

@@ -17698,6 +17698,11 @@ package android.media.tv {
public static final class TvContract.Channels implements android.media.tv.TvContract.BaseTvColumns { public static final class TvContract.Channels implements android.media.tv.TvContract.BaseTvColumns {
method public static final java.lang.String getVideoResolution(java.lang.String); method public static final java.lang.String getVideoResolution(java.lang.String);
field public static final java.lang.String COLUMN_APP_LINK_COLOR = "app_link_color";
field public static final java.lang.String COLUMN_APP_LINK_ICON_URI = "app_link_icon_uri";
field public static final java.lang.String COLUMN_APP_LINK_INTENT_URI = "app_link_intent_uri";
field public static final java.lang.String COLUMN_APP_LINK_POSTER_ART_URI = "app_link_poster_art_uri";
field public static final java.lang.String COLUMN_APP_LINK_TEXT = "app_link_text";
field public static final java.lang.String COLUMN_DESCRIPTION = "description"; field public static final java.lang.String COLUMN_DESCRIPTION = "description";
field public static final java.lang.String COLUMN_DISPLAY_NAME = "display_name"; field public static final java.lang.String COLUMN_DISPLAY_NAME = "display_name";
field public static final java.lang.String COLUMN_DISPLAY_NUMBER = "display_number"; field public static final java.lang.String COLUMN_DISPLAY_NUMBER = "display_number";

View File

@@ -19035,6 +19035,11 @@ package android.media.tv {
public static final class TvContract.Channels implements android.media.tv.TvContract.BaseTvColumns { public static final class TvContract.Channels implements android.media.tv.TvContract.BaseTvColumns {
method public static final java.lang.String getVideoResolution(java.lang.String); method public static final java.lang.String getVideoResolution(java.lang.String);
field public static final java.lang.String COLUMN_APP_LINK_COLOR = "app_link_color";
field public static final java.lang.String COLUMN_APP_LINK_ICON_URI = "app_link_icon_uri";
field public static final java.lang.String COLUMN_APP_LINK_INTENT_URI = "app_link_intent_uri";
field public static final java.lang.String COLUMN_APP_LINK_POSTER_ART_URI = "app_link_poster_art_uri";
field public static final java.lang.String COLUMN_APP_LINK_TEXT = "app_link_text";
field public static final java.lang.String COLUMN_BROWSABLE = "browsable"; field public static final java.lang.String COLUMN_BROWSABLE = "browsable";
field public static final java.lang.String COLUMN_DESCRIPTION = "description"; field public static final java.lang.String COLUMN_DESCRIPTION = "description";
field public static final java.lang.String COLUMN_DISPLAY_NAME = "display_name"; field public static final java.lang.String COLUMN_DISPLAY_NAME = "display_name";

View File

@@ -21,6 +21,7 @@ import android.annotation.SystemApi;
import android.content.ComponentName; import android.content.ComponentName;
import android.content.ContentResolver; import android.content.ContentResolver;
import android.content.ContentUris; import android.content.ContentUris;
import android.content.Intent;
import android.net.Uri; import android.net.Uri;
import android.os.IBinder; import android.os.IBinder;
import android.provider.BaseColumns; import android.provider.BaseColumns;
@@ -708,6 +709,109 @@ public final class TvContract {
@SystemApi @SystemApi
public static final String COLUMN_LOCKED = "locked"; public static final String COLUMN_LOCKED = "locked";
/**
* The app badge icon of the app link template for this channel.
*
* <p>This small icon is overlaid at the bottom of the poster art specified by
* {@link #COLUMN_APP_LINK_POSTER_ART_URI}. The data in the column must be a URI in one of
* the following formats:
*
* <ul>
* <li>content ({@link android.content.ContentResolver#SCHEME_CONTENT})</li>
* <li>android.resource ({@link android.content.ContentResolver#SCHEME_ANDROID_RESOURCE})
* </li>
* <li>file ({@link android.content.ContentResolver#SCHEME_FILE})</li>
* </ul>
*
* <p>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.
*
* <p>Type: TEXT
* @see #COLUMN_APP_LINK_COLOR
* @see #COLUMN_APP_LINK_INTENT_URI
* @see #COLUMN_APP_LINK_POSTER_ART_URI
* @see #COLUMN_APP_LINK_TEXT
*/
public static final String COLUMN_APP_LINK_ICON_URI = "app_link_icon_uri";
/**
* The poster art used as the background of the app link template for this channel.
*
* <p>The data in the column must be a URL or a URI in one of the following formats:
*
* <ul>
* <li>content ({@link android.content.ContentResolver#SCHEME_CONTENT})</li>
* <li>android.resource ({@link android.content.ContentResolver#SCHEME_ANDROID_RESOURCE})
* </li>
* <li>file ({@link android.content.ContentResolver#SCHEME_FILE})</li>
* </ul>
*
* <p>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.
*
* <p>Type: TEXT
* @see #COLUMN_APP_LINK_COLOR
* @see #COLUMN_APP_LINK_ICON_URI
* @see #COLUMN_APP_LINK_INTENT_URI
* @see #COLUMN_APP_LINK_TEXT
*/
public static final String COLUMN_APP_LINK_POSTER_ART_URI = "app_link_poster_art_uri";
/**
* The link text of the app link template for this channel.
*
* <p>This provides a short description of the action that happens when the corresponding
* app link is clicked.
*
* <p>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.
*
* <p>Type: TEXT
* @see #COLUMN_APP_LINK_COLOR
* @see #COLUMN_APP_LINK_ICON_URI
* @see #COLUMN_APP_LINK_INTENT_URI
* @see #COLUMN_APP_LINK_POSTER_ART_URI
*/
public static final String COLUMN_APP_LINK_TEXT = "app_link_text";
/**
* The accent color of the app link template for this channel. This is primarily used for
* the background color of the text box in the template.
*
* <p>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.
*
* <p>Type: INTEGER (color value)
* @see #COLUMN_APP_LINK_ICON_URI
* @see #COLUMN_APP_LINK_INTENT_URI
* @see #COLUMN_APP_LINK_POSTER_ART_URI
* @see #COLUMN_APP_LINK_TEXT
*/
public static final String COLUMN_APP_LINK_COLOR = "app_link_color";
/**
* The intent URI of the app link for this channel.
*
* <p>The URI is created using {@link Intent#toUri} with {@link Intent#URI_INTENT_SCHEME}
* and converted back to the original intent with {@link Intent#parseUri}. The intent is
* launched when the user clicks the corresponding app link for the current channel.
*
* <p>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.
*
* <p>Type: TEXT
* @see #COLUMN_APP_LINK_COLOR
* @see #COLUMN_APP_LINK_ICON_URI
* @see #COLUMN_APP_LINK_POSTER_ART_URI
* @see #COLUMN_APP_LINK_TEXT
*/
public static final String COLUMN_APP_LINK_INTENT_URI = "app_link_intent_uri";
/** /**
* Internal data used by individual TV input services. * Internal data used by individual TV input services.
* *