Searched refs:sPackageManager (Results 1 – 6 of 6) sorted by relevance
52 private static PackageManager sPackageManager; field in ShadowApplicationPackageManager67 sPackageManager = null; in reset()96 sPackageManager.deleteApplicationCacheFiles(packageName, observer); in deleteApplicationCacheFiles()206 sPackageManager = packageManager; in setPackageManager()
145 private static final PackageManager sPackageManager = sContext.getPackageManager(); field in RoleManagerTest147 private static final boolean sIsAutomotive = sPackageManager.hasSystemFeature(149 private static final boolean sIsTelevision = sPackageManager.hasSystemFeature(151 private static final boolean sIsWatch = sPackageManager.hasSystemFeature(236 sPackageManager.getPermissionControllerPackageName()); in requestRoleIntentHasPermissionControllerPackage()1125 PermissionInfo permissionInfo = sPackageManager.getPermissionInfo( in manageRolesFromControllerPermissionShouldBeDeclaredByPermissionController()1129 sPackageManager.getPermissionControllerPackageName()); in manageRolesFromControllerPermissionShouldBeDeclaredByPermissionController()1147 assertThat(sPackageManager.checkPermission(android.Manifest.permission.SEND_SMS, in addSmsRoleHolderThenPermissionIsGranted()1159 assertThat(sPackageManager.checkPermission(android.Manifest.permission.SEND_SMS, in removeSmsRoleHolderThenPermissionIsRevoked()1173 assertThat(sPackageManager.checkPermission(android.Manifest.permission.SEND_SMS, in removeSmsRoleHolderThenDialerRolePermissionIsRetained()[all …]
80 private static @NonNull PackageManager sPackageManager = sContext.getPackageManager(); field in RestrictedStoragePermissionSharedUidTest.TestApp128 return sPackageManager.getApplicationInfo(mPkg, 0).targetSdkVersion; in getTargetSDK()
101 private static final PackageManager sPackageManager = sContext.getPackageManager(); field in BaseNotificationListenerCheckTest
132 private static final PackageManager sPackageManager = sContext.getPackageManager(); field in LocationAccessCheckTest270 sPackageManager.getPackageUid(TEST_APP_PKG, 0), TEST_APP_PKG, in accessLocation()
148 private static final PackageManager sPackageManager = sContext.getPackageManager(); field in EthernetTetheringTestBase843 assertTrue(fallbackException.toString(), sPackageManager.hasSystemFeature(FEATURE_WIFI)); in maybeRetryTestedUpstreamChanged()