Searched refs:WatchedProgram (Results 1 – 11 of 11) sorted by relevance
37 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()
333 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()
21 public final class WatchedProgram { class26 public WatchedProgram(Program program, long watchStartTimeMs, long watchEndTimeMs) { in WatchedProgram() method in WatchedProgram
29 WatchedProgram[] watchedPrograms = cr.getWatchHistory(); in onChannelRecordListChanged()
44 WatchedProgram[] watchHistory = cr.getWatchHistory(); in evaluateChannel()
53 WatchedProgram[] watchHistory = cr.getWatchHistory(); in evaluateChannel()
151 public static class WatchedProgram extends BaseProgram { class in Utils152 WatchedProgram(String pkgName) { in WatchedProgram() method in Utils.WatchedProgram156 WatchedProgram(long id, String pkgName) { in WatchedProgram() method in Utils.WatchedProgram162 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()
23 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()
23 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()
129 new WatchedProgram( in addWatchLog()
158 new WatchedProgram(null, watchStartTimeMs, watchStartTimeMs + durationTimeMs)); in addWatchLog()