/packages/apps/TV/src/com/android/tv/tuner/tvinput/ |
D | ChannelDataManager.java | 122 void onRequestProgramsResponse(TunerChannel channel, List<EitItem> programs); in onRequestProgramsResponse() argument 128 void onProgramsArrived(TunerChannel channel, List<EitItem> programs); in onProgramsArrived() argument 133 void onChannelArrived(TunerChannel channel); in onChannelArrived() argument 208 TunerChannel channel = mTunerChannelMap.get(channelId); in getChannel() local 209 if (channel != null) { in getChannel() 210 return channel; in getChannel() 223 channel = TunerChannel.parseFrom(data); in getChannel() 224 if (channel == null) { in getChannel() 227 channel.setChannelId(channelId); in getChannel() 228 return channel; in getChannel() [all …]
|
D | EventDetector.java | 76 public void onEitItemParsed(PsipData.VctItem channel, List<PsipData.EitItem> items) { 77 TunerChannel tunerChannel = mChannelMap.get(channel.getProgramNumber()); 80 + channel.getProgramNumber()); 82 int channelSourceId = channel.getSourceId(); 131 public void onVctItemParsed(PsipData.VctItem channel, List<PsiData.PmtItem> pmtItems) { 133 Log.d(TAG, "onVctItemParsed VCT " + channel); 139 TunerChannel tunerChannel = new TunerChannel(channel, pmtItems); 150 int channelProgramNumber = channel.getProgramNumber(); 177 public void onSdtItemParsed(PsipData.SdtItem channel, List<PsiData.PmtItem> pmtItems) { 179 Log.d(TAG, "onSdtItemParsed SDT " + channel); [all …]
|
D | FileSourceEventDetector.java | 123 public void onEitItemParsed(VctItem channel, List<EitItem> items) { 124 TunerChannel tunerChannel = mChannelMap.get(channel.getProgramNumber()); 127 + channel.getProgramNumber()); 129 int channelSourceId = channel.getSourceId(); 172 public void onVctItemParsed(VctItem channel, List<PmtItem> pmtItems) { 174 Log.d(TAG, "onVctItemParsed VCT " + channel); 180 TunerChannel tunerChannel = TunerChannel.forFile(channel, pmtItems); 191 int channelProgramNumber = channel.getProgramNumber(); 216 public void onSdtItemParsed(SdtItem channel, List<PmtItem> pmtItems) { 218 Log.d(TAG, "onSdtItemParsed SDT " + channel); [all …]
|
/packages/apps/TV/src/com/android/tv/ |
D | ChannelTuner.java | 215 Channel channel = getAdjacentBrowsableChannel(up); in moveToAdjacentBrowsableChannel() local 216 if (channel == null) { in moveToAdjacentBrowsableChannel() 219 setCurrentChannelAndNotify(mChannelMap.get(channel.getId())); in moveToAdjacentBrowsableChannel() 234 Channel channel = mChannels.get(channelIndex); in getAdjacentBrowsableChannel() local 235 if (channel.isBrowsable()) { in getAdjacentBrowsableChannel() 236 return channel; in getAdjacentBrowsableChannel() 248 Channel channel = mChannels.get(nextChannelIndex); in getAdjacentBrowsableChannel() local 249 if (channel.isBrowsable()) { in getAdjacentBrowsableChannel() 250 return channel; in getAdjacentBrowsableChannel() 265 Channel channel = mChannelMap.get(channelId); in findNearestBrowsableChannel() local [all …]
|
D | MainActivity.java | 352 Channel channel = mTvView.getCurrentChannel(); 353 if (channel != null && channel.getId() == channelId) { 356 mMediaSessionWrapper.update(mTvView.isBlocked(), channel, program); 380 public void onCurrentChannelUnavailable(Channel channel) { 948 Channel channel = Channel.createPassthroughChannel(channelUri); in startTv() local 949 mChannelTuner.moveToChannel(channel); in startTv() 952 Channel channel = mChannelDataManager.getChannel(channelId); in startTv() local 953 if (channel == null || !mChannelTuner.moveToChannel(channel)) { in startTv() 1216 final Channel channel = returnChannel; in endShrunkenTvView() local 1220 tuneToChannel(channel); in endShrunkenTvView() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/notification/ |
D | NotificationChannelManager.java | 101 for (NotificationChannel channel : notificationManager.getNotificationChannels()) { in getAllExistingChannelIds() 102 result.add(channel.getId()); in getAllExistingChannelIds() 118 NotificationChannel channel = in createIncomingCallChannel() local 123 channel.setShowBadge(false); in createIncomingCallChannel() 124 channel.enableLights(true); in createIncomingCallChannel() 125 channel.enableVibration(false); in createIncomingCallChannel() 126 channel.setSound( in createIncomingCallChannel() 128 context.getSystemService(NotificationManager.class).createNotificationChannel(channel); in createIncomingCallChannel() 132 NotificationChannel channel = in createOngoingCallChannel() local 137 channel.setShowBadge(false); in createOngoingCallChannel() [all …]
|
D | VoicemailChannelUtils.java | 129 NotificationChannel channel = newChannel(context, GLOBAL_VOICEMAIL_CHANNEL_ID, null); in createGlobalVoicemailChannel() local 143 migrateVoicemailSoundSettings(context, channel, handle); in createGlobalVoicemailChannel() 145 context.getSystemService(NotificationManager.class).createNotificationChannel(channel); in createGlobalVoicemailChannel() 163 NotificationChannel channel = in createVoicemailChannelForAccount() local 165 migrateVoicemailSoundSettings(context, channel, handle); in createVoicemailChannelForAccount() 166 context.getSystemService(NotificationManager.class).createNotificationChannel(channel); in createVoicemailChannelForAccount() 171 @NonNull NotificationChannel channel, in migrateVoicemailSoundSettings() argument 174 channel.enableVibration(telephonyManager.isVoicemailVibrationEnabled(handle)); in migrateVoicemailSoundSettings() 175 channel.setSound( in migrateVoicemailSoundSettings() 201 NotificationChannel channel = in newChannel() local [all …]
|
/packages/apps/TV/src/com/android/tv/data/ |
D | ChannelDataManager.java | 101 for (ChannelWrapper channel : mData.channelWrapperMap.values()) { 102 if (channel.mChannel.getInputId().equals(inputId)) { 103 channel.mInputRemoved = false; 104 addChannel(data, channel.mChannel); 119 for (ChannelWrapper channel : mData.channelWrapperMap.values()) { 120 if (channel.mChannel.getInputId().equals(inputId)) { 121 channel.mInputRemoved = true; 123 removedChannels.add(channel); 137 for (ChannelWrapper channel : removedChannels) { 138 channel.notifyChannelRemoved(); [all …]
|
D | Channel.java | 117 Channel channel = new Channel(); in fromCursor() local 119 channel.mId = cursor.getLong(index++); in fromCursor() 120 channel.mPackageName = Utils.intern(cursor.getString(index++)); in fromCursor() 121 channel.mInputId = Utils.intern(cursor.getString(index++)); in fromCursor() 122 channel.mType = Utils.intern(cursor.getString(index++)); in fromCursor() 123 channel.mDisplayNumber = normalizeDisplayNumber(cursor.getString(index++)); in fromCursor() 124 channel.mDisplayName = cursor.getString(index++); in fromCursor() 125 channel.mDescription = cursor.getString(index++); in fromCursor() 126 channel.mVideoFormat = Utils.intern(cursor.getString(index++)); in fromCursor() 127 channel.mBrowsable = cursor.getInt(index++) == 1; in fromCursor() [all …]
|
D | ChannelLogoFetcher.java | 111 for (Channel channel : mChannels) { in doInBackground() 112 String channelIdString = Long.toString(channel.getId()); in doInBackground() 114 if (!TextUtils.isEmpty(channel.getLogoUri()) in doInBackground() 115 && !TextUtils.equals(storedChannelLogoUri, channel.getLogoUri())) { in doInBackground() 116 channelsToUpdate.add(channel); in doInBackground() 117 sharedPreferencesEditor.putString(channelIdString, channel.getLogoUri()); in doInBackground() 118 } else if (TextUtils.isEmpty(channel.getLogoUri()) in doInBackground() 121 channelsToRemove.add(channel); in doInBackground() 132 for (Channel channel : channelsToUpdate) { in doInBackground() 138 String logoUri = channel.getLogoUri(); in doInBackground() [all …]
|
/packages/apps/TV/src/com/android/tv/tuner/source/ |
D | TunerTsStreamerManager.java | 64 Context context, TunerChannel channel, EventDetector.EventListener listener, in createDataSource() argument 68 if (mStreamerFinder.containsLocked(channel)) { in createDataSource() 69 mStreamerFinder.appendSessionLocked(channel, sessionId); in createDataSource() 70 TunerTsStreamer streamer = mStreamerFinder.getStreamerLocked(channel); in createDataSource() 77 creator = new TsStreamerCreator(context, channel, listener); in createDataSource() 87 mStreamerFinder.putLocked(channel, sessionId, streamer); in createDataSource() 113 TunerChannel channel = streamer.getChannel(); in releaseDataSource() local 114 SoftPreconditions.checkState(channel != null); in releaseDataSource() 115 mStreamerFinder.removeSessionLocked(channel, sessionId); in releaseDataSource() 116 if (mStreamerFinder.containsLocked(channel)) { in releaseDataSource() [all …]
|
D | TunerTsStreamer.java | 145 public boolean startStream(TunerChannel channel) { in startStream() argument 146 if (mTunerHal.tune(channel.getFrequency(), channel.getModulation(), in startStream() 147 channel.getDisplayNumber(false))) { in startStream() 148 if (channel.hasVideo()) { in startStream() 149 mTunerHal.addPidFilter(channel.getVideoPid(), in startStream() 153 for (Integer audioPid : channel.getAudioPids()) { in startStream() 163 mTunerHal.addPidFilter(channel.getPcrPid(), in startStream() 166 mEventDetector.startDetecting(channel.getFrequency(), channel.getModulation(), in startStream() 167 channel.getProgramNumber()); in startStream() 169 mChannel = channel; in startStream() [all …]
|
/packages/apps/TV/src/com/android/tv/search/ |
D | DataManagerSearch.java | 108 for (Channel channel : channelList) { in searchFromDataManagers() 109 if (channelsFound.contains(channel.getId())) { in searchFromDataManagers() 112 if (contains(channel.getDisplayNumber(), query)) { in searchFromDataManagers() 113 addResult(results, channelsFound, channel, null); in searchFromDataManagers() 126 for (Channel channel : channelList) { in searchFromDataManagers() 127 if (channelsFound.contains(channel.getId())) { in searchFromDataManagers() 130 if (contains(channel.getDisplayName(), query) in searchFromDataManagers() 131 || contains(channel.getDescription(), query)) { in searchFromDataManagers() 132 addResult(results, channelsFound, channel, null); in searchFromDataManagers() 150 for (Channel channel : channelList) { in searchFromDataManagers() [all …]
|
/packages/apps/TV/src/com/android/tv/tuner/data/ |
D | TunerChannel.java | 74 private TunerChannel(PsipData.VctItem channel, int programNumber, in TunerChannel() argument 77 if (channel == null) { in TunerChannel() 84 mProto.shortName = channel.getShortName(); in TunerChannel() 85 if (channel.getLongName() != null) { in TunerChannel() 86 mProto.longName = channel.getLongName(); in TunerChannel() 88 mProto.tsid = channel.getChannelTsid(); in TunerChannel() 89 mProto.programNumber = channel.getProgramNumber(); in TunerChannel() 90 mProto.virtualMajor = channel.getMajorChannelNumber(); in TunerChannel() 91 mProto.virtualMinor = channel.getMinorChannelNumber(); in TunerChannel() 92 if (channel.getDescription() != null) { in TunerChannel() [all …]
|
/packages/apps/TV/tests/unit/src/com/android/tv/data/ |
D | ChannelDataManagerTest.java | 157 for (Channel channel : channelList) { in testGetChannels() 160 if (TextUtils.equals(channelInfo.name, channel.getDisplayName()) in testGetChannels() 161 && TextUtils.equals(channelInfo.name, channel.getDisplayName())) { in testGetChannels() 167 assertTrue("Cannot find (" + channel + ")", found); in testGetChannels() 171 for (Channel channel : channelList) { in testGetChannels() 172 assertEquals(channel, mChannelDataManager.getChannel(channel.getId())); in testGetChannels() 276 for (Channel channel : channelList) { in testLocked() 277 assertFalse(channel + " is locked", channel.isLocked()); in testLocked() 281 Channel channel = mChannelDataManager.getChannelList().get(0); in testLocked() local 284 mChannelDataManager.updateLocked(channel.getId(), true); in testLocked() [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/com/google/internal/communications/voicemailtranscription/v1/ |
D | VoicemailTranscriptionServiceGrpc.java | 62 public static VoicemailTranscriptionServiceStub newStub(io.grpc.Channel channel) { in newStub() argument 63 return new VoicemailTranscriptionServiceStub(channel); in newStub() 70 io.grpc.Channel channel) { in newBlockingStub() argument 71 return new VoicemailTranscriptionServiceBlockingStub(channel); in newBlockingStub() 78 io.grpc.Channel channel) { in newFutureStub() argument 79 return new VoicemailTranscriptionServiceFutureStub(channel); in newFutureStub() 118 private VoicemailTranscriptionServiceStub(io.grpc.Channel channel) { in VoicemailTranscriptionServiceStub() argument 119 super(channel); in VoicemailTranscriptionServiceStub() 122 private VoicemailTranscriptionServiceStub(io.grpc.Channel channel, in VoicemailTranscriptionServiceStub() argument 124 super(channel, callOptions); in VoicemailTranscriptionServiceStub() [all …]
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/ |
D | ChannelUtils.java | 85 for (ChannelInfo channel : channels) { in updateChannels() 89 values.put(Channels.COLUMN_DISPLAY_NUMBER, channel.number); in updateChannels() 90 values.put(Channels.COLUMN_DISPLAY_NAME, channel.name); in updateChannels() 91 values.put(Channels.COLUMN_ORIGINAL_NETWORK_ID, channel.originalNetworkId); in updateChannels() 92 String videoFormat = channel.getVideoFormat(); in updateChannels() 98 if (!TextUtils.isEmpty(channel.appLinkText)) { in updateChannels() 99 values.put(Channels.COLUMN_APP_LINK_TEXT, channel.appLinkText); in updateChannels() 101 if (channel.appLinkColor != 0) { in updateChannels() 102 values.put(Channels.COLUMN_APP_LINK_COLOR, channel.appLinkColor); in updateChannels() 104 if (!TextUtils.isEmpty(channel.appLinkPosterArtUri)) { in updateChannels() [all …]
|
/packages/apps/TV/tests/unit/src/com/android/tv/ |
D | BaseMainActivityTestCase.java | 74 protected void tuneToChannel(final Channel channel) { in tuneToChannel() argument 79 mActivity.tuneToChannel(channel); in tuneToChannel() 108 protected void tuneToChannel(ChannelInfo channel) { in tuneToChannel() argument 109 tuneToChannel(channel.name); in tuneToChannel() 118 protected void updateThenTune(ChannelStateData data, ChannelInfo channel) { in updateThenTune() argument 119 if (channel.equals(TvTestInputConstants.CH_1_DEFAULT_DONT_MODIFY)) { in updateThenTune() 124 mConnection.updateChannelState(channel, data); in updateThenTune() 125 tuneToChannel(channel); in updateThenTune() 130 Channel channel = null; in findChannelWithName() local 134 channel = c; in findChannelWithName() [all …]
|
/packages/apps/TV/src/com/android/tv/recommendation/ |
D | NotificationService.java | 168 public void onCurrentChannelChange(@Nullable Channel channel) { in onCurrentChannelChange() argument 170 mPlayingChannel = channel; in onCurrentChannelChange() 199 private void handleUpdateRecommendation(int notificationId, Channel channel) { in handleUpdateRecommendation() argument 201 channel.getId(), notificationId)) { in handleUpdateRecommendation() 351 final Channel channel = cr.getChannel(); in sendNotification() local 353 Log.d(TAG, "sendNotification (channelName=" + channel.getDisplayName() + " notifyId=" in sendNotification() 358 String inputId = Utils.getInputIdForChannel(this, channel.getId()); in sendNotification() 368 final Program program = Utils.getCurrentProgram(this, channel.getId()); in sendNotification() 394 channel.loadBitmap(this, Channel.LOAD_IMAGE_TYPE_CHANNEL_LOGO, mChannelLogoMaxWidth, in sendNotification() 396 createChannelLogoCallback(this, notificationId, inputDisplayName, channel, program, in sendNotification() [all …]
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | AppNotificationSettings.java | 205 final NotificationChannel channel = channels.get(i); in populateChannelList() local 206 populateSingleChannelPrefs(groupCategory, channel); in populateChannelList() 228 final NotificationChannel channel) { in populateSingleChannelPrefs() argument 232 && isChannelBlockable(mAppRow.systemApp, channel) in populateSingleChannelPrefs() 233 && isChannelConfigurable(channel)); in populateSingleChannelPrefs() 234 channelPref.setKey(channel.getId()); in populateSingleChannelPrefs() 235 channelPref.setTitle(channel.getName()); in populateSingleChannelPrefs() 236 channelPref.setChecked(channel.getImportance() != IMPORTANCE_NONE); in populateSingleChannelPrefs() 237 channelPref.setSummary(getImportanceSummary(channel)); in populateSingleChannelPrefs() 241 channelArgs.putString(Settings.EXTRA_CHANNEL_ID, channel.getId()); in populateSingleChannelPrefs() [all …]
|
/packages/apps/TV/tests/unit/src/com/android/tv/dvr/recorder/ |
D | RecordingTaskTest.java | 94 Channel channel = createTestChannel(); in testHandle_init() local 95 ScheduledRecording r = createRecording(channel); in testHandle_init() 96 RecordingTask task = createRecordingTask(r, channel); in testHandle_init() 97 String inputId = channel.getInputId(); in testHandle_init() 105 verify(mMockRecordingSession).tune(eq(inputId), eq(channel.getUri())); in testHandle_init() 116 Channel channel = createTestChannel(); in testOnConnected() local 117 ScheduledRecording r = createRecording(channel); in testOnConnected() 119 RecordingTask task = createRecordingTask(r, channel); in testOnConnected() 120 String inputId = channel.getInputId(); in testOnConnected() 125 task.onTuned(channel.getUri()); in testOnConnected() [all …]
|
/packages/apps/TV/src/com/android/tv/tuner/ts/ |
D | TsParser.java | 88 void onVctItemParsed(VctItem channel, List<PmtItem> pmtItems); in onVctItemParsed() argument 89 void onEitItemParsed(VctItem channel, List<EitItem> items); in onEitItemParsed() argument 92 void onSdtItemParsed(SdtItem channel, List<PmtItem> pmtItems); in onSdtItemParsed() argument 345 private void handleVctItem(VctItem channel, List<PmtItem> pmtItems) { in handleVctItem() argument 347 Log.d(TAG, "handleVctItem " + channel); in handleVctItem() 350 mListener.onVctItemParsed(channel, pmtItems); in handleVctItem() 352 int sourceId = channel.getSourceId(); in handleVctItem() 363 handleEitItems(channel, eitItems); in handleVctItem() 368 private void handleEitItems(VctItem channel, List<EitItem> items) { in handleEitItems() argument 370 mListener.onEitItemParsed(channel, items); in handleEitItems() [all …]
|
/packages/apps/TV/src/com/android/tv/ui/sidepanel/ |
D | CustomizeChannelListFragment.java | 187 for (Channel channel: channels) { in addItemForGroupBySource() 188 if (!channel.getInputId().equals(inputId)) { in addItemForGroupBySource() 189 inputId = channel.getInputId(); in addItemForGroupBySource() 196 ChannelItem channelItem = new ChannelItem(channel, selectGroupItem); in addItemForGroupBySource() 221 for (Channel channel: channels) { in addItemForGroupByHdSd() 222 boolean isHd = isHdChannel(channel); in addItemForGroupByHdSd() 231 ChannelItem channelItem = new ChannelItem(channel, selectGroupItem); in addItemForGroupByHdSd() 238 private static boolean isHdChannel(Channel channel) { in isHdChannel() argument 239 String videoFormat = channel.getVideoFormat(); in isHdChannel() 285 Channel channel = channelItem.getChannel(); in onSelected() local [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/ |
D | DetailsContent.java | 77 Channel channel = TvApplication.getSingletons(context).getChannelDataManager() in createFromScheduledRecording() local 83 description = channel != null ? channel.getDescription() : null; in createFromScheduledRecording() 262 private void createStyledTitle(Context context, Channel channel) { in createStyledTitle() argument 267 mDetailsContent.mTitle = channel != null ? channel.getDisplayName() in createStyledTitle() 274 private void createImageUris(@Nullable Channel channel) { in createImageUris() argument 290 if (TextUtils.isEmpty(mDetailsContent.mLogoImageUri) && channel != null) { in createImageUris() 291 String channelLogoUri = TvContract.buildChannelLogoUri(channel.getId()) in createImageUris() 303 Channel channel = TvApplication.getSingletons(context).getChannelDataManager() in build() local 306 createStyledTitle(context, channel); in build() 310 createImageUris(channel); in build()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppPreference.java | 118 Integer channel = null; in getChannel() local 120 channel = mChannels.get(key); in getChannel() 122 " as " + channel); in getChannel() 124 return (channel != null) ? channel : -1; in getChannel() 137 public void setChannel(BluetoothDevice remoteDevice, int uuid, int channel) { in setChannel() argument 139 + channel); in setChannel() 140 if (channel != getChannel(remoteDevice, uuid)) { in setChannel() 143 ed.putInt(key, channel); in setChannel() 145 mChannels.put(key, channel); in setChannel()
|