Home
last modified time | relevance | path

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

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowActivity.java770 public final String[] requestedPermissions; field in ShadowActivity.PermissionsRequest
772 public PermissionsRequest(String[] requestedPermissions, int requestCode) { in PermissionsRequest() argument
773 this.requestedPermissions = requestedPermissions; in PermissionsRequest()
DShadowPackageManager.java678 String[] requestedPermissions = in doPendingUninstallCallbacks() local
679 packageInfos.get(RuntimeEnvironment.application.getPackageName()).requestedPermissions; in doPendingUninstallCallbacks()
680 if (requestedPermissions != null) { in doPendingUninstallCallbacks()
681 for (String permission : requestedPermissions) { in doPendingUninstallCallbacks()
DShadowApplicationPackageManager.java653 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()
DLegacyManifestParser.java128 pkg.requestedPermissions.addAll(androidManifest.getUsedPermissions()); in createPackage()
132 permissionsRequired.addAll(buildBooleanList(pkg.requestedPermissions.size(), true)); in createPackage()
DShadowDevicePolicyManager.java616 if (Arrays.asList(packageInfo.requestedPermissions).contains(permission)) { in setPermissionGrantState()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowPowerManagerTest.java170 packageInfo.requestedPermissions = new String[] { permission.DEVICE_POWER }; in setPowerSaveMode_succeedsWithPermission()
DShadowPackageManagerTest.java230 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()
DShadowUserManagerTest.java147 packageInfo.requestedPermissions = new String[] {permission.MANAGE_USERS}; in enforcePermissionChecks()
DShadowActivityTest.java939 assertThat(request.requestedPermissions).isEqualTo(permission); in getPermission_shouldReturnRequestedPermissions()
/external/tensorflow/tensorflow/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/
DCamera2BasicFragment.java609 String[] ps = info.requestedPermissions; in getRequiredPermissions()