Home
last modified time | relevance | path

Searched refs:notificationId (Results 1 – 13 of 13) sorted by relevance

/cts/tests/app/NotificationTrampolineBase/src/com/android/test/notificationtrampoline/
DNotificationTrampolineTestService.java96 for (int notificationId : mPostedNotifications) { in onDestroy()
97 mNotificationManager.cancel(notificationId); in onDestroy()
109 int notificationId = message.arg1; in handleMessage() local
121 postNotification(notificationId, in handleMessage()
130 postNotification(notificationId, in handleMessage()
137 .filter(sb -> sb.getId() == notificationId) in handleMessage()
165 private void postNotification(int notificationId, PendingIntent intent) { in postNotification() argument
174 mNotificationManager.notify(notificationId, notification); in postNotification()
175 mPostedNotifications.add(notificationId); in postNotification()
/cts/tests/app/src/android/app/cts/
DCloseSystemDialogsTest.java208 int notificationId = 42; in testCloseSystemDialogs_inTrampolineWhenTargetSdkCurrent_isBlockedAndThrows() local
212 mService.postNotification(notificationId, new FutureReceiver(result), in testCloseSystemDialogs_inTrampolineWhenTargetSdkCurrent_isBlockedAndThrows()
215 mNotificationHelper.clickNotification(notificationId, /* searchAll */ true); in testCloseSystemDialogs_inTrampolineWhenTargetSdkCurrent_isBlockedAndThrows()
223 int notificationId = 43; in testCloseSystemDialogs_inTrampolineWhenTargetSdk30_isSent() local
227 mService.postNotification(notificationId, new FutureReceiver(result), in testCloseSystemDialogs_inTrampolineWhenTargetSdk30_isSent()
230 mNotificationHelper.clickNotification(notificationId, /* searchAll */ true); in testCloseSystemDialogs_inTrampolineWhenTargetSdk30_isSent()
240 int notificationId = 44; in testCloseSystemDialogs_inTrampolineViaPendingIntentWhenTargetSdkCurrent_isBlocked() local
244 mService.postNotification(notificationId, new FutureReceiver(result), in testCloseSystemDialogs_inTrampolineViaPendingIntentWhenTargetSdkCurrent_isBlocked()
247 mNotificationHelper.clickNotification(notificationId, /* searchAll */ true); in testCloseSystemDialogs_inTrampolineViaPendingIntentWhenTargetSdkCurrent_isBlocked()
255 int notificationId = 45; in testCloseSystemDialogs_inTrampolineViaPendingIntentWhenTargetSdk30_isSent() local
[all …]
DNotificationManagerTest.java943 int notificationId, Handler callback) throws Exception { in sendTrampolineMessage() argument
952 service.send(Message.obtain(null, message, notificationId, -1, new Messenger(callback))); in sendTrampolineMessage()
1733 final int notificationId = 1; in testGetSuppressedVisualEffectsOff_ranking() local
1734 sendNotification(notificationId, R.drawable.black); in testGetSuppressedVisualEffectsOff_ranking()
1772 final int notificationId = 1; in testGetSuppressedVisualEffects_ranking() local
1774 sendNotification(notificationId, R.drawable.black); in testGetSuppressedVisualEffects_ranking()
1809 final int notificationId = 1; in testKeyChannelGroupOverrideImportanceExplanation_ranking() local
1810 sendNotification(notificationId, R.drawable.black); in testKeyChannelGroupOverrideImportanceExplanation_ranking()
1817 StatusBarNotification sbn = findPostedNotification(notificationId, false); in testKeyChannelGroupOverrideImportanceExplanation_ranking()
3107 private Uri getNotificationBackgroundImageUri(int notificationId) { in getNotificationBackgroundImageUri() argument
[all …]
/cts/tests/tests/notificationlegacy/notificationlegacy20/src/android/app/notification/legacy20/cts/
DLegacyNotificationManager20Test.java96 final int notificationId = 1; in testNotificationListener_cancelNotifications() local
98 sendNotification(notificationId, R.drawable.icon_black); in testNotificationListener_cancelNotifications()
101 StatusBarNotification sbn = findPostedNotification(notificationId); in testNotificationListener_cancelNotifications()
105 if (!checkNotificationExistence(notificationId, /*shouldExist=*/ false)) { in testNotificationListener_cancelNotifications()
111 sendNotification(notificationId, R.drawable.icon_black); in testNotificationListener_cancelNotifications()
115 if (!checkNotificationExistence(notificationId, /*shouldExist=*/ false)) { in testNotificationListener_cancelNotifications()
116 fail("Failed to cancel notification id=" + notificationId); in testNotificationListener_cancelNotifications()
/cts/tests/app/shared/src/android/app/stubs/shared/
DCloseSystemDialogsTestService.java113 public void postNotification(int notificationId, ResultReceiver receiver, in postNotification() argument
137 notificationId, in postNotification()
165 private void notify(int notificationId, PendingIntent intent) { in notify() argument
174 mNotificationManager.notify(notificationId, notification); in notify()
DICloseSystemDialogsTestsService.aidl40 void postNotification(int notificationId, in ResultReceiver receiver, boolean usePendingIntent); in postNotification() argument
/cts/hostsidetests/systemui/app/src/android/systemui/cts/
DTestNotificationActivity.java57 final int notificationId = R.layout.activity_notification; in doShowNotification() local
67 notificationId, in doShowNotification()
/cts/tests/app/src/android/app/cts/android/app/cts/tools/
DNotificationHelper.java41 public void clickNotification(int notificationId, boolean searchAll) throws CanceledException { in clickNotification() argument
42 findPostedNotification(notificationId, searchAll).getNotification().contentIntent.send(); in clickNotification()
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/
DStatsdCtsForegroundActivity.java165 final int notificationId = R.layout.activity_main; in doShowNotification() local
175 notificationId, in doShowNotification()
181 nm.cancel(notificationId); in doShowNotification()
/cts/tests/tests/notificationlegacy/notificationlegacy29/src/android/app/notification/legacy29/cts/
DTestNotificationAssistant.java38 int notificationId = 1357; field in TestNotificationAssistant
115 + "|" + notificationId)) { in onNotificationVisibilityChanged()
DNotificationAssistantServiceTest.java571 sendConversationNotification(mNotificationAssistantService.notificationId);
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DUtils.java84 static void showBugreportNotification(Context context, String msg, int notificationId) { in showBugreportNotification() argument
100 mNotificationManager.notify(notificationId, notification); in showBugreportNotification()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityEndToEndTest.java456 final int notificationId = 1; in testTypeNotificationStateChangedAccessibilityEvent() local
491 .notify(notificationId, notification); in testTypeNotificationStateChangedAccessibilityEvent()