/packages/apps/TV/src/com/android/tv/recommendation/ |
H A D | NotificationService.java | 176 public void onCurrentChannelChange(@Nullable Channel channel) { argument 178 mPlayingChannel = channel; 207 private void handleUpdateRecommendation(int notificationId, Channel channel) { argument 209 channel.getId(), notificationId)) { 359 final Channel channel = cr.getChannel(); 361 Log.d(TAG, "sendNotification (channelName=" + channel.getDisplayName() + " notifyId=" 366 String inputId = Utils.getInputIdForChannel(this, channel.getId()); 376 final Program program = Utils.getCurrentProgram(this, channel.getId()); 402 channel.loadBitmap(this, Channel.LOAD_IMAGE_TYPE_CHANNEL_LOGO, mChannelLogoMaxWidth, 404 createChannelLogoCallback(this, notificationId, inputDisplayName, channel, progra 416 createChannelLogoCallback( NotificationService service, final int notificationId, final String inputDisplayName, final Channel channel, final Program program, final Bitmap posterArtBitmap) argument 428 sendNotification(int notificationId, Bitmap channelLogo, Channel channel, Bitmap posterArtBitmap, Program program, String inputDisplayName1) argument [all...] |
H A D | RecommendationDataManager.java | 61 sUriMatcher.addURI(TvContract.AUTHORITY, "channel", MATCH_CHANNEL); 62 sUriMatcher.addURI(TvContract.AUTHORITY, "channel/#", MATCH_CHANNEL_ID); 228 * Returns a {@link ChannelRecord} corresponds to the channel ID {@code ChannelId}. 327 for (Channel channel : channels) { 328 if (updateChannelRecordMapFromChannel(channel)) { 331 removedChannelIdSet.remove(channel.getId()); 473 private boolean updateChannelRecordMapFromChannel(Channel channel) { argument 474 if (!channel.isBrowsable()) { 475 mChannelRecordMap.remove(channel.getId()); 476 return mAvailableChannelRecordMap.remove(channel [all...] |
/packages/apps/TV/src/com/android/tv/dvr/ |
H A D | DvrManager.java | 92 public void addSchedule(Channel channel, long startTime, long endTime) { argument 93 Log.i(TAG, "Adding scheduled recording of channel" + channel + " starting at " + 97 .setChannelId(channel.getId()) 165 Channel channel = mChannelDataManager.getChannel(program.getChannelId()); 166 if (channel != null) { 167 TvInputInfo info = mDvrSessionManager.getTvInputInfo(channel.getInputId()); 170 "Could not find a recording TvInputInfo for " + channel.getInputId()); 189 * Checks whether {@code channel} can be tuned without any conflict with existing recordings 192 public boolean canTuneTo(Channel channel, Lis argument [all...] |
/packages/apps/TV/src/com/android/tv/menu/ |
H A D | ChannelsRowAdapter.java | 110 // Always send the label "Channels" because the channel ID or name or number might be 221 for (Channel channel : mRecommender.recommendChannels(mMaxCount)) { 222 if (channel.isBrowsable()) { 223 channelList.add(channel); 227 // If the number of recommended channels is not enough, add more from the recent channel 231 Channel channel = mRecommender.getChannel(channelId); 232 if (channel == null || channelList.contains(channel) 233 || !channel.isBrowsable()) { 236 channelList.add(channel); [all...] |
H A D | ChannelCardView.java | 39 * A view to render channel card. 99 public void onBind(Channel channel, boolean selected) { argument 101 Log.d(TAG, "onBind(channelName=" + channel.getDisplayName() + ", selected=" + selected 104 mChannel = channel; 138 super.onBind(channel, selected);
|
/packages/apps/TV/usbtuner/src/com/android/usbtuner/tvinput/ |
H A D | FileSourceEventDetector.java | 107 public void onEitItemParsed(VctItem channel, List<EitItem> items) { 108 TunerChannel tunerChannel = mChannelMap.get(channel.getProgramNumber()); 111 + channel.getProgramNumber()); 113 int channelSourceId = channel.getSourceId(); 115 // Source id 0 is useful for cases where a cable operator wishes to define a channel for 122 // If at least a one caption track have been found in EIT items for the given channel, 151 public void onVctItemParsed(VctItem channel, List<PmtItem> pmtItems) { 153 Log.d(TAG, "onVctItemParsed VCT " + channel); 158 // tuner channel. 159 TunerChannel tunerChannel = TunerChannel.forFile(channel, pmtItem [all...] |
H A D | TunerSessionWorker.java | 84 private static final String PLAY_FROM_CHANNEL = "channel"; 350 public void onProgramsArrived(TunerChannel channel, List<EitItem> programs) { argument 351 sendMessage(MSG_SCHEDULE_OF_PROGRAMS, new Pair<>(channel, programs)); 355 public void onChannelArrived(TunerChannel channel) { argument 356 sendMessage(MSG_UPDATE_CHANNEL_INFO, channel); 365 public void onRequestProgramsResponse(TunerChannel channel, List<EitItem> programs) { argument 366 sendMessage(MSG_PROGRAM_DATA_RESULT, new Pair<>(channel, programs)); 387 public void onChannelDetected(TunerChannel channel, boolean channelArrivedAtFirstTime) { argument 388 mChannelDataManager.notifyChannelDetected(channel, channelArrivedAtFirstTime); 392 public void onEventDetected(TunerChannel channel, Lis argument 1097 updateChannelInfo(TunerChannel channel) argument 1252 prepareTune(TunerChannel channel, String recording) argument [all...] |
/packages/services/Car/car-lib/src/android/car/hardware/radio/ |
H A D | CarRadioPreset.java | 46 * Sub channel number. 79 public CarRadioPreset(int presetNumber, int bandType, int channel, int subChannel) { argument 82 mChannel = channel; 100 "Sub channel: " + mSubChannel;
|
/packages/apps/TV/src/com/android/tv/ui/sidepanel/ |
H A D | CustomizeChannelListFragment.java | 45 private static final String TRACKER_LABEL = "customize channel list"; 82 // In order to send tune operation once for continuous channel up/down events, 83 // we only call the moveToChannel method on ACTION_UP event of channel switch keys. 183 for (Channel channel: channels) { 184 if (!channel.getInputId().equals(inputId)) { 185 inputId = channel.getInputId(); 192 ChannelItem channelItem = new ChannelItem(channel, selectGroupItem); 217 for (Channel channel: channels) { 218 boolean isHd = isHdChannel(channel); 227 ChannelItem channelItem = new ChannelItem(channel, selectGroupIte 234 isHdChannel(Channel channel) argument 298 ChannelItem(Channel channel, SelectGroupItem selectGroupItem) argument [all...] |
/packages/apps/TV/src/com/android/tv/ |
H A D | MainActivity.java | 308 // keeping the channel unblocking status while TV view is shrunken. 370 // Do not update channel banner by this notification 375 Channel channel = mTvView.getCurrentChannel(); 376 if (channel != null && channel.getId() == channelId) { 407 public void onCurrentChannelUnavailable(Channel channel) { 408 // TODO: handle the case that a channel is suddenly removed from DB. 710 // If PIN dialog is shown for unblocking the channel lock or content ratings lock, 938 // The requested channel is already tuned. 945 Log.w(TAG, "The current channel shoul 2673 tuneToChannelForPip(Channel channel) argument 2790 tuneToChannel(Channel channel) argument 3138 onTune(Channel channel, boolean wasUnderShrukenTvView) argument 3153 onUnexpectedStop(Channel channel) argument 3159 onTuneFailed(Channel channel) argument 3202 onChannelRetuned(Uri channel) argument [all...] |
/packages/apps/TV/src/com/android/tv/data/ |
H A D | ChannelLogoFetcher.java | 78 * Fetch the channel logos from TMS data and insert them into TvProvider. 123 // Load channels which doesn't have channel logos. 180 if (DEBUG) Log.d(TAG, "Fetching the channel logos has been canceled"); 189 if (DEBUG) Log.d(TAG, "Fetching the channel logos has been canceled"); 198 if (DEBUG) Log.d(TAG, "Fetching the channel logos has been canceled"); 203 for (Channel channel : mChannels) { 205 if (DEBUG) Log.d(TAG, "Fetching the channel logos has been canceled"); 208 // Download the channel logo. 209 if (TextUtils.isEmpty(channel.getDisplayName())) { 211 Log.d(TAG, "The channel wit [all...] |
H A D | WatchedHistoryManager.java | 168 * Logs the record of the watched channel. 170 public void logChannelViewStop(Channel channel, long endTime, long duration) { argument 174 WatchedRecord record = new WatchedRecord(channel.getId(), endTime - duration, duration); 216 Channel channel = channelDataManager.getChannel(channelId); 217 if (channel == null || !channel.isBrowsable()) { 228 // We put the first recent channel regardless of RECENT_CHANNEL_THREASHOLD. 229 // It has the similar functionality as the previous channel in a usual remote 231 list.add(channel); 237 list.add(channel); [all...] |
/packages/apps/TV/src/com/android/tv/dvr/ui/ |
H A D | DvrRecordConflictFragment.java | 47 Channel channel = channelDataManager.getChannel(r.getChannelId()); 48 if (channel == null) { 51 sb.append(channel.getDisplayName())
|
H A D | RecordedProgramPresenter.java | 67 Channel channel = mChannelDataManager.getChannel(recording.getChannelId()); 79 if (channel != null) { 80 cardView.setImageUri(TvContract.buildChannelLogoUri(channel.getId()).toString());
|
/packages/apps/TV/src/com/android/tv/guide/ |
H A D | ProgramListAdapter.java | 32 * Adapts a program list for a specific channel from {@link ProgramManager} to a row of the program 58 Channel channel = mProgramManager.getChannel(mChannelIndex); 59 if (channel == null) { 60 // The channel has just been removed. Do nothing. 62 mChannelId = channel.getId(); 63 if (DEBUG) Log.d(TAG, "update for channel " + mChannelId);
|
/packages/apps/TV/src/com/android/tv/ui/ |
H A D | KeypadChannelSwitchView.java | 143 final Channel channel = ((Channel) mAdapter.getItem(position)); 148 mMainActivity.tuneToChannel(channel); 242 // Reset typed channel number in some cases. 276 for (Channel channel : mChannels) { 277 ChannelNumber chNumber = ChannelNumber.parseChannelNumber(channel.getDisplayNumber()); 279 Log.i(TAG, "Malformed channel number (name=" + channel.getDisplayName() 280 + ", number=" + channel.getDisplayNumber() + ")"); 284 mChannelCandidates.add(channel); 289 if (channel [all...] |
/packages/apps/TV/usbtuner/src/com/android/usbtuner/setup/ |
H A D | ScanFragment.java | 214 public void add(TunerChannel channel) { argument 215 mChannels.add(channel); 260 private void addChannel(final TunerChannel channel) { argument 264 mAdapter.add(channel); 375 public void onEventDetected(TunerChannel channel, List<PsipData.EitItem> items) { argument 376 mChannelDataManager.notifyEventDetected(channel, items); 380 public void onChannelDetected(TunerChannel channel, boolean channelArrivedAtFirstTime) { argument 382 Log.d(TAG, "Found channel " + channel); 385 addChannel(channel); 413 setScanChannel(ScanChannel channel) argument 418 tuneToChannel(TunerChannel channel) argument [all...] |
/packages/apps/TV/usbtuner/src/com/android/usbtuner/ts/ |
H A D | TsParser.java | 81 void onVctItemParsed(VctItem channel, List<PmtItem> pmtItems); argument 82 void onEitItemParsed(VctItem channel, List<EitItem> items); argument 283 private void handleVctItem(VctItem channel, List<PmtItem> pmtItems) { argument 285 mListener.onVctItemParsed(channel, pmtItems); 287 int sourceId = channel.getSourceId(); 298 handleEitItems(channel, eitItems); 303 private void handleEitItems(VctItem channel, List<EitItem> items) { argument 305 mListener.onEitItemParsed(channel, items); 335 VctItem channel = mSourceIdToVctItemMap.get(sourceId); 336 if (channel ! [all...] |
/packages/apps/TV/tests/unit/src/com/android/tv/data/ |
H A D | WatchedHistoryManagerTest.java | 81 Channel channel = new Channel.Builder().setId(fakeId).build(); 82 mWatchedHistoryManager.logChannelViewStop(channel, time, duration); 102 Channel channel = new Channel.Builder().setId(startChannelId + i).build(); 103 mWatchedHistoryManager.logChannelViewStop(channel, time + duration * i, duration);
|
/packages/apps/TV/src/com/android/tv/analytics/ |
H A D | SendChannelStatusRunnable.java | 32 * Periodically sends analytics data with the channel count. 61 //Start the recurring runnable after the channel DB is finished loading. 99 for (Channel channel : channelList) { 100 if (channel.isBrowsable()) {
|
/packages/apps/TV/usbtuner/src/com/android/usbtuner/ |
H A D | FileDataSource.java | 74 public boolean setScanChannel(ScanChannel channel) { argument 75 String filepath = new File(FILE_DIR, channel.filename).getAbsolutePath(); 85 * Sets the channel required to start streaming from this device. Afterwards, prepares 89 * @param channel a {@link TunerChannel} instance tune to 93 public boolean tuneToChannel(TunerChannel channel) { argument 94 Log.i(TAG, "tuneToChannel with: " + channel.getFilepath()); 95 mSource = new StreamProvider(channel.getFilepath()); 100 mSource.addPidFilter(channel.getVideoPid()); 101 mSource.addPidFilter(channel.getAudioPid()); 102 mSource.addPidFilter(channel [all...] |
/packages/apps/TV/src/com/android/tv/util/ |
H A D | SetupUtils.java | 104 // which one is the last callback. To reduce error prune, we update channel 135 for (Channel channel : manager.getChannelList()) { 136 if (channel.getInputId().equals(inputId)) { 137 if (!channel.isBrowsable()) { 138 manager.updateBrowsable(channel.getId(), true, true); 176 for (Channel channel : channelDataManager.getChannelList()) { 177 if (newInputsWithChannels.contains(channel.getInputId())) { 178 channelDataManager.updateBrowsable(channel.getId(), true);
|
/packages/apps/TV/src/com/android/tv/dialog/ |
H A D | RecentlyWatchedDialogFragment.java | 78 Channel channel = dataChannelManager.getChannel(channelId); 79 if (channel == null) { 82 displayNumber = channel.getDisplayNumber();
|
/packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/ |
H A D | ParentalControlsFragment.java | 99 for (Channel channel : getChannelDataManager().getChannelList()) { 100 if (channel.isLocked() && channel.isBrowsable()) {
|
/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/ |
H A D | RecommendationUtils.java | 86 * Add new {@code numberOfChannels} channels by adding channel record to 97 * Add new one channel by adding channel record to {@code channelRecordMap} with no history. 98 * This action corresponds to loading one channel in the RecommendationDataManger. 100 * @return The new channel was made by this method. 104 Channel channel = new Channel.Builder().setId(channelId).build(); 105 ChannelRecord channelRecord = new ChannelRecord(mContext, channel, false); 107 return channel; 139 * Add new watch log to channel that id is {@code ChannelId}. Add watch log starts from
|