Searched refs:requestedPermissions (Results 1 – 14 of 14) sorted by relevance
359 if (packageInfo == null || packageInfo.requestedPermissions == null) { in canUserAttemptToConfigureInteractAcrossProfiles()362 return Arrays.asList(packageInfo.requestedPermissions).contains( in canUserAttemptToConfigureInteractAcrossProfiles()
808 public final String[] requestedPermissions; field in ShadowActivity.PermissionsRequest810 public PermissionsRequest(String[] requestedPermissions, int requestCode) { in PermissionsRequest() argument811 this.requestedPermissions = requestedPermissions; in PermissionsRequest()
686 String[] requestedPermissions = in doPendingUninstallCallbacks() local687 packageInfos.get(RuntimeEnvironment.application.getPackageName()).requestedPermissions; in doPendingUninstallCallbacks()688 if (requestedPermissions != null) { in doPendingUninstallCallbacks()689 for (String permission : requestedPermissions) { in doPendingUninstallCallbacks()
674 if (permissionsInfo == null || permissionsInfo.requestedPermissions == null) { in checkPermission()679 for (int i = 0; i < permissionsInfo.requestedPermissions.length; i++) { in checkPermission()680 permission = permissionsInfo.requestedPermissions[i]; in checkPermission()1324 if (packageInfo.requestedPermissions != null) { in getPermissionIndex()1325 for (int i = 0; i < packageInfo.requestedPermissions.length; i++) { in getPermissionIndex()1326 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()
619 if (Arrays.asList(packageInfo.requestedPermissions).contains(permission)) { in setPermissionGrantState()
120 for (String permission : packageInfo.requestedPermissions) { in cachePermissionRequests()
283 if (info.requestedPermissions == null) { in getMissingPermissions()289 for (int i = 0; i < info.requestedPermissions.length; i++) { in getMissingPermissions()291 missingPermissions.add(info.requestedPermissions[i]); in getMissingPermissions()
170 packageInfo.requestedPermissions = new String[] { permission.DEVICE_POWER }; in setPowerSaveMode_succeedsWithPermission()
233 packageInfo.requestedPermissions = new String[] { in testCheckPermission_otherPackages()256 packageInfo.requestedPermissions = new String[] { in testCheckPermission_otherPackages_grantedByDefault()276 packageInfo.requestedPermissions = in testGrantRuntimePermission()310 packageInfo.requestedPermissions = in testGrantRuntimePermission_doesntRequestPermission()329 packageInfo.requestedPermissions = in testRevokeRuntimePermission()1475 String[] permissions = packageInfo.requestedPermissions; in getPackageInfo_shouldReturnRequestedPermissions()2321 .requestedPermissions = in deletePackage()
177 packageInfo.requestedPermissions = new String[] {permission.MANAGE_USERS}; in enforcePermissionChecks()
957 assertThat(request.requestedPermissions).isEqualTo(permission); in getPermission_shouldReturnRequestedPermissions()
274 packageInfo.requestedPermissions = permissions; in setRequestsPermissions()
601 String[] ps = info.requestedPermissions; in getRequiredPermissions()