Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DChannelEditorDialogController.kt151 || channel.importance == IMPORTANCE_NONE in <lambda>()
193 if (channel.importance == edit) { in <lambda>()
228 private fun setChannelImportance(channel: NotificationChannel, importance: Int) { in <lambda>()
230 channel.importance = importance in <lambda>()
239 for ((channel, importance) in edits) { in <lambda>() method
240 if (channel.importance != importance) { in <lambda>()
241 setChannelImportance(channel, importance) in <lambda>()
DChannelEditorListView.kt156 controller.proposeEditForChannel(it, if (b) it.importance else IMPORTANCE_NONE) in onFinishInflate()
176 switch.isChecked = nc.importance != IMPORTANCE_NONE in updateViews()
180 val importance = channel?.importance ?: 0 in updateImportance() constant
181 gentle = importance != IMPORTANCE_UNSPECIFIED && importance < IMPORTANCE_DEFAULT in updateImportance()
DNotificationInfo.java260 int importance, in bindNotification() argument
267 importance, wasShownHighPriority); in bindNotification()
284 int importance, in bindNotification() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DForegroundServiceNotificationListener.java53 addNotification(entry.notification, entry.importance); in ForegroundServiceNotificationListener()
58 updateNotification(entry.notification, entry.importance); in ForegroundServiceNotificationListener()
77 private void addNotification(StatusBarNotification sbn, int importance) { in addNotification() argument
78 updateNotification(sbn, importance); in addNotification()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationRecord.java336 int importance = getChannel().getImportance(); // Post-channels notifications use this in calculateInitialImportance() local
371 && (importance == IMPORTANCE_UNSPECIFIED in calculateInitialImportance()
386 importance = requestedImportance; in calculateInitialImportance()
391 stats.naturalImportance = importance; in calculateInitialImportance()
392 return importance; in calculateInitialImportance()
653 int importance = signals.getInt(Adjustment.KEY_IMPORTANCE); in applyAdjustments() local
654 importance = Math.max(IMPORTANCE_UNSPECIFIED, importance); in applyAdjustments()
655 importance = Math.min(IMPORTANCE_HIGH, importance); in applyAdjustments()
656 setAssistantImportance(importance); in applyAdjustments()
723 public void setSystemImportance(int importance) { in setSystemImportance() argument
[all …]
DPreferencesHelper.java198 r.importance = XmlUtils.readIntAttribute( in readXml()
305 int importance, int priority, int visibility, boolean showBadge, boolean allowBubble) { in getOrCreatePackagePreferencesLocked() argument
314 r.importance = importance; in getOrCreatePackagePreferencesLocked()
385 r.importance); in createDefaultChannelIfNeededLocked()
388 if (r.importance != NotificationManager.IMPORTANCE_UNSPECIFIED) { in createDefaultChannelIfNeededLocked()
420 r.importance != DEFAULT_IMPORTANCE in writeXml()
432 if (r.importance != DEFAULT_IMPORTANCE) { in writeXml()
433 out.attribute(null, ATT_IMPORTANCE, Integer.toString(r.importance)); in writeXml()
534 return getOrCreatePackagePreferencesLocked(packageName, uid).importance; in getImportance()
795 r.importance = updatedChannel.getImportance(); in updateNotificationChannel()
[all …]
DRankingConfig.java27 void setImportance(String packageName, int uid, int importance); in setImportance() argument
/frameworks/base/services/core/java/com/android/server/
DLocationUsageLogger.java128 private static int categorizeActivityImportance(int importance) { in categorizeActivityImportance() argument
129 if (importance == ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND) { in categorizeActivityImportance()
131 } else if (importance == ActivityManager in categorizeActivityImportance()
DLocationManagerService.java346 (uid, importance) -> { in initializeLocked() argument
351 onUidImportanceChangedLocked(uid, importance); in initializeLocked()
570 private void onUidImportanceChangedLocked(int uid, int importance) { in onUidImportanceChangedLocked() argument
571 boolean foreground = isImportanceForeground(importance); in onUidImportanceChangedLocked()
636 private static boolean isImportanceForeground(int importance) { in isImportanceForeground() argument
637 return importance <= FOREGROUND_IMPORTANCE_CUTOFF; in isImportanceForeground()
/frameworks/base/core/java/com/android/internal/util/
DNotificationMessagingUtil.java49 public boolean isImportantMessaging(StatusBarNotification sbn, int importance) { in isImportantMessaging() argument
50 if (importance < NotificationManager.IMPORTANCE_LOW) { in isImportantMessaging()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DForegroundServiceControllerTest.java399 private void entryAdded(StatusBarNotification notification, int importance) { in entryAdded() argument
401 entry.importance = importance; in entryAdded()
405 private void entryUpdated(StatusBarNotification notification, int importance) { in entryUpdated() argument
407 entry.importance = importance; in entryUpdated()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationInterruptionStateProviderTest.java246 entry.importance = IMPORTANCE_DEFAULT; in testCanAlertCommon_false_suppressedForGroups()
560 entry.importance = IMPORTANCE_HIGH; in createBubble()
565 private NotificationEntry createNotification(int importance) { in createNotification() argument
573 entry.importance = importance; in createNotification()
DNotificationTestHelper.java286 int importance) in generateRow() argument
313 notification.getChannelId(), notification.getChannelId(), importance); in generateRow()
/frameworks/base/core/java/android/app/
DActivityManager.java3004 final int importance = procStateToImportance(procState);
3008 switch (importance) {
3017 return importance;
3021 public static int importanceToProcState(@Importance int importance) {
3022 if (importance == IMPORTANCE_GONE) {
3024 } else if (importance >= IMPORTANCE_CACHED) {
3026 } else if (importance >= IMPORTANCE_CANT_SAVE_STATE) {
3028 } else if (importance >= IMPORTANCE_TOP_SLEEPING) {
3030 } else if (importance >= IMPORTANCE_SERVICE) {
3032 } else if (importance >= IMPORTANCE_PERCEPTIBLE) {
[all …]
DNotificationChannel.java185 public NotificationChannel(String id, CharSequence name, @Importance int importance) { in NotificationChannel() argument
188 this.mImportance = importance; in NotificationChannel()
459 public void setImportance(@Importance int importance) { in setImportance() argument
460 this.mImportance = importance; in setImportance()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DChannelEditorDialogControllerTest.kt137 IMPORTANCE_NONE, channel1.importance) in testApply_demoteChannel()
141 IMPORTANCE_DEFAULT, channel2.importance) in testApply_demoteChannel()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationInterruptionStateProvider.java253 if (entry.importance < NotificationManager.IMPORTANCE_HIGH) { in shouldHeadsUpWhenAwake()
323 if (entry.importance < NotificationManager.IMPORTANCE_DEFAULT) { in shouldHeadsUpWhenDozing()
/frameworks/base/core/java/android/service/notification/
DNotificationListenerService.java1784 int visibilityOverride, int suppressedVisualEffects, int importance, in populate() argument
1794 mIsAmbient = importance < NotificationManager.IMPORTANCE_LOW; in populate()
1798 mImportance = importance; in populate()
1844 public static String importanceToString(int importance) {
1845 switch (importance) {
1860 return "UNKNOWN(" + String.valueOf(importance) + ")";
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DNotificationRowBinderImpl.java218 if (oldImportance != null && entry.importance != oldImportance) { in onNotificationRankingUpdated()
252 mMessagingUtil.isImportantMessaging(sbn, entry.importance); in updateNotification()
DNotificationEntry.java94 public int importance; field in NotificationEntry
193 importance = ranking.getImportance(); in populateFromRanking()
/frameworks/base/core/proto/android/app/
Dnotification_channel.proto37 optional int32 importance = 4; field
/frameworks/base/core/proto/android/service/
Dnotification.proto68 optional sint32 importance = 10; field
132 optional sint32 importance = 3; field
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiLockManager.java146 public void onUidImportance(final int uid, final int importance) { in registerUidImportanceTransitions()
154 boolean newModeIsFg = (importance in registerUidImportanceTransitions()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DStatusBarTest.java425 entry.importance = IMPORTANCE_HIGH; in testShouldHeadsUp_nonSuppressedGroupSummary()
446 entry.importance = IMPORTANCE_HIGH; in testShouldHeadsUp_suppressedGroupSummary()
464 entry.importance = IMPORTANCE_HIGH; in testShouldHeadsUp_suppressedHeadsUp()
481 entry.importance = IMPORTANCE_HIGH; in testShouldHeadsUp_noSuppressedHeadsUp()
/frameworks/base/core/java/android/content/
DContextWrapper.java768 public void updateServiceGroup(ServiceConnection conn, int group, int importance) { in updateServiceGroup() argument
769 mBase.updateServiceGroup(conn, group, importance); in updateServiceGroup()

12