Home
last modified time | relevance | path

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

12

/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/
DNotificationUtilsTest.java102 assertThat(NotificationUtils.isSystemPrivilegedOrPlatformKey(mContext, mAlertEntry)) in onIsSystemPrivilegedOrPlatformKey_isPlatformKey_returnsTrue()
112 assertThat(NotificationUtils.isSystemPrivilegedOrPlatformKey(mContext, mAlertEntry)) in onIsSystemPrivilegedOrPlatformKey_isSystemPrivileged_returnsTrue()
122 assertThat(NotificationUtils.isSystemPrivilegedOrPlatformKey(mContext, mAlertEntry)) in onIsSystemPrivilegedOrPlatformKey_isSystemNotPrivileged_returnsFalse()
132 assertThat(NotificationUtils.isSystemPrivilegedOrPlatformKey(mContext, mAlertEntry)) in onIsSystemPrivilegedOrPlatformKey_isNeither_returnsFalse()
142 assertThat(NotificationUtils.isSystemOrPlatformKey(mContext, mAlertEntry)) in onIsSystemOrPlatformKey_isPlatformKey_returnsTrue()
152 assertThat(NotificationUtils.isSystemOrPlatformKey(mContext, mAlertEntry)) in onIsSystemOrPlatformKey_isSystemPrivileged_returnsTrue()
162 assertThat(NotificationUtils.isSystemOrPlatformKey(mContext, mAlertEntry)) in onIsSystemOrPlatformKey_isSystemNotPrivileged_returnsTrue()
172 assertThat(NotificationUtils.isSystemOrPlatformKey(mContext, mAlertEntry)) in onIsSystemOrPlatformKey_isNeither_returnsFalse()
182 assertThat(NotificationUtils.isSystemApp(mContext, mAlertEntry.getStatusBarNotification())) in onIsSystemApp_isPlatformKey_returnsTrue()
192 assertThat(NotificationUtils.isSystemApp(mContext, mAlertEntry.getStatusBarNotification())) in onIsSystemApp_isNotPlatformKey_returnsFalse()
[all …]
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/behavior/v34/
DCompanionDeviceGlassesRoleBehavior.java26 import com.android.role.controller.util.NotificationUtils;
38 NotificationUtils.grantNotificationAccessForPackageAsUser(packageName, user, context); in grantAsUser()
46 NotificationUtils.revokeNotificationAccessForPackageAsUser(packageName, user, context); in revokeAsUser()
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/behavior/v33/
DCompanionDeviceComputerRoleBehavior.java26 import com.android.role.controller.util.NotificationUtils;
38 NotificationUtils.grantNotificationAccessForPackageAsUser(packageName, user, context); in grantAsUser()
46 NotificationUtils.revokeNotificationAccessForPackageAsUser(packageName, user, context); in revokeAsUser()
DCompanionDeviceAppStreamingRoleBehavior.java28 import com.android.role.controller.util.NotificationUtils;
40 NotificationUtils.grantNotificationAccessForPackageAsUser(packageName, user, context); in grantAsUser()
48 NotificationUtils.revokeNotificationAccessForPackageAsUser(packageName, user, context); in revokeAsUser()
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/behavior/v31/
DCompanionDeviceWatchRoleBehavior.java26 import com.android.role.controller.util.NotificationUtils;
38 NotificationUtils.grantNotificationAccessForPackageAsUser(packageName, user, context); in grantAsUser()
46 NotificationUtils.revokeNotificationAccessForPackageAsUser(packageName, user, context); in revokeAsUser()
/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;
337 && NotificationUtils.isSystemApp(getContext(), sbn)) { in setUseLauncherIcon()
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/util/
DNotificationUtils.java39 public final class NotificationUtils { class
41 public static final String LOG_TAG = NotificationUtils.class.getSimpleName();
43 private NotificationUtils() {} in NotificationUtils() method in NotificationUtils
/packages/apps/Car/Notification/src/com/android/car/notification/
DCarNotificationListener.java91 NotificationUtils.getCurrentUser(context)); in registerAsSystemService()
146 Log.d(TAG, "Current user: " + NotificationUtils.getCurrentUser(getContext())); in onNotificationPosted()
170 Log.d(TAG, "Current user: " + NotificationUtils.getCurrentUser(getContext())); in onNotificationRemoved()
313 return (sbn.getUser().getIdentifier() == NotificationUtils.getCurrentUser(getContext()) in isNotificationForCurrentUser()
DNotificationClickHandlerFactory.java336 mBarService.onClearAllNotifications(NotificationUtils.getCurrentUser(context));
360 if (NotificationUtils.isVisibleBackgroundUser(context)) {
367 UserHandle.of(NotificationUtils.getCurrentUser(context)));
DNotificationUtils.java36 public class NotificationUtils { class
45 private NotificationUtils() { in NotificationUtils() method in NotificationUtils
DPreprocessingManager.java266 if (NotificationUtils.isSystemPrivilegedOrPlatformKey(mContext, alertEntry)) { in isLessImportantForegroundNotification()
276 && NotificationUtils.isSystemPrivilegedOrPlatformKey(mContext, alertEntry); in isLessImportantForegroundNotification()
568 boolean isProgress = NotificationUtils.isProgress(notification); in additionalGroupAndRank()
630 && NotificationUtils.isProgress(oldNotification.getNotification()) in additionalGroupAndRank()
DCarHeadsUpNotificationQueue.java245 UserHandle.of(NotificationUtils.getCurrentUser(mContext))); in triggerCallback()
312 UserHandle.of(NotificationUtils.getCurrentUser(mContext))); in onStateChange()
DCarNotificationCenterActivity.java127 if (NotificationUtils.isVisibleBackgroundUser(this)) { in notifyVisibilityChanged()
DBeeper.java248 0, UserHandle.of(NotificationUtils.getCurrentUser(mContext))); in getContextForForegroundUser()
DCarHeadsUpNotificationManager.java442 CarNotificationTypeItem notificationTypeItem = NotificationUtils.getNotificationViewType( in showHeadsUp()
757 if (NotificationUtils.isSystemPrivilegedOrPlatformKey(mContext, alertEntry)) { in shouldShowHeadsUp()
DCarNotificationView.java475 UserHandle.of(NotificationUtils.getCurrentUser(getContext()))); 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

12