Searched refs:sPm (Results 1 – 3 of 3) sorted by relevance
/cts/tests/tests/permission/src/android/permission/cts/ |
D | PermissionUpdateListenerTest.java | 54 private static final PackageManager sPm = sContext.getPackageManager(); field in PermissionUpdateListenerTest 60 sUid = sPm.getPackageUid(PACKAGE_NAME, 0); in installApp() 85 runWithShellPermissionIdentity(() -> sPm.removeOnPermissionsChangeListener(latch)); in waitForLatchAndRemoveListener() 95 sPm.revokeRuntimePermission(PACKAGE_NAME, PERMISSION_NAME, sContext.getUser()); in grantNotifiesListener() 96 sPm.addOnPermissionsChangeListener(listenerCalled); in grantNotifiesListener() 97 sPm.grantRuntimePermission(PACKAGE_NAME, PERMISSION_NAME, sContext.getUser()); in grantNotifiesListener() 108 sPm.grantRuntimePermission(PACKAGE_NAME, PERMISSION_NAME, sContext.getUser()); in revokeNotifiesListener() 109 sPm.addOnPermissionsChangeListener(listenerCalled); in revokeNotifiesListener() 110 sPm.revokeRuntimePermission(PACKAGE_NAME, PERMISSION_NAME, sContext.getUser()); in revokeNotifiesListener() 121 sPm.addOnPermissionsChangeListener(listenerCalled); in updateFlagsNotifiesListener() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/DuplicatePermissionDeclareApp/src/com/android/cts/duplicatepermissiondeclareapp/ |
D | VerifyDuplicatePermissionTest.java | 40 private final static PackageManager sPm = field in VerifyDuplicatePermissionTest 44 for (PermissionInfo permInfo : sPm.getPackageInfo(pkg, GET_PERMISSIONS).permissions) { in getDeclaredPermission() 57 assertEquals(APP_THAT_WAS_INSTALLED_FIRST, sPm.getPermissionInfo(PERM, 0).packageName); in verifyDuplicatePermission()
|
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/ |
D | AppEnumerationTests.java | 191 private static PackageManager sPm; field in AppEnumerationTests 218 sPm = InstrumentationRegistry.getInstrumentation().getContext().getPackageManager(); in setup() 497 final int targetSharedUid = sPm.getPackageUid(TARGET_SHARED_USER, /* flags */ 0); in queriesNothing_getPackagesForUid_consistentVisibility() 498 final int targetUid = sPm.getPackageUid(TARGET_FILTERS, /* flags */ 0); in queriesNothing_getPackagesForUid_consistentVisibility() 506 final int targetSharedUid = sPm.getPackageUid(TARGET_SHARED_USER, /* flags */ 0); in queriesNothingHasPermission_getPackagesForUid_consistentVisibility() 507 final int targetUid = sPm.getPackageUid(TARGET_FILTERS, /* flags */ 0); in queriesNothingHasPermission_getPackagesForUid_consistentVisibility() 515 final int targetSharedUid = sPm.getPackageUid(TARGET_SHARED_USER, /* flags */ 0); in queriesNothing_getNameForUid_consistentVisibility() 516 final int targetUid = sPm.getPackageUid(TARGET_FILTERS, /* flags */ 0); in queriesNothing_getNameForUid_consistentVisibility() 524 final int targetSharedUid = sPm.getPackageUid(TARGET_SHARED_USER, /* flags */ 0); in queriesNothingHasPermission_getNameForUid_consistentVisibility() 525 final int targetUid = sPm.getPackageUid(TARGET_FILTERS, /* flags */ 0); in queriesNothingHasPermission_getNameForUid_consistentVisibility() [all …]
|