Home
last modified time | relevance | path

Searched refs:sPackageManager (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowApplicationPackageManager.java52 private static PackageManager sPackageManager; field in ShadowApplicationPackageManager
67 sPackageManager = null; in reset()
96 sPackageManager.deleteApplicationCacheFiles(packageName, observer); in deleteApplicationCacheFiles()
206 sPackageManager = packageManager; in setPackageManager()
/packages/modules/Permission/tests/cts/role/src/android/app/role/cts/
DRoleManagerTest.java145 private static final PackageManager sPackageManager = sContext.getPackageManager(); field in RoleManagerTest
147 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 …]
/packages/modules/Permission/tests/cts/permissionpolicy/src/android/permissionpolicy/cts/
DRestrictedStoragePermissionSharedUidTest.java80 private static @NonNull PackageManager sPackageManager = sContext.getPackageManager(); field in RestrictedStoragePermissionSharedUidTest.TestApp
128 return sPackageManager.getApplicationInfo(mPkg, 0).targetSdkVersion; in getTargetSDK()
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DBaseNotificationListenerCheckTest.java101 private static final PackageManager sPackageManager = sContext.getPackageManager(); field in BaseNotificationListenerCheckTest
DLocationAccessCheckTest.java132 private static final PackageManager sPackageManager = sContext.getPackageManager(); field in LocationAccessCheckTest
270 sPackageManager.getPackageUid(TEST_APP_PKG, 0), TEST_APP_PKG, in accessLocation()
/packages/modules/Connectivity/Tethering/tests/integration/base/android/net/
DEthernetTetheringTestBase.java148 private static final PackageManager sPackageManager = sContext.getPackageManager(); field in EthernetTetheringTestBase
843 assertTrue(fallbackException.toString(), sPackageManager.hasSystemFeature(FEATURE_WIFI)); in maybeRetryTestedUpstreamChanged()