| /packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/ |
| D | NotificationUtilsTest.java | 98 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 …]
|
| D | CarHeadsUpNotificationQueueTest.java | 114 .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/ |
| D | CompanionDeviceAppStreamingRoleBehavior.java | 25 import com.android.role.controller.util.NotificationUtils; 34 NotificationUtils.grantNotificationAccessForPackage(context, packageName); in grant() 39 NotificationUtils.revokeNotificationAccessForPackage(context, packageName); in revoke()
|
| D | CompanionDeviceGlassesRoleBehavior.java | 25 import com.android.role.controller.util.NotificationUtils; 34 NotificationUtils.grantNotificationAccessForPackage(context, packageName); in grant() 39 NotificationUtils.revokeNotificationAccessForPackage(context, packageName); in revoke()
|
| D | CompanionDeviceComputerRoleBehavior.java | 25 import com.android.role.controller.util.NotificationUtils; 34 NotificationUtils.grantNotificationAccessForPackage(context, packageName); in grant() 39 NotificationUtils.revokeNotificationAccessForPackage(context, packageName); in revoke()
|
| D | CompanionDeviceWatchRoleBehavior.java | 25 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/ |
| D | CarNotificationBaseViewHolder.java | 34 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()
|
| D | CarNotificationFooterViewHolder.java | 30 import com.android.car.notification.NotificationUtils; 97 UserHandle.of(NotificationUtils.getCurrentUser(mContext))); in manageButtonOnClickListener()
|
| D | CarNotificationHeaderViewHolder.java | 31 import com.android.car.notification.NotificationUtils; 110 UserHandle.of(NotificationUtils.getCurrentUser(mContext))); in manageButtonOnClickListener()
|
| D | ProgressNotificationViewHolder.java | 27 import com.android.car.notification.NotificationUtils; 100 int calculatedColor = NotificationUtils.resolveContrastColor( in bindBody()
|
| D | CarNotificationBodyView.java | 41 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/ |
| D | NotificationUtils.java | 38 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/ |
| D | CarNotificationListener.java | 90 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()
|
| D | NotificationUtils.java | 36 public class NotificationUtils { class 45 private NotificationUtils() { in NotificationUtils() method in NotificationUtils
|
| D | CarHeadsUpNotificationQueue.java | 245 UserHandle.of(NotificationUtils.getCurrentUser(mContext))); in triggerCallback() 312 UserHandle.of(NotificationUtils.getCurrentUser(mContext))); in onStateChange()
|
| D | CarHeadsUpNotificationManager.java | 412 CarNotificationTypeItem notificationTypeItem = NotificationUtils.getNotificationViewType( in showHeadsUp() 697 if (NotificationUtils.isSystemPrivilegedOrPlatformKey(mContext, alertEntry)) { in shouldShowHeadsUp()
|
| D | Beeper.java | 248 0, UserHandle.of(NotificationUtils.getCurrentUser(mContext))); in getContextForForegroundUser()
|
| D | PreprocessingManager.java | 274 if (NotificationUtils.isSystemPrivilegedOrPlatformKey(mContext, alertEntry)) { in isLessImportantForegroundNotification() 284 && NotificationUtils.isSystemPrivilegedOrPlatformKey(mContext, alertEntry); in isLessImportantForegroundNotification()
|
| D | NotificationClickHandlerFactory.java | 335 mBarService.onClearAllNotifications(NotificationUtils.getCurrentUser(context));
|
| D | CarNotificationView.java | 440 UserHandle.of(NotificationUtils.getCurrentUser(mContext))); in manageButtonOnClickListener()
|
| /packages/apps/DeskClock/src/com/android/deskclock/ |
| D | NotificationUtils.kt | 27 object NotificationUtils { object 28 private val TAG = NotificationUtils::class.java.simpleName
|
| D | AlarmInitReceiver.kt | 66 NotificationUtils.updateNotificationChannels(context) in onReceive()
|
| /packages/inputmethods/LatinIME/tools/EditTextVariations/src/com/android/inputmethod/tools/edittextvariations/ |
| D | NotificationBroadcastReceiver.java | 29 NotificationUtils.onReceiveDirectReply(context, intent); in onReceive()
|
| D | EditTextVariations.java | 186 if (NotificationUtils.DIRECT_REPLY_SUPPORTED) { in onCreateOptionsMenu() 232 NotificationUtils.sendDirectReplyNotification(this); in onOptionsItemSelected() 255 NotificationUtils.sendDirectReplyNotification(this); in onRequestPermissionsResult()
|
| D | NotificationUtils.java | 34 final class NotificationUtils { class
|