Home
last modified time | relevance | path

Searched refs:mPackageManagerInternal (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/services/robotests/src/com/android/server/pm/
DCrossProfileAppsServiceImplRoboTest.java115 @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/
DActivityStartInterceptorTest.java102 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/
DAppIntegrityManagerServiceImpl.java130 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/
DAppIntegrityManagerServiceImplTest.java137 @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/
DPlatformCompatTest.java56 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/
DCrossProfileAppsServiceImplTest.java84 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/
DOwners.java114 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/
DBlobStoreManagerService.java171 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/
DUsageStatsService.java159 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/
DSliceManagerService.java87 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/
DAppStandbyController.java1917 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/
DDataManagerTest.java120 @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/
DOverlayManagerService.java1061 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/
DDataManager.java115 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/
DShortcutService.java330 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/
DAppWidgetServiceImpl.java233 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/
DKeyValueBackupTaskTest.java184 @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/
DInputMethodManagerService.java318 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/
DSyncManager.java341 private final PackageManagerInternal mPackageManagerInternal; field in SyncManager
667 mPackageManagerInternal = LocalServices.getService(PackageManagerInternal.class); in SyncManager()
4071 return mPackageManagerInternal.wasPackageEverLaunched(packageName, userId); in wasPackageEverLaunched()