Searched refs:getUidImportance (Results 1 – 11 of 11) sorted by relevance
97 `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()
68 return isForeground(mActivityManager.getUidImportance(uid)); in isAppForeground()
49 if ((am?.getUidImportance(uid) ?: IMPORTANCE_GONE) != IMPORTANCE_FOREGROUND) { in isPackageInForeground()
79 doReturn(importance).when(mActivityManager).getUidImportance(uid); in setImportance()
176 return mActivityManager.getUidImportance(uid); in getPackageProcessImportance()
331 boolean result = am != null && am.getUidImportance(uid) in isUidForeground()
581 && am.getUidImportance(Binder.getCallingUid()) in isSmsSimPickActivityNeeded()
4582 public @RunningAppProcessInfo.Importance int getUidImportance(int uid) { in getUidImportance() method in ActivityManager
3655 appIsForeground = mActivityManager.getUidImportance(callingUid)
8722 when(mActivityManager.getUidImportance(mUid)).thenReturn(importance); in setAppInForegroundForToasts()
581 …quiresPermission(android.Manifest.permission.PACKAGE_USAGE_STATS) public int getUidImportance(int);