Home
last modified time | relevance | path

Searched refs:getPackageImportance (Results 1 – 18 of 18) sorted by relevance

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiNetworkFactoryTest.java188 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 …]
DScanRequestProxyTest.java751 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()
DWifiNetworkSuggestionsManagerTest.java217 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()
/frameworks/base/services/core/java/com/android/server/pm/permission/
DOneTimePermissionUserManager.java231 onImportanceChanged(mUid, mActivityManager.getPackageImportance(packageName)); in PackageInactivityListener()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DScanRequestProxy.java374 return mActivityManager.getPackageImportance(packageName) in isRequestFromBackground()
DWifiNetworkFactory.java1038 return mActivityManager.getPackageImportance(requestorPackageName) in isRequestFromForegroundAppOrService()
1051 return mActivityManager.getPackageImportance(requestorPackageName) in isRequestFromForegroundApp()
DWifiNetworkSuggestionsManager.java1335 return mActivityManager.getPackageImportance(packageName) in isSuggestionFromForegroundApp()
/frameworks/base/core/java/android/app/
DINotificationManager.aidl76 int getPackageImportance(String pkg); in getPackageImportance() method
DNotificationManager.java1209 return service.getPackageImportance(mContext.getPackageName()); in getImportance()
DActivityManager.java3762 public @RunningAppProcessInfo.Importance int getPackageImportance(String packageName) {
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java2275 && 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)
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationManagerServiceTest.java5308 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()
/frameworks/base/api/
Dtest-lint-baseline.txt552 MissingNullability: android.app.ActivityManager#getPackageImportance(String) parameter #0:
Dtest-current.txt78 …ermission(android.Manifest.permission.PACKAGE_USAGE_STATS) public int getPackageImportance(String);
Dsystem-current.txt339 …ermission(android.Manifest.permission.PACKAGE_USAGE_STATS) public int getPackageImportance(String);
/frameworks/base/non-updatable-api/
Dsystem-current.txt339 …ermission(android.Manifest.permission.PACKAGE_USAGE_STATS) public int getPackageImportance(String);
/frameworks/base/config/
Dboot-image-profile.txt870 HSPLandroid/app/ActivityManager;->getPackageImportance(Ljava/lang/String;)I
/frameworks/base/services/
Dart-profile21340 HPLcom/android/server/notification/NotificationManagerService$10;->getPackageImportance(Ljava/lang/…