Searched refs:sPm (Results 1 – 8 of 8) sorted by relevance
/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 | 611 final int targetSharedUid = sPm.getPackageUid(TARGET_SHARED_USER, PackageInfoFlags.of(0)); in queriesNothing_getPackagesForUid_consistentVisibility() 612 final int targetUid = sPm.getPackageUid(TARGET_FILTERS, PackageInfoFlags.of(0)); in queriesNothing_getPackagesForUid_consistentVisibility() 620 final int targetSharedUid = sPm.getPackageUid(TARGET_SHARED_USER, PackageInfoFlags.of(0)); in queriesNothingHasPermission_getPackagesForUid_consistentVisibility() 621 final int targetUid = sPm.getPackageUid(TARGET_FILTERS, PackageInfoFlags.of(0)); in queriesNothingHasPermission_getPackagesForUid_consistentVisibility() 629 final int targetSharedUid = sPm.getPackageUid(TARGET_SHARED_USER, PackageInfoFlags.of(0)); in queriesNothing_getNameForUid_consistentVisibility() 630 final int targetUid = sPm.getPackageUid(TARGET_FILTERS, PackageInfoFlags.of(0)); in queriesNothing_getNameForUid_consistentVisibility() 638 final int targetSharedUid = sPm.getPackageUid(TARGET_SHARED_USER, PackageInfoFlags.of(0)); in queriesNothingHasPermission_getNameForUid_consistentVisibility() 639 final int targetUid = sPm.getPackageUid(TARGET_FILTERS, PackageInfoFlags.of(0)); in queriesNothingHasPermission_getNameForUid_consistentVisibility() 651 sPm.getPackageUid(TARGET_SHARED_USER, PackageInfoFlags.of(0)); in queriesNothing_getNamesForUids_consistentVisibility() 652 final int targetUid = sPm.getPackageUid(TARGET_FILTERS, PackageInfoFlags.of(0)); in queriesNothing_getNamesForUids_consistentVisibility() [all …]
|
D | Utils.java | 47 private static PackageManager sPm; field in Utils 69 if (sPm == null) { in getPackageManager() 70 sPm = getContext().getPackageManager(); in getPackageManager() 72 return sPm; in getPackageManager()
|
D | PackageInstallerEnumerationTests.java | 98 final PackageInstaller installer = sPm.getPackageInstaller(); in getSessionInfo_sessionOwner_canSeeSession() 143 final PackageInstaller installer = sPm.getPackageInstaller(); in getStagedSessions_sessionOwner_canSeeSession() 186 final PackageInstaller installer = sPm.getPackageInstaller(); in getAllSessions_sessionOwner_canSeeSession()
|
D | AccountManagerEnumerationTest.java | 73 assertThat(sPm.canPackageQuery(sContext.getPackageName(), TARGET_VISIBLE), in onBefore() 76 () -> sPm.canPackageQuery(sContext.getPackageName(), TARGET_NOT_VISIBLE)); in onBefore()
|
D | MediaSessionEnumerationTests.java | 68 final int targetUid = sPm.getPackageUid( in isTrustedForMediaControl()
|
D | AppEnumerationTestsBase.java | 75 static PackageManager sPm; field in AppEnumerationTestsBase 91 sPm = sContext.getPackageManager(); in setup()
|
D | LauncherAppsEnumerationTests.java | 558 () -> sPm.setDistractingPackageRestrictions(packagesToRestrict, distractionFlags)); in setDistractingPackageRestrictions()
|