Home
last modified time | relevance | path

Searched refs:getPermissions (Results 1 – 25 of 32) sorted by relevance

12

/packages/apps/Contacts/src/com/android/contacts/activities/
DRequestPermissionsActivity.java40 protected String[] getPermissions() { in getPermissions() method in RequestPermissionsActivity
41 return getPermissions(getPackageManager()); in getPermissions()
48 return hasPermissions(context, getPermissions(context.getPackageManager())); in hasRequiredPermissions()
53 getPermissions(activity.getPackageManager()), in startPermissionActivityIfNeeded()
57 private static String[] getPermissions(PackageManager packageManager) { in getPermissions() method in RequestPermissionsActivity
DRequestPermissionsActivityBase.java56 protected abstract String[] getPermissions(); in getPermissions() method in RequestPermissionsActivityBase
121 return Arrays.asList(getPermissions()).contains(p); in isPermissionRequired()
129 for (String permission : getPermissions()) { in requestPermissions()
DRequestImportVCardPermissionsActivity.java35 protected String[] getPermissions() { in getPermissions() method in RequestImportVCardPermissionsActivity
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarBugreportManagerTest.java85 getPermissions(); // For cancelBugreport() in tearDown()
114 getPermissions(); in test_requestBugreport_works()
137 getPermissions(); in test_requestBugreport_cannotRunMultipleBugreports()
156 getPermissions(); in test_cancelBugreport_works()
176 private static void getPermissions() { in getPermissions() method in CarBugreportManagerTest
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/migration/
DPermissionMigrationPayloadTest.java50 mExpect.that(payload.getPermissions()).isEmpty(); in createdWithoutSetters_validData()
64 mExpect.that(payload.getPermissions()).containsExactly(DEFAULT_PERMISSION); in createdWithSetters_validData()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/legacy/
DLegacySafetyNetLogger.java99 int permissionCount = group.getPermissions().size(); in buildChangedPermissionForGroup()
101 Permission permission = group.getPermissions().get(permissionNum); in buildChangedPermissionForGroup()
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DSplitPermissionTest.java28 import static android.permission.cts.PermissionUtils.getPermissions;
111 assertThat(getPermissions(APP_PKG)).contains(permName); in assertRequestsPermission()
120 assertThat(getPermissions(APP_PKG)).doesNotContain(permName); in assertNotRequestsPermission()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/
DAllAppPermissionsFragment.java295 final int permissionCount = appPermissionGroup.getPermissions().size(); in MyMultiTargetSwitchPreference()
297 Permission current = appPermissionGroup.getPermissions().get(i); in MyMultiTargetSwitchPreference()
311 } else if (appPermissionGroup.getPermissions().size() == grantedCount) { in MyMultiTargetSwitchPreference()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/
DPermissionControllerServiceImpl.java259 ArrayList<Permission> perms = group.getPermissions(); in revokePermissionGroups()
699 List<String> oneTimeGrantedPermissions = group.getPermissions().stream() in onOneTimePermissionSessionTimeout()
702 if (group.getPermissions().size() == oneTimeGrantedPermissions.size()) { in onOneTimePermissionSessionTimeout()
724 if (group.getPermissions().size() == oneTimeGrantedPermissions.size()) { in onOneTimePermissionSessionTimeout()
728 bgGroup.getPermissions().stream() in onOneTimePermissionSessionTimeout()
752 for (Permission permission : group.getPermissions()) { in logOneTimeSessionRevoke()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/
DAutoAllAppPermissionsFragment.java335 final int permissionCount = appPermissionGroup.getPermissions().size(); in MyMultiTargetSwitchPreference()
337 Permission current = appPermissionGroup.getPermissions().get(i); in MyMultiTargetSwitchPreference()
351 } else if (appPermissionGroup.getPermissions().size() == grantedCount) { in MyMultiTargetSwitchPreference()
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/model/
DPermissionSet.java52 public List<Permission> getPermissions() { in getPermissions() method in PermissionSet
DRoleParser.java787 List<Permission> permissionsInSet = permissionSet.getPermissions(); in parsePermissions()
1098 List<Permission> permissions = permissionSet.getPermissions(); in validateResult()
1128 List<Permission> permissions = role.getPermissions(); in validateResult()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/migration/
DDataMigrationManager.java165 final List<String> permissions = payload.getPermissions(); in migratePermissions()
190 + String.join(", ", payload.getPermissions())); in migratePermissions()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DSafetyNetLogger.java87 for (LightPermission permission: group.getPermissions().values()) { in buildChangedPermissionForGroup()
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothGattDescriptor.java223 public int getPermissions() { in getPermissions() method in BluetoothGattDescriptor
DBluetoothGattCharacteristic.java392 public int getPermissions() { in getPermissions() method in BluetoothGattCharacteristic
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/
DAppPermissionGroup.java433 if (group.getPermissions().isEmpty()) { in create()
1314 public ArrayList<Permission> getPermissions() {
1480 return mBackgroundPermissions.getPermissions().equals(
1481 other.getBackgroundPermissions().getPermissions());
1490 backgroundPermissions = mBackgroundPermissions.getPermissions();
DAppPermissions.java131 ArrayList<Permission> perms = group.getPermissions(); in addAllPermissions()
/packages/modules/Permission/tests/cts/permission/permissionTestUtilLib/src/android/permission/cts/
DPermissionUtils.java321 public static @NonNull List<String> getPermissions(@NonNull String packageName) in getPermissions() method in PermissionUtils
340 for (String perm : getPermissions(packageName)) { in getRuntimePermissions()
/packages/modules/HealthFitness/framework/java/android/health/connect/migration/
DPermissionMigrationPayload.java100 public List<String> getPermissions() { in getPermissions() method in PermissionMigrationPayload
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_audio/
DLeAudioTmapGattServerTest.java91 assertThat(characteristic.getPermissions()).isEqualTo(PERMISSION_READ); in testStartStopService()
/packages/modules/Bluetooth/android/pandora/server/src/
DGatt.kt418 .setPermissions(characteristic.getPermissions()) in generateCharacteristicsList()
436 .setPermissions(descriptor.getPermissions()) in generateDescriptorsList()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/v31/
DPermissionUsages.java307 final List<Permission> permissions = appPermGroup.getPermissions(); in loadInBackground()
DAppPermissionUsage.java264 List<Permission> permissions = appPermissionGroup.getPermissions(); in getAllOps()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/tbs/
DTbsGatt.java1621 if ((descriptor.getPermissions()
1671 if ((descriptor.getPermissions()

12