Home
last modified time | relevance | path

Searched refs:requestedPermissions (Results 1 – 14 of 14) sorted by relevance

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowCrossProfileApps.java359 if (packageInfo == null || packageInfo.requestedPermissions == null) { in canUserAttemptToConfigureInteractAcrossProfiles()
362 return Arrays.asList(packageInfo.requestedPermissions).contains( in canUserAttemptToConfigureInteractAcrossProfiles()
DShadowActivity.java808 public final String[] requestedPermissions; field in ShadowActivity.PermissionsRequest
810 public PermissionsRequest(String[] requestedPermissions, int requestCode) { in PermissionsRequest() argument
811 this.requestedPermissions = requestedPermissions; in PermissionsRequest()
DShadowPackageManager.java686 String[] requestedPermissions = in doPendingUninstallCallbacks() local
687 packageInfos.get(RuntimeEnvironment.application.getPackageName()).requestedPermissions; in doPendingUninstallCallbacks()
688 if (requestedPermissions != null) { in doPendingUninstallCallbacks()
689 for (String permission : requestedPermissions) { in doPendingUninstallCallbacks()
DShadowApplicationPackageManager.java674 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()
DLegacyManifestParser.java128 pkg.requestedPermissions.addAll(androidManifest.getUsedPermissions()); in createPackage()
132 permissionsRequired.addAll(buildBooleanList(pkg.requestedPermissions.size(), true)); in createPackage()
DShadowDevicePolicyManager.java619 if (Arrays.asList(packageInfo.requestedPermissions).contains(permission)) { in setPermissionGrantState()
/external/connectedappssdk/sdk/src/main/java/com/google/android/enterprise/connectedapps/
DAbstractProfileBinder.java120 for (String permission : packageInfo.requestedPermissions) { in cachePermissionRequests()
/external/webrtc/examples/androidapp/src/org/appspot/apprtc/
DConnectActivity.java283 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()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowPowerManagerTest.java170 packageInfo.requestedPermissions = new String[] { permission.DEVICE_POWER }; in setPowerSaveMode_succeedsWithPermission()
DShadowPackageManagerTest.java233 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()
DShadowUserManagerTest.java177 packageInfo.requestedPermissions = new String[] {permission.MANAGE_USERS}; in enforcePermissionChecks()
DShadowActivityTest.java957 assertThat(request.requestedPermissions).isEqualTo(permission); in getPermission_shouldReturnRequestedPermissions()
/external/connectedappssdk/tests/robotests/src/test/java/com/google/android/enterprise/connectedapps/
DRobolectricTestUtilities.java274 packageInfo.requestedPermissions = permissions; in setRequestsPermissions()
/external/tensorflow/tensorflow/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/
DCamera2BasicFragment.java601 String[] ps = info.requestedPermissions; in getRequiredPermissions()