|
21 | 21 | import android.content.ContentResolver; |
22 | 22 | import android.content.ContentUris; |
23 | 23 | import android.net.Uri; |
| 24 | +import android.os.IBinder; |
24 | 25 | import android.provider.BaseColumns; |
25 | 26 | import android.util.ArraySet; |
26 | 27 |
|
@@ -795,7 +796,7 @@ public static final class Programs implements BaseTvColumns { |
795 | 796 | public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/program"; |
796 | 797 |
|
797 | 798 | /** |
798 | | - * The ID of the TV channel that contains this TV program. |
| 799 | + * The ID of the TV channel that provides this TV program. |
799 | 800 | * <p> |
800 | 801 | * This is a part of the channel URI and matches to {@link BaseColumns#_ID}. |
801 | 802 | * </p><p> |
@@ -1109,6 +1110,7 @@ public static boolean isCanonical(String genre) { |
1109 | 1110 | * to this table. |
1110 | 1111 | * @hide |
1111 | 1112 | */ |
| 1113 | + @SystemApi |
1112 | 1114 | public static final class WatchedPrograms implements BaseTvColumns { |
1113 | 1115 |
|
1114 | 1116 | /** The content:// style URI for this table. */ |
@@ -1141,7 +1143,7 @@ public static final class WatchedPrograms implements BaseTvColumns { |
1141 | 1143 | public static final String COLUMN_WATCH_END_TIME_UTC_MILLIS = "watch_end_time_utc_millis"; |
1142 | 1144 |
|
1143 | 1145 | /** |
1144 | | - * The channel ID that contains this TV program. |
| 1146 | + * The ID of the TV channel that provides this TV program. |
1145 | 1147 | * <p> |
1146 | 1148 | * Type: INTEGER (long) |
1147 | 1149 | * </p> |
@@ -1181,17 +1183,30 @@ public static final class WatchedPrograms implements BaseTvColumns { |
1181 | 1183 | public static final String COLUMN_DESCRIPTION = "description"; |
1182 | 1184 |
|
1183 | 1185 | /** |
1184 | | - * Extra parameters of the tune operation. |
| 1186 | + * Extra parameters given to {@link TvInputService.Session#tune(Uri, android.os.Bundle) |
| 1187 | + * TvInputService.Session.tune(Uri, android.os.Bundle)} when tuning to the channel that |
| 1188 | + * provides this TV program. (Used internally.) |
| 1189 | + * <p> |
| 1190 | + * This column contains an encoded string that represents comma-separated key-value pairs of |
| 1191 | + * the tune parameters. (Ex. "[key1]=[value1], [key2]=[value2]"). '%' is used as an escape |
| 1192 | + * character for '%', '=', and ','. |
| 1193 | + * </p><p> |
| 1194 | + * Type: TEXT |
| 1195 | + * </p> |
| 1196 | + */ |
| 1197 | + public static final String COLUMN_INTERNAL_TUNE_PARAMS = "tune_params"; |
| 1198 | + |
| 1199 | + /** |
| 1200 | + * The session token of this TV program. (Used internally.) |
1185 | 1201 | * <p> |
1186 | | - * This column contains an encoded string which is comma-separated key-value pairs. |
1187 | | - * (Ex. "[key1]=[value1], [key2]=[value2]"). COLUMN_TUNE_PARAMS will use '%' as an escape |
1188 | | - * character for the characters of '%', '=', and ','. |
| 1202 | + * This contains a String representation of {@link IBinder} for |
| 1203 | + * {@link TvInputService.Session} that provides the current TV program. It is used |
| 1204 | + * internally to distinguish watched programs entries from different TV input sessions. |
1189 | 1205 | * </p><p> |
1190 | 1206 | * Type: TEXT |
1191 | 1207 | * </p> |
1192 | | - * @see TvInputManager.Session.tune(Uri, Bundle) |
1193 | 1208 | */ |
1194 | | - public static final String COLUMN_TUNE_PARAMS = "tune_params"; |
| 1209 | + public static final String COLUMN_INTERNAL_SESSION_TOKEN = "session_token"; |
1195 | 1210 |
|
1196 | 1211 | private WatchedPrograms() {} |
1197 | 1212 | } |
|
0 commit comments