/frameworks/base/tests/privapp-permissions/ |
D | Android.bp | 6 required: ["privapp-permissions-test.xml"], 10 name: "privapp-permissions-test.xml", 11 src: "system/privapp-permissions-test.xml", 12 sub_dir: "permissions", 21 required: ["vendorprivapp-permissions-test.xml"], 25 name: "vendorprivapp-permissions-test.xml", 26 src: "vendor/privapp-permissions-test.xml", 27 sub_dir: "permissions", 37 required: ["productprivapp-permissions-test.xml"], 41 name: "productprivapp-permissions-test.xml", [all …]
|
/frameworks/base/data/etc/car/ |
D | Android.bp | 12 // See the License for the specific language governing permissions and 21 sub_dir: "permissions", 28 sub_dir: "permissions", 35 sub_dir: "permissions", 42 sub_dir: "permissions", 49 sub_dir: "permissions", 56 sub_dir: "permissions", 63 sub_dir: "permissions", 70 sub_dir: "permissions", 77 sub_dir: "permissions", [all …]
|
D | CleanSpec.mk | 46 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/product/etc/permissions/com.android.car.develop… 47 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/product/etc/permissions/com.android.car.developeroptio…
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/ |
D | SlicePermissionManagerTest.java | 58 SlicePermissionManager permissions = new SlicePermissionManager(mContext, in testGrant() local 64 permissions.grantSliceAccess("my.pkg", 0, "provider.pkg", 0, uri); in testGrant() 66 assertTrue(permissions.hasPermission("my.pkg", 0, uri)); in testGrant() 79 SlicePermissionManager permissions = new SlicePermissionManager(mContext, in testBackup() local 82 permissions.grantFullAccess("com.android.mypkg", 10); in testBackup() 83 permissions.grantSliceAccess("com.android.otherpkg", 0, "com.android.lastpkg", 1, uri); in testBackup() 91 permissions.writeBackup(serializer); in testBackup() 98 permissions = new SlicePermissionManager(mContext, in testBackup() 100 permissions.readRestore(parser); in testBackup() 102 if (!permissions.hasFullAccess("com.android.mypkg", 10)) { in testBackup() [all …]
|
/frameworks/base/data/etc/ |
D | CleanSpec.mk | 46 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/product/etc/permissions/com.android.carrierconf… 47 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/product/etc/permissions/com.android.carrierconfig.xml) 48 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/product/etc/permissions/com.android.emergency.x… 49 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/product/etc/permissions/com.android.emergency.xml) 50 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/product/etc/permissions/com.android.provision.x… 51 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/product/etc/permissions/com.android.provision.xml) 52 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/product/etc/permissions/com.android.settings.xm… 53 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/product/etc/permissions/com.android.settings.xml) 54 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/product/etc/permissions/com.android.launcher3.x… 55 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/product/etc/permissions/com.android.launcher3.xml) [all …]
|
D | Android.bp | 12 // See the License for the specific language governing permissions and 47 sub_dir: "permissions", 52 name: "privapp-permissions-platform.xml", 53 sub_dir: "permissions", 54 src: "privapp-permissions-platform.xml", 60 sub_dir: "permissions", 68 sub_dir: "permissions", 76 sub_dir: "permissions", 84 sub_dir: "permissions", 92 sub_dir: "permissions", [all …]
|
/frameworks/base/core/java/android/net/ |
D | NetworkStack.java | 101 ArrayList<String> permissions = new ArrayList<String>(Arrays.asList(otherPermissions)); in checkNetworkStackPermissionOr() local 102 permissions.add(NETWORK_STACK); in checkNetworkStackPermissionOr() 103 permissions.add(PERMISSION_MAINLINE_NETWORK_STACK); in checkNetworkStackPermissionOr() 104 enforceAnyPermissionOf(context, permissions.toArray(new String[0])); in checkNetworkStackPermissionOr() 108 final @NonNull String... permissions) { in enforceAnyPermissionOf() argument 109 if (!checkAnyPermissionOf(context, permissions)) { in enforceAnyPermissionOf() 111 + String.join(", ", permissions) + "."); in enforceAnyPermissionOf() 116 final @NonNull String... permissions) { in checkAnyPermissionOf() argument 117 for (String permission : permissions) { in checkAnyPermissionOf()
|
/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothGattDescriptor.java | 136 public BluetoothGattDescriptor(UUID uuid, int permissions) { in BluetoothGattDescriptor() argument 137 initDescriptor(null, uuid, 0, permissions); in BluetoothGattDescriptor() 149 int instance, int permissions) { in BluetoothGattDescriptor() argument 150 initDescriptor(characteristic, uuid, instance, permissions); in BluetoothGattDescriptor() 156 public BluetoothGattDescriptor(UUID uuid, int instance, int permissions) { in BluetoothGattDescriptor() argument 157 initDescriptor(null, uuid, instance, permissions); in BluetoothGattDescriptor() 161 int instance, int permissions) { in initDescriptor() argument 165 mPermissions = permissions; in initDescriptor()
|
D | BluetoothGattCharacteristic.java | 246 public BluetoothGattCharacteristic(UUID uuid, int properties, int permissions) { in BluetoothGattCharacteristic() argument 247 initCharacteristic(null, uuid, 0, properties, permissions); in BluetoothGattCharacteristic() 257 int properties, int permissions) { in BluetoothGattCharacteristic() argument 258 initCharacteristic(service, uuid, instanceId, properties, permissions); in BluetoothGattCharacteristic() 267 int properties, int permissions) { in BluetoothGattCharacteristic() argument 268 initCharacteristic(null, uuid, instanceId, properties, permissions); in BluetoothGattCharacteristic() 273 int properties, int permissions) { in initCharacteristic() argument 277 mPermissions = permissions; in initCharacteristic()
|
/frameworks/base/apex/permission/service/java/com/android/permission/persistence/ |
D | RuntimePermissionsPersistenceImpl.java | 128 List<RuntimePermissionsState.PermissionState> permissions = parsePermissions( in parseRuntimePermissions() local 130 packagePermissions.put(packageName, permissions); in parseRuntimePermissions() 135 List<RuntimePermissionsState.PermissionState> permissions = parsePermissions( in parseRuntimePermissions() local 137 sharedUserPermissions.put(sharedUserName, permissions); in parseRuntimePermissions() 150 List<RuntimePermissionsState.PermissionState> permissions = new ArrayList<>(); in parsePermissions() local 168 permissions.add(permission); in parsePermissions() 171 return permissions; in parsePermissions() 215 List<RuntimePermissionsState.PermissionState> permissions = entry.getValue(); in serializeRuntimePermissions() local 219 serializePermissions(serializer, permissions); in serializeRuntimePermissions() 226 List<RuntimePermissionsState.PermissionState> permissions = entry.getValue(); in serializeRuntimePermissions() local [all …]
|
/frameworks/base/core/java/android/permissionpresenterservice/ |
D | RuntimePermissionPresenterService.java | 97 List<RuntimePermissionPresentationInfo> permissions = onGetAppPermissions(packageName); 98 if (permissions != null && !permissions.isEmpty()) { 100 result.putParcelableList(KEY_RESULT, permissions);
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbPermissionManager.java | 59 UsbUserPermissionManager permissions = mPermissionsByUser.get(userId); in getPermissionsForUser() local 60 if (permissions == null) { in getPermissionsForUser() 61 permissions = new UsbUserPermissionManager(mContext.createContextAsUser( in getPermissionsForUser() 63 mPermissionsByUser.put(userId, permissions); in getPermissionsForUser() 65 return permissions; in getPermissionsForUser()
|
D | UsbUserPermissionManager.java | 405 SparseBooleanArray permissions = in scheduleWritePermissionsLocked() local 407 int numPermissions = permissions.size(); in scheduleWritePermissionsLocked() 411 uidsForDevices[deviceIdx][permissionIdx] = permissions.keyAt(permissionIdx); in scheduleWritePermissionsLocked() 413 permissions.valueAt(permissionIdx); in scheduleWritePermissionsLocked() 424 SparseBooleanArray permissions = in scheduleWritePermissionsLocked() local 426 int numPermissions = permissions.size(); in scheduleWritePermissionsLocked() 431 permissions.keyAt(permissionIdx); in scheduleWritePermissionsLocked() 433 permissions.valueAt(permissionIdx); in scheduleWritePermissionsLocked() 579 SparseBooleanArray permissions = in dump() local 581 int numPermissions = permissions.size(); in dump() [all …]
|
/frameworks/base/services/core/java/com/android/server/slice/ |
D | SliceShellCommand.java | 88 String[] permissions = b.getStringArray(SliceProvider.EXTRA_RESULT); in runGetPermissions() local 91 if (permissions != null && permissions.length != 0) { in runGetPermissions() 93 context.getPackageManager().getPackagesHoldingPermissions(permissions, 0); in runGetPermissions()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
D | PermissionsSummaryHelper.java | 33 permController.getAppPermissions(pkg, permissions -> { in getPermissionSummary() 34 final int permissionCount = permissions.size(); in getPermissionSummary() 42 RuntimePermissionPresentationInfo permission = permissions.get(i); in getPermissionSummary()
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
D | RecipientEntry.java | 104 String lookupKey, String[] permissions) { in RecipientEntry() argument 107 true /* shouldDisplayIcon */, isFirstLevel, isValid, lookupKey, permissions); in RecipientEntry() 113 boolean isFirstLevel, boolean isValid, String lookupKey, String[] permissions) { in RecipientEntry() argument 130 mPermissions = permissions; in RecipientEntry() 222 public static RecipientEntry constructPermissionEntry(String[] permissions) { in constructPermissionEntry() argument 236 permissions); in constructPermissionEntry()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DpmMockContext.java | 164 public final List<String> permissions = callerPermissions; field in DpmMockContext 247 List<String> permissions = binder.callingPermissions.get(binder.getCallingUid()); in enforceCallingOrSelfPermission() local 248 if (permissions == null) { in enforceCallingOrSelfPermission() 251 permissions = callerPermissions; in enforceCallingOrSelfPermission() 255 if (!permissions.contains(permission)) { in enforceCallingOrSelfPermission() 265 List<String> permissions = binder.callingPermissions.get(binder.getCallingUid()); in checkPermission() local 266 if (permissions == null) { in checkPermission() 267 permissions = callerPermissions; in checkPermission() 269 if (permissions.contains(permission)) { in checkPermission()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/parsing/ |
D | PackageParsingDeferErrorTest.kt | 115 val permissions = result.result.permissions in <lambda>() constant 116 assertThat(permissions).hasSize(1) in <lambda>() 117 assertThat(permissions.first().name).isEqualTo(TEST_PERMISSION) in <lambda>()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | PermissionMonitorTest.java | 150 String... permissions) { in hasRestrictedNetworkPermission() argument 152 packageInfoWithPermissions(REQUESTED_PERMISSION_GRANTED, permissions, partition); in hasRestrictedNetworkPermission() 158 private static PackageInfo systemPackageInfoWithPermissions(String... permissions) { in systemPackageInfoWithPermissions() argument 160 REQUESTED_PERMISSION_GRANTED, permissions, PARTITION_SYSTEM); in systemPackageInfoWithPermissions() 163 private static PackageInfo vendorPackageInfoWithPermissions(String... permissions) { in vendorPackageInfoWithPermissions() argument 165 REQUESTED_PERMISSION_GRANTED, permissions, PARTITION_VENDOR); in vendorPackageInfoWithPermissions() 169 String[] permissions, String partition) { in packageInfoWithPermissions() argument 170 int[] requestedPermissionsFlags = new int[permissions.length]; in packageInfoWithPermissions() 171 for (int i = 0; i < permissions.length; i++) { in packageInfoWithPermissions() 175 packageInfo.requestedPermissions = permissions; in packageInfoWithPermissions() [all …]
|
/frameworks/base/services/core/xsd/ |
D | Android.bp | 2 name: "default-permissions", 3 srcs: ["default-permissions.xsd"],
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | PermissionMonitor.java | 454 int permissions = 0; in getNetdPermissionMask() local 455 if (requestedPermissions == null || requestedPermissionsFlags == null) return permissions; in getNetdPermissionMask() 459 permissions |= INetd.PERMISSION_INTERNET; in getNetdPermissionMask() 463 permissions |= INetd.PERMISSION_UPDATE_DEVICE_STATS; in getNetdPermissionMask() 466 return permissions; in getNetdPermissionMask() 604 void sendPackagePermissionsForUid(int uid, int permissions) { in sendPackagePermissionsForUid() argument 606 netdPermissionsAppIds.put(uid, permissions); in sendPackagePermissionsForUid() 631 int permissions = netdPermissionsAppIds.valueAt(i); in sendPackagePermissionsToNetd() local 632 switch(permissions) { in sendPackagePermissionsToNetd() 648 Log.e(TAG, "unknown permission type: " + permissions + "for uid: " in sendPackagePermissionsToNetd()
|
/frameworks/base/tests/libs-permissions/ |
D | Android.bp | 13 sub_dir: "permissions", 28 sub_dir: "permissions",
|
/frameworks/base/services/core/xsd/vts/ |
D | Android.bp | 13 // See the License for the specific language governing permissions and 35 ":default-permissions",
|
/frameworks/base/libs/WindowManager/Jetpack/ |
D | Android.bp | 12 // See the License for the specific language governing permissions and 35 sub_dir: "permissions",
|
/frameworks/opt/chips/sample/src/com/android/ex/chips/sample/ |
D | MainActivity.java | 64 RecipientEditTextView view, String[] permissions) { in onPermissionsRequestItemClicked() argument 65 requestPermissions(permissions, 0 /* requestCode */); in onPermissionsRequestItemClicked()
|