Home
last modified time | relevance | path

Searched refs:nm (Results 1 – 25 of 52) sorted by relevance

123

/packages/apps/DeskClock/src/com/android/deskclock/
DNotificationUtils.kt120 val nm: NotificationManagerCompat = NotificationManagerCompat.from(context) in createChannel() constant
121 nm.createNotificationChannel(channel) in createChannel()
124 private fun deleteChannel(nm: NotificationManagerCompat, channelId: String) { in deleteChannel()
125 val channel: NotificationChannel? = nm.getNotificationChannel(channelId) in deleteChannel()
127 nm.deleteNotificationChannel(channelId) in deleteChannel()
131 private fun getAllExistingChannelIds(nm: NotificationManagerCompat): Set<String> { in getAllExistingChannelIds()
133 for (channel in nm.getNotificationChannels()) { in getAllExistingChannelIds()
145 val nm: NotificationManagerCompat = NotificationManagerCompat.from(context) in updateNotificationChannels() constant
148 deleteChannel(nm, "alarmLowPriorityNotification") in updateNotificationChannels()
149 deleteChannel(nm, "alarmHighPriorityNotification") in updateNotificationChannels()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/wifi/
DNetworkMonitorTest.java61 final NetworkMonitor nm = new NetworkMonitor(mContext, false /* waitForValidated */); in testStartListening() local
62 nm.startListening(mCallback); in testStartListening()
75 nm.stopListening(); in testStartListening()
81 final NetworkMonitor nm = new NetworkMonitor(mContext, false /* waitForValidated */); in testStopListening() local
82 nm.startListening(mCallback); in testStopListening()
83 nm.stopListening(); in testStopListening()
98 final NetworkMonitor nm = new NetworkMonitor(mContext, /* waitForValidated */ true); in testWaitForValidated_NoCallbackBeforeValidated() local
99 nm.startListening(mCallback); in testWaitForValidated_NoCallbackBeforeValidated()
110 nm.stopListening(); in testWaitForValidated_NoCallbackBeforeValidated()
115 final NetworkMonitor nm = new NetworkMonitor(mContext, /* waitForValidated */ true); in testWaitForValidated_NetworkChange() local
[all …]
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/
DNetworkMonitorTest.java725 }, nm -> { in quitNetworkMonitors()
726 nm.notifyNetworkDisconnected(); in quitNetworkMonitors()
727 nm.awaitQuit(); in quitNetworkMonitors()
869 final WrappedNetworkMonitor nm = new WrappedNetworkMonitor(); in makeMonitor() local
870 nm.start(); in makeMonitor()
871 setNetworkCapabilities(nm, nc); in makeMonitor()
872 HandlerUtils.waitForIdle(nm.getHandler(), HANDLER_TIMEOUT_MS); in makeMonitor()
873 mCreatedNetworkMonitors.add(nm); in makeMonitor()
875 return nm; in makeMonitor()
879 final WrappedNetworkMonitor nm = makeMonitor(CELL_METERED_CAPABILITIES); in makeCellMeteredNetworkMonitor() local
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmNotifications.kt160 val nm: NotificationManagerCompat = NotificationManagerCompat.from(context) in showLowPriorityNotification() constant
166 nm.createNotificationChannel(channel) in showLowPriorityNotification()
169 nm.notify(id, notification) in showLowPriorityNotification()
215 val nm: NotificationManagerCompat = NotificationManagerCompat.from(context) in showHighPriorityNotification() constant
221 nm.createNotificationChannel(channel) in showHighPriorityNotification()
224 nm.notify(id, notification) in showHighPriorityNotification()
253 val nm: NotificationManager = in getFirstActiveNotification() constant
255 val notifications: Array<StatusBarNotification> = nm.getActiveNotifications() in getFirstActiveNotification()
272 val nm: NotificationManager = in getActiveGroupSummaryNotification() constant
274 val notifications: Array<StatusBarNotification> = nm.getActiveNotifications() in getActiveGroupSummaryNotification()
[all …]
/packages/modules/CaptivePortalLogin/src/com/android/captiveportallogin/
DDownloadService.java217 final NotificationManager nm = getSystemService(NotificationManager.class); in createNotificationChannels() local
223 nm.createNotificationChannel(downloadChannel); in createNotificationChannels()
231 nm.createNotificationChannel(progressChannel); in createNotificationChannels()
295 final NotificationManager nm = getSystemService(NotificationManager.class); in processDownload() local
297 updateNotification(nm, NOTE_DOWNLOAD_PROGRESS, task.mMimeType, in processDownload()
328 if (!downloadToFile(is, fop, contentLength, task, nm)) { in processDownload()
338 updateNotification(nm, NOTE_DOWNLOAD_DONE, task.mMimeType, in processDownload()
342 updateNotification(nm, NOTE_DOWNLOAD_DONE, task.mMimeType, in processDownload()
358 private void updateNotification(@NonNull NotificationManager nm, int eventId, in updateNotification() argument
364 nm.notify(eventId, notification); in updateNotification()
[all …]
/packages/modules/StatsD/tests/apps/statsdapp/src/com/android/server/cts/device/statsd/
DStatsdCtsForegroundActivity.java147 NotificationManager nm = getSystemService(NotificationManager.class); in doShowNotification() local
151 nm.createNotificationChannel(channel); in doShowNotification()
153 nm.notify( in doShowNotification()
160 nm.cancel(notificationId); in doShowNotification()
165 NotificationManager nm = getSystemService(NotificationManager.class); in doCreateChannelGroup() local
169 nm.createNotificationChannelGroup(channelGroup); in doCreateChannelGroup()
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/
DAudioSharingReceiver.java93 NotificationManager nm = context.getSystemService(NotificationManager.class); in showSharingNotification() local
94 if (nm.getNotificationChannel(CHANNEL_ID) == null) { in showSharingNotification()
101 nm.createNotificationChannel(notificationChannel); in showSharingNotification()
157 nm.notify(NOTIFICATION_ID, builder.build()); in showSharingNotification()
161 NotificationManager nm = context.getSystemService(NotificationManager.class); in cancelSharingNotification() local
162 nm.cancel(NOTIFICATION_ID); in cancelSharingNotification()
/packages/apps/Settings/src/com/android/settings/notification/zen/
DZenOnboardingActivity.java108 protected void setNotificationManager(NotificationManager nm) { in setNotificationManager() argument
109 mNm = nm; in setNotificationManager()
166 NotificationManager nm = context.getSystemService(NotificationManager.class); in wasZenUpdated() local
168 nm.getNotificationPolicy().suppressedVisualEffects)) { in wasZenUpdated()
/packages/apps/Contacts/src/com/android/contacts/util/
DContactsNotificationChannelsUtil.java38 final NotificationManager nm = context.getSystemService(NotificationManager.class); in createDefaultChannel() local
42 nm.createNotificationChannel(channel); in createDefaultChannel()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/notificationaccess/
DPreUpgradePreferenceController.java49 public PreUpgradePreferenceController setNm(NotificationBackend nm) { in setNm() argument
50 mNm = nm; in setNm()
DBridgedAppsLinkPreferenceController.java49 public BridgedAppsLinkPreferenceController setNm(NotificationBackend nm) { in setNm() argument
50 mNm = nm; in setNm()
DApprovalPreferenceController.java67 public ApprovalPreferenceController setNm(NotificationManager nm) { in setNm() argument
68 mNm = nm; in setNm()
DTypeFilterPreferenceController.java66 public TypeFilterPreferenceController setNm(NotificationBackend nm) { in setNm() argument
67 mNm = nm; in setNm()
DBridgedAppsPreferenceController.java74 public BridgedAppsPreferenceController setNm(NotificationBackend nm) { in setNm() argument
75 mNm = nm; in setNm()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/pbap/
DPbapStateMachine.java406 NotificationManager nm = mService.getSystemService(NotificationManager.class); in createPbapNotification() local
412 nm.createNotificationChannel(notificationChannel); in createPbapNotification()
455 nm.notify(mNotificationId, notification); in createPbapNotification()
459 NotificationManager nm = mService.getSystemService(NotificationManager.class); in removePbapNotification() local
460 nm.cancel(id); in removePbapNotification()
/packages/apps/Contacts/src/com/android/contacts/vcard/
DVCardService.java135 NotificationManager nm = getSystemService(NotificationManager.class); in onStartCommand() local
136 nm.cancelAll(); in onStartCommand()
264 NotificationManager nm = getSystemService(NotificationManager.class); in handleCancelRequest() local
265 nm.cancel(NotificationImportExportListener.DEFAULT_NOTIFICATION_TAG, jobId); in handleCancelRequest()
/packages/apps/DeskClock/src/com/android/deskclock/data/
DTimerNotificationBuilder.kt74 fun build(context: Context, nm: NotificationModel, unexpired: List<Timer>): Notification { in build()
177 .setSortKey(nm.timerNotificationSortKey) in build()
188 .setGroup(nm.timerNotificationGroupKey) in build()
315 nm: NotificationModel, in buildMissed()
379 .setSortKey(nm.timerNotificationMissedSortKey) in buildMissed()
386 .setGroup(nm.timerNotificationGroupKey) in buildMissed()
DStopwatchNotificationBuilder.kt56 fun build(context: Context, nm: NotificationModel, stopwatch: Stopwatch?): Notification { in build()
149 notification.setGroup(nm.stopwatchNotificationGroupKey) in build()
/packages/modules/Bluetooth/floss/build/
Dllvm-rename.sh23 --slave /usr/bin/llvm-nm llvm-nm /usr/bin/llvm-nm-${version} \
/packages/apps/Calendar/src/com/android/calendar/alerts/
DAlertService.kt73 class NotificationMgrWrapper(nm: NotificationManager) : NotificationMgr() {
86 mNm = nm
DDismissAlarmsService.kt83 val nm: NotificationManager = in onHandleIntent() constant
85 nm.cancel(notificationId as Int) in onHandleIntent()
/packages/modules/Connectivity/tests/integration/src/com/android/server/net/integrationtests/
DTestNetworkStackService.kt109 val nm = NetworkMonitor(this@TestNetworkStackService, cb, in getInputStream() constant
115 cb.onNetworkMonitorCreated(NetworkMonitorConnector(nm, TestPermissionChecker())) in getInputStream()
/packages/services/Telecomm/testapps/transactionalVoipApp/src/com/android/server/telecom/transactionalVoipApp/
DUtils.java87 NotificationManager nm = context.getSystemService(NotificationManager.class); in postIncomingCallStyleNotification() local
88 nm.notify(Utils.CALL_NOTIFICATION_ID, createCallStyleNotification(context)); in postIncomingCallStyleNotification()
/packages/apps/Settings/src/com/android/settings/notification/history/
DNotificationHistoryAdapter.java56 public NotificationHistoryAdapter(INotificationManager nm, in NotificationHistoryAdapter() argument
63 mNm = nm; in NotificationHistoryAdapter()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DXmlUtilHelper.java111 String nm = charSeq.toString(); in convertValueToInt() local
119 int len = nm.length(); in convertValueToInt()
122 if ('-' == nm.charAt(0)) { in convertValueToInt()
127 if ('0' == nm.charAt(index)) { in convertValueToInt()
132 char c = nm.charAt(index + 1); in convertValueToInt()
142 else if ('#' == nm.charAt(index)) in convertValueToInt()
148 return Integer.parseInt(nm.substring(index), base) * sign; in convertValueToInt()

123