/packages/providers/TvProvider/tests/src/com/android/providers/tv/ |
D | DatabaseHelperTest.java | 87 TvContract.WatchedPrograms.CONTENT_URI, null, null, null, null)) { in testUpgradeDatabase() 184 + TvContract.WatchedPrograms._ID + " INTEGER PRIMARY KEY AUTOINCREMENT," in onCreate() 185 + TvContract.WatchedPrograms.COLUMN_PACKAGE_NAME + " TEXT NOT NULL," in onCreate() 186 + TvContract.WatchedPrograms.COLUMN_WATCH_START_TIME_UTC_MILLIS in onCreate() 188 + TvContract.WatchedPrograms.COLUMN_WATCH_END_TIME_UTC_MILLIS in onCreate() 190 + TvContract.WatchedPrograms.COLUMN_CHANNEL_ID + " INTEGER," in onCreate() 191 + TvContract.WatchedPrograms.COLUMN_TITLE + " TEXT," in onCreate() 192 + TvContract.WatchedPrograms.COLUMN_START_TIME_UTC_MILLIS + " INTEGER," in onCreate() 193 + TvContract.WatchedPrograms.COLUMN_END_TIME_UTC_MILLIS + " INTEGER," in onCreate() 194 + TvContract.WatchedPrograms.COLUMN_DESCRIPTION + " TEXT," in onCreate() [all …]
|
D | EpgDataCleanupServiceTests.java | 29 import android.media.tv.TvContract.WatchedPrograms; 180 values.put(WatchedPrograms.COLUMN_PACKAGE_NAME, getContext().getPackageName()); in insertWatchedPrograms() 181 values.put(WatchedPrograms.COLUMN_CHANNEL_ID, channelId); in insertWatchedPrograms() 183 values.put(WatchedPrograms.COLUMN_WATCH_START_TIME_UTC_MILLIS, program.startTime); in insertWatchedPrograms() 184 values.put(WatchedPrograms.COLUMN_WATCH_END_TIME_UTC_MILLIS, program.endTime); in insertWatchedPrograms() 193 WatchedPrograms._ID, in queryWatchedPrograms() 194 WatchedPrograms.COLUMN_WATCH_START_TIME_UTC_MILLIS, in queryWatchedPrograms() 195 WatchedPrograms.COLUMN_WATCH_END_TIME_UTC_MILLIS, in queryWatchedPrograms() 198 Cursor cursor = mResolver.query(WatchedPrograms.CONTENT_URI, projection, null, null, null); in queryWatchedPrograms()
|
D | Utils.java | 301 values.put(TvContract.WatchedPrograms.COLUMN_PACKAGE_NAME, packageName); in insertWatchedPrograms() 302 values.put(TvContract.WatchedPrograms.COLUMN_CHANNEL_ID, channelId); in insertWatchedPrograms() 303 values.put(TvContract.WatchedPrograms.COLUMN_WATCH_START_TIME_UTC_MILLIS, 1000); in insertWatchedPrograms() 304 values.put(TvContract.WatchedPrograms.COLUMN_INTERNAL_SESSION_TOKEN, FAKE_SESSION_TOKEN); in insertWatchedPrograms() 307 Uri uri = resolver.insert(TvContract.WatchedPrograms.CONTENT_URI, values); in insertWatchedPrograms() 315 TvContract.WatchedPrograms._ID, in queryWatchedPrograms() 321 TvContract.WatchedPrograms.CONTENT_URI, projection, null, null, null); in queryWatchedPrograms()
|
D | TvProviderForTesting.java | 73 values.put(TvContract.WatchedPrograms.COLUMN_INTERNAL_SESSION_TOKEN, FAKE_SESSION_TOKEN); in insertWatchedProgramSync()
|
/packages/apps/TV/src/com/android/tv/dialog/ |
D | RecentlyWatchedDialogFragment.java | 55 TvContract.WatchedPrograms._ID, in onCreateDialog() 56 TvContract.WatchedPrograms.COLUMN_CHANNEL_ID, in onCreateDialog() 57 TvContract.WatchedPrograms.COLUMN_WATCH_START_TIME_UTC_MILLIS, in onCreateDialog() 58 TvContract.WatchedPrograms.COLUMN_TITLE in onCreateDialog() 74 if (TvContract.WatchedPrograms.COLUMN_CHANNEL_ID.equals(name)) { in onCreateDialog() 92 } else if (TvContract.WatchedPrograms.COLUMN_WATCH_START_TIME_UTC_MILLIS in onCreateDialog() 131 TvContract.WatchedPrograms._ID, in onCreateLoader() 132 TvContract.WatchedPrograms.COLUMN_CHANNEL_ID, in onCreateLoader() 133 TvContract.WatchedPrograms.COLUMN_WATCH_START_TIME_UTC_MILLIS, in onCreateLoader() 134 TvContract.WatchedPrograms.COLUMN_TITLE in onCreateLoader() [all …]
|
/packages/providers/TvProvider/src/com/android/providers/tv/ |
D | TvProvider.java | 47 import android.media.tv.TvContract.WatchedPrograms; 116 WatchedPrograms.COLUMN_WATCH_START_TIME_UTC_MILLIS + " DESC"; 312 sWatchedProgramProjectionMap.put(WatchedPrograms._ID, WatchedPrograms._ID); in initProjectionMaps() 313 sWatchedProgramProjectionMap.put(WatchedPrograms._COUNT, COUNT_STAR); in initProjectionMaps() 314 sWatchedProgramProjectionMap.put(WatchedPrograms.COLUMN_WATCH_START_TIME_UTC_MILLIS, in initProjectionMaps() 315 WatchedPrograms.COLUMN_WATCH_START_TIME_UTC_MILLIS); in initProjectionMaps() 316 sWatchedProgramProjectionMap.put(WatchedPrograms.COLUMN_WATCH_END_TIME_UTC_MILLIS, in initProjectionMaps() 317 WatchedPrograms.COLUMN_WATCH_END_TIME_UTC_MILLIS); in initProjectionMaps() 318 sWatchedProgramProjectionMap.put(WatchedPrograms.COLUMN_CHANNEL_ID, in initProjectionMaps() 319 WatchedPrograms.COLUMN_CHANNEL_ID); in initProjectionMaps() [all …]
|
D | EpgDataCleanupService.java | 23 import android.media.tv.TvContract.WatchedPrograms; 99 WatchedPrograms.CONTENT_URI, in clearOldWatchHistory() 100 WatchedPrograms.COLUMN_WATCH_START_TIME_UTC_MILLIS + "<?", in clearOldWatchHistory() 118 WatchedPrograms.CONTENT_URI, in clearOverflowWatchHistory() 119 new String[] { WatchedPrograms.COLUMN_WATCH_START_TIME_UTC_MILLIS }, null, null, in clearOverflowWatchHistory() 120 WatchedPrograms.COLUMN_WATCH_START_TIME_UTC_MILLIS); in clearOverflowWatchHistory() 143 WatchedPrograms.CONTENT_URI, in clearOverflowWatchHistory() 144 WatchedPrograms.COLUMN_WATCH_START_TIME_UTC_MILLIS + "<?", in clearOverflowWatchHistory()
|
D | BootCompletedReceiver.java | 130 if (TvContract.WatchedPrograms.CONTENT_URI.equals(uri)) { in getTableName()
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/fakes/ |
D | FakeTvProvider.java | 104 WatchedPrograms.COLUMN_WATCH_START_TIME_UTC_MILLIS + " DESC"; 308 sWatchedProgramProjectionMap.put(WatchedPrograms._ID, WatchedPrograms._ID); in sWatchedProgramProjectionMap.put() 310 WatchedPrograms.COLUMN_WATCH_START_TIME_UTC_MILLIS, in sWatchedProgramProjectionMap.put() 311 WatchedPrograms.COLUMN_WATCH_START_TIME_UTC_MILLIS); in sWatchedProgramProjectionMap.put() 313 WatchedPrograms.COLUMN_WATCH_END_TIME_UTC_MILLIS, in sWatchedProgramProjectionMap.put() 314 WatchedPrograms.COLUMN_WATCH_END_TIME_UTC_MILLIS); in sWatchedProgramProjectionMap.put() 316 WatchedPrograms.COLUMN_CHANNEL_ID, WatchedPrograms.COLUMN_CHANNEL_ID); in sWatchedProgramProjectionMap.put() 318 WatchedPrograms.COLUMN_TITLE, WatchedPrograms.COLUMN_TITLE); in sWatchedProgramProjectionMap.put() 320 WatchedPrograms.COLUMN_START_TIME_UTC_MILLIS, in sWatchedProgramProjectionMap.put() 321 WatchedPrograms.COLUMN_START_TIME_UTC_MILLIS); in sWatchedProgramProjectionMap.put() [all …]
|
/packages/apps/TV/src/com/android/tv/recommendation/ |
D | RecommendationDataManager.java | 278 TvContract.WatchedPrograms.CONTENT_URI, true, mContentObserver); in onStart() 280 MSG_UPDATE_WATCH_HISTORY, TvContract.WatchedPrograms.CONTENT_URI) in onStart() 405 cursor.getColumnIndex(TvContract.WatchedPrograms.COLUMN_CHANNEL_ID); in createWatchedProgramFromWatchedProgramCursor() 406 mIndexProgramTitle = cursor.getColumnIndex(TvContract.WatchedPrograms.COLUMN_TITLE); in createWatchedProgramFromWatchedProgramCursor() 408 cursor.getColumnIndex(TvContract.WatchedPrograms.COLUMN_START_TIME_UTC_MILLIS); in createWatchedProgramFromWatchedProgramCursor() 410 cursor.getColumnIndex(TvContract.WatchedPrograms.COLUMN_END_TIME_UTC_MILLIS); in createWatchedProgramFromWatchedProgramCursor() 413 TvContract.WatchedPrograms.COLUMN_WATCH_START_TIME_UTC_MILLIS); in createWatchedProgramFromWatchedProgramCursor() 416 TvContract.WatchedPrograms.COLUMN_WATCH_END_TIME_UTC_MILLIS); in createWatchedProgramFromWatchedProgramCursor() 495 MSG_UPDATE_WATCH_HISTORY, TvContract.WatchedPrograms.CONTENT_URI)) { in onChange()
|
/packages/apps/TV/src/com/android/tv/search/ |
D | TvProviderSearch.java | 27 import android.media.tv.TvContract.WatchedPrograms; 604 Uri uri = WatchedPrograms.CONTENT_URI; in getMaxWatchStartTime() 608 + WatchedPrograms.COLUMN_START_TIME_UTC_MILLIS in getMaxWatchStartTime() 611 String selection = WatchedPrograms.COLUMN_CHANNEL_ID + "=?"; in getMaxWatchStartTime()
|