/packages/apps/Contacts/src/com/android/contacts/activities/ |
D | RequestPermissionsActivity.java | 59 final List<String> permissions = new ArrayList<>(); in getPermissions() local 61 permissions.add(permission.GET_ACCOUNTS); in getPermissions() 62 permissions.add(permission.READ_CONTACTS); in getPermissions() 63 permissions.add(permission.WRITE_CONTACTS); in getPermissions() 70 permissions.add(permission.CALL_PHONE); in getPermissions() 71 permissions.add(permission.READ_PHONE_STATE); in getPermissions() 73 sRequiredPermissions = permissions.toArray(new String[0]); in getPermissions() 80 int requestCode, String permissions[], int[] grantResults) { in onRequestPermissionsResult() argument 81 if (permissions != null && permissions.length > 0 in onRequestPermissionsResult() 82 && isAllGranted(permissions, grantResults)) { in onRequestPermissionsResult()
|
D | RequestPermissionsActivityBase.java | 110 protected boolean isAllGranted(String permissions[], int[] grantResult) { in isAllGranted() argument 111 for (int i = 0; i < permissions.length; i++) { in isAllGranted() 113 && isPermissionRequired(permissions[i])) { in isAllGranted() 147 protected static boolean hasPermissions(Context context, String[] permissions) { in hasPermissions() argument 150 for (String permission : permissions) { in hasPermissions()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | AppPermissionsPreferenceController.java | 65 final Set<String> permissions = getAllPermissionsInGroups(); in getSummary() local 66 Set<String> grantedPermissionGroups = getGrantedPermissionGroups(permissions); in getSummary() 83 private Set<String> getGrantedPermissionGroups(Set<String> permissions) { in getGrantedPermissionGroups() argument 88 if (installedPackage.permissions == null) { in getGrantedPermissionGroups() 91 for (PermissionInfo permissionInfo : installedPackage.permissions) { in getGrantedPermissionGroups() 92 if (permissions.contains(permissionInfo.name) in getGrantedPermissionGroups() 115 final List<PermissionInfo> permissions = in getAllPermissionsInGroups() local 117 for (PermissionInfo permissionInfo : permissions) { in getAllPermissionsInGroups()
|
D | ApplicationFeatureProviderImpl.java | 78 public void calculateNumberOfAppsWithAdminGrantedPermissions(String[] permissions, in calculateNumberOfAppsWithAdminGrantedPermissions() argument 82 permissions, mPm, mPms, mDpm, callback); in calculateNumberOfAppsWithAdminGrantedPermissions() 91 public void listAppsWithAdminGrantedPermissions(String[] permissions, in listAppsWithAdminGrantedPermissions() argument 94 new CurrentUserAppWithAdminGrantedPermissionsLister(permissions, mPm, mPms, mDpm, in listAppsWithAdminGrantedPermissions() 189 String[] permissions, PackageManager packageManager, in CurrentUserAndManagedProfileAppWithAdminGrantedPermissionsCounter() argument 192 super(context, permissions, packageManager, packageManagerService, devicePolicyManager); in CurrentUserAndManagedProfileAppWithAdminGrantedPermissionsCounter() 221 CurrentUserAppWithAdminGrantedPermissionsLister(String[] permissions, in CurrentUserAppWithAdminGrantedPermissionsLister() argument 225 super(permissions, packageManager, packageManagerService, devicePolicyManager, in CurrentUserAppWithAdminGrantedPermissionsLister()
|
D | AppWithAdminGrantedPermissionsCounter.java | 36 public AppWithAdminGrantedPermissionsCounter(Context context, String[] permissions, in AppWithAdminGrantedPermissionsCounter() argument 40 mPermissions = permissions; in AppWithAdminGrantedPermissionsCounter() 51 public static boolean includeInCount(String[] permissions, in includeInCount() argument 57 for (final String permission : permissions) { in includeInCount() 74 for (final String permission : permissions) { in includeInCount()
|
D | AppStateAppOpsBridge.java | 60 int appOpsOpCode, String[] permissions) { in AppStateAppOpsBridge() argument 61 this(context, appState, callback, appOpsOpCode, permissions, in AppStateAppOpsBridge() 67 int appOpsOpCode, String[] permissions, IPackageManager packageManager) { in AppStateAppOpsBridge() argument 75 mPermissions = permissions; in AppStateAppOpsBridge() 90 private boolean doesAnyPermissionMatch(String permissionToMatch, String[] permissions) { in doesAnyPermissionMatch() argument 91 for (String permission : permissions) { in doesAnyPermissionMatch()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/permissions/ |
D | PermissionsUtil.java | 17 package com.android.inputmethod.latin.permissions; 42 String... permissions) { in getDeniedPermissions() argument 44 for (String permission : permissions) { in getDeniedPermissions() 60 String[] permissions) { in requestPermissions() argument 61 ActivityCompat.requestPermissions(activity, permissions, requestCode); in requestPermissions() 79 public static boolean checkAllPermissionsGranted(Context context, String... permissions) { in checkAllPermissionsGranted() argument 85 for (String permission : permissions) { in checkAllPermissionsGranted()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
D | GattDbElement.java | 53 public int permissions; field in GattDbElement 69 public static GattDbElement createCharacteristic(UUID uuid, int properties, int permissions) { in createCharacteristic() argument 74 el.permissions = permissions; in createCharacteristic() 78 public static GattDbElement createDescriptor(UUID uuid, int permissions) { in createDescriptor() argument 82 el.permissions = permissions; in createDescriptor()
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/ |
D | AppPermissionsEntryPreferenceController.java | 72 Set<String> permissions = getAllPermissionsInGroups(); in updateState() local 73 Set<String> grantedPermissionGroups = getGrantedPermissionGroups(permissions); in updateState() 97 List<PermissionInfo> permissions = mPackageManager.queryPermissionsByGroup( in getAllPermissionsInGroups() local 99 for (PermissionInfo permissionInfo : permissions) { in getAllPermissionsInGroups() 109 private Set<String> getGrantedPermissionGroups(Set<String> permissions) { in getGrantedPermissionGroups() argument 114 if (installedPackage.permissions == null) { in getGrantedPermissionGroups() 117 for (PermissionInfo permissionInfo : installedPackage.permissions) { in getGrantedPermissionGroups() 118 if (permissions.contains(permissionInfo.name)) { in getGrantedPermissionGroups()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/ |
D | Roles.java | 234 List<String> permissions = new ArrayList<>(); in parsePermissionSet() local 251 checkDuplicateElement(permission, permissions, "permission"); in parsePermissionSet() 252 permissions.add(permission); in parsePermissionSet() 259 return new PermissionSet(name, permissions); in parsePermissionSet() 347 List<String> permissions = null; in parseRole() local 371 if (permissions != null) { in parseRole() 376 permissions = parsePermissions(parser, permissionSets); in parseRole() 403 if (permissions == null) { in parseRole() 404 permissions = Collections.emptyList(); in parseRole() 414 showNone, systemOnly, requiredComponents, permissions, appOps, preferredActivities); in parseRole() [all …]
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/model/ |
D | AppPermissionUsage.java | 169 final ArrayList<Permission> permissions = mGroup.getPermissions(); in isRunning() local 170 final int permissionCount = permissions.size(); in isRunning() 172 final Permission permission = permissions.get(i); in isRunning() 188 final ArrayList<Permission> permissions = mGroup.getPermissions(); in extractAggregate() local 189 final int permissionCount = permissions.size(); in extractAggregate() 191 final Permission permission = permissions.get(i); in extractAggregate() 203 final ArrayList<Permission> permissions = mGroup.getPermissions(); in lastAccessAggregate() local 204 final int permissionCount = permissions.size(); in lastAccessAggregate() 206 final Permission permission = permissions.get(permissionNum); in lastAccessAggregate()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | ApplicationFeatureProviderImpl.java | 78 public void calculateNumberOfAppsWithAdminGrantedPermissions(String[] permissions, in calculateNumberOfAppsWithAdminGrantedPermissions() argument 82 permissions, mPm, mPms, mDpm, callback); in calculateNumberOfAppsWithAdminGrantedPermissions() 91 public void listAppsWithAdminGrantedPermissions(String[] permissions, in listAppsWithAdminGrantedPermissions() argument 94 new CurrentUserAppWithAdminGrantedPermissionsLister(permissions, mPm, mPms, mDpm, in listAppsWithAdminGrantedPermissions() 189 String[] permissions, PackageManager packageManager, in CurrentUserAndManagedProfileAppWithAdminGrantedPermissionsCounter() argument 192 super(context, permissions, packageManager, packageManagerService, devicePolicyManager); in CurrentUserAndManagedProfileAppWithAdminGrantedPermissionsCounter() 221 CurrentUserAppWithAdminGrantedPermissionsLister(String[] permissions, in CurrentUserAppWithAdminGrantedPermissionsLister() argument 225 super(permissions, packageManager, packageManagerService, devicePolicyManager, in CurrentUserAppWithAdminGrantedPermissionsLister()
|
D | AppWithAdminGrantedPermissionsCounter.java | 36 public AppWithAdminGrantedPermissionsCounter(Context context, String[] permissions, in AppWithAdminGrantedPermissionsCounter() argument 40 mPermissions = permissions; in AppWithAdminGrantedPermissionsCounter() 51 public static boolean includeInCount(String[] permissions, in includeInCount() argument 57 for (final String permission : permissions) { in includeInCount() 74 for (final String permission : permissions) { in includeInCount()
|
D | AppStateAppOpsBridge.java | 60 int appOpsOpCode, String[] permissions) { in AppStateAppOpsBridge() argument 61 this(context, appState, callback, appOpsOpCode, permissions, in AppStateAppOpsBridge() 67 int appOpsOpCode, String[] permissions, IPackageManager packageManager) { in AppStateAppOpsBridge() argument 75 mPermissions = permissions; in AppStateAppOpsBridge() 90 private boolean doesAnyPermissionMatch(String permissionToMatch, String[] permissions) { in doesAnyPermissionMatch() argument 91 for (String permission : permissions) { in doesAnyPermissionMatch()
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/ |
D | GalleryComposerFragment.java | 67 private String[] permissions = new String[] {permission.READ_EXTERNAL_STORAGE}; field in GalleryComposerFragment 169 if (PermissionsUtil.isFirstRequest(getContext(), permissions[0]) in onClick() 170 || shouldShowRequestPermissionRationale(permissions[0])) { in onClick() 173 requestPermissions(permissions, STORAGE_PERMISSION); in onClick() 253 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { in onRequestPermissionsResult() argument 254 if (permissions.length > 0 && permissions[0].equals(this.permissions[0])) { in onRequestPermissionsResult() 255 PermissionsUtil.permissionRequested(getContext(), permissions[0]); in onRequestPermissionsResult() local
|
D | CameraComposerFragment.java | 77 private String[] permissions = new String[] {Manifest.permission.CAMERA}; field in CameraComposerFragment 196 if (PermissionsUtil.isFirstRequest(getContext(), permissions[0]) in onClick() 197 || shouldShowRequestPermissionRationale(permissions[0])) { in onClick() 200 requestPermissions(permissions, CAMERA_PERMISSION); in onClick() 389 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { in onRequestPermissionsResult() argument 390 if (permissions.length > 0 && permissions[0].equals(this.permissions[0])) { in onRequestPermissionsResult() 391 PermissionsUtil.permissionRequested(getContext(), permissions[0]); in onRequestPermissionsResult() local
|
/packages/apps/TV/tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/ |
D | README.md | 22 ### modify privapp-permissions-atv.xml 24 Edit system/etc/permissions/privapp-permissions-atv.xml 27 <privapp-permissions package="com.android.tv.tuner.sample.dvb"> 29 </privapp-permissions>
|
/packages/apps/TV/tuner/SampleNetworkTuner/src/com/android/tv/tuner/sample/network/ |
D | README.md | 22 ### modify privapp-permissions-atv.xml 24 Edit system/etc/permissions/privapp-permissions-atv.xml 27 <privapp-permissions package="com.android.tv.tuner.sample.network"> 29 </privapp-permissions>
|
/packages/apps/TV/partner_support/src/com/google/android/tv/partner/support/ |
D | BaseCustomization.java | 49 protected BaseCustomization(Context context, String[] permissions) { in BaseCustomization() argument 50 packageName = getFirstPackageNameWithPermissions(context, permissions); in BaseCustomization() 58 Context context, String[] permissions) { in getFirstPackageNameWithPermissions() argument 61 context.getPackageManager().getPackagesHoldingPermissions(permissions, 0); in getFirstPackageNameWithPermissions() 63 Log.d(TAG, "These packages have " + Arrays.toString(permissions) + ": " + packageInfos); in getFirstPackageNameWithPermissions()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/utils/ |
D | Utils.java | 269 final ArrayList<String> permissions = PLATFORM_PERMISSION_GROUPS.get(group); in getPlatformPermissionNamesOfGroup() local 270 return (permissions != null) ? permissions : Collections.emptyList(); in getPlatformPermissionNamesOfGroup() 286 ArrayList<String> permissions = PLATFORM_PERMISSION_GROUPS.get(group); in getPlatformPermissionsOfGroup() local 287 if (permissions == null) { in getPlatformPermissionsOfGroup() 291 int numPermissions = permissions.size(); in getPlatformPermissionsOfGroup() 293 String permName = permissions.get(i); in getPlatformPermissionsOfGroup() 319 List<PermissionInfo> permissions = pm.queryPermissionsByGroup(group, 0); in getPermissionInfosForGroup() local 320 permissions.addAll(getPlatformPermissionsOfGroup(pm, group)); in getPermissionInfosForGroup() 322 return permissions; in getPermissionInfosForGroup() 367 List<PermissionInfo> permissions = new ArrayList<>(); in getGroupPermissionInfos() local [all …]
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/service/ |
D | RuntimePermissionPresenterServiceLegacyImpl.java | 35 List<android.permission.RuntimePermissionPresentationInfo> permissions = in onGetAppPermissions() local 39 permissions.size()); in onGetAppPermissions() 41 int numPermissions = permissions.size(); in onGetAppPermissions() 43 android.permission.RuntimePermissionPresentationInfo permission = permissions.get(i); in onGetAppPermissions()
|
/packages/services/Car/car_product/build/ |
D | car_base.mk | 68 …frameworks/native/data/etc/android.hardware.type.automotive.xml:system/etc/permissions/android.har… 72 …rvices/Car/car_product/build/default-car-permissions.xml:system/etc/default-permissions/default-ca…
|
/packages/apps/Dialer/java/com/android/dialer/postcall/ |
D | PostCallActivity.java | 124 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { in onRequestPermissionsResult() argument 125 if (permissions.length > 0 && permissions[0].equals(permission.SEND_SMS)) { in onRequestPermissionsResult() 126 PermissionsUtil.permissionRequested(this, permissions[0]); in onRequestPermissionsResult()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/sensor/ |
D | SensorsTestFragment.java | 230 private void requestPermissions(Set<String> permissions) { in requestPermissions() argument 231 Log.d(TAG, "requesting additional permissions=" + permissions); in requestPermissions() 233 requestPermissions(permissions.toArray(new String[permissions.size()]), in requestPermissions() 238 public void onRequestPermissionsResult(int requestCode, String[] permissions, in onRequestPermissionsResult() argument 242 for (int i=0; i<permissions.length; i++) { in onRequestPermissionsResult() 244 mActivePermissions.add(permissions[i]); in onRequestPermissionsResult()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | OsUtil.java | 212 public static boolean hasPermissions(final String[] permissions) { in hasPermissions() argument 213 for (final String permission : permissions) { in hasPermissions() 250 public static String[] getMissingPermissions(final String[] permissions) { in getMissingPermissions() argument 252 for (final String permission : permissions) { in getMissingPermissions()
|