Searched defs:channelId (Results 1 - 25 of 39) sorted by relevance

12

/packages/apps/TV/src/com/android/tv/recommendation/
H A DRandomEvaluator.java21 public double evaluateChannel(long channelId) { argument
H A DFavoriteChannelEvaluator.java38 public double evaluateChannel(long channelId) { argument
39 ChannelRecord cr = getRecommender().getChannelRecord(channelId);
H A DRecentChannelEvaluator.java39 public double evaluateChannel(long channelId) { argument
40 ChannelRecord cr = getRecommender().getChannelRecord(channelId);
H A DRecommender.java155 * @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 DRoutineWatchEvaluator.java43 public double evaluateChannel(long channelId) { argument
44 ChannelRecord cr = getRecommender().getChannelRecord(channelId);
H A DNotificationService.java354 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 DOnCurrentProgramUpdatedListener.java23 void onCurrentProgramUpdated(long channelId, Program program); argument
H A DWatchedHistoryManager.java215 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 DChannelDataManager.java232 * 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 DEpgReader.java52 List<Program> getPrograms(long channelId); argument
H A DStubEpgReader.java50 public List<Program> getPrograms(long channelId) { argument
H A DEpgFetcher.java190 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 DRecordingTestUtils.java28 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 DEvaluatorTestCase.java72 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 DRecommendationUtils.java61 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 DRecommenderTest.java235 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 DDataManagerSearch.java184 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 DLocalSearchProvider.java152 public long channelId; field in class:LocalSearchProvider.SearchResult
168 return "channelId: " + channelId +
H A DTvProviderSearch.java230 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 DChannelTuner.java258 * 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 DAsyncDbTask.java293 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 DProgramInfo.java147 * @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 DChannelDataManager.java177 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 DScheduledRecording.java114 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 DTunerChannel.java95 mProto.channelId = -1L;
270 return mProto.channelId;
273 public void setChannelId(long channelId) { argument
274 mProto.channelId = channelId;

Completed in 725 milliseconds

12