Searched refs:shadowPackageManager (Results 1 – 3 of 3) sorted by relevance
110 protected ShadowPackageManager shadowPackageManager; field in ShadowPackageManagerTest121 shadowPackageManager = shadowOf(packageManager); in setUp()174 shadowPackageManager.installPackage(packageInfo); in packageInstallerAndGetPackageArchiveInfo()176 PackageInfo packageInfoResult = shadowPackageManager.getPackageArchiveInfo(TEST_APP_PATH, 0); in packageInstallerAndGetPackageArchiveInfo()235 shadowPackageManager.installPackage(packageInfo); in testCheckPermission_otherPackages()255 shadowPackageManager.installPackage(packageInfo); in testCheckPermission_otherPackages_grantedByDefault()276 shadowPackageManager.installPackage(packageInfo); in testGrantRuntimePermission()310 shadowPackageManager.installPackage(packageInfo); in testGrantRuntimePermission_doesntRequestPermission()330 shadowPackageManager.installPackage(packageInfo); in testRevokeRuntimePermission()436 shadowPackageManager.addPermissionInfo(permissionInfo); in getPermissionInfo_addedPermissions()[all …]
34 ShadowApplicationPackageManager shadowPackageManager = in setUp() local36 shadowPackageManager.setPackagesForUid(PACKAGE_1_UID, new String[] {PACKAGE_NAME_1}); in setUp()37 shadowPackageManager.setPackagesForUid(PACKAGE_2_UID, new String[] {PACKAGE_NAME_2}); in setUp()
215 ShadowPackageManager shadowPackageManager = Shadow.extract(contextImpl.getPackageManager()); in setUpApplicationState() local216 shadowPackageManager.addPackageInternal(parsedPackage); in setUpApplicationState()