Home
last modified time | relevance | path

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

123

/packages/modules/IntentResolver/java/src/com/android/intentresolver/validation/
DFindings.kt24 val importance: Importance constant
35 when (importance) {
53 override val importance = WARNING constant in com.android.intentresolver.validation.IgnoredValue
61 override val importance: Importance, constant in com.android.intentresolver.validation.NoValue
69 if (importance == CRITICAL) {
79 override val importance: Importance, constant in com.android.intentresolver.validation.WrongElementType
96 override val importance: Importance, constant in com.android.intentresolver.validation.ValueIsWrongType
111 override val importance: Importance constant in com.android.intentresolver.validation.UncaughtException
DValidation.kt69 fun validate(source: (String) -> Any?, importance: Importance): ValidationResult<T> in validate()
116 private fun <T> validate(property: Validator<T>, importance: Importance): T? { in validate()
117 return runCatching { property.validate(source, importance) } in validate()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/
DAppImportanceFilter.java153 int importance = mActivityManager.getPackageImportance(appPackageName); in assertCallerIsInForeground() local
156 appPackageName, importance, mImportanceThresholdSupplier.get()); in assertCallerIsInForeground()
157 if (importance > mImportanceThresholdSupplier.get()) { in assertCallerIsInForeground()
161 appPackageName, importance, mImportanceThresholdSupplier.get()); in assertCallerIsInForeground()
197 int importance; in assertCallerIsInForeground() local
199 importance = mActivityManager.getUidImportance(appUid); in assertCallerIsInForeground()
213 appUid, importance, mImportanceThresholdSupplier.get()); in assertCallerIsInForeground()
214 if (importance > mImportanceThresholdSupplier.get()) { in assertCallerIsInForeground()
218 appUid, importance, mImportanceThresholdSupplier.get()); in assertCallerIsInForeground()
/packages/services/Telecomm/src/com/android/server/telecom/ui/
DNotificationChannelManager.java80 int importance = NotificationManager.IMPORTANCE_DEFAULT; in createChannel() local
88 importance = NotificationManager.IMPORTANCE_MAX; in createChannel()
96 importance = NotificationManager.IMPORTANCE_DEFAULT; in createChannel()
104 importance = NotificationManager.IMPORTANCE_LOW; in createChannel()
112 importance = NotificationManager.IMPORTANCE_LOW; in createChannel()
120 importance = NotificationManager.IMPORTANCE_DEFAULT; in createChannel()
128 importance = NotificationManager.IMPORTANCE_DEFAULT; in createChannel()
135 importance = NotificationManager.IMPORTANCE_DEFAULT; in createChannel()
143 NotificationChannel channel = new NotificationChannel(channelId, name, importance); in createChannel()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/validation/types/
DParceledArray.kt36 importance: Importance in validate()
41 when (importance) { in validate()
43 Importance.CRITICAL -> Invalid(NoValue(key, importance, elementType)) in validate()
63 importance, in validate()
77 importance, in validate()
DIntentOrUri.kt32 importance: Importance in validate()
44 when (importance) { in validate()
46 Importance.CRITICAL -> Invalid(NoValue(key, importance, Intent::class)) in validate()
54 importance, in validate()
DSimpleValue.kt33 override fun validate(source: (String) -> Any?, importance: Importance): ValidationResult<T> { in validate()
41 when (importance) { in validate()
43 Importance.CRITICAL -> Invalid(NoValue(key, importance, expected)) in validate()
52 importance, in validate()
/packages/apps/Settings/src/com/android/settings/notification/app/
DConversationPriorityPreference.java80 public void setImportance(int importance) { in setImportance() argument
81 mImportance = importance; in setImportance()
92 public void setOriginalImportance(int importance) { in setOriginalImportance() argument
93 mOriginalImportance = importance; in setOriginalImportance()
140 void updateToggles(ViewGroup parent, int importance, boolean isPriority, in updateToggles() argument
148 if (importance <= IMPORTANCE_LOW && importance > IMPORTANCE_UNSPECIFIED) { in updateToggles()
DImportancePreferenceController.java82 final int importance = (Integer) newValue; in onPreferenceChange() local
90 && importance >= IMPORTANCE_DEFAULT) { in onPreferenceChange()
96 mChannel.setImportance(importance); in onPreferenceChange()
DImportancePreference.java87 public void setImportance(int importance) { in setImportance() argument
88 mImportance = importance; in setImportance()
167 void setImportanceSummary(ViewGroup parent, int importance, boolean fromUser) { in setImportanceSummary() argument
177 if (importance >= IMPORTANCE_DEFAULT) { in setImportanceSummary()
DAllowSoundPreferenceController.java80 final int importance = in onPreferenceChange() local
82 mChannel.setImportance(importance); in onPreferenceChange()
DNotificationPreferenceController.java128 int importance = mChannel.getImportance(); in checkCanBeVisible() local
129 if (importance == NotificationManager.IMPORTANCE_UNSPECIFIED) { in checkCanBeVisible()
132 return importance >= minImportanceVisible; in checkCanBeVisible()
/packages/services/Car/service-builtin/src/com/android/car/admin/
DNotificationHelper.java76 @NotificationManager.Importance int importance) { in newNotificationBuilder() argument
80 switch (importance) { in newNotificationBuilder()
90 throw new IllegalArgumentException("Unsupported importance: " + importance); in newNotificationBuilder()
94 new NotificationChannel(channelId, importanceName, importance)); in newNotificationBuilder()
233 int importance = packagesByImportance.keyAt(i); in showResourceOveruseNotificationsAsUser() local
254 .newNotificationBuilder(context, importance) in showResourceOveruseNotificationsAsUser()
274 notificationId, user, appName, importance, textDisabledApp, in showResourceOveruseNotificationsAsUser()
/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/
DNotificationCharacteristics.kt28 val importance: Int = IMPORTANCE_ANY, constant in com.android.safetycenter.testing.NotificationCharacteristics
44 statusBarNotificationWithChannel.channel.importance == characteristicImportance in importanceMatches()
74 importanceMatches(statusBarNotificationWithChannel, characteristic.importance) && in isMatch()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiLockManager.java187 private void onAppForeground(final int uid, final int importance) { in onAppForeground() argument
195 boolean newModeIsFg = isAppForeground(uid, importance); in onAppForeground()
220 public void onUidImportance(final int uid, final int importance) { in registerUidImportanceTransitions()
221 onAppForeground(uid, importance); in registerUidImportanceTransitions()
226 public void onUidImportance(final int uid, final int importance) { in registerUidImportanceTransitions()
227 onAppForeground(uid, importance); in registerUidImportanceTransitions()
488 private boolean isAppExemptedFromImportance(int uid, int importance) { in isAppExemptedFromImportance() argument
491 && (importance in isAppExemptedFromImportance()
500 private boolean isAppForeground(final int uid, final int importance) { in isAppForeground() argument
501 if ((importance == ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND)) { in isAppForeground()
[all …]
/packages/modules/NetworkStack/tests/hostlib/src/com/android/testutils/host/
DDeflakeHostTestBase.kt59 importance = Option.Importance.ALWAYS) in <lambda>()
78 importance = Option.Importance.ALWAYS, in <lambda>()
91 importance = Option.Importance.ALWAYS) in <lambda>()
/packages/apps/Nfc/src/com/android/nfc/
DForegroundUtils.java158 public void onUidImportance(int uid, int importance) { in onUidImportance() argument
161 if (importance == ActivityManager.RunningAppProcessInfo.IMPORTANCE_GONE) { in onUidImportance()
167 if (importance == ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND) { in onUidImportance()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DAppImportanceFilterTest.java335 String packageName, int importance, int uid) { in generateProcessInfo() argument
336 return generateProcessInfo(Collections.singletonList(packageName), importance, uid); in generateProcessInfo()
340 List<String> packageNames, int importance, int uid) { in generateProcessInfo() argument
344 process.importance = importance; in generateProcessInfo()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DWorkSourceHelper.java194 int importance = mActivityManager.getPackageImportance(requestorPackageName); in isForegroundService() local
195 return IMPORTANCE_FOREGROUND < importance in isForegroundService()
196 && importance <= IMPORTANCE_FOREGROUND_SERVICE; in isForegroundService()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/admin/
DNotificationHelperInvalidImportanceTest.java52 public NotificationHelperInvalidImportanceTest(int importance) { in NotificationHelperInvalidImportanceTest() argument
53 mImportance = importance; in NotificationHelperInvalidImportanceTest()
/packages/modules/ExtServices/java/src/android/ext/services/notification/
DNotificationEntry.java183 int importance = getChannel().getImportance(); in calculateInitialImportance() local
210 && (importance == IMPORTANCE_UNSPECIFIED in calculateInitialImportance()
215 importance = requestedImportance; in calculateInitialImportance()
218 return importance; in calculateInitialImportance()
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DOneTimePermissionTest.java382 SingleAppExitListener(int uid, int importance, CompletableFuture<Long> callback) { in SingleAppExitListener() argument
384 mImportance = importance; in SingleAppExitListener()
389 public void onUidImportance(int uid, int importance) { in onUidImportance() argument
390 if (uid == mUid && importance > mImportance) { in onUidImportance()
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/
DNotificationSettingsTests.java123 UiObject2 importance = mDevice.wait(Until.findObject(By.text("Importance")), TIMEOUT); in testNotificationsSettingsListForPhone() local
124 assertNotNull("Could not find importance toggle", importance); in testNotificationsSettingsListForPhone()
125 assertFalse(importance.isEnabled()); in testNotificationsSettingsListForPhone()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_scan/
DScanManager.java152 public int importance; field in ScanManager.UidImportance
154 UidImportance(int uid, int importance) { in UidImportance() argument
156 this.importance = importance; in UidImportance()
720 int importance = ActivityManager.RunningAppProcessInfo.IMPORTANCE_CACHED; in fetchAppForegroundState() local
723 importance = in fetchAppForegroundState()
725 importance, mActivityManager.getPackageImportance(packageName)); in fetchAppForegroundState()
728 importance = mActivityManager.getPackageImportance(packages[0]); in fetchAppForegroundState()
731 importance in fetchAppForegroundState()
1946 public void onUidImportance(final int uid, final int importance) {
1950 message.obj = new UidImportance(uid, importance);
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/
DNotificationUtils.kt110 val importance = properties[1] in createChannel() constant
111 val channel = NotificationChannel(id, context.getString(nameId), importance) in createChannel()

123