Searched refs:requestedPermissions (Results 1 – 10 of 10) sorted by relevance
770 public final String[] requestedPermissions; field in ShadowActivity.PermissionsRequest772 public PermissionsRequest(String[] requestedPermissions, int requestCode) { in PermissionsRequest() argument773 this.requestedPermissions = requestedPermissions; in PermissionsRequest()
678 String[] requestedPermissions = in doPendingUninstallCallbacks() local679 packageInfos.get(RuntimeEnvironment.application.getPackageName()).requestedPermissions; in doPendingUninstallCallbacks()680 if (requestedPermissions != null) { in doPendingUninstallCallbacks()681 for (String permission : requestedPermissions) { in doPendingUninstallCallbacks()
653 if (permissionsInfo == null || permissionsInfo.requestedPermissions == null) { in checkPermission()658 for (int i = 0; i < permissionsInfo.requestedPermissions.length; i++) { in checkPermission()659 permission = permissionsInfo.requestedPermissions[i]; in checkPermission()1296 if (packageInfo.requestedPermissions != null) { in getPermissionIndex()1297 for (int i = 0; i < packageInfo.requestedPermissions.length; i++) { in getPermissionIndex()1298 if (permissionName.equals(packageInfo.requestedPermissions[i])) { in getPermissionIndex()
128 pkg.requestedPermissions.addAll(androidManifest.getUsedPermissions()); in createPackage()132 permissionsRequired.addAll(buildBooleanList(pkg.requestedPermissions.size(), true)); in createPackage()
616 if (Arrays.asList(packageInfo.requestedPermissions).contains(permission)) { in setPermissionGrantState()
170 packageInfo.requestedPermissions = new String[] { permission.DEVICE_POWER }; in setPowerSaveMode_succeedsWithPermission()
230 packageInfo.requestedPermissions = new String[] { in testCheckPermission_otherPackages()253 packageInfo.requestedPermissions = new String[] { in testCheckPermission_otherPackages_grantedByDefault()273 packageInfo.requestedPermissions = in testGrantRuntimePermission()307 packageInfo.requestedPermissions = in testGrantRuntimePermission_doesntRequestPermission()326 packageInfo.requestedPermissions = in testRevokeRuntimePermission()1435 String[] permissions = packageInfo.requestedPermissions; in getPackageInfo_shouldReturnRequestedPermissions()2281 .requestedPermissions = in deletePackage()
147 packageInfo.requestedPermissions = new String[] {permission.MANAGE_USERS}; in enforcePermissionChecks()
939 assertThat(request.requestedPermissions).isEqualTo(permission); in getPermission_shouldReturnRequestedPermissions()
609 String[] ps = info.requestedPermissions; in getRequiredPermissions()