Searched refs:shadowPackageManager (Results 1 – 3 of 3) sorted by relevance
113 protected ShadowPackageManager shadowPackageManager; field in ShadowPackageManagerTest124 shadowPackageManager = shadowOf(packageManager); in setUp()177 shadowPackageManager.installPackage(packageInfo); in packageInstallerAndGetPackageArchiveInfo()179 PackageInfo packageInfoResult = shadowPackageManager.getPackageArchiveInfo(TEST_APP_PATH, 0); in packageInstallerAndGetPackageArchiveInfo()238 shadowPackageManager.installPackage(packageInfo); in testCheckPermission_otherPackages()258 shadowPackageManager.installPackage(packageInfo); in testCheckPermission_otherPackages_grantedByDefault()279 shadowPackageManager.installPackage(packageInfo); in testGrantRuntimePermission()313 shadowPackageManager.installPackage(packageInfo); in testGrantRuntimePermission_doesntRequestPermission()333 shadowPackageManager.installPackage(packageInfo); in testRevokeRuntimePermission()439 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()
240 ShadowPackageManager shadowPackageManager = Shadow.extract(contextImpl.getPackageManager()); in setUpApplicationState() local241 shadowPackageManager.addPackageInternal(parsedPackage); in setUpApplicationState()