Home
last modified time | relevance | path

Searched refs:getUidImportance (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/
DControlsRequestReceiverTest.kt97 `when`(activityManager.getUidImportance(anyInt())).thenReturn(IMPORTANCE_GONE) in testPackageVerification_uidNotInForeground()
106 `when`(activityManager.getUidImportance(anyInt())).thenReturn(IMPORTANCE_GONE) in testPackageVerification_OK()
107 `when`(activityManager.getUidImportance(12345)).thenReturn(IMPORTANCE_FOREGROUND) in testPackageVerification_OK()
127 `when`(activityManager.getUidImportance(anyInt())).thenReturn(IMPORTANCE_GONE) in testOnReceive_packageNotVerified_notForeground()
139 `when`(activityManager.getUidImportance(eq(12345))).thenReturn(IMPORTANCE_FOREGROUND) in testOnReceive_OK()
/frameworks/base/services/core/java/com/android/server/location/injector/
DSystemAppForegroundHelper.java68 return isForeground(mActivityManager.getUidImportance(uid)); in isAppForeground()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
DControlsRequestReceiver.kt49 if ((am?.getUidImportance(uid) ?: IMPORTANCE_GONE) != IMPORTANCE_FOREGROUND) { in isPackageInForeground()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/
DSystemAppForegroundHelperTest.java79 doReturn(importance).when(mActivityManager).getUidImportance(uid); in setImportance()
/frameworks/base/services/companion/java/com/android/server/companion/association/
DDisassociationProcessor.java176 return mActivityManager.getUidImportance(uid); in getPackageProcessImportance()
/frameworks/base/telephony/common/com/android/internal/telephony/util/
DTelephonyUtils.java331 boolean result = am != null && am.getUidImportance(uid) in isUidForeground()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsController.java581 && am.getUidImportance(Binder.getCallingUid()) in isSmsSimPickActivityNeeded()
/frameworks/base/core/java/android/app/
DActivityManager.java4582 public @RunningAppProcessInfo.Importance int getUidImportance(int uid) { in getUidImportance() method in ActivityManager
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java3655 appIsForeground = mActivityManager.getUidImportance(callingUid)
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationManagerServiceTest.java8722 when(mActivityManager.getUidImportance(mUid)).thenReturn(importance); in setAppInForegroundForToasts()
/frameworks/base/core/api/
Dsystem-current.txt581 …quiresPermission(android.Manifest.permission.PACKAGE_USAGE_STATS) public int getUidImportance(int);