Home
last modified time | relevance | path

Searched refs:sPm (Results 1 – 8 of 8) sorted by relevance

/cts/hostsidetests/appsecurity/test-apps/DuplicatePermissionDeclareApp/src/com/android/cts/duplicatepermissiondeclareapp/
DVerifyDuplicatePermissionTest.java40 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/
DAppEnumerationTests.java611 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 …]
DUtils.java47 private static PackageManager sPm; field in Utils
69 if (sPm == null) { in getPackageManager()
70 sPm = getContext().getPackageManager(); in getPackageManager()
72 return sPm; in getPackageManager()
DPackageInstallerEnumerationTests.java98 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()
DAccountManagerEnumerationTest.java73 assertThat(sPm.canPackageQuery(sContext.getPackageName(), TARGET_VISIBLE), in onBefore()
76 () -> sPm.canPackageQuery(sContext.getPackageName(), TARGET_NOT_VISIBLE)); in onBefore()
DMediaSessionEnumerationTests.java68 final int targetUid = sPm.getPackageUid( in isTrustedForMediaControl()
DAppEnumerationTestsBase.java75 static PackageManager sPm; field in AppEnumerationTestsBase
91 sPm = sContext.getPackageManager(); in setup()
DLauncherAppsEnumerationTests.java558 () -> sPm.setDistractingPackageRestrictions(packagesToRestrict, distractionFlags)); in setDistractingPackageRestrictions()