Home
last modified time | relevance | path

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

1234

/frameworks/base/native/android/
Dactivity_manager.cpp54 static int32_t importanceToProcState(int32_t importance);
88 int32_t UidObserver::importanceToProcState(int32_t importance) { in importanceToProcState() argument
90 if (importance == AACTIVITYMANAGER_IMPORTANCE_GONE) { in importanceToProcState()
92 } else if (importance >= AACTIVITYMANAGER_IMPORTANCE_CACHED) { in importanceToProcState()
94 } else if (importance >= AACTIVITYMANAGER_IMPORTANCE_CANT_SAVE_STATE) { in importanceToProcState()
96 } else if (importance >= AACTIVITYMANAGER_IMPORTANCE_TOP_SLEEPING) { in importanceToProcState()
98 } else if (importance >= AACTIVITYMANAGER_IMPORTANCE_SERVICE) { in importanceToProcState()
100 } else if (importance >= AACTIVITYMANAGER_IMPORTANCE_PERCEPTIBLE) { in importanceToProcState()
102 } else if (importance >= AACTIVITYMANAGER_IMPORTANCE_VISIBLE) { in importanceToProcState()
104 } else if (importance >= AACTIVITYMANAGER_IMPORTANCE_FOREGROUND_SERVICE) { in importanceToProcState()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/interruption/
DVisualInterruptionDecisionProviderImplTest.kt100 importance = NotificationManager.IMPORTANCE_HIGH in testAvalancheFilter_duringAvalanche_allowConversationFromAfterEvent()
120 importance = NotificationManager.IMPORTANCE_DEFAULT in testAvalancheFilter_duringAvalanche_suppressConversationFromBeforeEvent()
140 importance = NotificationManager.IMPORTANCE_HIGH in testAvalancheFilter_duringAvalanche_allowHighPriorityConversation()
158 importance = NotificationManager.IMPORTANCE_HIGH in testAvalancheFilter_duringAvalanche_allowCall()
176 importance = NotificationManager.IMPORTANCE_HIGH in testAvalancheFilter_duringAvalanche_allowCategoryReminder()
194 importance = NotificationManager.IMPORTANCE_HIGH in testAvalancheFilter_duringAvalanche_allowCategoryEvent()
224 importance = NotificationManager.IMPORTANCE_HIGH in testAvalancheFilter_duringAvalanche_allowColorized()
249 importance = NotificationManager.IMPORTANCE_HIGH in testAvalancheFilter_duringAvalanche_allowEmergency()
DVisualInterruptionDecisionProviderTestBase.kt245 assertShouldNotHeadsUp(buildPeekEntry { importance = IMPORTANCE_DEFAULT }) in <lambda>()
434 assertShouldNotHeadsUp(buildPulseEntry { importance = IMPORTANCE_LOW }) in <lambda>()
677 assertShouldNotFsi(buildFsiEntry { importance = IMPORTANCE_DEFAULT }) in <lambda>()
688 importance = IMPORTANCE_DEFAULT in <lambda>()
1174 var importance = IMPORTANCE_DEFAULT in <lambda>() variable in com.android.systemui.statusbar.notification.interruption.VisualInterruptionDecisionProviderTestBase.EntryBuilder
1271 neb.setImportance(importance) in <lambda>()
1273 NotificationChannel(TEST_CHANNEL_ID, TEST_CHANNEL_NAME, importance) in <lambda>()
1306 importance = IMPORTANCE_HIGH in <lambda>()
1311 importance = IMPORTANCE_DEFAULT in <lambda>()
1324 importance = IMPORTANCE_HIGH in <lambda>()
DNotificationInterruptStateProviderImplTest.java1076 private NotificationEntry createNotification(int importance) { in createNotification() argument
1082 return createNotification(importance, n); in createNotification()
1085 private NotificationEntry createNotification(int importance, Notification n) { in createNotification() argument
1090 .setChannel(new NotificationChannel("a", null, importance)) in createNotification()
1092 .setImportance(importance) in createNotification()
1096 private NotificationEntry createFsiNotification(int importance, boolean silent) { in createFsiNotification() argument
1105 return createNotification(importance, n); in createFsiNotification()
1108 private NotificationEntry createFgsNotification(int importance) { in createFgsNotification() argument
1115 return createNotification(importance, n); in createFgsNotification()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DChannelEditorDialogController.kt197 if (channel.importance == edit) { in <lambda>()
247 private fun setChannelImportance(channel: NotificationChannel, importance: Int) { in <lambda>()
249 channel.importance = importance in <lambda>()
258 for ((channel, importance) in edits) { in <lambda>() method
259 if (channel.importance != importance) { in <lambda>()
260 setChannelImportance(channel, importance) in <lambda>()
DChannelEditorListView.kt224 switch.isChecked = nc.importance != IMPORTANCE_NONE in updateViews()
228 val importance = channel?.importance ?: 0 in updateImportance() constant
229 gentle = importance != IMPORTANCE_UNSPECIFIED && importance < IMPORTANCE_DEFAULT in updateImportance()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationChannelLogger.java243 static int getLoggingImportance(@NonNull NotificationChannel channel, int importance) { in getLoggingImportance() argument
244 if (channel.getConversationId() == null || importance < IMPORTANCE_HIGH) { in getLoggingImportance()
245 return importance; in getLoggingImportance()
249 : importance; in getLoggingImportance()
DNotificationRecord.java382 int importance = getChannel().getImportance(); // Post-channels notifications use this in calculateInitialImportance() local
417 && (importance == IMPORTANCE_UNSPECIFIED in calculateInitialImportance()
432 importance = requestedImportance; in calculateInitialImportance()
437 stats.naturalImportance = importance; in calculateInitialImportance()
438 return importance; in calculateInitialImportance()
750 int importance = signals.getInt(Adjustment.KEY_IMPORTANCE); in applyAdjustments() local
751 importance = Math.max(IMPORTANCE_UNSPECIFIED, importance); in applyAdjustments()
752 importance = Math.min(IMPORTANCE_HIGH, importance); in applyAdjustments()
753 setAssistantImportance(importance); in applyAdjustments()
755 Integer.toString(importance)); in applyAdjustments()
[all …]
DNotificationRecordExtractorData.java56 ArrayList<CharSequence> smartReplies, int importance, float rankingScore, in NotificationRecordExtractorData() argument
71 mImportance = importance; in NotificationRecordExtractorData()
DNotificationRecordLogger.java487 final int importance; field in NotificationRecordLogger.NotificationReported
520 this.importance = NotificationRecordLogger.getLoggingImportance(p.r); in NotificationReported()
554 final int importance = r.getImportance(); in getLoggingImportance() local
557 return importance; in getLoggingImportance()
559 return NotificationChannelLogger.getLoggingImportance(channel, importance); in getLoggingImportance()
DNotificationRecordLoggerImpl.java66 notificationReported.importance, in writeNotificationReportedAtom()
/frameworks/base/services/core/java/com/android/server/location/injector/
DAppForegroundHelper.java45 protected static boolean isForeground(@Importance int importance) { in isForeground() argument
46 return importance <= FOREGROUND_IMPORTANCE_CUTOFF; in isForeground()
DSystemAppForegroundHelper.java56 private void onAppForegroundChanged(int uid, @Importance int importance) { in onAppForegroundChanged() argument
58 boolean foreground = isForeground(importance); in onAppForegroundChanged()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/
DSystemAppForegroundHelperTest.java78 private void setImportance(int uid, int importance) { in setImportance() argument
79 doReturn(importance).when(mActivityManager).getUidImportance(uid); in setImportance()
81 listener.onUidImportance(uid, importance); in setImportance()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DChannelEditorDialogControllerTest.kt148 IMPORTANCE_NONE, channel1.importance) in testApply_demoteChannel()
152 IMPORTANCE_NONE, channel2.importance) in testApply_demoteChannel()
167 IMPORTANCE_DEFAULT, channel2.importance) in testApply_promoteChannel()
171 IMPORTANCE_DEFAULT, channel1.importance) in testApply_promoteChannel()
245 controller.proposeEditForChannel(channel1, channel1.importance) in testDoneButtonGoesBackToNormal_changeThenNoChange()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/
DRankingBuilder.java220 public RankingBuilder setImportance(@Importance int importance) { in setImportance() argument
221 mImportance = importance; in setImportance()
225 public RankingBuilder setProposedImportance(@Importance int importance) { in setProposedImportance() argument
226 mProposedImportance = importance; in setProposedImportance()
/frameworks/base/tests/FlickerTests/test-apps/flickerapp/src/com/android/server/wm/flicker/testapp/
DNotificationActivity.java83 int importance = NotificationManager.IMPORTANCE_HIGH; in createNotificationChannel() local
84 NotificationChannel channel = new NotificationChannel(CHANNEL_ID, name, importance); in createNotificationChannel()
/frameworks/av/services/mediaresourcemanager/aidl/android/media/
DClientInfoParcel.aidl50 int importance = 0;
/frameworks/base/core/java/com/android/internal/util/
DNotificationMessagingUtil.java53 public boolean isImportantMessaging(StatusBarNotification sbn, int importance) { in isImportantMessaging() argument
54 if (importance < NotificationManager.IMPORTANCE_LOW) { in isImportantMessaging()
/frameworks/av/services/mediaresourcemanager/test/
DResourceManagerServiceTestUtils.h135 .importance = mClientImportance}; in reclaimResource()
239 int32_t importance = 0) {
240 return ::ndk::SharedRefBase::make<TestClient>(pid, uid, importance, mService);
/frameworks/av/media/aconfig/
Dmediacodec_flags.aconfig20 description: "Feature flags for media codec importance"
/frameworks/base/services/core/java/com/android/server/net/
Dflags.aconfig7 description: "Block network access for apps in a low importance background state"
/frameworks/base/services/core/java/com/android/server/pm/
DGentleUpdateHelper.java286 @RunningAppProcessInfo.Importance int importance) { in onUidImportance() argument
303 private void onUidImportance(int uid, @RunningAppProcessInfo.Importance int importance) { in onUidImportance() argument
307 mHandler.post(() -> onUidImportance(packageName, importance)); in onUidImportance()
/frameworks/base/services/companion/java/com/android/server/companion/association/
DDisassociationProcessor.java243 public void onUidImportance(int uid, int importance) { in onUidImportance() argument
244 if (importance <= ActivityManager.RunningAppProcessInfo.IMPORTANCE_VISIBLE) { in onUidImportance()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DServiceRestarterTest.java484 public void onUidImportance(int uid, int importance) { in onUidImportance() argument
488 if (importance == mExpectedImportance && mLatchHolder[0] != null) { in onUidImportance()
491 mCurrentImportance = importance; in onUidImportance()
493 Log.i(TAG, "uid " + uid + " importance: " + importance); in onUidImportance()

1234