Home
last modified time | relevance | path

Searched refs:notifications (Results 1 – 25 of 113) sorted by relevance

12345

/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/
DCarNotificationViewTest.java110 List<NotificationGroup> notifications = new ArrayList<>(); in onClickClearAllButton_callsFactoryClearNotificationsWithDismissibleNotifications() local
111 notifications.add(dismissible); in onClickClearAllButton_callsFactoryClearNotificationsWithDismissibleNotifications()
112 notifications.add(notDismissible); in onClickClearAllButton_callsFactoryClearNotificationsWithDismissibleNotifications()
113 mCarNotificationView.setNotifications(notifications); in onClickClearAllButton_callsFactoryClearNotificationsWithDismissibleNotifications()
163 List<NotificationGroup> notifications = new ArrayList<>(); in setNotifications_notEmpty_listViewIsVisible() local
164 notifications.add(dismissible); in setNotifications_notEmpty_listViewIsVisible()
165 notifications.add(notDismissible); in setNotifications_notEmpty_listViewIsVisible()
167 mCarNotificationView.setNotifications(notifications); in setNotifications_notEmpty_listViewIsVisible()
169 assertThat(mCarNotificationView.findViewById(R.id.notifications).getVisibility()) in setNotifications_notEmpty_listViewIsVisible()
177 List<NotificationGroup> notifications = new ArrayList<>(); in setNotifications_notEmpty_emptyNotificationTextViewIsGone() local
[all …]
/packages/services/Mtp/src/com/android/mtp/
DMtpDocumentsService.java65 final Notification[] notifications = intent.hasExtra(EXTRA_DEVICE_NOTIFICATIONS) ? in onStartCommand() local
68 return updateForegroundState(ids, notifications) ? START_STICKY : START_NOT_STICKY; in onStartCommand()
78 @Nullable int[] ids, @Nullable Notification[] notifications) { in updateForegroundState() argument
83 Preconditions.checkArgument(notifications != null); in updateForegroundState()
84 Preconditions.checkArgument(ids.length == notifications.length); in updateForegroundState()
91 startForeground(ids[i], notifications[i]); in updateForegroundState()
95 mNotificationManager.notify(ids[i], notifications[i]); in updateForegroundState()
120 final Notification[] notifications = new Notification[src.length]; in castToNotifications() local
122 notifications[i] = (Notification) src[i]; in castToNotifications()
124 return notifications; in castToNotifications()
/packages/modules/Permission/tests/cts/permission/permissionTestUtilLib/src/android/permission/cts/
DCtsNotificationListenerServiceUtils.kt71 val notifications = getNotifications(packageName) in <lambda>() constant
72 if (notifications.isNotEmpty()) { in <lambda>()
73 notifications.forEach { notification -> in <lambda>()
90 val notifications: MutableList<StatusBarNotification> = ArrayList() in <lambda>() constant
94 notifications.add(notification) in <lambda>()
97 return notifications in <lambda>()
113 val notifications: List<StatusBarNotification> = getNotifications(pkg) in <lambda>() constant
114 if (notifications.isEmpty()) { in <lambda>()
117 for (notification in notifications) { in <lambda>()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/secure/csml/
DDispatchResponseTest.java55 assertThat(dispatchResponse.notifications).hasSize(1); in validResponseWithTransactionError()
56 assertThat(dispatchResponse.notifications.get(0).notificationEventId) in validResponseWithTransactionError()
73 assertThat(dispatchResponse.notifications).hasSize(0); in validResponseWithOutboundDataToRemote()
93 assertThat(dispatchResponse.notifications).hasSize(0); in validResponseWithOutboundDataToHost()
119 assertThat(dispatchResponse.notifications).hasSize(1); in validResponseWithAdfSelectedNotification()
120 assertThat(dispatchResponse.notifications.get(0).notificationEventId) in validResponseWithAdfSelectedNotification()
123 dispatchResponse.notifications.get(0)).adfOid) in validResponseWithAdfSelectedNotification()
144 assertThat(dispatchResponse.notifications).hasSize(1); in validResponseWithSecureSessionEstablishedNotification()
147 dispatchResponse.notifications.get(0); in validResponseWithSecureSessionEstablishedNotification()
171 assertThat(dispatchResponse.notifications).hasSize(1); in validResponseWithSecureSessionEstablishedNotificationAndValidSessionId()
[all …]
/packages/apps/Settings/src/com/android/settings/notification/history/
DNotificationHistoryPackage.java32 TreeSet<NotificationHistory.HistoricalNotification> notifications; field in NotificationHistoryPackage
39 notifications = new TreeSet<>( in NotificationHistoryPackage()
44 if (notifications.isEmpty()) { in getMostRecent()
47 return notifications.first().getPostedTimeMs(); in getMostRecent()
57 Objects.equals(notifications, that.notifications) && in equals()
64 return Objects.hash(pkgName, uid, notifications, label, icon); in hashCode()
/packages/apps/Dialer/java/com/android/dialer/notification/
DDialerNotificationManager.java72 StatusBarNotification[] notifications = notificationManager.getActiveNotifications(); in cancel() local
74 String groupKey = findGroupKey(notifications, tag, id); in cancel()
77 getGroupSummaryAndCount(notifications, groupKey); in cancel()
93 StatusBarNotification[] notifications = notificationManager.getActiveNotifications(); in cancelAll() local
94 for (StatusBarNotification notification : notifications) { in cancelAll()
108 @NonNull StatusBarNotification[] notifications, @NonNull String tag, int id) { in findGroupKey()
109 for (StatusBarNotification notification : notifications) { in findGroupKey()
119 @NonNull StatusBarNotification[] notifications, @NonNull String groupKey) { in getGroupSummaryAndCount()
122 for (StatusBarNotification notification : notifications) { in getGroupSummaryAndCount()
DNotificationThrottler.java99 List<StatusBarNotification> notifications = getSortedMatchingNotifications(context, groupKey); in throttle() local
101 notificationManager.cancel(notifications.get(i).getTag(), notifications.get(i).getId()); in throttle()
102 throttledNotificationSet.add(notifications.get(i)); in throttle()
110 List<StatusBarNotification> notifications = new ArrayList<>(); in getSortedMatchingNotifications() local
114 notifications.add(notification); in getSortedMatchingNotifications()
118 notifications, in getSortedMatchingNotifications()
125 return notifications; in getSortedMatchingNotifications()
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/notifications/
DConsentNotificationFragment.java16 package com.android.adservices.ui.notifications;
18 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
19 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
20 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
21 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
22 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
23 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
24 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
25 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
26 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
[all …]
DConsentNotificationConfirmationFragment.java16 package com.android.adservices.ui.notifications;
18 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
19 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
20 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
21 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
22 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
23 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/ganotifications/
DConsentNotificationGaFragment.java18 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
19 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
20 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
21 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
22 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
23 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
24 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
25 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
26 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
27 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
[all …]
DConsentNotificationConfirmationGaFragment.java20 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
21 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
22 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
23 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
24 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
25 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
26 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
27 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
28 import static com.android.adservices.ui.notifications.ConsentNotificationTrigger.NOTIFICATION_ID;
54 import com.android.adservices.ui.notifications.ConsentNotificationActivity;
DConsentNotificationGaV2Screen2Fragment.java18 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
19 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
20 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
21 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
22 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
23 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
24 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
25 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
49 import com.android.adservices.ui.notifications.ConsentNotificationActivity;
DConsentNotificationPasFragment.java20 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
21 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
22 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
23 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
24 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
47 import com.android.adservices.ui.notifications.ConsentNotificationActivity;
DConsentNotificationGaV2Screen1Fragment.java19 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
20 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
21 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
22 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
45 import com.android.adservices.ui.notifications.ConsentNotificationActivity;
/packages/apps/Car/Notification/src/com/android/car/notification/
DPreprocessingManager.java136 public void init(Map<String, AlertEntry> notifications, RankingMap rankingMap) { in init() argument
137 mOldNotifications = notifications; in init()
140 process(/* showLessImportantNotifications = */ false, notifications, rankingMap); in init()
153 Map<String, AlertEntry> notifications, RankingMap rankingMap) { in process() argument
157 new ArrayList<>(notifications.values()), in process()
222 List<AlertEntry> notifications, in filter() argument
226 notifications.removeIf(alertEntry -> shouldFilter(alertEntry, rankingMap)); in filter()
233 notifications.removeIf(alertEntry -> Notification.CATEGORY_CALL.equals( in filter()
237 notifications.removeIf(alertEntry -> CarHeadsUpNotificationQueue.CATEGORY_HUN_QUEUE_INTERNAL in filter()
241 Log.d(TAG, "Filtered notifications: " + notifications); in filter()
[all …]
DCarNotificationView.java85 mListView = findViewById(R.id.notifications); in onFinishInflate()
198 public void setNotifications(List<NotificationGroup> notifications) { in setNotifications() argument
199 mNotifications = notifications; in setNotifications()
200 mAdapter.setNotifications(notifications, /* setRecyclerViewListHeaderAndFooter= */ true); in setNotifications()
334 List<NotificationGroup> notifications = new ArrayList<>(); in getAllDismissibleNotifications() local
337 notifications.add(notificationGroup); in getAllDismissibleNotifications()
340 return notifications; in getAllDismissibleNotifications()
349 private List<View> getNotificationViews(List<NotificationGroup> notifications) { in getNotificationViews() argument
351 notifications.forEach(notificationGroup -> { in getNotificationViews()
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/u18notifications/
DConsentNotificationU18Fragment.java19 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
20 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
21 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
22 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
23 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
24 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
25 import static com.android.adservices.ui.notifications.ConsentNotificationActivity.NotificationFragm…
51 import com.android.adservices.ui.notifications.ConsentNotificationActivity;
/packages/apps/Dialer/java/com/android/incallui/
DExternalCallNotifier.java78 private Map<Call, NotificationInfo> notifications = new ArrayMap<>(); field in ExternalCallNotifier
95 Assert.checkArgument(!notifications.containsKey(call)); in onExternalCallAdded()
97 notifications.put(call, info); in onExternalCallAdded()
116 Assert.checkArgument(notifications.containsKey(call)); in onExternalCallUpdated()
117 postNotification(notifications.get(call)); in onExternalCallUpdated()
133 for (NotificationInfo info : notifications.values()) { in pullExternalCall()
170 if (notifications.containsKey(info.getCall())) { in showNotifcation()
180 if (notifications.containsKey(info.getCall())) { in showNotifcation()
189 Assert.checkArgument(notifications.containsKey(call)); in dismissNotification()
193 context, NOTIFICATION_TAG, notifications.get(call).getNotificationId()); in dismissNotification()
[all …]
/packages/apps/ThemePicker/src/com/android/customization/picker/notifications/ui/section/
DNotificationSectionController.kt18 package com.android.customization.picker.notifications.ui.section
24 import com.android.customization.picker.notifications.ui.binder.NotificationSectionBinder
25 import com.android.customization.picker.notifications.ui.view.NotificationSectionView
26 import com.android.customization.picker.notifications.ui.viewmodel.NotificationSectionViewModel
/packages/modules/ExtServices/java/src/android/ext/services/notification/
DREADME.md5 A service that helps the user to manage notifications. Only one notification assistant can be
7 modify certain aspects about notifications Adjustment before they are posted.
11 lower in the shade), If ExtServices fails, framework just shows all notifications.
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/notifications/domain/interactor/
DNotificationsSnapshotRestorerTest.kt18 package com.android.customization.model.notifications.domain.interactor
22 import com.android.customization.picker.notifications.domain.interactor.NotificationsSnapshotRestor…
23 import com.android.systemui.shared.notifications.data.repository.NotificationSettingsRepository
24 import com.android.systemui.shared.notifications.domain.interactor.NotificationSettingsInteractor
/packages/services/Car/tests/BugReportApp/libs/
Dgoogle-api-client-1.30.2.jar ... google/api/client/googleapis/testing/notifications/ com/google/api/client/googleapis ...
/packages/apps/Car/DebuggingRestrictionController/libs/
Dgoogle-api-client-1.30.10.jar ... google/api/client/googleapis/testing/notifications/ com/google/api/client/googleapis ...
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DReportAndRegisterEventFallbackImplTest.java296 List<String> notifications = in testImplSuccessfullyReportsRegisteredEvents() local
298 assertThat(notifications) in testImplSuccessfullyReportsRegisteredEvents()
417 List<String> notifications = in testImplDoesNotCrashAfterSellerReportingAndRegisteringThrowsAnException() local
419 assertThat(notifications) in testImplDoesNotCrashAfterSellerReportingAndRegisteringThrowsAnException()
538 List<String> notifications = in testImplDoesNotCrashAfterBuyerReportingAndRegisteringThrowsAnException() local
540 assertThat(notifications) in testImplDoesNotCrashAfterBuyerReportingAndRegisteringThrowsAnException()
922 List<String> notifications = in testImplFailsWhenThrottled() local
924 assertThat(notifications) in testImplFailsWhenThrottled()
1220 List<String> notifications = in testImpl_onlyReportsEvent_measurementKillSwitchEnabled() local
1222 assertThat(notifications) in testImpl_onlyReportsEvent_measurementKillSwitchEnabled()
[all …]
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/picker/notifications/ui/viewmodel/
DNotificationSectionViewModelTest.kt18 package com.android.customization.picker.notifications.ui.viewmodel
23 import com.android.systemui.shared.notifications.data.repository.NotificationSettingsRepository
24 import com.android.systemui.shared.notifications.domain.interactor.NotificationSettingsInteractor

12345