Searched refs:channelId (Results 1 - 25 of 53) 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.java210 public Program getCurrentProgram(long channelId) { argument
211 return mChannelIdCurrentProgramMap.get(channelId);
281 public List<Program> getPrograms(long channelId, long startTime) { argument
283 ArrayList<Program> cachedPrograms = mChannelIdProgramCache.get(channelId);
320 * @param channelId A channel ID to get notified. If it's {@link Channel#INVALID_ID}, the
324 long channelId, OnCurrentProgramUpdatedListener listener) {
326 .put(channelId, listener);
334 long channelId, OnCurrentProgramUpdatedListener listener) {
336 .remove(channelId, listener);
339 private void notifyCurrentProgramUpdate(long channelId, Progra argument
323 addOnCurrentProgramUpdatedListener( long channelId, OnCurrentProgramUpdatedListener listener) argument
333 removeOnCurrentProgramUpdatedListener( long channelId, OnCurrentProgramUpdatedListener listener) argument
351 updateCurrentProgram(long channelId, Program program) argument
372 removePreviousProgramsAndUpdateCurrentProgramInCache( long channelId, Program currentProgram) argument
604 UpdateCurrentProgramForChannelTask(ContentResolver contentResolver, long channelId, long time) argument
[all...]
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/tests/unit/src/com/android/tv/recommendation/
H A DRecentChannelEvaluatorTest.java44 long channelId = addChannel().getId();
48 mEvaluator.evaluateChannel(channelId));
65 for (long channelId : channelIdList) {
67 mEvaluator.evaluateChannel(channelId));
86 for (long channelId : channelIdList) {
87 addWatchLog(channelId, latestWatchEndTimeMs, TimeUnit.HOURS.toMillis(1));
95 for (long channelId : channelIdList) {
96 double score = mEvaluator.evaluateChannel(channelId);
110 for (long channelId : channelIdList) {
111 double previousScore = mEvaluator.evaluateChannel(channelId);
[all...]
H A DFavoriteChannelEvaluatorTest.java42 long channelId = addChannel().getId();
46 mEvaluator.evaluateChannel(channelId));
63 for (long channelId : channelIdList) {
65 mEvaluator.evaluateChannel(channelId));
85 for (long channelId : channelIdList) {
87 addWatchLog(channelId, latestWatchEndTimeMs, durationMs);
95 for (long channelId : channelIdList) {
96 double score = mEvaluator.evaluateChannel(channelId);
135 long channelId = addChannel().getId();
141 double previousScore = mEvaluator.evaluateChannel(channelId);
[all...]
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 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 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/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/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/src/com/android/tv/guide/
H A DProgramManager.java76 public final long channelId; field in class:ProgramManager.TableEntry
91 private TableEntry(long channelId, long startUtcMillis, long endUtcMillis) { argument
92 this(channelId, null, startUtcMillis, endUtcMillis, false);
95 private TableEntry(long channelId, long startUtcMillis, long endUtcMillis, argument
97 this(channelId, null, null, startUtcMillis, endUtcMillis, blocked);
100 private TableEntry(long channelId, Program program, long entryStartUtcMillis, argument
102 this(channelId, program, null, entryStartUtcMillis, entryEndUtcMillis, isBlocked);
105 private TableEntry(long channelId, Program program, ScheduledRecording scheduledRecording, argument
107 this.channelId = channelId;
495 getTableEntry(long channelId, long entryId) argument
578 getChannelIndex(long channelId) argument
586 getTableEntryCount(long channelId) argument
595 getTableEntry(long channelId, int index) argument
599 createProgramEntries(long channelId, boolean parentalControlsEnabled) argument
719 getProgramIdIndex(long channelId, long entryId) argument
734 getProgramIndexAtTime(long channelId, long time) 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
/packages/apps/TV/tests/unit/src/com/android/tv/data/
H A DProgramDataManagerTest.java103 for (long channelId = 1; channelId < Constants.UNIT_TEST_CHANNEL_COUNT; channelId++) {
104 int index = stub.getIndex(mClock.currentTimeMillis(), channelId);
105 long startTimeMs = stub.getStartTimeMs(index, channelId);
130 for (long channelId = 1; channelId <= Constants.UNIT_TEST_CHANNEL_COUNT; channelId++) {
131 Program currentProgram = mProgramDataManager.getCurrentProgram(channelId);
139 mProgramDataManager.getPrograms(channelId, mCloc
333 simulateAppend(long channelId) argument
357 get(long channelId, int position) argument
392 FakeCursor(String[] columns, long channelId, long startTimeMs, long endTimeMs) argument
523 onCurrentProgramUpdated(long channelId, Program program) argument
[all...]
H A DChannelDataManagerTest.java416 long channelId = ContentUris.parseId(uri);
417 channelIds.add(channelId);
437 for (long channelId : channelIds) {
439 ChannelInfoWrapper channel = mChannelInfoList.get((int) channelId);
472 long channelId = testChannelInfo.originalNetworkId;
473 mChannelInfoList.put((int) channelId,
474 new ChannelInfoWrapper(ChannelInfo.create(getContext(), (int) channelId)));
475 mContentResolver.notifyChange(TvContract.buildChannelUri(channelId), null);
481 public void simulateDelete(long channelId) { argument
482 mChannelInfoList.remove((int) channelId);
489 simulateUpdate(long channelId, String newName) argument
[all...]
/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/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/search/
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...]
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()
/packages/apps/TV/tests/common/src/com/android/tv/testing/
H A DProgramUtils.java48 long channelId = ContentUris.parseId(channelUri);
50 values.put(Programs.COLUMN_CHANNEL_ID, channelId);
61 int index = program.getIndex(timeMs, channelId);
62 timeMs = program.getStartTimeMs(index, channelId);
/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);

Completed in 6032 milliseconds

123