/frameworks/base/services/robotests/src/com/android/server/pm/ |
D | CrossProfileAppsServiceImplRoboTest.java | 115 @Mock private PackageManagerInternal mPackageManagerInternal; field in CrossProfileAppsServiceImplRoboTest 130 when(mPackageManagerInternal.getInstalledApplications(anyInt(), anyInt(), eq(CALLING_UID))) in initializeInstalledApplicationsMock() 145 when(mPackageManagerInternal.getPackageInfo( in mockCrossProfileAppInstalledOnProfile() 151 when(mPackageManagerInternal.getPackage(uid)) in mockCrossProfileAppInstalledOnProfile() 207 when(mPackageManagerInternal.getPackageUidInternal( in setUpCrossProfileAppUidsAndPackageNames() 210 when(mPackageManagerInternal.getPackageUidInternal( in setUpCrossProfileAppUidsAndPackageNames() 433 when(mPackageManagerInternal.getPackageInfo( in mockUninstallCrossProfileAppFromWorkProfile() 439 when(mPackageManagerInternal.getPackage(WORK_PROFILE_UID)).thenReturn(null); in mockUninstallCrossProfileAppFromWorkProfile() 602 when(mPackageManagerInternal.getPackage(CROSS_PROFILE_APP_PACKAGE_NAME)) in mockCrossProfileAndroidPackage() 604 when(mPackageManagerInternal.getPackage(PERSONAL_PROFILE_UID)).thenReturn(androidPackage); in mockCrossProfileAndroidPackage() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | ActivityStartInterceptorTest.java | 102 private PackageManagerInternal mPackageManagerInternal; field in ActivityStartInterceptorTest 136 when(mService.getPackageManagerInternalLocked()).thenReturn(mPackageManagerInternal); in setUp() 176 when(mPackageManagerInternal.getSuspendingPackage(TEST_PACKAGE_NAME, TEST_USER_ID)) in testSuspendedByAdminPackage() 209 when(mPackageManagerInternal.getSuspendingPackage(TEST_PACKAGE_NAME, TEST_USER_ID)) in suspendPackage() 211 when(mPackageManagerInternal.getSuspendedDialogInfo(TEST_PACKAGE_NAME, suspendingPackage, in suspendPackage()
|
/frameworks/base/services/core/java/com/android/server/integrity/ |
D | AppIntegrityManagerServiceImpl.java | 130 private final PackageManagerInternal mPackageManagerInternal; field in AppIntegrityManagerServiceImpl 158 mPackageManagerInternal = packageManagerInternal; in AppIntegrityManagerServiceImpl() 285 mPackageManagerInternal.setIntegrityVerificationResult( in handleIntegrityVerification() 296 mPackageManagerInternal.setIntegrityVerificationResult( in handleIntegrityVerification() 345 mPackageManagerInternal.setIntegrityVerificationResult( in handleIntegrityVerification() 354 mPackageManagerInternal.setIntegrityVerificationResult( in handleIntegrityVerification() 360 mPackageManagerInternal.setIntegrityVerificationResult( in handleIntegrityVerification()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/ |
D | AppIntegrityManagerServiceImplTest.java | 137 @Mock PackageManagerInternal mPackageManagerInternal; field in AppIntegrityManagerServiceImplTest 177 mPackageManagerInternal, in setup() 408 verify(mPackageManagerInternal) in handleBroadcast_allow() 434 verify(mPackageManagerInternal) in handleBroadcast_reject() 455 verify(mPackageManagerInternal) in handleBroadcast_notInitialized() 476 verify(mPackageManagerInternal) in verifierAsInstaller_skipIntegrityVerification()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/compat/ |
D | PlatformCompatTest.java | 56 private PackageManagerInternal mPackageManagerInternal; field in PlatformCompatTest 71 when(mPackageManagerInternal.getPackageUid(eq(PACKAGE_NAME), eq(0), anyInt())) in setUp() 79 LocalServices.addService(PackageManagerInternal.class, mPackageManagerInternal); in setUp()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | CrossProfileAppsServiceImplTest.java | 84 private PackageManagerInternal mPackageManagerInternal; field in CrossProfileAppsServiceImplTest 562 when(mPackageManagerInternal.getPackageInfo( in mockAppsInstalled() 586 when(mPackageManagerInternal.queryIntentActivities( in mockActivityLaunchIntentResolvedTo() 654 return mPackageManagerInternal; in getPackageManagerInternal()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | Owners.java | 114 private final PackageManagerInternal mPackageManagerInternal; field in Owners 158 mPackageManagerInternal = packageManagerInternal; in Owners() 217 mPackageManagerInternal.setDeviceAndProfileOwnerPackages( in pushToPackageManagerLocked() 223 final int uid = mDeviceOwner != null ? mPackageManagerInternal.getPackageUid( in pushToActivityTaskManagerLocked() 671 final int uid = mPackageManagerInternal.getPackageUid(mDeviceOwner.packageName, in pushToAppOpsLocked() 680 final int uid = mPackageManagerInternal.getPackageUid( in pushToAppOpsLocked()
|
/frameworks/base/apex/blobstore/service/java/com/android/server/blob/ |
D | BlobStoreManagerService.java | 171 private PackageManagerInternal mPackageManagerInternal; field in BlobStoreManagerService 206 mPackageManagerInternal = LocalServices.getService(PackageManagerInternal.class); in onStart() 651 if (mPackageManagerInternal.getPackageUid( in verifyCallingPackage() 981 final int uid = mPackageManagerInternal.getPackageUid( in getPackageUid() 994 final List<ApplicationInfo> applicationInfos = mPackageManagerInternal in getAllPackages() 1426 if (Process.isIsolated(callingUid) || mPackageManagerInternal.isInstantApp( in createSession() 1476 if (Process.isIsolated(callingUid) || mPackageManagerInternal.isInstantApp( in openBlob() 1508 if (Process.isIsolated(callingUid) || mPackageManagerInternal.isInstantApp( in acquireLease() 1533 if (Process.isIsolated(callingUid) || mPackageManagerInternal.isInstantApp( in releaseLease() 1617 if (Process.isIsolated(callingUid) || mPackageManagerInternal.isInstantApp( in getLeaseInfo()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsService.java | 159 PackageManagerInternal mPackageManagerInternal; field in UsageStatsService 214 mPackageManagerInternal = LocalServices.getService(PackageManagerInternal.class); in onStart() 488 return !mPackageManagerInternal.canAccessInstantApps(callingUid, userId); in shouldObfuscateInstantAppsForCaller() 790 uid = mPackageManagerInternal.getPackageUid(event.mPackage, 0, userId); in reportEvent() 797 && mPackageManagerInternal.isPackageEphemeral(userId, event.mPackage)) { in reportEvent() 1058 if (mPackageManagerInternal.isPackageEphemeral(userId, stats.mPackageName)) { in queryUsageStats() 1459 if (mPackageManagerInternal.getPackageUid(pkg, /*flags=*/ 0, in checkCallerIsSameApp() 1658 final int actualCallingUid = mPackageManagerInternal.getPackageUidInternal( in isAppInactive() 1710 final int packageUid = mPackageManagerInternal.getPackageUid(packageName, 0, userId); in getAppStandbyBucket()
|
/frameworks/base/services/core/java/com/android/server/slice/ |
D | SliceManagerService.java | 87 private final PackageManagerInternal mPackageManagerInternal; field in SliceManagerService 109 mPackageManagerInternal = Objects.requireNonNull( in SliceManagerService() 489 final ComponentName defaultLauncher = mPackageManagerInternal in getDefaultHome()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/usage/ |
D | AppStandbyController.java | 1917 private PackageManagerInternal mPackageManagerInternal; field in AppStandbyController.Injector 1953 mPackageManagerInternal = LocalServices.getService(PackageManagerInternal.class); in onBootPhase() 2052 return mPackageManagerInternal; in getPackageManagerInternal() 2056 return mPackageManagerInternal.isPackageEphemeral(userId, packageName); in isPackageEphemeral() 2060 return mPackageManagerInternal.getPackageUid(packageName, flags, userId) >= 0; in isPackageInstalled() 2098 final int uid = mPackageManagerInternal.getPackageUidInternal(pkg, 0, userId); in getValidCrossProfileTargets() 2099 final AndroidPackage aPkg = mPackageManagerInternal.getPackage(uid); in getValidCrossProfileTargets()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/ |
D | DataManagerTest.java | 120 @Mock private PackageManagerInternal mPackageManagerInternal; field in DataManagerTest 150 addLocalServiceMock(PackageManagerInternal.class, mPackageManagerInternal); in setUp() 157 }).when(mPackageManagerInternal).forEachInstalledPackage(any(Consumer.class), anyInt()); in setUp() 720 doAnswer(ans -> null).when(mPackageManagerInternal) in testPruneUninstalledPackageData()
|
/frameworks/base/services/core/java/com/android/server/om/ |
D | OverlayManagerService.java | 1061 private final PackageManagerInternal mPackageManagerInternal; field in OverlayManagerService.PackageManagerHelperImpl 1073 mPackageManagerInternal = LocalServices.getService(PackageManagerInternal.class); in PackageManagerHelperImpl() 1123 final List<PackageInfo> overlays = mPackageManagerInternal.getOverlayPackages(userId); in getOverlayPackages()
|
/frameworks/base/services/people/java/com/android/server/people/data/ |
D | DataManager.java | 115 private PackageManagerInternal mPackageManagerInternal; field in DataManager 133 mPackageManagerInternal = LocalServices.getService(PackageManagerInternal.class); in initialize() 451 mPackageManagerInternal.forEachInstalledPackage( in pruneUninstalledPackageData()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | ShortcutService.java | 330 private final PackageManagerInternal mPackageManagerInternal; field in ShortcutService 450 mPackageManagerInternal = Objects.requireNonNull( in ShortcutService() 2717 final ComponentName defaultLauncher = mPackageManagerInternal in getDefaultLauncher() 3296 int packageUid = mPackageManagerInternal.getPackageUidInternal(packageName, in getShortcutIconUri()
|
/frameworks/base/services/appwidget/java/com/android/server/appwidget/ |
D | AppWidgetServiceImpl.java | 233 private PackageManagerInternal mPackageManagerInternal; field in AppWidgetServiceImpl 263 mPackageManagerInternal = LocalServices.getService(PackageManagerInternal.class); in onStart() 635 final String suspendingPackage = mPackageManagerInternal.getSuspendingPackage( in maskWidgetsViewsLocked() 642 mPackageManagerInternal.getSuspendedDialogInfo(providerPackage, in maskWidgetsViewsLocked()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/ |
D | KeyValueBackupTaskTest.java | 184 @Mock private PackageManagerInternal mPackageManagerInternal; field in KeyValueBackupTaskTest 251 when(mPackageManagerInternal.getApplicationEnabledState(any(), anyInt())) in setUp() 254 LocalServices.addService(PackageManagerInternal.class, mPackageManagerInternal); in setUp()
|
/frameworks/base/services/core/java/com/android/server/inputmethod/ |
D | InputMethodManagerService.java | 318 final PackageManagerInternal mPackageManagerInternal; field in InputMethodManagerService 1669 mPackageManagerInternal = LocalServices.getService(PackageManagerInternal.class); in InputMethodManagerService() 2374 mPackageManagerInternal.grantImplicitAccess(mSettings.getCurrentUserId(), in attachNewInputLocked() 2593 final int curMethodUid = mPackageManagerInternal.getPackageUidInternal( in onServiceConnected()
|
/frameworks/base/services/core/java/com/android/server/content/ |
D | SyncManager.java | 341 private final PackageManagerInternal mPackageManagerInternal; field in SyncManager 667 mPackageManagerInternal = LocalServices.getService(PackageManagerInternal.class); in SyncManager() 4071 return mPackageManagerInternal.wasPackageEverLaunched(packageName, userId); in wasPackageEverLaunched()
|