Home
last modified time | relevance | path

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

/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/
DNotificationUtilsTest.java98 assertThat(NotificationUtils.isSystemPrivilegedOrPlatformKey(mContext, mAlertEntry)) in onIsSystemPrivilegedOrPlatformKey_isPlatformKey_returnsTrue()
108 assertThat(NotificationUtils.isSystemPrivilegedOrPlatformKey(mContext, mAlertEntry)) in onIsSystemPrivilegedOrPlatformKey_isSystemPrivileged_returnsTrue()
118 assertThat(NotificationUtils.isSystemPrivilegedOrPlatformKey(mContext, mAlertEntry)) in onIsSystemPrivilegedOrPlatformKey_isSystemNotPrivileged_returnsFalse()
128 assertThat(NotificationUtils.isSystemPrivilegedOrPlatformKey(mContext, mAlertEntry)) in onIsSystemPrivilegedOrPlatformKey_isNeither_returnsFalse()
138 assertThat(NotificationUtils.isSystemOrPlatformKey(mContext, mAlertEntry)) in onIsSystemOrPlatformKey_isPlatformKey_returnsTrue()
148 assertThat(NotificationUtils.isSystemOrPlatformKey(mContext, mAlertEntry)) in onIsSystemOrPlatformKey_isSystemPrivileged_returnsTrue()
158 assertThat(NotificationUtils.isSystemOrPlatformKey(mContext, mAlertEntry)) in onIsSystemOrPlatformKey_isSystemNotPrivileged_returnsTrue()
168 assertThat(NotificationUtils.isSystemOrPlatformKey(mContext, mAlertEntry)) in onIsSystemOrPlatformKey_isNeither_returnsFalse()
178 assertThat(NotificationUtils.isSystemApp(mContext, mAlertEntry.getStatusBarNotification())) in onIsSystemApp_isPlatformKey_returnsTrue()
188 assertThat(NotificationUtils.isSystemApp(mContext, mAlertEntry.getStatusBarNotification())) in onIsSystemApp_isNotPlatformKey_returnsFalse()
[all …]
DCarHeadsUpNotificationQueueTest.java114 .spyStatic(NotificationUtils.class) in setup()
120 ExtendedMockito.doReturn(USER_ID).when(() -> NotificationUtils.getCurrentUser(any())); in setup()
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/behavior/
DCompanionDeviceAppStreamingRoleBehavior.java25 import com.android.role.controller.util.NotificationUtils;
34 NotificationUtils.grantNotificationAccessForPackage(context, packageName); in grant()
39 NotificationUtils.revokeNotificationAccessForPackage(context, packageName); in revoke()
DCompanionDeviceGlassesRoleBehavior.java25 import com.android.role.controller.util.NotificationUtils;
34 NotificationUtils.grantNotificationAccessForPackage(context, packageName); in grant()
39 NotificationUtils.revokeNotificationAccessForPackage(context, packageName); in revoke()
DCompanionDeviceComputerRoleBehavior.java25 import com.android.role.controller.util.NotificationUtils;
34 NotificationUtils.grantNotificationAccessForPackage(context, packageName); in grant()
39 NotificationUtils.revokeNotificationAccessForPackage(context, packageName); in revoke()
DCompanionDeviceWatchRoleBehavior.java25 import com.android.role.controller.util.NotificationUtils;
34 NotificationUtils.grantNotificationAccessForPackage(context, packageName); in grant()
39 NotificationUtils.revokeNotificationAccessForPackage(context, packageName); in revoke()
/packages/apps/Car/Notification/src/com/android/car/notification/template/
DCarNotificationBaseViewHolder.java34 import com.android.car.notification.NotificationUtils;
143 mDefaultCarAccentColor = NotificationUtils.getAttrColor(mContext, in CarNotificationBaseViewHolder()
277 mCalculatedPrimaryForegroundColor = NotificationUtils.resolveContrastColor( in initializeColors()
279 mCalculatedSecondaryForegroundColor = NotificationUtils.resolveContrastColor( in initializeColors()
293 NotificationUtils.isSystemApp(mContext, getAlertEntry().getStatusBarNotification()); in canChangeCardBackgroundColor()
294 boolean isSignedWithPlatformKey = NotificationUtils.isSignedWithPlatformKey(mContext, in canChangeCardBackgroundColor()
DCarNotificationFooterViewHolder.java30 import com.android.car.notification.NotificationUtils;
97 UserHandle.of(NotificationUtils.getCurrentUser(mContext))); in manageButtonOnClickListener()
DCarNotificationHeaderViewHolder.java31 import com.android.car.notification.NotificationUtils;
110 UserHandle.of(NotificationUtils.getCurrentUser(mContext))); in manageButtonOnClickListener()
DProgressNotificationViewHolder.java27 import com.android.car.notification.NotificationUtils;
100 int calculatedColor = NotificationUtils.resolveContrastColor( in bindBody()
DCarNotificationBodyView.java41 import com.android.car.notification.NotificationUtils;
329 && NotificationUtils.isSystemApp(getContext(), sbn)) { in setUseLauncherIcon()
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/util/
DNotificationUtils.java38 public final class NotificationUtils { class
40 public static final String LOG_TAG = NotificationUtils.class.getSimpleName();
42 private NotificationUtils() {} in NotificationUtils() method in NotificationUtils
/packages/apps/Car/Notification/src/com/android/car/notification/
DCarNotificationListener.java90 NotificationUtils.getCurrentUser(context)); in registerAsSystemService()
145 Log.d(TAG, "Current user: " + NotificationUtils.getCurrentUser(getContext())); in onNotificationPosted()
169 Log.d(TAG, "Current user: " + NotificationUtils.getCurrentUser(getContext())); in onNotificationRemoved()
299 return (sbn.getUser().getIdentifier() == NotificationUtils.getCurrentUser(getContext()) in isNotificationForCurrentUser()
DNotificationUtils.java36 public class NotificationUtils { class
45 private NotificationUtils() { in NotificationUtils() method in NotificationUtils
DCarHeadsUpNotificationQueue.java245 UserHandle.of(NotificationUtils.getCurrentUser(mContext))); in triggerCallback()
312 UserHandle.of(NotificationUtils.getCurrentUser(mContext))); in onStateChange()
DCarHeadsUpNotificationManager.java412 CarNotificationTypeItem notificationTypeItem = NotificationUtils.getNotificationViewType( in showHeadsUp()
697 if (NotificationUtils.isSystemPrivilegedOrPlatformKey(mContext, alertEntry)) { in shouldShowHeadsUp()
DBeeper.java248 0, UserHandle.of(NotificationUtils.getCurrentUser(mContext))); in getContextForForegroundUser()
DPreprocessingManager.java274 if (NotificationUtils.isSystemPrivilegedOrPlatformKey(mContext, alertEntry)) { in isLessImportantForegroundNotification()
284 && NotificationUtils.isSystemPrivilegedOrPlatformKey(mContext, alertEntry); in isLessImportantForegroundNotification()
DNotificationClickHandlerFactory.java335 mBarService.onClearAllNotifications(NotificationUtils.getCurrentUser(context));
DCarNotificationView.java440 UserHandle.of(NotificationUtils.getCurrentUser(mContext))); in manageButtonOnClickListener()
/packages/apps/DeskClock/src/com/android/deskclock/
DNotificationUtils.kt27 object NotificationUtils { object
28 private val TAG = NotificationUtils::class.java.simpleName
DAlarmInitReceiver.kt66 NotificationUtils.updateNotificationChannels(context) in onReceive()
/packages/inputmethods/LatinIME/tools/EditTextVariations/src/com/android/inputmethod/tools/edittextvariations/
DNotificationBroadcastReceiver.java29 NotificationUtils.onReceiveDirectReply(context, intent); in onReceive()
DEditTextVariations.java186 if (NotificationUtils.DIRECT_REPLY_SUPPORTED) { in onCreateOptionsMenu()
232 NotificationUtils.sendDirectReplyNotification(this); in onOptionsItemSelected()
255 NotificationUtils.sendDirectReplyNotification(this); in onRequestPermissionsResult()
DNotificationUtils.java34 final class NotificationUtils { class