Home
last modified time | relevance | path

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

/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/
DRecommendationUtils.java51 new Answer<Collection<ChannelRecord>>() { in createMockRecommendationDataManager()
53 public Collection<ChannelRecord> answer(InvocationOnMock invocation) in createMockRecommendationDataManager()
61 new Answer<ChannelRecord>() { in createMockRecommendationDataManager()
63 public ChannelRecord answer(InvocationOnMock invocation) throws Throwable { in createMockRecommendationDataManager()
73 public static class ChannelRecordSortedMapHelper extends TreeMap<Long, ChannelRecord> {
110 ChannelRecord channelRecord = new ChannelRecord(mContext, channel, false); in addChannel()
151 ChannelRecord channelRecord = get(channelId); in addWatchLog()
DChannelRecordTest.java35 private static final int CHANNEL_RECORD_MAX_HISTORY_SIZE = ChannelRecord.MAX_HISTORY_SIZE;
38 private ChannelRecord mChannelRecord;
44 mChannelRecord = new ChannelRecord(getContext(), null, false); in setUp()
DEvaluatorTestCase.java83 for (ChannelRecord channelRecord : mChannelRecordSortedMap.values()) { in getLatestWatchEndTimeMs()
134 public ChannelRecord getChannelRecord(long channelId) { in getChannelRecord()
/packages/apps/TV/src/com/android/tv/recommendation/
DRecommender.java122 Collection<ChannelRecord> channelRecordList = mDataManager.getChannelRecords(); in recommendChannels()
123 for (ChannelRecord cr : channelRecordList) { in recommendChannels()
161 ChannelRecord record = mDataManager.getChannelRecord(channelId); in getChannel()
171 public ChannelRecord getChannelRecord(long channelId) { in getChannelRecord()
191 List<ChannelRecord> channels = new ArrayList<>(mDataManager.getChannelRecords()); in onChannelRecordLoaded()
198 public void onNewWatchLog(ChannelRecord channelRecord) { in onNewWatchLog()
208 List<ChannelRecord> channels = new ArrayList<>(mDataManager.getChannelRecords()); in onChannelRecordChanged()
241 protected void onChannelRecordListChanged(List<ChannelRecord> channelRecords) {} in onChannelRecordListChanged()
248 protected void onNewWatchLog(ChannelRecord channelRecord) {} in onNewWatchLog()
315 public void onNewWatchLog(ChannelRecord channelRecord) { in onNewWatchLog()
[all …]
DRecommendationDataManager.java72 private final Map<Long, ChannelRecord> mChannelRecordMap = new ConcurrentHashMap<>();
73 private final Map<Long, ChannelRecord> mAvailableChannelRecordMap = new ConcurrentHashMap<>();
146 for (ChannelRecord channelRecord : mChannelRecordMap.values()) {
170 for (ChannelRecord channelRecord : mChannelRecordMap.values()) {
213 public ChannelRecord getChannelRecord(long channelId) { in getChannelRecord()
223 public Collection<ChannelRecord> getChannelRecords() { in getChannelRecords()
348 final ChannelRecord channelRecord = in onLoadWatchHistory()
388 final ChannelRecord channelRecord = in onNewRecordAdded()
456 ChannelRecord channelRecord = mChannelRecordMap.get(channel.getId()); in updateChannelRecordMapFromChannel()
459 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
44 public ChannelRecord(Context context, Channel channel, boolean inputRemoved) { in ChannelRecord() method in ChannelRecord
DRoutineWatchEvaluator.java43 ChannelRecord cr = getRecommender().getChannelRecord(channelId); in evaluateChannel()
DNotificationService.java353 final ChannelRecord cr = mRecommender.getChannelRecord(channelId); in sendNotification()