/frameworks/base/services/tests/PackageManagerServiceTests/appenumeration/src/com/android/server/pm/test/appenumeration/ |
D | CrossUserPackageVisibilityTests.java | 100 private IPackageManager mIPackageManager; field in CrossUserPackageVisibilityTests 108 mIPackageManager = AppGlobals.getPackageManager(); in setup() 136 () -> mIPackageManager.getSplashScreenTheme( in testGetSplashScreenTheme_withCrossUserId() 142 final KeySet keySet = mIPackageManager.getSigningKeySet(mContext.getPackageName()); in testIsPackageSignedByKeySet_cannotDetectCrossUserPkg() 144 () -> mIPackageManager.isPackageSignedByKeySet( in testIsPackageSignedByKeySet_cannotDetectCrossUserPkg() 150 () -> mIPackageManager.isPackageSignedByKeySet( in testIsPackageSignedByKeySet_cannotDetectCrossUserPkg() 156 final KeySet keySet = mIPackageManager.getSigningKeySet(mContext.getPackageName()); in testIsPackageSignedByKeySetExactly_cannotDetectCrossUserPkg() 158 () -> mIPackageManager.isPackageSignedByKeySetExactly( in testIsPackageSignedByKeySetExactly_cannotDetectCrossUserPkg() 164 () -> mIPackageManager.isPackageSignedByKeySetExactly( in testIsPackageSignedByKeySetExactly_cannotDetectCrossUserPkg() 171 () -> mIPackageManager.getSigningKeySet(CROSS_USER_TEST_PACKAGE_NAME)); in testGetSigningKeySet_cannotDetectCrossUserPkg() [all …]
|
D | AppEnumerationInternalTests.java | 74 private IPackageManager mIPackageManager; field in AppEnumerationInternalTests 78 mIPackageManager = AppGlobals.getPackageManager(); in setup() 93 mIPackageManager.querySyncProviders(names, infos); in querySyncProviders_canSeeForceQueryable() 105 mIPackageManager.querySyncProviders(names, infos); in querySyncProviders_cannotSeeSyncProvider() 116 final String[] packageNames = mIPackageManager.getAppOpPermissionPackages( in getAppOpPermissionPackages_canSeeForceQueryable() 126 final String[] packageNames = mIPackageManager.getAppOpPermissionPackages( in getAppOpPermissionPackages_cannotSeeHasAppOpPermission() 136 final int uid = mIPackageManager.getUidForSharedUser(SHARED_USER_NAME); in getUidForSharedUser_canSeeForceQueryable() 144 final int uid = mIPackageManager.getUidForSharedUser(SHARED_USER_NAME); in getUidForSharedUser_cannotSeeSharedUser()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/ |
D | PackageManagerWrapper.java | 36 private static final IPackageManager mIPackageManager = AppGlobals.getPackageManager(); field in PackageManagerWrapper 52 return mIPackageManager.getActivityInfo(componentName, PackageManager.GET_META_DATA, in getActivityInfo() 66 return mIPackageManager.getHomeActivities(allHomeCandidates); in getHomeActivities() 80 return mIPackageManager.resolveIntent( in resolveActivity()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/ |
D | PackageManagerAdapter.java | 38 private IPackageManager mIPackageManager; field in PackageManagerAdapter 45 mIPackageManager = AppGlobals.getPackageManager(); in PackageManagerAdapter() 50 return mIPackageManager.getServiceInfo(className, flags, userId); in getServiceInfo()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/wallpapereffectsgeneration/ |
D | WallpaperEffectsGenerationPerUserServiceTest.java | 61 private IPackageManager mIPackageManager; field in WallpaperEffectsGenerationPerUserServiceTest 69 mIPackageManager = AppGlobals.getPackageManager(); in setUp() 70 spyOn(mIPackageManager); in setUp() 79 when(mIPackageManager.getServiceInfo(any(), anyLong(), anyInt())) in setUp()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/ |
D | DeviceProvisionedCoordinator.java | 42 private final IPackageManager mIPackageManager; field in DeviceProvisionedCoordinator 48 mIPackageManager = packageManager; in DeviceProvisionedCoordinator() 79 return mIPackageManager.checkUidPermission(permission, uid); in checkUidPermission()
|
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/ |
D | PackageManagerServiceTest.java | 74 private IPackageManager mIPackageManager; field in PackageManagerServiceTest 78 mIPackageManager = AppGlobals.getPackageManager(); in setUp() 474 mIPackageManager.getInstallReason(TEST_PKG_NAME, in testInstallReason_afterUpdate_keepUnchanged() 481 mIPackageManager.getInstallReason(TEST_PKG_NAME, in testInstallReason_afterUpdate_keepUnchanged() 500 mIPackageManager.getInstallReason(TEST_PKG_NAME, in testInstallReason_userRemainsUninstalled_keepUnknown() 509 mIPackageManager.getPackageInfo(TEST_PKG_NAME, 0 /* flags */, userId)).isNull(); in testInstallReason_userRemainsUninstalled_keepUnknown() 511 mIPackageManager.getInstallReason(TEST_PKG_NAME, userId)).isEqualTo( in testInstallReason_userRemainsUninstalled_keepUnknown() 536 mIPackageManager.getInstallReason(TEST_PKG_NAME, in testInstallReason_installForAllUsers_sameReason() 538 mIPackageManager.getInstallReason(TEST_PKG_NAME, userId)); in testInstallReason_installForAllUsers_sameReason() 562 mIPackageManager.getInstallReason(TEST_PKG_NAME, in testInstallReason_installSeparately_withSeparatedReason() [all …]
|
D | CrossProfileAppsServiceImplTest.java | 104 private IPackageManager mIPackageManager; field in CrossProfileAppsServiceImplTest 759 return mIPackageManager; in getIPackageManager()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | PendingIntentControllerTest.java | 77 private IPackageManager mIPackageManager; field in PendingIntentControllerTest 94 doReturn(mIPackageManager).when(() -> AppGlobals.getPackageManager()); in setUp() 95 when(mIPackageManager.getPackageUid(eq(TEST_PACKAGE_NAME), anyLong(), anyInt())).thenReturn( in setUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/ |
D | DeviceProvisionedCoordinatorTest.java | 65 @Mock private IPackageManager mIPackageManager; field in DeviceProvisionedCoordinatorTest 77 mDeviceProvisionedController, mIPackageManager); in setup()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/apphibernation/ |
D | AppHibernationServiceTest.java | 106 private IPackageManager mIPackageManager; field in AppHibernationServiceTest 150 doReturn(new ParceledListSlice<>(packages)).when(mIPackageManager).getInstalledPackages( in setUp() 152 doReturn(mock(ApplicationInfo.class)).when(mIPackageManager).getApplicationInfo( in setUp() 174 verify(mIPackageManager).deleteApplicationCacheFilesAsUser( in testSetHibernatingForUser_packageIsHibernating() 520 doReturn(new ParceledListSlice<>(userPackages)).when(mIPackageManager) in addUser() 558 return mIPackageManager; in getPackageManager()
|
/frameworks/base/services/core/java/com/android/server/apphibernation/ |
D | AppHibernationService.java | 113 private final IPackageManager mIPackageManager; field in AppHibernationService 150 mIPackageManager = injector.getPackageManager(); in AppHibernationService() 460 ApplicationInfo info = mIPackageManager.getApplicationInfo( in hibernatePackageForUser() 468 mIPackageManager.deleteApplicationCacheFilesAsUser(packageName, userId, in hibernatePackageForUser() 497 ApplicationInfo info = mIPackageManager.getApplicationInfo( in unhibernatePackageForUser() 594 packages = mIPackageManager.getInstalledPackages(PACKAGE_MATCH_FLAGS, userId).getList(); in initializeUserHibernationStates() 646 packages = mIPackageManager.getInstalledPackages( in initializeGlobalHibernationStates()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | BackgroundJobsControllerTest.java | 93 private IPackageManager mIPackageManager; field in BackgroundJobsControllerTest 126 doReturn(mIPackageManager).when(AppGlobals::getPackageManager); in setUp() 166 doReturn(uid).when(mIPackageManager) in setPackageUid()
|
D | FlexibilityControllerTest.java | 147 private IPackageManager mIPackageManager; field in FlexibilityControllerTest 195 doReturn(mIPackageManager).when(AppGlobals::getPackageManager); in setup() 1938 doReturn(uid).when(mIPackageManager) in setPackageUid()
|
/frameworks/base/services/core/java/com/android/server/appbinding/ |
D | AppBindingService.java | 79 private final IPackageManager mIPackageManager; field in AppBindingService 148 mIPackageManager = injector.getIPackageManager(); in AppBindingService() 396 final ServiceInfo service = app.findService(userId, mIPackageManager, mConstants); in bindServicesLocked()
|
/frameworks/base/services/robotests/src/com/android/server/pm/ |
D | CrossProfileAppsServiceImplRoboTest.java | 119 @Mock private IPackageManager mIPackageManager; field in CrossProfileAppsServiceImplRoboTest 174 when(mIPackageManager.getAppOpPermissionPackages(eq(permissionName), anyInt())) in mockCrossProfileAppRequestsInteractAcrossProfiles() 493 when(mIPackageManager.getAppOpPermissionPackages(eq(permissionName), anyInt())) in mockCrossProfileAppDoesNotRequestInteractAcrossProfiles() 776 return mIPackageManager; in getIPackageManager()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | CrossProfileAppsServiceImplTest.java | 104 private IPackageManager mIPackageManager; field in CrossProfileAppsServiceImplTest 759 return mIPackageManager; in getIPackageManager()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DevicePolicyManagerService.java | 901 final IPackageManager mIPackageManager; field in DevicePolicyManagerService 1453 if (mIPackageManager.getPackageInfo(adminPackage, 0, userHandle) == null in handlePackagesChanged() 1454 || mIPackageManager.getReceiverInfo(aa.info.getComponent(), in handlePackagesChanged() 1525 && mIPackageManager.getPackageInfo(targetPackage, 0, userHandle) == null; in isRemovedPackage() 2085 mIPackageManager = Objects.requireNonNull(injector.getIPackageManager()); in DevicePolicyManagerService() 2506 appInfo = mIPackageManager.getApplicationInfo( in uninstallOrDisablePackage() 3175 return mIPackageManager.getReceiverInfo(adminName, 7296 receivers = mIPackageManager.queryIntentReceivers( 7588 final ApplicationInfo ai = mIPackageManager.getApplicationInfo( 7917 mIPackageManager.clearCrossProfileIntentFilters(parentUserId, [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | StorageManagerService.java | 573 private IPackageManager mIPackageManager; field in StorageManagerService 2099 mIPackageManager = IPackageManager.Stub.asInterface( in servicesReady() 3485 final String[] packagesFromUid = mIPackageManager.getPackagesForUid(originalUid); in getManageSpaceActivityIntent() 3502 appInfo = mIPackageManager.getApplicationInfo(packageName, 0, in getManageSpaceActivityIntent() 3856 final String[] packagesFromUid = mIPackageManager.getPackagesForUid(callingUid); in getVolumeList() 4523 final String[] packagesForUid = mIPackageManager.getPackagesForUid(uid); in getMountModeInternal() 4556 final boolean hasMtp = mIPackageManager.checkUidPermission(ACCESS_MTP, uid) == in getMountModeInternal() 4559 ApplicationInfo ai = mIPackageManager.getApplicationInfo(packageName, in getMountModeInternal() 4569 final boolean hasInstall = mIPackageManager.checkUidPermission(INSTALL_PACKAGES, in getMountModeInternal() 4890 return mIPackageManager.checkUidPermission( in hasExternalStorageAccess()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/ |
D | JobConcurrencyManagerTest.java | 112 private IPackageManager mIPackageManager; field in JobConcurrencyManagerTest 169 doReturn(mIPackageManager).when(AppGlobals::getPackageManager); in setUp() 1053 doReturn(uid).when(mIPackageManager) in setPackageUid()
|
/frameworks/base/services/core/java/com/android/server/wallpaper/ |
D | WallpaperManagerService.java | 637 private final IPackageManager mIPackageManager; field in WallpaperManagerService 1513 mIPackageManager = AppGlobals.getPackageManager(); in WallpaperManagerService() 1870 si = mIPackageManager.getServiceInfo(cname, in switchWallpaper() 3284 ServiceInfo si = mIPackageManager.getServiceInfo(componentName, in bindWallpaperComponentLocked() 3310 mIPackageManager.queryIntentServices(intent, in bindWallpaperComponentLocked() 3347 final int hasPrivilege = mIPackageManager.checkPermission( in bindWallpaperComponentLocked() 3352 && !mIPackageManager.hasSystemFeature(PackageManager.FEATURE_WATCH, 0)) { in bindWallpaperComponentLocked() 3376 final int componentUid = mIPackageManager.getPackageUid(componentName.getPackageName(), in bindWallpaperComponentLocked()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | ShortcutService.java | 377 private final IPackageManager mIPackageManager; field in ShortcutService 504 mIPackageManager = AppGlobals.getPackageManager(); in ShortcutService() 4036 return mIPackageManager.getPackageUid(packageName, PACKAGE_MATCH_FLAGS, userId); 4067 return mIPackageManager.getPackageInfo(packageName, PACKAGE_MATCH_FLAGS 4101 return mIPackageManager.getApplicationInfo(packageName, PACKAGE_MATCH_FLAGS, userId); 4132 return mIPackageManager.getActivityInfo(activity, 4178 mIPackageManager.getInstalledPackages(PACKAGE_MATCH_FLAGS, userId); 4223 enabledFlag = mIPackageManager.getComponentEnabledSetting(
|