Home
last modified time | relevance | path

Searched refs:WatchedProgram (Results 1 – 11 of 11) sorted by relevance

/packages/apps/TV/src/com/android/tv/recommendation/
DChannelRecord.java37 private final Deque<WatchedProgram> mWatchHistory;
69 WatchedProgram p = mWatchHistory.peekLast(); in getLastWatchEndTimeMs()
87 public final synchronized WatchedProgram[] getWatchHistory() { in getWatchHistory()
88 return mWatchHistory.toArray(new WatchedProgram[mWatchHistory.size()]); in getWatchHistory()
91 public synchronized void logWatchHistory(WatchedProgram p) { in logWatchHistory()
95 WatchedProgram program = mWatchHistory.poll(); in logWatchHistory()
DRecommendationDataManager.java333 List<WatchedProgram> history = new ArrayList<>(); in onLoadWatchHistory()
347 for (WatchedProgram watchedProgram : history) { in onLoadWatchHistory()
364 private WatchedProgram convertFromWatchedHistoryManagerRecords( in convertFromWatchedHistoryManagerRecords()
374 return new WatchedProgram(program, watchedRecord.watchedStartTime, endTime); in convertFromWatchedHistoryManagerRecords()
401 private WatchedProgram createWatchedProgramFromWatchedProgramCursor(Cursor cursor) { in createWatchedProgramFromWatchedProgramCursor()
427 return new WatchedProgram( in createWatchedProgramFromWatchedProgramCursor()
472 private ChannelRecord updateChannelRecordFromWatchedProgram(WatchedProgram program) { in updateChannelRecordFromWatchedProgram()
DWatchedProgram.java21 public final class WatchedProgram { class
26 public WatchedProgram(Program program, long watchStartTimeMs, long watchEndTimeMs) { in WatchedProgram() method in WatchedProgram
DFavoriteChannelEvaluator.java29 WatchedProgram[] watchedPrograms = cr.getWatchHistory(); in onChannelRecordListChanged()
DRecentChannelEvaluator.java44 WatchedProgram[] watchHistory = cr.getWatchHistory(); in evaluateChannel()
DRoutineWatchEvaluator.java53 WatchedProgram[] watchHistory = cr.getWatchHistory(); in evaluateChannel()
/packages/providers/TvProvider/tests/src/com/android/providers/tv/
DUtils.java151 public static class WatchedProgram extends BaseProgram { class in Utils
152 WatchedProgram(String pkgName) { in WatchedProgram() method in Utils.WatchedProgram
156 WatchedProgram(long id, String pkgName) { in WatchedProgram() method in Utils.WatchedProgram
162 if (!(obj instanceof WatchedProgram)) { in equals()
165 WatchedProgram that = (WatchedProgram) obj; in equals()
299 long channelId, WatchedProgram... programs) { in insertWatchedPrograms()
306 for (WatchedProgram program : programs) { in insertWatchedPrograms()
313 public static Set<WatchedProgram> queryWatchedPrograms(ContentResolver resolver) { in queryWatchedPrograms()
324 Set<WatchedProgram> programs = Sets.newHashSet(); in queryWatchedPrograms()
326 programs.add(new WatchedProgram(cursor.getLong(0), cursor.getString(1))); in queryWatchedPrograms()
DBootCompletedReceiverTest.java23 import static com.android.providers.tv.Utils.WatchedProgram;
95 WatchedProgram watchedProgramInNonExistingPackage = in testPackageRemoved()
96 new WatchedProgram(NON_EXISTING_PACKAGE_NAME); in testPackageRemoved()
97 WatchedProgram watchedProgramInExistingPackage = new WatchedProgram(EXISTING_PACKAGE_NAME); in testPackageRemoved()
DPackageRemovedReceiverTest.java23 import static com.android.providers.tv.Utils.WatchedProgram;
90 WatchedProgram watchedProgramInPackage1 = new WatchedProgram(FAKE_PACKAGE_NAME_1); in testPackageRemoved()
91 WatchedProgram watchedProgramInPackage2 = new WatchedProgram(FAKE_PACKAGE_NAME_2); in testPackageRemoved()
/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/
DChannelRecordTest.java129 new WatchedProgram( in addWatchLog()
DRecommendationUtils.java158 new WatchedProgram(null, watchStartTimeMs, watchStartTimeMs + durationTimeMs)); in addWatchLog()