Home
last modified time | relevance | path

Searched refs:mChannel (Results 1 – 25 of 83) sorted by relevance

1234

/packages/apps/TV/src/com/android/tv/menu/
DAppLinkCardView.java60 private Channel mChannel; field in AppLinkCardView
95 boolean channelChanged = !Objects.equals(mChannel, newChannel); in onBind()
96 String previousPosterArtUri = mChannel == null ? null : mChannel.getAppLinkPosterArtUri(); in onBind()
102 mChannel = newChannel; in onBind()
107 + mChannel.getDisplayName() in onBind()
112 ApplicationInfo appInfo = mTvInputManagerHelper.getTvInputAppInfo(mChannel.getInputId()); in onBind()
114 int linkType = mChannel.getAppLinkType(getContext()); in onBind()
115 mIntent = mChannel.getAppLinkIntent(getContext()); in onBind()
120 setText(mChannel.getAppLinkText()); in onBind()
125 mTvInputManagerHelper.getTvInputApplicationLabel(mChannel.getInputId()); in onBind()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DNotificationPreferenceController.java44 protected NotificationChannel mChannel; field in NotificationPreferenceController
79 if (mChannel != null) { in isAvailable()
80 return mChannel.getImportance() != IMPORTANCE_NONE; in isAvailable()
89 mChannel = channel; in onResume()
95 if (mChannel == null) { in checkCanBeVisible()
100 int importance = mChannel.getImportance(); in checkCanBeVisible()
108 if (mChannel != null && mAppRow != null) { in saveChannel()
109 mBackend.updateChannel(mAppRow.pkg, mAppRow.uid, mChannel); in saveChannel()
117 if (mChannel != null && mAppRow != null) { in isChannelConfigurable()
118 return !Objects.equals(mChannel.getId(), mAppRow.lockedChannelId); in isChannelConfigurable()
[all …]
DImportancePreferenceController.java56 if (mChannel == null) { in isAvailable()
70 if (mAppRow!= null && mChannel != null) { in updateState()
75 pref.setImportance(mChannel.getImportance()); in updateState()
81 if (mChannel != null) { in onPreferenceChange()
88 if (mChannel.getImportance() < IMPORTANCE_DEFAULT in onPreferenceChange()
89 && !SoundPreferenceController.hasValidSound(mChannel) in onPreferenceChange()
91 mChannel.setSound(RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION), in onPreferenceChange()
92 mChannel.getAudioAttributes()); in onPreferenceChange()
93 mChannel.lockFields(USER_LOCKED_SOUND); in onPreferenceChange()
96 mChannel.setImportance(importance); in onPreferenceChange()
[all …]
DSoundPreferenceController.java64 if (mChannel == null) { in isAvailable()
78 if (mAppRow!= null && mChannel != null) { in updateState()
81 pref.setRingtone(mChannel.getSound()); in updateState()
87 if (mChannel != null) { in onPreferenceChange()
88 mChannel.setSound((Uri) newValue, mChannel.getAudioAttributes()); in onPreferenceChange()
98 if (mChannel != null && mChannel.getAudioAttributes() != null) { in handlePreferenceTreeClick()
99 if (USAGE_ALARM == mChannel.getAudioAttributes().getUsage()) { in handlePreferenceTreeClick()
102 == mChannel.getAudioAttributes().getUsage()) { in handlePreferenceTreeClick()
DAllowSoundPreferenceController.java56 return mChannel != null && NotificationChannel.DEFAULT_CHANNEL_ID.equals(mChannel.getId()); in isAvailable()
62 if (mChannel != null) { in updateState()
66 pref.setChecked(mChannel.getImportance() >= IMPORTANCE_DEFAULT in updateState()
67 || mChannel.getImportance() == IMPORTANCE_UNSPECIFIED); in updateState()
73 if (mChannel != null) { in onPreferenceChange()
76 mChannel.setImportance(importance); in onPreferenceChange()
77 mChannel.lockFields(NotificationChannel.USER_LOCKED_IMPORTANCE); in onPreferenceChange()
DHighImportancePreferenceController.java53 if (mChannel == null) { in isAvailable()
59 return mChannel.getImportance() >= IMPORTANCE_DEFAULT; in isAvailable()
64 if (mAppRow!= null && mChannel != null) { in updateState()
68 pref.setChecked(mChannel.getImportance() >= IMPORTANCE_HIGH); in updateState()
74 if (mChannel != null) { in onPreferenceChange()
77 mChannel.setImportance(checked ? IMPORTANCE_HIGH : IMPORTANCE_DEFAULT); in onPreferenceChange()
78 mChannel.lockFields(NotificationChannel.USER_LOCKED_IMPORTANCE); in onPreferenceChange()
DMinImportancePreferenceController.java53 if (mChannel == null) { in isAvailable()
59 return mChannel.getImportance() <= IMPORTANCE_LOW; in isAvailable()
64 if (mAppRow!= null && mChannel != null) { in updateState()
68 pref.setChecked(mChannel.getImportance() == IMPORTANCE_MIN); in updateState()
74 if (mChannel != null) { in onPreferenceChange()
77 mChannel.setImportance(checked ? IMPORTANCE_MIN : IMPORTANCE_LOW); in onPreferenceChange()
78 mChannel.lockFields(NotificationChannel.USER_LOCKED_IMPORTANCE); in onPreferenceChange()
DNotificationSettingsBase.java75 protected NotificationChannel mChannel; field in NotificationSettingsBase
128 controller.onResume(mAppRow, mChannel, mChannelGroup, mSuspendedAppsAdmin); in onAttach()
187 mChannel = mBackend.getChannel(mPkg, mUid, channelId); in loadChannel()
196 || (mChannel != null in loadChannelGroup()
197 && NotificationChannel.DEFAULT_CHANNEL_ID.equals(mChannel.getId())); in loadChannelGroup()
200 mChannel = mBackend.getChannel( in loadChannelGroup()
203 if (mChannel != null && !TextUtils.isEmpty(mChannel.getGroup())) { in loadChannelGroup()
204 NotificationChannelGroup group = mBackend.getGroup(mPkg, mUid, mChannel.getGroup()); in loadChannelGroup()
242 if (mChannel != null) { in collectConfigActivities()
243 mAppRow.settingsIntent.putExtra(Notification.EXTRA_CHANNEL_ID, mChannel.getId()); in collectConfigActivities()
[all …]
DDndPreferenceController.java43 if (!super.isAvailable() || mChannel == null) { in isAvailable()
50 if (mChannel != null) { in updateState()
54 pref.setChecked(mChannel.canBypassDnd()); in updateState()
60 if (mChannel != null) { in onPreferenceChange()
62 mChannel.setBypassDnd(bypassZenMode); in onPreferenceChange()
63 mChannel.lockFields(NotificationChannel.USER_LOCKED_PRIORITY); in onPreferenceChange()
/packages/apps/TV/src/com/android/tv/data/
DChannelImpl.java466 private final ChannelImpl mChannel; field in ChannelImpl.Builder
469 mChannel = new ChannelImpl(); in Builder()
471 mChannel.mId = INVALID_ID; in Builder()
472 mChannel.mPackageName = INVALID_PACKAGE_NAME; in Builder()
473 mChannel.mInputId = "inputId"; in Builder()
474 mChannel.mType = "type"; in Builder()
475 mChannel.mDisplayNumber = "0"; in Builder()
476 mChannel.mDisplayName = "name"; in Builder()
477 mChannel.mDescription = "description"; in Builder()
478 mChannel.mBrowsable = true; in Builder()
[all …]
DChannelDataManager.java109 if (channel.mChannel.getInputId().equals(inputId)) {
111 addChannel(data, channel.mChannel);
127 if (channel.mChannel.getInputId().equals(inputId)) {
138 addChannel(data, channelWrapper.mChannel);
331 return channelWrapper.mChannel; in getChannel()
353 if (channelWrapper.mChannel.isBrowsable() != browsable) { in updateBrowsable()
354 channelWrapper.mChannel.setBrowsable(browsable); in updateBrowsable()
356 mBrowsableUpdateChannelIds.remove(channelWrapper.mChannel.getId()); in updateBrowsable()
358 mBrowsableUpdateChannelIds.add(channelWrapper.mChannel.getId()); in updateBrowsable()
406 if (channelWrapper.mChannel.isLocked() != locked) { in updateLocked()
[all …]
/packages/apps/Settings/src/com/android/settings/notification/
DImportancePreferenceController.java54 if (mChannel == null) { in isAvailable()
62 if (mAppRow!= null && mChannel != null) { in updateState()
63 preference.setEnabled(mAdmin == null && !mChannel.isImportanceLockedByOEM()); in updateState()
65 pref.setConfigurable(!mChannel.isImportanceLockedByOEM()); in updateState()
66 pref.setImportance(mChannel.getImportance()); in updateState()
75 if (mChannel != null) { in onPreferenceChange()
82 if (mChannel.getImportance() < IMPORTANCE_DEFAULT in onPreferenceChange()
83 && !SoundPreferenceController.hasValidSound(mChannel) in onPreferenceChange()
85 mChannel.setSound(RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION), in onPreferenceChange()
86 mChannel.getAudioAttributes()); in onPreferenceChange()
[all …]
DNotificationPreferenceController.java44 protected NotificationChannel mChannel; field in NotificationPreferenceController
81 if (mChannel != null) { in isAvailable()
82 return mChannel.getImportance() != IMPORTANCE_NONE; in isAvailable()
91 mChannel = channel; in onResume()
97 if (mChannel == null) { in checkCanBeVisible()
102 int importance = mChannel.getImportance(); in checkCanBeVisible()
110 if (mChannel != null && mAppRow != null) { in saveChannel()
111 mBackend.updateChannel(mAppRow.pkg, mAppRow.uid, mChannel); in saveChannel()
116 return isChannelBlockable(mChannel); in isChannelBlockable()
159 if (mChannel == null) { in isDefaultChannel()
[all …]
DSoundPreferenceController.java64 if (mChannel == null) { in isAvailable()
78 if (mAppRow!= null && mChannel != null) { in updateState()
81 pref.setRingtone(mChannel.getSound()); in updateState()
87 if (mChannel != null) { in onPreferenceChange()
88 mChannel.setSound((Uri) newValue, mChannel.getAudioAttributes()); in onPreferenceChange()
98 if (mChannel != null && mChannel.getAudioAttributes() != null) { in handlePreferenceTreeClick()
99 if (USAGE_ALARM == mChannel.getAudioAttributes().getUsage()) { in handlePreferenceTreeClick()
102 == mChannel.getAudioAttributes().getUsage()) { in handlePreferenceTreeClick()
DMinImportancePreferenceController.java53 if (mChannel == null) { in isAvailable()
59 return mChannel.getImportance() <= IMPORTANCE_LOW; in isAvailable()
64 if (mAppRow != null && mChannel != null) { in updateState()
65 preference.setEnabled(mAdmin == null && !mChannel.isImportanceLockedByOEM()); in updateState()
68 pref.setChecked(mChannel.getImportance() == IMPORTANCE_MIN); in updateState()
74 if (mChannel != null) { in onPreferenceChange()
77 mChannel.setImportance(checked ? IMPORTANCE_MIN : IMPORTANCE_LOW); in onPreferenceChange()
78 mChannel.lockFields(NotificationChannel.USER_LOCKED_IMPORTANCE); in onPreferenceChange()
DHighImportancePreferenceController.java53 if (mChannel == null) { in isAvailable()
59 return mChannel.getImportance() >= IMPORTANCE_DEFAULT; in isAvailable()
64 if (mAppRow != null && mChannel != null) { in updateState()
65 preference.setEnabled(mAdmin == null && !mChannel.isImportanceLockedByOEM()); in updateState()
68 pref.setChecked(mChannel.getImportance() >= IMPORTANCE_HIGH); in updateState()
74 if (mChannel != null) { in onPreferenceChange()
77 mChannel.setImportance(checked ? IMPORTANCE_HIGH : IMPORTANCE_DEFAULT); in onPreferenceChange()
78 mChannel.lockFields(NotificationChannel.USER_LOCKED_IMPORTANCE); in onPreferenceChange()
DAllowSoundPreferenceController.java56 return mChannel != null && NotificationChannel.DEFAULT_CHANNEL_ID.equals(mChannel.getId()); in isAvailable()
62 if (mChannel != null) { in updateState()
66 pref.setChecked(mChannel.getImportance() >= IMPORTANCE_DEFAULT in updateState()
67 || mChannel.getImportance() == IMPORTANCE_UNSPECIFIED); in updateState()
73 if (mChannel != null) { in onPreferenceChange()
76 mChannel.setImportance(importance); in onPreferenceChange()
77 mChannel.lockFields(NotificationChannel.USER_LOCKED_IMPORTANCE); in onPreferenceChange()
DNotificationSettingsBase.java83 protected NotificationChannel mChannel; field in NotificationSettingsBase
135 controller.onResume(mAppRow, mChannel, mChannelGroup, mSuspendedAppsAdmin); in onAttach()
194 mChannel = mBackend.getChannel(mPkg, mUid, channelId); in loadChannel()
203 || (mChannel != null in loadChannelGroup()
204 && NotificationChannel.DEFAULT_CHANNEL_ID.equals(mChannel.getId())); in loadChannelGroup()
207 mChannel = mBackend.getChannel( in loadChannelGroup()
210 if (mChannel != null && !TextUtils.isEmpty(mChannel.getGroup())) { in loadChannelGroup()
211 NotificationChannelGroup group = mBackend.getGroup(mPkg, mUid, mChannel.getGroup()); in loadChannelGroup()
249 if (mChannel != null) { in collectConfigActivities()
250 mAppRow.settingsIntent.putExtra(Notification.EXTRA_CHANNEL_ID, mChannel.getId()); in collectConfigActivities()
DDndPreferenceController.java43 if (!super.isAvailable() || mChannel == null) { in isAvailable()
50 if (mChannel != null) { in updateState()
54 pref.setChecked(mChannel.canBypassDnd()); in updateState()
60 if (mChannel != null) { in onPreferenceChange()
62 mChannel.setBypassDnd(bypassZenMode); in onPreferenceChange()
63 mChannel.lockFields(NotificationChannel.USER_LOCKED_PRIORITY); in onPreferenceChange()
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/
DTunerSessionWorkerExoV2.java200 private volatile TunerChannel mChannel; field in TunerSessionWorkerExoV2
406 return mChannel; in getCurrentChannel()
443 if (mChannel == null && mPlayerState == MpegTsPlayerV2.STATE_ENDED) { in getCurrentPosition()
522 if (mChannel != null) { in onStateChanged()
541 if (mChannel != null) { in onError()
549 if (mChannel != null && mChannel.hasVideo()) { in onVideoSizeChanged()
897 mChannel = null; in handleMessageStopTune()
919 Log.i(TAG, "Retrying the playback for channel: " + mChannel); in handleMessageRetryPlayback()
962 if (mChannel != null || mRecordingId != null) { in handleMessageStartPlayback()
969 if (mChannel != null) { in handleMessageUpdateProgram()
[all …]
DTunerSessionWorker.java201 private volatile TunerChannel mChannel; field in TunerSessionWorker
406 return mChannel; in getCurrentChannel()
443 if (mChannel == null && mPlayerState == ExoPlayer.STATE_ENDED) { in getCurrentPosition()
521 if (mChannel != null) { in onStateChanged()
540 if (mChannel != null) { in onError()
548 if (mChannel != null && mChannel.hasVideo()) { in onVideoSizeChanged()
912 mChannel = null; in handleMessageStopTune()
937 Log.i(TAG, "Retrying the playback for channel: " + mChannel); in handleMessageRetryPlayback()
982 if (mChannel != null || mRecordingId != null) { in handleMessageStartPlayback()
989 if (mChannel != null) { in handleMessageUpdateProgram()
[all …]
/packages/services/BuiltInPrintService/src/com/android/bips/p2p/
DP2pDiscoveryProcedure.java53 private WifiP2pManager.Channel mChannel; field in P2pDiscoveryProcedure
59 mChannel = mP2pManager.initialize(service, Looper.getMainLooper(), null); in P2pDiscoveryProcedure()
71 mP2pManager.stopPeerDiscovery(mChannel, null); in P2pDiscoveryProcedure()
72 mP2pManager.discoverPeers(mChannel, null); in P2pDiscoveryProcedure()
82 mP2pManager.stopPeerDiscovery(mChannel, null); in P2pDiscoveryProcedure()
83 mP2pManager.discoverPeers(mChannel, null); in P2pDiscoveryProcedure()
92 mP2pManager.discoverPeers(mChannel, null); in P2pDiscoveryProcedure()
161 if (mChannel != null) { in cancel()
162 mP2pManager.stopPeerDiscovery(mChannel, null); in cancel()
163 mChannel.close(); in cancel()
[all …]
/packages/apps/TV/src/com/android/tv/ui/sidepanel/
DChannelCheckItem.java34 private Channel mChannel; field in ChannelCheckItem
44 mChannel = channel;
61 mChannel = channel; in ChannelCheckItem()
67 return mChannel; in getChannel()
95 mChannelDataManager.addChannelListener(mChannel.getId(), mChannelListener); in onBind()
97 mChannel.getId(), mOnCurrentProgramUpdatedListener); in onBind()
104 updateProgramTitle(mProgramDataManager.getCurrentProgram(mChannel.getId())); in onUpdate()
109 mChannelDataManager.removeChannelListener(mChannel.getId(), mChannelListener); in onUnbind()
111 mChannel.getId(), mOnCurrentProgramUpdatedListener); in onUnbind()
/packages/apps/Settings/src/com/android/settings/wifi/p2p/
DWifiP2pSettings.java75 private WifiP2pManager.Channel mChannel; field in WifiP2pSettings
143 mWifiP2pManager.requestDeviceInfo(mChannel, WifiP2pSettings.this);
155 mWifiP2pManager.requestPersistentGroupInfo(mChannel, WifiP2pSettings.this);
200 mChannel = mWifiP2pManager.initialize(activity.getApplicationContext(), in onActivityCreated()
202 if (mChannel == null) { in onActivityCreated()
240 mWifiP2pManager.setDeviceName(mChannel, in onActivityCreated()
263 mWifiP2pManager.removeGroup(mChannel, new WifiP2pManager.ActionListener() { in onActivityCreated()
282 mWifiP2pManager.cancelConnect(mChannel, in onActivityCreated()
304 mWifiP2pManager.deletePersistentGroup(mChannel, in onActivityCreated()
345 mWifiP2pManager.requestPeers(mChannel, WifiP2pSettings.this); in onResume()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/p2p/
DWifiP2pSettings.java74 private WifiP2pManager.Channel mChannel; field in WifiP2pSettings
152 mWifiP2pManager.requestPersistentGroupInfo(mChannel, WifiP2pSettings.this);
197 mChannel = mWifiP2pManager.initialize(activity.getApplicationContext(), in onActivityCreated()
199 if (mChannel == null) { in onActivityCreated()
237 mWifiP2pManager.setDeviceName(mChannel, in onActivityCreated()
260 mWifiP2pManager.removeGroup(mChannel, new WifiP2pManager.ActionListener() { in onActivityCreated()
279 mWifiP2pManager.cancelConnect(mChannel, in onActivityCreated()
301 mWifiP2pManager.deletePersistentGroup(mChannel, in onActivityCreated()
342 mWifiP2pManager.requestPeers(mChannel, WifiP2pSettings.this); in onResume()
343 mWifiP2pManager.requestDeviceInfo(mChannel, wifiP2pDevice -> { in onResume()
[all …]

1234