Home
last modified time | relevance | path

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

/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/
DNotificationUtilsTest.java74 assertThat(NotificationUtils.isSystemPrivilegedOrPlatformKey(mContext, mAlertEntry)) in onIsSystemPrivilegedOrPlatformKey_isPlatformKey_returnsTrue()
84 assertThat(NotificationUtils.isSystemPrivilegedOrPlatformKey(mContext, mAlertEntry)) in onIsSystemPrivilegedOrPlatformKey_isSystemPrivileged_returnsTrue()
94 assertThat(NotificationUtils.isSystemPrivilegedOrPlatformKey(mContext, mAlertEntry)) in onIsSystemPrivilegedOrPlatformKey_isSystemNotPrivileged_returnsFalse()
104 assertThat(NotificationUtils.isSystemPrivilegedOrPlatformKey(mContext, mAlertEntry)) in onIsSystemPrivilegedOrPlatformKey_isNeither_returnsFalse()
114 assertThat(NotificationUtils.isSystemOrPlatformKey(mContext, mAlertEntry)) in onIsSystemOrPlatformKey_isPlatformKey_returnsTrue()
124 assertThat(NotificationUtils.isSystemOrPlatformKey(mContext, mAlertEntry)) in onIsSystemOrPlatformKey_isSystemPrivileged_returnsTrue()
134 assertThat(NotificationUtils.isSystemOrPlatformKey(mContext, mAlertEntry)) in onIsSystemOrPlatformKey_isSystemNotPrivileged_returnsTrue()
144 assertThat(NotificationUtils.isSystemOrPlatformKey(mContext, mAlertEntry)) in onIsSystemOrPlatformKey_isNeither_returnsFalse()
154 assertThat(NotificationUtils.isSystemApp(mContext, mAlertEntry.getStatusBarNotification())) in onIsSystemApp_isPlatformKey_returnsTrue()
164 assertThat(NotificationUtils.isSystemApp(mContext, mAlertEntry.getStatusBarNotification())) in onIsSystemApp_isNotPlatformKey_returnsFalse()
[all …]
/packages/apps/Car/Notification/src/com/android/car/notification/template/
DCarNotificationBaseViewHolder.java34 import com.android.car.notification.NotificationUtils;
126 mDefaultBackgroundColor = NotificationUtils.getAttrColor(mContext, in CarNotificationBaseViewHolder()
128 mDefaultCarAccentColor = NotificationUtils.getAttrColor(mContext, in CarNotificationBaseViewHolder()
230 mCalculatedPrimaryForegroundColor = NotificationUtils.resolveContrastColor( in initializeColors()
232 mCalculatedSecondaryForegroundColor = NotificationUtils.resolveContrastColor( in initializeColors()
246 NotificationUtils.isSystemApp(mContext, getAlertEntry().getStatusBarNotification()); in canChangeCardBackgroundColor()
247 boolean isSignedWithPlatformKey = NotificationUtils.isSignedWithPlatformKey(mContext, in canChangeCardBackgroundColor()
DGroupSummaryNotificationViewHolder.java26 import com.android.car.notification.NotificationUtils;
52 mCardBackgroundColor = NotificationUtils.getAttrColor(getContext(), in GroupSummaryNotificationViewHolder()
54 mDefaultTextColor = NotificationUtils.getAttrColor(getContext(), in GroupSummaryNotificationViewHolder()
DProgressNotificationViewHolder.java27 import com.android.car.notification.NotificationUtils;
50 mCardBackgroundColor = NotificationUtils.getAttrColor(view.getContext(), in ProgressNotificationViewHolder()
92 int calculatedColor = NotificationUtils.resolveContrastColor( in bindBody()
DCarNotificationBodyView.java41 import com.android.car.notification.NotificationUtils;
108 NotificationUtils.getAttrColor(getContext(), android.R.attr.textColorPrimary);
110 NotificationUtils.getAttrColor(getContext(), android.R.attr.textColorSecondary);
322 && NotificationUtils.isSystemApp(getContext(), sbn)) { in setUseLauncherIcon()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/model/
DCompanionDeviceWatchRoleBehavior.java23 import com.android.permissioncontroller.role.utils.NotificationUtils;
32 NotificationUtils.grantNotificationAccessForPackage(context, packageName); in grant()
37 NotificationUtils.revokeNotificationAccessForPackage(context, packageName); in revoke()
DCompanionDeviceAppStreamingRoleBehavior.java23 import com.android.permissioncontroller.role.utils.NotificationUtils;
32 NotificationUtils.grantNotificationAccessForPackage(context, packageName); in grant()
37 NotificationUtils.revokeNotificationAccessForPackage(context, packageName); in revoke()
DCompanionDeviceComputerRoleBehavior.java23 import com.android.permissioncontroller.role.utils.NotificationUtils;
32 NotificationUtils.grantNotificationAccessForPackage(context, packageName); in grant()
37 NotificationUtils.revokeNotificationAccessForPackage(context, packageName); in revoke()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/utils/
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/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/apps/Car/Notification/src/com/android/car/notification/
DNotificationUtils.java33 public class NotificationUtils { class
42 private NotificationUtils() { in NotificationUtils() method in NotificationUtils
DCarHeadsUpNotificationManager.java324 CarNotificationTypeItem notificationTypeItem = NotificationUtils.getNotificationViewType( in showHeadsUp()
608 if (NotificationUtils.isSystemPrivilegedOrPlatformKey(mContext, alertEntry)) { in shouldShowHeadsUp()
DPreprocessingManager.java270 if (NotificationUtils.isSystemPrivilegedOrPlatformKey(mContext, alertEntry)) { in isLessImportantForegroundNotification()
280 && NotificationUtils.isSystemPrivilegedOrPlatformKey(mContext, alertEntry); in isLessImportantForegroundNotification()
/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