/frameworks/base/native/android/ |
D | activity_manager.cpp | 54 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/ |
D | VisualInterruptionDecisionProviderImplTest.kt | 100 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()
|
D | VisualInterruptionDecisionProviderTestBase.kt | 245 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>()
|
D | NotificationInterruptStateProviderImplTest.java | 1076 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/ |
D | ChannelEditorDialogController.kt | 197 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>()
|
D | ChannelEditorListView.kt | 224 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/ |
D | NotificationChannelLogger.java | 243 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()
|
D | NotificationRecord.java | 382 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 …]
|
D | NotificationRecordExtractorData.java | 56 ArrayList<CharSequence> smartReplies, int importance, float rankingScore, in NotificationRecordExtractorData() argument 71 mImportance = importance; in NotificationRecordExtractorData()
|
D | NotificationRecordLogger.java | 487 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()
|
D | NotificationRecordLoggerImpl.java | 66 notificationReported.importance, in writeNotificationReportedAtom()
|
/frameworks/base/services/core/java/com/android/server/location/injector/ |
D | AppForegroundHelper.java | 45 protected static boolean isForeground(@Importance int importance) { in isForeground() argument 46 return importance <= FOREGROUND_IMPORTANCE_CUTOFF; in isForeground()
|
D | SystemAppForegroundHelper.java | 56 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/ |
D | SystemAppForegroundHelperTest.java | 78 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/ |
D | ChannelEditorDialogControllerTest.kt | 148 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/ |
D | RankingBuilder.java | 220 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/ |
D | NotificationActivity.java | 83 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/ |
D | ClientInfoParcel.aidl | 50 int importance = 0;
|
/frameworks/base/core/java/com/android/internal/util/ |
D | NotificationMessagingUtil.java | 53 public boolean isImportantMessaging(StatusBarNotification sbn, int importance) { in isImportantMessaging() argument 54 if (importance < NotificationManager.IMPORTANCE_LOW) { in isImportantMessaging()
|
/frameworks/av/services/mediaresourcemanager/test/ |
D | ResourceManagerServiceTestUtils.h | 135 .importance = mClientImportance}; in reclaimResource() 239 int32_t importance = 0) { 240 return ::ndk::SharedRefBase::make<TestClient>(pid, uid, importance, mService);
|
/frameworks/av/media/aconfig/ |
D | mediacodec_flags.aconfig | 20 description: "Feature flags for media codec importance"
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | flags.aconfig | 7 description: "Block network access for apps in a low importance background state"
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | GentleUpdateHelper.java | 286 @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/ |
D | DisassociationProcessor.java | 243 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/ |
D | ServiceRestarterTest.java | 484 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()
|