/packages/apps/TV/src/com/android/tv/recommendation/ |
H A D | RandomEvaluator.java | 21 public double evaluateChannel(long channelId) { argument
|
H A D | FavoriteChannelEvaluator.java | 38 public double evaluateChannel(long channelId) { argument 39 ChannelRecord cr = getRecommender().getChannelRecord(channelId);
|
H A D | RecentChannelEvaluator.java | 39 public double evaluateChannel(long channelId) { argument 40 ChannelRecord cr = getRecommender().getChannelRecord(channelId);
|
H A D | Recommender.java | 155 * @param channelId The channel ID to retrieve the {@link Channel} object for. 159 public Channel getChannel(long channelId) { argument 160 ChannelRecord record = mDataManager.getChannelRecord(channelId); 167 * @param channelId The channel ID to receive the {@link ChannelRecord} object for. 170 public ChannelRecord getChannelRecord(long channelId) { argument 171 return mDataManager.getChannelRecord(channelId); 181 public String getChannelSortKey(long channelId) { argument 182 String key = mChannelSortKey.get(channelId); 256 * @param channelId The channel ID which will be evaluated by this recommender. 259 protected abstract double evaluateChannel(final long channelId); argument 299 getScaledEvaluatorScore(long channelId) argument [all...] |
H A D | RoutineWatchEvaluator.java | 43 public double evaluateChannel(long channelId) { argument 44 ChannelRecord cr = getRecommender().getChannelRecord(channelId);
|
H A D | NotificationService.java | 354 private boolean sendNotification(final long channelId, final int notificationId) { argument 355 final ChannelRecord cr = mRecommender.getChannelRecord(channelId); 501 private boolean isNotifiedChannel(long channelId) { argument 503 if (mNotificationChannels[i] == channelId) {
|
/packages/apps/TV/src/com/android/tv/data/ |
H A D | OnCurrentProgramUpdatedListener.java | 23 void onCurrentProgramUpdated(long channelId, Program program); argument
|
H A D | WatchedHistoryManager.java | 215 long channelId = record.channelId; 216 Channel channel = channelDataManager.getChannel(channelId); 220 Long duration = durationMap.get(channelId); 232 durationMap.put(channelId, RECENT_CHANNEL_THRESHOLD_MS); 235 durationMap.put(channelId, duration); 270 public final long channelId; field in class:WatchedHistoryManager.WatchedRecord 274 WatchedRecord(long channelId, long watchedStartTime, long duration) { argument 275 this.channelId = channelId; [all...] |
H A D | ChannelDataManager.java | 232 * Adds a {@link ChannelListener} for a specific channel with the channel ID {@code channelId}. 234 public void addChannelListener(Long channelId, ChannelListener listener) { argument 235 ChannelWrapper channelWrapper = mChannelWrapperMap.get(channelId); 244 * {@code channelId}. 246 public void removeChannelListener(Long channelId, ChannelListener listener) { argument 247 ChannelWrapper channelWrapper = mChannelWrapperMap.get(channelId); 314 * Gets the channel with the channel ID {@code channelId}. 316 public Channel getChannel(Long channelId) { argument 317 ChannelWrapper channelWrapper = mChannelWrapperMap.get(channelId); 327 public void updateBrowsable(Long channelId, boolea argument 339 updateBrowsable(Long channelId, boolean browsable, boolean skipNotifyChannelBrowsableChanged) argument 401 updateLocked(Long channelId, boolean locked) argument [all...] |
/packages/apps/TV/src/com/android/tv/data/epg/ |
H A D | EpgReader.java | 52 List<Program> getPrograms(long channelId); argument
|
H A D | StubEpgReader.java | 50 public List<Program> getPrograms(long channelId) { argument
|
H A D | EpgFetcher.java | 190 private void updateEpg(long channelId, List<Program> newPrograms) { argument 197 List<Program> oldPrograms = queryPrograms(mContext.getContentResolver(), channelId, 268 Log.d(TAG, "Running " + size + " operations for channel " + channelId); 282 Log.d(TAG, "Fetched " + fetchedProgramsCount + " programs for channel " + channelId); 286 private List<Program> queryPrograms(ContentResolver contentResolver, long channelId, argument 289 TvContract.buildProgramsUriForChannel(channelId, startTimeMs, endTimeMs),
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/dvr/ |
H A D | RecordingTestUtils.java | 28 public static ScheduledRecording createTestRecordingWithIdAndPeriod(long id, long channelId, argument 32 .setChannelId(channelId) 36 public static ScheduledRecording createTestRecordingWithPeriod(long channelId, long startTime, argument 38 return createTestRecordingWithIdAndPeriod(ScheduledRecording.ID_NOT_SET, channelId, 43 DvrDataManagerInMemoryImpl dvrDataManager, long channelId, long startTime, 45 ScheduledRecording recording = createTestRecordingWithPeriod(channelId, startTime, endTime); 42 addScheduledRecording( DvrDataManagerInMemoryImpl dvrDataManager, long channelId, long startTime, long endTime) argument
|
/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/ |
H A D | EvaluatorTestCase.java | 72 public void addWatchLog(long channelId, long watchStartTimeMs, long durationTimeMs) { argument 73 assertTrue(mChannelRecordSortedMap.addWatchLog(channelId, watchStartTimeMs, 98 for (long channelId : mChannelRecordSortedMap.keySet()) { 99 double score = mEvaluator.evaluateChannel(channelId); 100 assertTrue("Channel " + channelId + " score of " + score + "is not valid", 126 public ChannelRecord getChannelRecord(long channelId) { argument 127 return mChannelRecordSortedMap.get(channelId);
|
H A D | RecommendationUtils.java | 61 long channelId = (long) invocation.getArguments()[0]; 62 return channelRecordSortedMap.get(channelId); 103 long channelId = size(); 104 Channel channel = new Channel.Builder().setId(channelId).build(); 106 put(channelId, channelRecord); 123 long channelId = channelIdList.get(mRandom.nextInt(channelIdList.size())); 124 if (previousChannelId == channelId) { 129 if (!addWatchLog(channelId, latestWatchEndTimeMs, watchedDurationMs)) { 133 previousChannelId = channelId; 145 public boolean addWatchLog(long channelId, lon argument [all...] |
H A D | RecommenderTest.java | 235 for (long channelId : mChannelRecordSortedMap.keySet()) { 236 mEvaluator.setChannelScore(channelId, 1.0); 238 assertTrue(mChannelRecordSortedMap.addWatchLog(channelId, latestWatchEndTimeMs, 305 for (long channelId : channelIdList) { 307 mEvaluator.setChannelScore(channelId, score); 316 public double evaluateChannel(long channelId) { argument 317 if (getRecommender().getChannelRecord(channelId) == null) { 320 Double score = mChannelScore.get(channelId); 324 public void setChannelScore(long channelId, double score) { argument 325 mChannelScore.put(channelId, scor [all...] |
/packages/apps/TV/src/com/android/tv/search/ |
H A D | DataManagerSearch.java | 184 long channelId = channel.getId(); 185 result.channelId = channelId; 190 result.imageUri = TvContract.buildChannelLogoUri(channelId).toString(); 192 result.intentData = buildIntentData(channelId); 203 result.intentData = buildIntentData(channelId); 233 private String buildIntentData(long channelId) { argument 234 return TvContract.buildChannelUri(channelId).buildUpon()
|
H A D | LocalSearchProvider.java | 152 public long channelId; field in class:LocalSearchProvider.SearchResult 168 return "channelId: " + channelId +
|
H A D | TvProviderSearch.java | 230 result.channelId = id; 234 result.imageUri = TvContract.buildChannelLogoUri(result.channelId).toString(); 236 result.intentData = buildIntentData(result.channelId); 260 Uri uri = TvContract.buildProgramsUriForChannel(result.channelId, now, now); 374 result.channelId = c.getLong(0); 401 private String buildIntentData(long channelId) { argument 402 return TvContract.buildChannelUri(channelId).buildUpon() 477 Long lhsMaxWatchStartTime = mMaxWatchStartTimeMap.get(lhs.channelId); 479 lhsMaxWatchStartTime = getMaxWatchStartTime(lhs.channelId); 480 mMaxWatchStartTimeMap.put(lhs.channelId, lhsMaxWatchStartTim 494 getMaxWatchStartTime(long channelId) argument [all...] |
/packages/apps/TV/src/com/android/tv/ |
H A D | ChannelTuner.java | 258 * Finds the nearest browsable channel from a channel with {@code channelId}. If the channel 259 * with {@code channelId} is browsable, the channel will be returned. 261 public Channel findNearestBrowsableChannel(long channelId) { argument 265 Channel channel = mChannelMap.get(channelId); 271 int index = mChannelIndexMap.get(channelId); 374 long channelId = channel.getId(); 375 mChannelMap.put(channelId, channel); 376 mChannelIndexMap.put(channelId, i);
|
/packages/apps/TV/src/com/android/tv/util/ |
H A D | AsyncDbTask.java | 293 public LoadProgramsForChannelTask(ContentResolver contentResolver, long channelId, argument 296 ? TvContract.buildProgramsUriForChannel(channelId) 297 : TvContract.buildProgramsUriForChannel(channelId, period.getLower(), 301 mChannelId = channelId;
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/ |
H A D | ProgramInfo.java | 147 * @param channelId used to add complexity to the index between two consequence channels. 149 public int getIndex(long timeMs, long channelId) { argument 153 long startTimeMs = channelId * DURATIONS_MS[((int) (channelId % DURATIONS_MS.length))]; 167 public long getStartTimeMs(int index, long channelId) { argument 171 long startTimeMs = channelId * DURATIONS_MS[((int) (channelId % DURATIONS_MS.length))]
|
/packages/apps/TV/usbtuner/src/com/android/usbtuner/tvinput/ |
H A D | ChannelDataManager.java | 177 public TunerChannel getChannel(long channelId) { argument 178 TunerChannel channel = mTunerChannelMap.get(channelId); 185 channelId), CHANNEL_DATA_SELECTION_ARGS, null, null, null)) { 197 channel.setChannelId(channelId); 226 long channelId = cursor.getLong(0); 230 channel.setChannelId(channelId); 317 long channelId = getChannelId(channel); 318 if (channelId <= 0) { 321 channel.setChannelId(channelId); 417 long channelId [all...] |
/packages/apps/TV/src/com/android/tv/dvr/ |
H A D | ScheduledRecording.java | 114 public Builder setChannelId(long channelId) { argument 115 mChannelId = channelId; 260 private ScheduledRecording(long id, long priority, long channelId, long programId, argument 265 mChannelId = channelId;
|
/packages/apps/TV/usbtuner/src/com/android/usbtuner/data/ |
H A D | TunerChannel.java | 95 mProto.channelId = -1L; 270 return mProto.channelId; 273 public void setChannelId(long channelId) { argument 274 mProto.channelId = channelId;
|