Home
last modified time | relevance | path

Searched refs:ChannelRecord (Results 1 – 10 of 10) sorted by relevance

/packages/apps/TV/src/com/android/tv/recommendation/
DRecommender.java121 Collection<ChannelRecord> channelRecordList = mDataManager.getChannelRecords(); in recommendChannels()
122 for (ChannelRecord cr : channelRecordList) { in recommendChannels()
160 ChannelRecord record = mDataManager.getChannelRecord(channelId); in getChannel()
170 public ChannelRecord getChannelRecord(long channelId) { in getChannelRecord()
190 List<ChannelRecord> channels = new ArrayList<>(mDataManager.getChannelRecords()); in onChannelRecordLoaded()
197 public void onNewWatchLog(ChannelRecord channelRecord) { in onNewWatchLog()
207 List<ChannelRecord> channels = new ArrayList<>(mDataManager.getChannelRecords()); in onChannelRecordChanged()
240 protected void onChannelRecordListChanged(List<ChannelRecord> channelRecords) { in onChannelRecordListChanged()
248 protected void onNewWatchLog(ChannelRecord channelRecord) { in onNewWatchLog()
316 public void onNewWatchLog(ChannelRecord channelRecord) { in onNewWatchLog()
[all …]
DRecommendationDataManager.java78 private final Map<Long, ChannelRecord> mChannelRecordMap = new ConcurrentHashMap<>();
79 private final Map<Long, ChannelRecord> mAvailableChannelRecordMap = new ConcurrentHashMap<>();
153 for (ChannelRecord channelRecord : mChannelRecordMap.values()) {
177 for (ChannelRecord channelRecord : mChannelRecordMap.values()) {
230 public ChannelRecord getChannelRecord(long channelId) { in getChannelRecord()
244 public Collection<ChannelRecord> getChannelRecords() { in getChannelRecords()
362 final ChannelRecord channelRecord = in onLoadWatchHistory()
404 final ChannelRecord channelRecord = updateChannelRecordFromWatchedProgram( in onNewRecordAdded()
478 ChannelRecord channelRecord = mChannelRecordMap.get(channel.getId()); in updateChannelRecordMapFromChannel()
481 ChannelRecord record = new ChannelRecord(mContext, channel, inputRemoved); in updateChannelRecordMapFromChannel()
[all …]
DFavoriteChannelEvaluator.java27 protected void onChannelRecordListChanged(List<ChannelRecord> channelRecords) { in onChannelRecordListChanged()
28 for (ChannelRecord cr : channelRecords) { in onChannelRecordListChanged()
39 ChannelRecord cr = getRecommender().getChannelRecord(channelId); in evaluateChannel()
DRecentChannelEvaluator.java34 public void onNewWatchLog(ChannelRecord channelRecord) { in onNewWatchLog()
40 ChannelRecord cr = getRecommender().getChannelRecord(channelId); in evaluateChannel()
DChannelRecord.java31 public class ChannelRecord { class
41 public ChannelRecord(Context context, Channel channel, boolean inputRemoved) { in ChannelRecord() method in ChannelRecord
DRoutineWatchEvaluator.java44 ChannelRecord cr = getRecommender().getChannelRecord(channelId); in evaluateChannel()
DNotificationService.java355 final ChannelRecord cr = mRecommender.getChannelRecord(channelId); in sendNotification()
/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/
DRecommendationUtils.java52 Mockito.doAnswer(new Answer<Collection<ChannelRecord>>() { in createMockRecommendationDataManager()
54 public Collection<ChannelRecord> answer(InvocationOnMock invocation) throws Throwable { in createMockRecommendationDataManager()
58 Mockito.doAnswer(new Answer<ChannelRecord>() { in createMockRecommendationDataManager()
60 public ChannelRecord answer(InvocationOnMock invocation) throws Throwable { in createMockRecommendationDataManager()
68 public static class ChannelRecordSortedMapHelper extends TreeMap<Long, ChannelRecord> {
105 ChannelRecord channelRecord = new ChannelRecord(mContext, channel, false); in addChannel()
146 ChannelRecord channelRecord = get(channelId); in addWatchLog()
DChannelRecordTest.java32 private static final int CHANNEL_RECORD_MAX_HISTORY_SIZE = ChannelRecord.MAX_HISTORY_SIZE;
35 private ChannelRecord mChannelRecord;
42 mChannelRecord = new ChannelRecord(getContext(), null, false); in setUp()
DEvaluatorTestCase.java83 for (ChannelRecord channelRecord : mChannelRecordSortedMap.values()) { in getLatestWatchEndTimeMs()
126 public ChannelRecord getChannelRecord(long channelId) { in getChannelRecord()