| /packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/ |
| D | NotificationUtilsTest.java | 102 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/ |
| D | CompanionDeviceGlassesRoleBehavior.java | 26 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/ |
| D | CompanionDeviceComputerRoleBehavior.java | 26 import com.android.role.controller.util.NotificationUtils; 38 NotificationUtils.grantNotificationAccessForPackageAsUser(packageName, user, context); in grantAsUser() 46 NotificationUtils.revokeNotificationAccessForPackageAsUser(packageName, user, context); in revokeAsUser()
|
| D | CompanionDeviceAppStreamingRoleBehavior.java | 28 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/ |
| D | CompanionDeviceWatchRoleBehavior.java | 26 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/ |
| 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; 337 && NotificationUtils.isSystemApp(getContext(), sbn)) { in setUseLauncherIcon()
|
| /packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/util/ |
| D | NotificationUtils.java | 39 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/ |
| D | CarNotificationListener.java | 91 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()
|
| D | NotificationClickHandlerFactory.java | 336 mBarService.onClearAllNotifications(NotificationUtils.getCurrentUser(context)); 360 if (NotificationUtils.isVisibleBackgroundUser(context)) { 367 UserHandle.of(NotificationUtils.getCurrentUser(context)));
|
| D | NotificationUtils.java | 36 public class NotificationUtils { class 45 private NotificationUtils() { in NotificationUtils() method in NotificationUtils
|
| D | PreprocessingManager.java | 266 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()
|
| D | CarHeadsUpNotificationQueue.java | 245 UserHandle.of(NotificationUtils.getCurrentUser(mContext))); in triggerCallback() 312 UserHandle.of(NotificationUtils.getCurrentUser(mContext))); in onStateChange()
|
| D | CarNotificationCenterActivity.java | 127 if (NotificationUtils.isVisibleBackgroundUser(this)) { in notifyVisibilityChanged()
|
| D | Beeper.java | 248 0, UserHandle.of(NotificationUtils.getCurrentUser(mContext))); in getContextForForegroundUser()
|
| D | CarHeadsUpNotificationManager.java | 442 CarNotificationTypeItem notificationTypeItem = NotificationUtils.getNotificationViewType( in showHeadsUp() 757 if (NotificationUtils.isSystemPrivilegedOrPlatformKey(mContext, alertEntry)) { in shouldShowHeadsUp()
|
| D | CarNotificationView.java | 475 UserHandle.of(NotificationUtils.getCurrentUser(getContext()))); 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
|