/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageManagerGetPropertyTest.java | 52 private static PackageManager sPackageManager; field in PackageManagerGetPropertyTest 83 sPackageManager = InstrumentationRegistry in setupClass() 111 final Property testProperty = sPackageManager.getProperty( in testGetApplicationProperty() 118 final Property testProperty = sPackageManager.getProperty( in testGetApplicationProperty() 125 final Property testProperty = sPackageManager.getProperty( in testGetApplicationProperty() 132 final Property testProperty = sPackageManager.getProperty( in testGetApplicationProperty() 139 final Property testProperty = sPackageManager.getProperty( in testGetApplicationProperty() 146 final Property testProperty = sPackageManager.getProperty( in testGetApplicationProperty() 153 final Property testProperty = sPackageManager.getProperty( in testGetApplicationProperty() 160 final Property testProperty = sPackageManager.getProperty( in testGetApplicationProperty() [all …]
|
D | PackageManagerQueryPropertyTest.java | 50 private static PackageManager sPackageManager; field in PackageManagerQueryPropertyTest 80 sPackageManager = InstrumentationRegistry in setupClass() 109 final List<Property> testPropertyList = sPackageManager in testQueryApplicationProperties() 122 final List<Property> testPropertyList = sPackageManager in testQueryApplicationProperties() 131 final List<Property> testPropertyList = sPackageManager in testQueryApplicationProperties() 140 final List<Property> testPropertyList = sPackageManager in testQueryApplicationProperties() 149 final List<Property> testPropertyList = sPackageManager in testQueryActivityProperties() 162 final List<Property> testPropertyList = sPackageManager in testQueryActivityProperties() 175 final List<Property> testPropertyList = sPackageManager in testQueryActivityProperties() 192 final List<Property> testPropertyList = sPackageManager in testQueryActivityProperties() [all …]
|
/cts/tests/tests/content/pm/SecureFrp/src/com/android/tests/securefrpinstall/ |
D | SecureFrpInstallTest.java | 42 private static PackageManager sPackageManager; field in SecureFrpInstallTest 67 sPackageManager.getPackageInfo(TestApp.A, 0); in assertInstalled() 72 sPackageManager.getPackageInfo(TestApp.A, 0); in assertNotInstalled() 80 sPackageManager = InstrumentationRegistry in initialize()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/permissions/ |
D | Permissions.java | 56 private static final PackageManager sPackageManager = sContext.getPackageManager(); field in Permissions 332 protectionLevel = Integer.toString(sPackageManager.getPermissionInfo( in throwPermissionException() 377 PermissionInfo p = sPackageManager.getPermissionInfo(permission, /* flags= */ 0); in canGrantPermission()
|
/cts/tests/tests/role/src/android/app/role/cts/ |
D | RoleManagerTest.java | 120 private static final PackageManager sPackageManager = sContext.getPackageManager(); field in RoleManagerTest 184 sPackageManager.getPermissionControllerPackageName()); in requestRoleIntentHasPermissionControllerPackage() 884 PermissionInfo permissionInfo = sPackageManager.getPermissionInfo( in manageRolesFromControllerPermissionShouldBeDeclaredByPermissionController() 888 sPackageManager.getPermissionControllerPackageName()); in manageRolesFromControllerPermissionShouldBeDeclaredByPermissionController() 906 assertThat(sPackageManager.checkPermission(android.Manifest.permission.SEND_SMS, in addSmsRoleHolderThenPermissionIsGranted() 918 assertThat(sPackageManager.checkPermission(android.Manifest.permission.SEND_SMS, in removeSmsRoleHolderThenPermissionIsRevoked() 932 assertThat(sPackageManager.checkPermission(android.Manifest.permission.SEND_SMS, in removeSmsRoleHolderThenDialerRolePermissionIsRetained() 940 assertThat(sPackageManager.getDefaultBrowserPackageNameAsUser(UserHandle.myUserId())) in packageManagerGetDefaultBrowserBackedByRole() 946 callWithShellPermissionIdentity(() -> sPackageManager.setDefaultBrowserPackageNameAsUser( in packageManagerSetDefaultBrowserBackedByRole()
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
D | RestrictedStoragePermissionSharedUidTest.java | 79 private static @NonNull PackageManager sPackageManager = sContext.getPackageManager(); field in RestrictedStoragePermissionSharedUidTest.TestApp 127 return sPackageManager.getApplicationInfo(mPkg, 0).targetSdkVersion; in getTargetSDK()
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | UserControlDisabledPackagesTest.java | 71 private static final PackageManager sPackageManager = field in UserControlDisabledPackagesTest 223 sPackageManager.getPackageInfo(packageName, PackageManager.GET_META_DATA); in isPackageStopped()
|
D | DevicePolicyManagerTest.java | 77 private static final PackageManager sPackageManager = sContext.getPackageManager(); field in DevicePolicyManagerTest 556 return sPackageManager.getInstalledApplications(PackageManager.MATCH_SYSTEM_ONLY) in findSystemApps() 633 return sPackageManager.getInstalledApplications(PackageManager.MATCH_ALL) in findNonSystemApps()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | LocationAccessCheckTest.java | 130 private static final PackageManager sPackageManager = sContext.getPackageManager(); field in LocationAccessCheckTest 181 sPackageManager.getPackageUid(TEST_APP_PKG, 0), TEST_APP_PKG, in accessLocation() 277 int permControllerUid = sPackageManager.getPackageUid(PERMISSION_CONTROLLER_PKG, 0); in getLastJobTime()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/ |
D | Package.java | 77 private static final PackageManager sPackageManager = field in Package 404 sPackageManager.getPermissionInfo(permission, /* flags= */ 0); in checkCanGrantOrRevokePermission() 800 return sPackageManager.isInstantApp(mPackageName); in isInstantApp()
|
D | Packages.java | 158 private static final PackageManager sPackageManager = field in Packages
|