Searched refs:getPackageImportance (Results 1 – 18 of 18) sorted by relevance
188 when(mActivityManager.getPackageImportance(TEST_PACKAGE_NAME_1)) in setUp()190 when(mActivityManager.getPackageImportance(TEST_PACKAGE_NAME_2)) in setUp()285 when(mActivityManager.getPackageImportance(TEST_PACKAGE_NAME_1)) in testHandleAcceptNetworkRequestFromWithInvalidSpecifier()303 when(mActivityManager.getPackageImportance(TEST_PACKAGE_NAME_1)) in testHandleAcceptNetworkRequestFromWithInternetCapability()321 when(mActivityManager.getPackageImportance(TEST_PACKAGE_NAME_1)) in testHandleAcceptNetworkRequestFromNonFgAppOrSvcWithSpecifier()337 when(mActivityManager.getPackageImportance(TEST_PACKAGE_NAME_1)) in testHandleAcceptNetworkRequestFromFgAppWithSpecifier()351 when(mActivityManager.getPackageImportance(TEST_PACKAGE_NAME_1)) in testHandleAcceptNetworkRequestFromNetworkSettingAppWithSpecifier()367 when(mActivityManager.getPackageImportance(TEST_PACKAGE_NAME_1)) in testHandleAcceptNetworkRequestFromFgAppWithSpecifierWithPendingRequestFromFgSvc()369 when(mActivityManager.getPackageImportance(TEST_PACKAGE_NAME_2)) in testHandleAcceptNetworkRequestFromFgAppWithSpecifierWithPendingRequestFromFgSvc()388 when(mActivityManager.getPackageImportance(TEST_PACKAGE_NAME_1)) in testHandleAcceptNetworkRequestFromFgSvcWithSpecifierWithPendingRequestFromFgSvc()[all …]
751 when(mActivityManager.getPackageImportance(TEST_PACKAGE_NAME_1)) in testSuccessiveScanRequestFromBgAppsThrottled()753 when(mActivityManager.getPackageImportance(TEST_PACKAGE_NAME_2)) in testSuccessiveScanRequestFromBgAppsThrottled()777 when(mActivityManager.getPackageImportance(TEST_PACKAGE_NAME_1)) in testSuccessiveScanRequestFromBgAppsNotThrottled()779 when(mActivityManager.getPackageImportance(TEST_PACKAGE_NAME_2)) in testSuccessiveScanRequestFromBgAppsNotThrottled()
217 when(mActivityManager.getPackageImportance(any())).thenReturn( in setUp()2547 when(mActivityManager.getPackageImportance(any())).thenReturn(IMPORTANCE_FOREGROUND); in testUserApprovalDialogClickOnAllowDuringAddingSuggestionsFromFgApp()2588 when(mActivityManager.getPackageImportance(any())).thenReturn(IMPORTANCE_FOREGROUND); in testUserApprovalDialogClickOnDisallowWhenAddSuggestionsFromFgApp()2647 when(mActivityManager.getPackageImportance(any())).thenReturn(IMPORTANCE_FOREGROUND); in testUserApprovalDialiogDismissDuringAddingSuggestionsFromFgApp()2684 when(mActivityManager.getPackageImportance(any())).thenReturn(IMPORTANCE_FOREGROUND); in testAddNetworkSuggestions_activeFgScorer_doesNotRequestForApproval()2706 when(mActivityManager.getPackageImportance(any())).thenReturn(IMPORTANCE_SERVICE); in testAddNetworkSuggestions_activeBgScorer_doesNotRequestForApproval()
231 onImportanceChanged(mUid, mActivityManager.getPackageImportance(packageName)); in PackageInactivityListener()
374 return mActivityManager.getPackageImportance(packageName) in isRequestFromBackground()
1038 return mActivityManager.getPackageImportance(requestorPackageName) in isRequestFromForegroundAppOrService()1051 return mActivityManager.getPackageImportance(requestorPackageName) in isRequestFromForegroundApp()
1335 return mActivityManager.getPackageImportance(packageName) in isSuggestionFromForegroundApp()
76 int getPackageImportance(String pkg); in getPackageImportance() method
1209 return service.getPackageImportance(mContext.getPackageName()); in getImportance()
3762 public @RunningAppProcessInfo.Importance int getPackageImportance(String packageName) {
2275 && mActivityManager.getPackageImportance(pkg) == IMPORTANCE_FOREGROUND; in getGroupHelper()3169 public int getPackageImportance(String pkg) {5171 mActivityManager.getPackageImportance(pkg) == IMPORTANCE_FOREGROUND;5790 isAppForeground = mActivityManager.getPackageImportance(pkg) == IMPORTANCE_FOREGROUND;5911 && mActivityManager.getPackageImportance(packageName)
5308 when(mActivityManager.getPackageImportance(nr.getSbn().getPackageName())).thenReturn( in testFlagBubbleNotifs_noFlag_whenAppForeground()6142 when(mActivityManager.getPackageImportance(nr.getSbn().getPackageName())).thenReturn( in testNotificationBubbles_flagAutoExpandForeground_fails_notForeground()6174 when(mActivityManager.getPackageImportance(nr.getSbn().getPackageName())).thenReturn( in testNotificationBubbles_flagAutoExpandForeground_succeeds_foreground()
552 MissingNullability: android.app.ActivityManager#getPackageImportance(String) parameter #0:
78 …ermission(android.Manifest.permission.PACKAGE_USAGE_STATS) public int getPackageImportance(String);
339 …ermission(android.Manifest.permission.PACKAGE_USAGE_STATS) public int getPackageImportance(String);
870 HSPLandroid/app/ActivityManager;->getPackageImportance(Ljava/lang/String;)I
21340 HPLcom/android/server/notification/NotificationManagerService$10;->getPackageImportance(Ljava/lang/…