/frameworks/base/services/tests/servicestests/src/com/android/server/uri/ |
D | UriGrantsMockContext.java | 100 final PackageManagerInternal mPmInternal; field in UriGrantsMockContext 111 mPmInternal = mock(PackageManagerInternal.class); in UriGrantsMockContext() 113 LocalServices.addService(PackageManagerInternal.class, mPmInternal); in UriGrantsMockContext() 116 when(mPmInternal.getPackageUid(eq(PKG_SOCIAL), anyLong(), eq(userId))) in UriGrantsMockContext() 118 when(mPmInternal.getPackageUid(eq(PKG_CAMERA), anyLong(), eq(userId))) in UriGrantsMockContext() 120 when(mPmInternal.getPackageUid(eq(PKG_PRIVATE), anyLong(), eq(userId))) in UriGrantsMockContext() 122 when(mPmInternal.getPackageUid(eq(PKG_PUBLIC), anyLong(), eq(userId))) in UriGrantsMockContext() 124 when(mPmInternal.getPackageUid(eq(PKG_FORCE), anyLong(), eq(userId))) in UriGrantsMockContext() 126 when(mPmInternal.getPackageUid(eq(PKG_COMPLEX), anyLong(), eq(userId))) in UriGrantsMockContext() 129 when(mPmInternal.resolveContentProvider(eq(PKG_CAMERA), anyLong(), eq(userId), in UriGrantsMockContext() [all …]
|
D | UriGrantsManagerServiceTest.java | 110 verify(mContext.mPmInternal, never()).grantImplicitAccess( in verifyNoVisibilityGrant() 165 verify(mContext.mPmInternal).grantImplicitAccess(eq(USER_PRIMARY), isNull(), eq( in testNeeded_public() 396 final ProviderInfo cameraInfo = mContext.mPmInternal.resolveContentProvider( in testCheckAuthorityGrants()
|
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/ |
D | AppsFilterImplTest.java | 115 PackageManagerInternal mPmInternal; field in AppsFilterImplTest 235 when(mPmInternal.snapshot()).thenReturn(mSnapshot); in setup() 258 appsFilter.onSystemReady(mPmInternal); in testSystemReadyPropogates() 272 appsFilter.onSystemReady(mPmInternal); in testQueriesAction_FilterMatches() 304 appsFilter.onSystemReady(mPmInternal); in testQueriesProtectedAction_FilterDoesNotMatch() 346 appsFilter.onSystemReady(mPmInternal); in testQueriesProvider_FilterMatches() 369 appsFilter.onSystemReady(mPmInternal); in testOnUserUpdated_FilterMatches() 419 appsFilter.onSystemReady(mPmInternal); in testQueriesDifferentProvider_Filters() 441 appsFilter.onSystemReady(mPmInternal); in testQueriesProviderWithSemiColon_FilterMatches() 460 appsFilter.onSystemReady(mPmInternal); in testQueriesAction_NoMatchingAction_Filters() [all …]
|
/frameworks/base/services/core/java/com/android/server/uri/ |
D | UriGrantsManagerService.java | 128 PackageManagerInternal mPmInternal; field in UriGrantsManagerService 183 service.mPmInternal = LocalServices.getService(PackageManagerInternal.class); in createForTest() 217 mService.mPmInternal = LocalServices.getService(PackageManagerInternal.class); in onBootPhase() 379 uid = mPmInternal.getPackageUid(toPackage, 0 /* flags */, userId); in takePersistableUriPermission() 444 uid = mPmInternal.getPackageUid(toPackage, 0 /* flags */ , userId); in releasePersistableUriPermission() 652 targetUid = mPmInternal.getPackageUid(targetPkg, MATCH_DEBUG_TRIAGED_MISSING, in checkGrantUriPermissionFromIntentUnlocked() 813 int targetUid = mPmInternal.getPackageUid( in readGrantedUriPermissionsLocked() 821 mPmInternal.grantImplicitAccess( in readGrantedUriPermissionsLocked() 889 mPmInternal.grantImplicitAccess(UserHandle.getUserId(targetUid), null /*intent*/, in grantUriPermissionUnchecked() 912 int targetUid = mPmInternal.getPackageUid(targetPkg, MATCH_DEBUG_TRIAGED_MISSING, in grantUriPermissionUnlocked() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | StorageManagerService.java | 571 private PackageManagerInternal mPmInternal; field in StorageManagerService 1694 mPmInternal.migrateLegacyObbData(); in onVolumeStateChangedLocked() 2097 mPmInternal = LocalServices.getService(PackageManagerInternal.class); in servicesReady() 2122 return mPmInternal.resolveContentProvider( in getProviderInfo() 2148 for (ApplicationInfo ai : mPmInternal.getInstalledApplications(MATCH_DIRECT_BOOT_AWARE in snapshotAndMonitorLegacyStorageAppOp() 2341 mPmInternal.getSharedUserPackagesForPackage(packageName, userId); in remountAppStorageDirs() 2342 final int uid = mPmInternal.getPackageUid(packageName, 0 /* flags */, userId); in remountAppStorageDirs() 3102 return mPmInternal.isSameApp(packageName, callerUid, UserHandle.getUserId(callerUid)); in isUidOwnerOfPackageOrSystem() 3461 mPmInternal.getSharedUserPackagesForPackage(pkgName, userId); in disableAppDataIsolation() 3462 final int uid = mPmInternal.getPackageUid(pkgName, 0, userId); in disableAppDataIsolation() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | AppsFilterImpl.java | 257 private final PackageManagerInternal mPmInternal; field in AppsFilterImpl.FeatureConfigImpl 269 mPmInternal = pmInternal; in FeatureConfigImpl() 275 mPmInternal = null; in FeatureConfigImpl() 363 Computer snapshot = (Computer) mPmInternal.snapshot(); in onCompatChange()
|
D | UserManagerService.java | 367 private PackageManagerInternal mPmInternal; field in UserManagerService 8087 if (mPmInternal == null) { 8088 mPmInternal = LocalServices.getService(PackageManagerInternal.class); 8090 return mPmInternal;
|
/frameworks/base/services/core/java/com/android/server/dreams/ |
D | DreamManagerService.java | 125 private final PackageManagerInternal mPmInternal; field in DreamManagerService 235 mPmInternal = getLocalService(PackageManagerInternal.class); in DreamManagerService() 1185 if (!mPmInternal.isSameApp(packageName, callingUid, UserHandle.getUserId(callingUid))) { in canLaunchDreamActivity()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ActivityTaskManagerService.java | 378 private PackageManagerInternal mPmInternal; field in ActivityTaskManagerService 2291 return mPmInternal.isSameApp(packageName, callingUid, UserHandle.getUserId(callingUid)); in isSameApp() 5429 if (mPmInternal == null) { in getPackageManagerInternalLocked() 5430 mPmInternal = LocalServices.getService(PackageManagerInternal.class); in getPackageManagerInternalLocked() 5432 return mPmInternal; in getPackageManagerInternalLocked()
|
D | ActivityClientController.java | 792 final PackageManagerInternal pm = mService.mWindowManager.mPmInternal; in isInternalCallerGetLaunchedFrom()
|
D | WindowManagerService.java | 610 final PackageManagerInternal mPmInternal; field in WindowManagerService 1374 mPmInternal = LocalServices.getService(PackageManagerInternal.class); in WindowManagerService() 1825 final boolean suspended = mPmInternal.isPackageSuspended(win.getOwningPackage(), in addWindow() 2028 final ApplicationInfo appInfo = mPmInternal.getApplicationInfo( in doesAddToastWindowRequireToken()
|
D | ActivityRecord.java | 10540 && mWmService.mPmInternal.filterAppAccess(
|