Home
last modified time | relevance | path

Searched refs:statusBarNotification (Results 1 – 14 of 14) sorted by relevance

/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/
DTestNotificationListener.kt42 private sealed class NotificationEvent(val statusBarNotification: StatusBarNotification) in <lambda>() constant in com.android.safetycenter.testing.TestNotificationListener.NotificationEvent
44 private class NotificationPosted(statusBarNotification: StatusBarNotification) : in <lambda>()
45 NotificationEvent(statusBarNotification) { in <lambda>()
46 override fun toString(): String = "Posted $statusBarNotification" in <lambda>()
49 private class NotificationRemoved(statusBarNotification: StatusBarNotification) : in <lambda>()
50 NotificationEvent(statusBarNotification) { in <lambda>()
51 override fun toString(): String = "Removed $statusBarNotification" in <lambda>()
54 override fun onNotificationPosted(statusBarNotification: StatusBarNotification) { in <lambda>()
55 super.onNotificationPosted(statusBarNotification) in <lambda>()
56 if (statusBarNotification.isSafetyCenterNotification()) { in <lambda>()
[all …]
DNotificationCharacteristics.kt56 statusBarNotification: StatusBarNotification, in safetySourceIdMatches()
60 SafetyCenterIds.issueKeyFromString(statusBarNotification.tag).safetySourceId == in safetySourceIdMatches()
68 val notif = statusBarNotificationWithChannel.statusBarNotification.notification in isMatch()
77 statusBarNotificationWithChannel.statusBarNotification, in isMatch()
DStatusBarNotificationWithChannel.kt24 val statusBarNotification: StatusBarNotification, constant in com.android.safetycenter.testing.StatusBarNotificationWithChannel
/packages/apps/Car/Notification/src/com/android/car/notification/
DAlertEntry.java34 public AlertEntry(StatusBarNotification statusBarNotification) { in AlertEntry() argument
35 mStatusBarNotification = statusBarNotification; in AlertEntry()
36 mKey = statusBarNotification.getKey(); in AlertEntry()
45 public AlertEntry(StatusBarNotification statusBarNotification, long postTime) { in AlertEntry() argument
46 this(statusBarNotification); in AlertEntry()
DNotificationUtils.java90 StatusBarNotification statusBarNotification) { in isSystemApp() argument
91 PackageInfo packageInfo = getPackageInfo(context, statusBarNotification); in isSystemApp()
101 StatusBarNotification statusBarNotification) { in isSignedWithPlatformKey() argument
102 PackageInfo packageInfo = getPackageInfo(context, statusBarNotification); in isSignedWithPlatformKey()
191 StatusBarNotification statusBarNotification) { in getPackageInfo() argument
196 statusBarNotification.getPackageName(), /* flags= */ 0, in getPackageInfo()
199 Log.e(TAG, "package not found: " + statusBarNotification.getPackageName()); in getPackageInfo()
DHeadsUpEntry.java42 HeadsUpEntry(StatusBarNotification statusBarNotification) { in HeadsUpEntry() argument
43 super(statusBarNotification); in HeadsUpEntry()
/packages/modules/Permission/tests/functional/safetycenter/singleuser/src/android/safetycenter/functional/
DSafetyCenterNotificationTest.kt519 assertThat(initialNotification.statusBarNotification.key) in setSafetySourceData_twiceWithSameIssueId_updatesNotification()
520 .isEqualTo(revisedNotification.statusBarNotification.key) in setSafetySourceData_twiceWithSameIssueId_updatesNotification()
640 TestNotificationListener.cancelAndWait(notificationWithChannel.statusBarNotification.key) in setSafetySourceData_withDismissedIssueId_doesNotNotify()
676 TestNotificationListener.cancelAndWait(notificationWithChannel.statusBarNotification.key) in setSafetySourceData_withDismissedIssueIdButResurfaceDelayZero_doesNotify()
742 TestNotificationListener.cancelAndWait(notificationWithChannel.statusBarNotification.key) in setSafetySourceData_duplicateIssueOfLowerSeverityDismissed_sendsNotification()
860 TestNotificationListener.cancelAndWait(notificationWithChannel.statusBarNotification.key) in dismissingNotification_doesNotUpdateSafetyCenterData()
901 TestNotificationListener.cancelAndWait(notificationWithChannel.statusBarNotification.key) in dismissingNotification_withDuplicateIssues_allDismissed()
939 notificationWithChannel.statusBarNotification.notification.actions.firstOrNull() in sendActionPendingIntent_successful_updatesListener()
971 notificationWithChannel.statusBarNotification.notification.actions.firstOrNull() in sendActionPendingIntent_successfulNoSuccessMessage_removesNotification()
999 notificationWithChannel.statusBarNotification.notification.actions.firstOrNull() in sendActionPendingIntent_successfulWithSuccessMessage_successNotification()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/voip/
DVoipCallMonitor.java361 public void postNotification(StatusBarNotification statusBarNotification) { in postNotification() argument
362 mNotificationListener.onNotificationPosted(statusBarNotification); in postNotification()
366 public void removeNotification(StatusBarNotification statusBarNotification) { in removeNotification() argument
367 mNotificationListener.onNotificationRemoved(statusBarNotification); in removeNotification()
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DAccessibilityPrivacySourceTest.kt240 val statusBarNotification = in testNotificationClickOpenSafetyCenter() constant
242 Assert.assertNotNull(statusBarNotification) in testNotificationClickOpenSafetyCenter()
243 val contentIntent = statusBarNotification!!.notification.contentIntent in testNotificationClickOpenSafetyCenter()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmNotifications.kt257 for (statusBarNotification in notifications) { in getFirstActiveNotification() variable
258 val n: Notification = statusBarNotification.getNotification() in getFirstActiveNotification()
260 statusBarNotification.getId() != canceledNotificationId) { in getFirstActiveNotification()
275 for (statusBarNotification in notifications) { in getActiveGroupSummaryNotification() constant
276 val n: Notification = statusBarNotification.getNotification() in getActiveGroupSummaryNotification()
/packages/apps/Car/systemlibs/car-assist-client-lib/src/com/android/car/assist/client/
DFallbackAssistant.java241 ActionRequestInfo(@Nullable StatusBarNotification statusBarNotification, in ActionRequestInfo() argument
243 mStatusBarNotification = statusBarNotification; in ActionRequestInfo()
/packages/modules/Permission/tests/hostside/safetycenter/helper-app/src/android/safetycenter/hostside/device/
DSafetyCenterNotificationLoggingHelperTests.kt104 statusBarNotificationWithChannel.statusBarNotification.notification.contentIntent in newTestDataWithNotifiableIssue()
/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DSafetyLabelChangesJobServiceTest.kt192 val statusBarNotification = in runNotificationJob_whenLocationSharingUpdatesForLocationGrantedApps_showsNotification() constant
194 val contentIntent = statusBarNotification!!.notification.contentIntent in runNotificationJob_whenLocationSharingUpdatesForLocationGrantedApps_showsNotification()
/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/
DPreprocessingManagerTest.java1231 StatusBarNotification statusBarNotification = new StatusBarNotification( in getEmptyAutoGeneratedGroupSummary() local
1234 statusBarNotification.setOverrideGroupKey(OVERRIDE_GROUP_KEY); in getEmptyAutoGeneratedGroupSummary()
1236 return new AlertEntry(statusBarNotification); in getEmptyAutoGeneratedGroupSummary()