Home
last modified time | relevance | path

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

12

/packages/apps/DeskClock/src/com/android/deskclock/
DNotificationUtils.java128 NotificationManagerCompat nm = NotificationManagerCompat.from(context); in createChannel() local
129 nm.createNotificationChannel(channel); in createChannel()
132 private static void deleteChannel(NotificationManagerCompat nm, String channelId) { in deleteChannel() argument
133 NotificationChannel channel = nm.getNotificationChannel(channelId); in deleteChannel()
135 nm.deleteNotificationChannel(channelId); in deleteChannel()
139 private static Set<String> getAllExistingChannelIds(NotificationManagerCompat nm) { in getAllExistingChannelIds() argument
141 for (NotificationChannel channel : nm.getNotificationChannels()) { in getAllExistingChannelIds()
152 NotificationManagerCompat nm = NotificationManagerCompat.from(context); in updateNotificationChannels() local
155 deleteChannel(nm, "alarmLowPriorityNotification"); in updateNotificationChannels()
156 deleteChannel(nm, "alarmHighPriorityNotification"); in updateNotificationChannels()
[all …]
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/
DNetworkMonitorTest.java557 for (WrappedNetworkMonitor nm : networkMonitors) { in tearDown()
558 nm.notifyNetworkDisconnected(); in tearDown()
559 nm.awaitQuit(); in tearDown()
631 final WrappedNetworkMonitor nm = new WrappedNetworkMonitor(); in makeMonitor() local
632 nm.start(); in makeMonitor()
633 setNetworkCapabilities(nm, nc); in makeMonitor()
634 HandlerUtilsKt.waitForIdle(nm.getHandler(), HANDLER_TIMEOUT_MS); in makeMonitor()
635 mCreatedNetworkMonitors.add(nm); in makeMonitor()
638 return nm; in makeMonitor()
642 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 …]
DAlarmNotifications.java141 NotificationManagerCompat nm = NotificationManagerCompat.from(context); in showUpcomingNotification() local
144 nm.notify(id, notification); in showUpcomingNotification()
169 final NotificationManager nm = in getFirstActiveNotification() local
171 final StatusBarNotification[] notifications = nm.getActiveNotifications(); in getFirstActiveNotification()
189 final NotificationManager nm = in getActiveGroupSummaryNotification() local
191 final StatusBarNotification[] notifications = nm.getActiveNotifications(); in getActiveGroupSummaryNotification()
207 final NotificationManagerCompat nm = NotificationManagerCompat.from(context); in updateUpcomingAlarmGroupNotification() local
211 nm.cancel(ALARM_GROUP_NOTIFICATION_ID); in updateUpcomingAlarmGroupNotification()
232 nm.notify(ALARM_GROUP_NOTIFICATION_ID, summary); in updateUpcomingAlarmGroupNotification()
242 final NotificationManagerCompat nm = NotificationManagerCompat.from(context); in updateMissedAlarmGroupNotification() local
[all …]
/packages/modules/CaptivePortalLogin/src/com/android/captiveportallogin/
DDownloadService.java237 final NotificationManager nm = getSystemService(NotificationManager.class); in createNotificationChannels() local
243 nm.createNotificationChannel(downloadChannel); in createNotificationChannels()
251 nm.createNotificationChannel(progressChannel); in createNotificationChannels()
278 final NotificationManager nm = getSystemService(NotificationManager.class); in processDownload() local
280 nm.notify(NOTE_DOWNLOAD_PROGRESS, makeProgressNotification(task, null /* progress */)); in processDownload()
309 if (!downloadToFile(is, fop, contentLength, task, nm)) { in processDownload()
318 nm.notify(NOTE_DOWNLOAD_DONE, in processDownload()
322 nm.notify(NOTE_DOWNLOAD_DONE, makeErrorNotification(task.mDisplayName)); in processDownload()
338 @NonNull NotificationManager nm) throws IOException { in downloadToFile() argument
363 if (maybeNotifyProgress(progress, lastProgress, now, lastUpdateTime, task, nm)) { in downloadToFile()
[all …]
/packages/apps/Settings/src/com/android/settings/notification/
DZenOnboardingActivity.java107 protected void setNotificationManager(NotificationManager nm) { in setNotificationManager() argument
108 mNm = nm; in setNotificationManager()
160 NotificationManager nm = context.getSystemService(NotificationManager.class); in wasZenUpdated() local
162 nm.getNotificationPolicy().suppressedVisualEffects)) { in wasZenUpdated()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DZenOnboardingActivity.java107 protected void setNotificationManager(NotificationManager nm) { in setNotificationManager() argument
108 mNm = nm; in setNotificationManager()
160 NotificationManager nm = context.getSystemService(NotificationManager.class); in wasZenUpdated() local
162 nm.getNotificationPolicy().suppressedVisualEffects)) { in wasZenUpdated()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DPbapStateMachine.java359 NotificationManager nm = in createPbapNotification() local
365 nm.createNotificationChannel(notificationChannel); in createPbapNotification()
402 nm.notify(mNotificationId, notification); in createPbapNotification()
406 NotificationManager nm = in removePbapNotification() local
408 nm.cancel(id); in removePbapNotification()
/packages/apps/DeskClock/src/com/android/deskclock/data/
DTimerNotificationBuilder.kt63 fun build(context: Context, nm: NotificationModel, unexpired: List<Timer>): Notification { in build()
166 .setSortKey(nm.timerNotificationSortKey) in build()
177 .setGroup(nm.timerNotificationGroupKey) in build()
304 nm: NotificationModel, in buildMissed()
368 .setSortKey(nm.timerNotificationMissedSortKey) in buildMissed()
375 .setGroup(nm.timerNotificationGroupKey) in buildMissed()
DTimerNotificationBuilder.java63 public Notification build(Context context, NotificationModel nm, List<Timer> unexpired) { in build() argument
167 .setSortKey(nm.getTimerNotificationSortKey()) in build()
178 .setGroup(nm.getTimerNotificationGroupKey()); in build()
304 Notification buildMissed(Context context, NotificationModel nm, in buildMissed() argument
367 .setSortKey(nm.getTimerNotificationMissedSortKey()) in buildMissed()
374 .setGroup(nm.getTimerNotificationGroupKey()); in buildMissed()
DStopwatchNotificationBuilder.java54 public Notification build(Context context, NotificationModel nm, Stopwatch stopwatch) { in build() argument
148 notification.setGroup(nm.getStopwatchNotificationGroupKey()); in build()
DStopwatchNotificationBuilder.kt56 fun build(context: Context, nm: NotificationModel, stopwatch: Stopwatch?): Notification { in build()
149 notification.setGroup(nm.stopwatchNotificationGroupKey) in build()
/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/modules/NetworkStack/src/com/android/server/
DNetworkStackService.java370 final NetworkMonitor nm = mDeps.makeNetworkMonitor(mContext, cb, network, log, this); in makeNetworkMonitor() local
371 cb.onNetworkMonitorCreated(new NetworkMonitorConnector(nm, mPermChecker)); in makeNetworkMonitor()
557 public NetworkMonitorConnector(@NonNull NetworkMonitor nm, in NetworkMonitorConnector() argument
559 mNm = nm; in NetworkMonitorConnector()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryEntry.java333 final CharSequence nm = pm.getText(pkgName, in loadNameAndIcon() local
335 if (nm != null) { in loadNameAndIcon()
336 name = nm.toString(); in loadNameAndIcon()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryEntry.java333 final CharSequence nm = pm.getText(pkgName, in loadNameAndIcon() local
335 if (nm != null) { in loadNameAndIcon()
336 name = nm.toString(); in loadNameAndIcon()
/packages/apps/Calendar/src/com/android/calendar/alerts/
DDismissAlarmsService.java101 NotificationManager nm = in onHandleIntent() local
103 nm.cancel(notificationId); in onHandleIntent()
DAlertService.java146 public NotificationMgrWrapper(NotificationManager nm) { in NotificationMgrWrapper() argument
147 mNm = nm; in NotificationMgrWrapper()
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/
DNotificationController.java229 final NotificationManager nm = context.getSystemService(NotificationManager.class); in makeNotificationChannel() local
235 nm.createNotificationChannel(channel); in makeNotificationChannel()
/packages/services/Telephony/src/com/android/phone/
DFakePhoneActivity.java69 NotificationManager nm = in onClick() local
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DRunningState.java456 CharSequence nm = pm.getText(name, in ensureLabel() local
458 if (nm != null) { in ensureLabel()
459 mDisplayLabel = nm; in ensureLabel()
460 mLabel = nm.toString(); in ensureLabel()
/packages/apps/Settings/src/com/android/settings/applications/
DRunningState.java456 CharSequence nm = pm.getText(name, in ensureLabel() local
458 if (nm != null) { in ensureLabel()
459 mDisplayLabel = nm; in ensureLabel()
460 mLabel = nm.toString(); in ensureLabel()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppUtility.java474 NotificationManager nm = (NotificationManager) ctx in cancelNotification() local
476 nm.cancel(BluetoothOppNotification.NOTIFICATION_ID_PROGRESS); in cancelNotification()
DBluetoothOppTransfer.java360 NotificationManager nm = (NotificationManager) mContext.getSystemService( in handleMessage() local
362 nm.cancel(mCurrentShare.mId); in handleMessage()
/packages/inputmethods/LatinIME/dictionaries/
Dtr_wordlist.combined.gz1dictionary=main:tr,locale=tr,description=Türkçe,date=1414726261, ...

12