Searched refs:channelId (Results 1 - 25 of 73) sorted by relevance

123

/packages/apps/TV/src/com/android/tv/data/
H A DOnCurrentProgramUpdatedListener.java23 void onCurrentProgramUpdated(long channelId, Program program); argument
H A DProgramDataManager.java207 public Program getCurrentProgram(long channelId) { argument
208 return mChannelIdCurrentProgramMap.get(channelId);
284 public List<Program> getPrograms(long channelId, long startTime) { argument
286 ArrayList<Program> cachedPrograms = mChannelIdProgramCache.get(channelId);
323 * @param channelId A channel ID to get notified. If it's {@link Channel#INVALID_ID}, the
327 long channelId, OnCurrentProgramUpdatedListener listener) {
329 .put(channelId, listener);
337 long channelId, OnCurrentProgramUpdatedListener listener) {
339 .remove(channelId, listener);
342 private void notifyCurrentProgramUpdate(long channelId, Progra argument
326 addOnCurrentProgramUpdatedListener( long channelId, OnCurrentProgramUpdatedListener listener) argument
336 removeOnCurrentProgramUpdatedListener( long channelId, OnCurrentProgramUpdatedListener listener) argument
353 updateCurrentProgram(long channelId, Program program) argument
375 removePreviousProgramsAndUpdateCurrentProgramInCache( long channelId, Program currentProgram) argument
607 UpdateCurrentProgramForChannelTask(ContentResolver contentResolver, long channelId, long time) argument
[all...]
H A DWatchedHistoryManager.java233 public final long channelId; field in class:WatchedHistoryManager.WatchedRecord
237 WatchedRecord(long channelId, long watchedStartTime, long duration) { argument
238 this.channelId = channelId;
245 return "WatchedRecord: id=" + channelId + ",watchedStartTime=" + watchedStartTime
253 return Objects.equals(channelId, that.channelId)
262 return Objects.hash(channelId, watchedStartTime, duration);
268 return record.channelId + " " + record.watchedStartTime + " " + record.duration;
274 long channelId
[all...]
H A DChannelDataManager.java244 * Adds a {@link ChannelListener} for a specific channel with the channel ID {@code channelId}.
246 public void addChannelListener(Long channelId, ChannelListener listener) { argument
247 ChannelWrapper channelWrapper = mData.channelWrapperMap.get(channelId);
256 * {@code channelId}.
258 public void removeChannelListener(Long channelId, ChannelListener listener) { argument
259 ChannelWrapper channelWrapper = mData.channelWrapperMap.get(channelId);
316 public boolean doesChannelExistInDb(long channelId) { argument
317 return mData.channelWrapperMap.get(channelId) != null;
333 * Gets the channel with the channel ID {@code channelId}.
335 public Channel getChannel(Long channelId) { argument
346 updateBrowsable(Long channelId, boolean browsable) argument
358 updateBrowsable(Long channelId, boolean browsable, boolean skipNotifyChannelBrowsableChanged) argument
417 updateLocked(Long channelId, boolean locked) argument
[all...]
/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 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 DRecentChannelEvaluator.java39 public double evaluateChannel(long channelId) { argument
40 ChannelRecord cr = getRecommender().getChannelRecord(channelId);
/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/
H A DRecentChannelEvaluatorTest.java49 long channelId = addChannel().getId();
53 mEvaluator.evaluateChannel(channelId));
72 for (long channelId : channelIdList) {
74 mEvaluator.evaluateChannel(channelId));
95 for (long channelId : channelIdList) {
96 addWatchLog(channelId, latestWatchEndTimeMs, TimeUnit.HOURS.toMillis(1));
104 for (long channelId : channelIdList) {
105 double score = mEvaluator.evaluateChannel(channelId);
120 for (long channelId : channelIdList) {
121 double previousScore = mEvaluator.evaluateChannel(channelId);
[all...]
H A DFavoriteChannelEvaluatorTest.java47 long channelId = addChannel().getId();
51 mEvaluator.evaluateChannel(channelId));
70 for (long channelId : channelIdList) {
72 mEvaluator.evaluateChannel(channelId));
94 for (long channelId : channelIdList) {
96 addWatchLog(channelId, latestWatchEndTimeMs, durationMs);
104 for (long channelId : channelIdList) {
105 double score = mEvaluator.evaluateChannel(channelId);
147 long channelId = addChannel().getId();
153 double previousScore = mEvaluator.evaluateChannel(channelId);
[all...]
H A DRecommendationUtils.java60 long channelId = (long) invocation.getArguments()[0];
61 return channelRecordSortedMap.get(channelId);
102 long channelId = size();
103 Channel channel = new Channel.Builder().setId(channelId).build();
105 put(channelId, channelRecord);
122 long channelId = channelIdList.get(mRandom.nextInt(channelIdList.size()));
123 if (previousChannelId == channelId) {
128 if (!addWatchLog(channelId, latestWatchEndTimeMs, watchedDurationMs)) {
132 previousChannelId = channelId;
144 public boolean addWatchLog(long channelId, lon argument
[all...]
H A DEvaluatorTestCase.java77 public void addWatchLog(long channelId, long watchStartTimeMs, long durationTimeMs) { argument
78 assertTrue(mChannelRecordSortedMap.addWatchLog(channelId, watchStartTimeMs,
104 for (long channelId : mChannelRecordSortedMap.keySet()) {
105 double score = mEvaluator.evaluateChannel(channelId);
106 assertTrue("Channel " + channelId + " score of " + score + "is not valid",
140 public ChannelRecord getChannelRecord(long channelId) { argument
141 return mChannelRecordSortedMap.get(channelId);
H A DRecommenderTest.java249 for (long channelId : mChannelRecordSortedMap.keySet()) {
250 mEvaluator.setChannelScore(channelId, 1.0);
252 assertTrue(mChannelRecordSortedMap.addWatchLog(channelId, latestWatchEndTimeMs,
320 for (long channelId : channelIdList) {
322 mEvaluator.setChannelScore(channelId, score);
331 public double evaluateChannel(long channelId) { argument
332 if (getRecommender().getChannelRecord(channelId) == null) {
335 Double score = mChannelScore.get(channelId);
339 public void setChannelScore(long channelId, double score) { argument
340 mChannelScore.put(channelId, scor
[all...]
/packages/apps/TV/tests/common/src/com/android/tv/testing/dvr/
H A DRecordingTestUtils.java31 long channelId, long startTime, long endTime) {
32 return ScheduledRecording.builder(inputId, channelId, startTime, endTime)
34 .setChannelId(channelId)
39 long channelId, long startTime, long endTime) {
40 return createTestRecordingWithIdAndPeriod(ScheduledRecording.ID_NOT_SET, inputId, channelId,
44 public static ScheduledRecording createTestRecordingWithPriorityAndPeriod(long channelId, argument
47 .setChannelId(channelId)
53 long channelId, long priority, long startTime, long endTime) {
56 .setChannelId(channelId)
30 createTestRecordingWithIdAndPeriod(long id, String inputId, long channelId, long startTime, long endTime) argument
38 createTestRecordingWithPeriod(String inputId, long channelId, long startTime, long endTime) argument
52 createTestRecordingWithIdAndPriorityAndPeriod(long id, long channelId, long priority, long startTime, long endTime) argument
/packages/apps/TV/tests/unit/src/com/android/tv/dvr/
H A DDvrScheduleManagerTest.java54 long channelId = 0;
57 schedules.add(RecordingTestUtils.createTestRecordingWithPriorityAndPeriod(++channelId,
61 schedules.add(RecordingTestUtils.createTestRecordingWithPriorityAndPeriod(++channelId,
65 schedules.add(RecordingTestUtils.createTestRecordingWithPriorityAndPeriod(++channelId,
69 schedules.add(RecordingTestUtils.createTestRecordingWithPriorityAndPeriod(++channelId,
73 schedules.add(RecordingTestUtils.createTestRecordingWithPriorityAndPeriod(++channelId,
81 long channelId = 0;
85 schedules.add(RecordingTestUtils.createTestRecordingWithPriorityAndPeriod(++channelId,
88 schedules.add(0, RecordingTestUtils.createTestRecordingWithPriorityAndPeriod(++channelId,
96 long channelId
[all...]
/packages/apps/TV/src/com/android/tv/guide/
H A DProgramManager.java135 TableEntry newEntry = new TableEntry(oldEntry.channelId, oldEntry.program,
148 TableEntry newEntry = new TableEntry(oldEntry.channelId, oldEntry.program, null,
161 TableEntry newEntry = new TableEntry(oldEntry.channelId, oldEntry.program,
336 int getProgramIdIndex(long channelId, long entryId) { argument
337 List<TableEntry> entries = mChannelIdEntriesMap.get(channelId);
351 int getProgramIndexAtTime(long channelId, long time) { argument
352 List<TableEntry> entries = mChannelIdEntriesMap.get(channelId);
404 * Returns the index of channel with {@code channelId} within the currently managed channels.
407 int getChannelIndex(long channelId) { argument
408 return getChannelIndex(mChannelDataManager.getChannel(channelId));
415 getTableEntryCount(long channelId) argument
424 getTableEntry(long channelId, int index) argument
554 getTableEntry(long channelId, long entryId) argument
586 createProgramEntries(long channelId, boolean parentalControlsEnabled) argument
670 final long channelId; field in class:ProgramManager.TableEntry
685 TableEntry(long channelId, long startUtcMillis, long endUtcMillis) argument
689 TableEntry(long channelId, long startUtcMillis, long endUtcMillis, boolean blocked) argument
694 TableEntry(long channelId, Program program, long entryStartUtcMillis, long entryEndUtcMillis, boolean isBlocked) argument
699 TableEntry(long channelId, Program program, ScheduledRecording scheduledRecording, long entryStartUtcMillis, long entryEndUtcMillis, boolean isBlocked) argument
[all...]
/packages/providers/TvProvider/tests/src/com/android/providers/tv/
H A DColumnFilterTest.java82 long channelId = insertChannel(false);
93 assertEquals(channelId, cursor.getLong(2));
97 long channelId = insertChannel(false);
104 long channelId = insertChannel(false);
116 long channelId = insertChannel(true);
127 assertEquals(channelId, cursor.getLong(2));
131 long channelId = insertChannel(false);
145 assertEquals(channelId, cursor.getLong(2));
/packages/apps/TV/tests/unit/src/com/android/tv/data/
H A DProgramDataManagerTest.java111 for (long channelId = 1; channelId < Constants.UNIT_TEST_CHANNEL_COUNT; channelId++) {
112 int index = stub.getIndex(mClock.currentTimeMillis(), channelId);
113 long startTimeMs = stub.getStartTimeMs(index, channelId);
139 for (long channelId = 1; channelId <= Constants.UNIT_TEST_CHANNEL_COUNT; channelId++) {
140 Program currentProgram = mProgramDataManager.getCurrentProgram(channelId);
148 mProgramDataManager.getPrograms(channelId, mCloc
345 simulateAppend(long channelId) argument
370 get(long channelId, int position) argument
405 FakeCursor(String[] columns, long channelId, long startTimeMs, long endTimeMs) argument
536 onCurrentProgramUpdated(long channelId, Program program) argument
[all...]
/packages/services/Telecomm/src/com/android/server/telecom/ui/
H A DNotificationChannelManager.java60 private void createOrUpdateChannel(Context context, String channelId) { argument
61 NotificationChannel channel = createChannel(context, channelId);
65 private NotificationChannel createChannel(Context context, String channelId) { argument
74 switch (channelId) {
93 NotificationChannel channel = new NotificationChannel(channelId, name, importance);
/packages/apps/TV/tests/input/src/com/android/tv/testinput/
H A DTestInputControl.java73 for (Long channelId : channelIdToInfoMap.keySet()) {
74 mId2ChannelInfoMap.put(channelId, channelIdToInfoMap.get(channelId));
/packages/apps/TV/src/com/android/tv/tuner/tvinput/
H A DChannelDataManager.java207 public TunerChannel getChannel(long channelId) { argument
208 TunerChannel channel = mTunerChannelMap.get(channelId);
215 channelId), CHANNEL_DATA_SELECTION_ARGS, null, null, null)) {
227 channel.setChannelId(channelId);
262 long channelId = cursor.getLong(0);
266 channel.setChannelId(channelId);
376 long channelId = getChannelId(channel);
377 if (channelId <= 0) {
380 channel.setChannelId(channelId);
559 long channelId
[all...]
/packages/apps/Dialer/java/com/android/dialer/notification/
H A DVoicemailChannelUtils.java104 String channelId = getChannelIdForAccount(handle);
105 if (!doesChannelExist(context, channelId)) {
111 return channelId;
114 private static boolean doesChannelExist(@NonNull Context context, @NonNull String channelId) { argument
115 return context.getSystemService(NotificationManager.class).getNotificationChannel(channelId)
194 @NonNull Context context, @NonNull String channelId, @Nullable CharSequence nameSuffix) {
202 new NotificationChannel(channelId, name, NotificationManager.IMPORTANCE_DEFAULT);
193 newChannel( @onNull Context context, @NonNull String channelId, @Nullable CharSequence nameSuffix) argument
/packages/apps/TV/src/com/android/tv/search/
H A DTvProviderSearch.java231 result.channelId = id;
235 result.imageUri = TvContract.buildChannelLogoUri(result.channelId).toString();
237 result.intentData = buildIntentData(result.channelId);
261 Uri uri = TvContract.buildProgramsUriForChannel(result.channelId, now, now);
373 result.channelId = c.getLong(0);
404 private String buildIntentData(long channelId) { argument
405 return TvContract.buildChannelUri(channelId).toString();
497 Long lhsMaxWatchStartTime = mMaxWatchStartTimeMap.get(lhs.channelId);
499 lhsMaxWatchStartTime = getMaxWatchStartTime(lhs.channelId);
500 mMaxWatchStartTimeMap.put(lhs.channelId, lhsMaxWatchStartTim
514 getMaxWatchStartTime(long channelId) argument
[all...]
H A DDataManagerSearch.java218 long channelId = channel.getId();
219 result.channelId = channelId;
224 result.imageUri = TvContract.buildChannelLogoUri(channelId).toString();
226 result.intentData = buildIntentData(channelId);
237 result.intentData = buildIntentData(channelId);
267 private String buildIntentData(long channelId) { argument
268 return TvContract.buildChannelUri(channelId).toString();
/packages/apps/TV/tests/common/src/com/android/tv/testing/
H A DProgramUtils.java49 long channelId = ContentUris.parseId(channelUri);
51 values.put(Programs.COLUMN_CHANNEL_ID, channelId);
62 int index = program.getIndex(timeMs, channelId);
63 timeMs = program.getStartTimeMs(index, channelId);

Completed in 308 milliseconds

123