/packages/apps/TV/src/com/android/tv/search/ |
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) { 234 return TvContract.buildChannelUri(channelId).buildUpon()
|
LocalSearchProvider.java | 152 public long channelId; 168 return "channelId: " + channelId +
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/ |
ProgramUtils.java | 48 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/tests/unit/src/com/android/tv/recommendation/ |
FavoriteChannelEvaluatorTest.java | 42 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...] |
RecentChannelEvaluatorTest.java | 44 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...] |
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; 139 * Add new watch log to channel that id is {@code ChannelId}. Add watch log starts fro [all...] |
/packages/apps/TV/src/com/android/tv/data/ |
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; 274 WatchedRecord(long channelId, long watchedStartTime, long duration) { 275 this.channelId = channelId; [all...] |
ChannelLogoFetcher.java | 138 long channelId = c.getLong(0); 139 if (sChannelIdBlackListSet.contains(channelId)) {
|
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) { 235 ChannelWrapper channelWrapper = mChannelWrapperMap.get(channelId); 244 * {@code channelId}. 246 public void removeChannelListener(Long channelId, ChannelListener listener) { 247 ChannelWrapper channelWrapper = mChannelWrapperMap.get(channelId); 314 * Gets the channel with the channel ID {@code channelId}. 316 public Channel getChannel(Long channelId) { 317 ChannelWrapper channelWrapper = mChannelWrapperMap.get(channelId); 327 public void updateBrowsable(Long channelId, boolean browsable) [all...] |
ProgramDataManager.java | 210 public Program getCurrentProgram(long channelId) { 211 return mChannelIdCurrentProgramMap.get(channelId); 281 public List<Program> getPrograms(long channelId, long startTime) { 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, Program program) [all...] |
/packages/providers/TvProvider/tests/src/com/android/providers/tv/ |
EpgDataCleanupServiceTests.java | 136 long channelId = insertChannel(); 139 values.put(Programs.COLUMN_CHANNEL_ID, channelId); 174 long channelId = insertChannel(); 178 values.put(WatchedPrograms.COLUMN_CHANNEL_ID, channelId);
|
/packages/apps/TV/src/com/android/tv/ |
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) { 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);
|
MainActivity.java | 369 public void onCurrentProgramUpdated(long channelId, Program program) { 376 if (channel != null && channel.getId() == channelId) { 535 public void onCurrentProgramUpdated(long channelId, Program program) { [all...] |
/developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/ |
TvContractUtils.java | 170 long channelId = cursor.getLong(0); 172 channelMap.put(channelId, getChannelByNumber(channelNumber, channels));
|
/external/webrtc/webrtc/modules/video_render/mac/ |
video_render_agl.cc | [all...] |
/cts/tests/tests/tv/src/android/media/tv/cts/ |
TvContractTest.java | 133 long channelId = cursor.getLong(0); 135 TvContract.buildProgramsUriForChannel(channelId), null, null); 155 private static ContentValues createDummyProgramValues(long channelId) { 157 values.put(TvContract.Programs.COLUMN_CHANNEL_ID, channelId); 171 private static ContentValues createDummyRecordedProgramValues(String inputId, long channelId) { 174 values.put(TvContract.RecordedPrograms.COLUMN_CHANNEL_ID, channelId); 245 private void verifyChannel(Uri channelUri, ContentValues expectedValues, long channelId) { 251 assertEquals(channelId, cursor.getLong(cursor.getColumnIndex(TvContract.Channels._ID))); 281 long channelId = ContentUris.parseId(rowUri); 282 Uri channelUri = TvContract.buildChannelUri(channelId); [all...] |
TvViewTest.java | 232 long channelId = cursor.getLong(0); 233 Uri channelUri = TvContract.buildChannelUri(channelId); 412 long channelId = cursor.getLong(0); 413 Uri channelUri = TvContract.buildChannelUri(channelId);
|
/packages/apps/TV/src/com/android/tv/guide/ |
ProgramManager.java | 76 public final long channelId; 91 private TableEntry(long channelId, long startUtcMillis, long endUtcMillis) { 92 this(channelId, null, startUtcMillis, endUtcMillis, false); 95 private TableEntry(long channelId, long startUtcMillis, long endUtcMillis, 97 this(channelId, null, null, startUtcMillis, endUtcMillis, blocked); 100 private TableEntry(long channelId, Program program, long entryStartUtcMillis, 102 this(channelId, program, null, entryStartUtcMillis, entryEndUtcMillis, isBlocked); 105 private TableEntry(long channelId, Program program, ScheduledRecording scheduledRecording, 107 this.channelId = channelId; [all...] |
/packages/apps/TV/src/com/android/tv/util/ |
Utils.java | 141 public static String getInputIdForChannel(Context context, long channelId) { 142 if (channelId == Channel.INVALID_ID) { 145 Uri channelUri = TvContract.buildChannelUri(channelId); 164 long channelId = channel.getId(); 166 throw new IllegalArgumentException("channelId should be equal to or larger than 0"); 169 .putLong(PREF_KEY_LAST_WATCHED_CHANNEL_ID, channelId).apply(); 172 channelId).apply(); 237 public static Program getProgramAt(Context context, long channelId, long timeMs) { 238 if (channelId == Channel.INVALID_ID) { 239 Log.e(TAG, "getCurrentProgramAt - channelId is invalid") [all...] |
/packages/apps/TV/usbtuner/src/com/android/usbtuner/tvinput/ |
ChannelDataManager.java | 177 public TunerChannel getChannel(long channelId) { 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 = getChannelId(channel) [all...] |
TunerRecordingSessionWorker.java | 243 long channelId; 245 channelId = ContentUris.parseId(channelUri); 247 channelId = CHANNEL_ID_NONE; 249 return (channelId == CHANNEL_ID_NONE) ? null : mChannelDataManager.getChannel(channelId); 425 public Program(long channelId) { 426 mChannelId = channelId; 494 private Uri insertRecordedProgram(Program program, long channelId, String storageUri, 498 .setChannelId(channelId)
|
TunerSessionWorker.java | 422 public RecordedProgram(long channelId, String dataUri) { 423 mChannelId = channelId; 483 long channelId = parseChannel(channelUri); 484 TunerChannel channel = (channelId == -1) ? null 485 : mChannelDataManager.getChannel(channelId); 486 if (channelId == -1) { [all...] |
/packages/apps/TV/tests/unit/src/com/android/tv/data/ |
ChannelDataManagerTest.java | 416 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) { 482 mChannelInfoList.remove((int) channelId); [all...] |
/packages/providers/TvProvider/src/com/android/providers/tv/ |
TvProvider.java | [all...] |
/frameworks/base/services/core/java/com/android/server/tv/ |
TvInputManagerService.java | [all...] |