Searched refs:WatchedRecord (Results 1 – 3 of 3) sorted by relevance
/packages/apps/TV/tests/robotests/src/com/android/tv/data/ |
D | WatchedHistoryManagerTest.java | 23 import com.android.tv.data.WatchedHistoryManager.WatchedRecord; 79 WatchedRecord record = mWatchedHistoryManager.getRecord(0); in testLogChannelViewStop() 80 WatchedRecord recordFromSharedPreferences = in testLogChannelViewStop() 101 WatchedRecord record = mWatchedHistoryManager.getRecord(i); in testCircularHistoryQueue() 102 WatchedRecord recordFromSharedPreferences = in testCircularHistoryQueue() 115 assertThat(new WatchedRecord(1, 2, 3).equals(new WatchedRecord(1, 2, 3))).isTrue(); in testWatchedRecordEquals() 116 assertThat(new WatchedRecord(1, 2, 3).equals(new WatchedRecord(1, 2, 4))).isFalse(); in testWatchedRecordEquals() 117 assertThat(new WatchedRecord(1, 2, 3).equals(new WatchedRecord(1, 4, 3))).isFalse(); in testWatchedRecordEquals() 118 assertThat(new WatchedRecord(1, 2, 3).equals(new WatchedRecord(4, 2, 3))).isFalse(); in testWatchedRecordEquals() 126 WatchedRecord record = new WatchedRecord(fakeId, time, duration); in testEncodeDecodeWatchedRecord() [all …]
|
/packages/apps/TV/src/com/android/tv/data/ |
D | WatchedHistoryManager.java | 56 private final List<WatchedRecord> mWatchedHistory = new ArrayList<>(); 57 private final List<WatchedRecord> mPendingRecords = new ArrayList<>(); 79 WatchedRecord record = 147 WatchedRecord record = in loadWatchedHistory() 155 WatchedRecord record = in loadWatchedHistory() 171 for (WatchedRecord record : mPendingRecords) { in onLoadFinished() 196 WatchedRecord record = new WatchedRecord(channel.getId(), endTime - duration, duration); in logChannelViewStop() 224 public List<WatchedRecord> getWatchedHistory() { in getWatchedHistory() 229 WatchedRecord getRecord(int reverseIndex) { in getRecord() 234 WatchedRecord getRecordFromSharedPreferences(int reverseIndex) { in getRecordFromSharedPreferences() [all …]
|
/packages/apps/TV/src/com/android/tv/recommendation/ |
D | RecommendationDataManager.java | 365 WatchedHistoryManager.WatchedRecord watchedRecord) { in convertFromWatchedHistoryManagerRecords() 379 for (WatchedHistoryManager.WatchedRecord record : in onLoadFinished() 387 public void onNewRecordAdded(WatchedHistoryManager.WatchedRecord watchedRecord) { in onNewRecordAdded()
|