Searched refs:checkPermissionForDataDelivery (Results 1 – 9 of 9) sorted by relevance
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/permission/ |
D | DataPermissionEnforcerTest.java | 82 when(mPermissionManager.checkPermissionForDataDelivery( in testEnforceRecordIdsWritePermissions_permissionGranted_doesNotThrow() 92 when(mPermissionManager.checkPermissionForDataDelivery( in testEnforceRecordIdsWritePermissions_permissionDenied_throwsSecurityException() 102 when(mPermissionManager.checkPermissionForDataDelivery( in testEnforceRecordIdsWritePermissions_onePermissionDenied_throwsSecurityException() 105 when(mPermissionManager.checkPermissionForDataDelivery( in testEnforceRecordIdsWritePermissions_onePermissionDenied_throwsSecurityException() 116 when(mPermissionManager.checkPermissionForDataDelivery( in testEnforceRecordIdsReadPermissions_permissionGranted_doesNotThrow() 126 when(mPermissionManager.checkPermissionForDataDelivery( in testEnforceRecordIdsReadPermissions_permissionDenied_throwsSecurityException() 136 when(mPermissionManager.checkPermissionForDataDelivery( in testEnforceRecordIdsReadPermissions_onePermissionDenied_throwsSecurityException() 139 when(mPermissionManager.checkPermissionForDataDelivery( in testEnforceRecordIdsReadPermissions_onePermissionDenied_throwsSecurityException() 150 when(mPermissionManager.checkPermissionForDataDelivery( in testEnforceReadAccessAndGetEnforceSelfRead_readPermissionGranted_returnsFalse() 164 when(mPermissionManager.checkPermissionForDataDelivery( in testEnforceReadAccessAndGetEnforceSelfRead_onlyWritePermissionGranted_returnsTrue() [all …]
|
D | MedicalDataPermissionEnforcerTest.java | 67 when(mPermissionManager.checkPermissionForDataDelivery( in testEnforceWriteMedicalResourcePermission_permissionGranted_doesNotThrow() 77 when(mPermissionManager.checkPermissionForDataDelivery( in testEnforceWriteMedicalResourcePermission_permissionDenied_throwsException() 88 when(mPermissionManager.checkPermissionForDataDelivery( in testEnforceMedicalReadAccessAndGetEnforceSelfRead_permissionGranted_returnsFalse() 102 when(mPermissionManager.checkPermissionForDataDelivery( in testEnforceMedicalReadAccessAndGetEnforceSelfRead_onlyWriteGranted_returnsTrue() 105 when(mPermissionManager.checkPermissionForDataDelivery( in testEnforceMedicalReadAccessAndGetEnforceSelfRead_onlyWriteGranted_returnsTrue()
|
/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | PermissionUtils.java | 115 return checkPermissionForDataDelivery(context, MANAGE_EXTERNAL_STORAGE, pid, uid, in checkPermissionManager() 139 return checkPermissionForDataDelivery(context, WRITE_EXTERNAL_STORAGE, pid, uid, in checkPermissionWriteStorage() 146 return checkPermissionForDataDelivery(context, READ_EXTERNAL_STORAGE, pid, uid, in checkPermissionReadStorage() 158 return checkPermissionForDataDelivery(context, ACCESS_MEDIA_LOCATION, pid, uid, packageName, in checkPermissionAccessMediaLocation() 206 return checkPermissionForDataDelivery(context, MANAGE_MEDIA, pid, uid, packageName, in checkPermissionManageMedia() 324 return checkPermissionForDataDelivery(context, READ_MEDIA_VISUAL_USER_SELECTED, pid, uid, in checkPermissionReadVisualUserSelected() 335 return checkPermissionForDataDelivery(context, QUERY_ALL_PACKAGES, pid, in checkPermissionQueryAllPackages() 345 return checkPermissionForDataDelivery(context, in checkPermissionAccessMediaOwnerPackageName() 352 return checkPermissionForDataDelivery(context, INSTALL_PACKAGES, pid, in checkPermissionInstallPackages() 358 return checkPermissionForDataDelivery(context, ACCESS_MTP, pid, in checkPermissionAccessMtp() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | WifiPermissionsUtilTest.java | 1527 when(mPermissionManager.checkPermissionForDataDelivery(eq(NEARBY_WIFI_DEVICES), in testEnforceNearbyDevicesPermission_NearbyDevicesNotGrantedFail() 1550 when(mPermissionManager.checkPermissionForDataDelivery(eq(NEARBY_WIFI_DEVICES), in testEnforceNearbyDevicesPermission_LocationCheckFail() 1552 when(mPermissionManager.checkPermissionForDataDelivery( in testEnforceNearbyDevicesPermission_LocationCheckFail() 1621 when(mPermissionManager.checkPermissionForDataDelivery(eq(NEARBY_WIFI_DEVICES), in testEnforceNearbyDevicesPermission_LocationCheckDisavowPass() 1623 when(mPermissionManager.checkPermissionForDataDelivery( in testEnforceNearbyDevicesPermission_LocationCheckDisavowPass() 1636 verify(mPermissionManager, never()).checkPermissionForDataDelivery( in testEnforceNearbyDevicesPermission_LocationCheckDisavowPass() 1659 when(mPermissionManager.checkPermissionForDataDelivery(eq(NEARBY_WIFI_DEVICES), in testEnforceNearbyDevicesPermission_LocationCheckWithoutDisavowPass() 1661 when(mPermissionManager.checkPermissionForDataDelivery( in testEnforceNearbyDevicesPermission_LocationCheckWithoutDisavowPass() 1678 verify(mPermissionManager).checkPermissionForDataDelivery( in testEnforceNearbyDevicesPermission_LocationCheckWithoutDisavowPass() 1697 when(mPermissionManager.checkPermissionForDataDelivery(eq(NEARBY_WIFI_DEVICES), in testEnforceNearbyDevicesPermission_BypassCheckWithPrivilegedPermission()
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/permission/ |
D | MedicalDataPermissionEnforcer.java | 110 return mPermissionManager.checkPermissionForDataDelivery( in isPermissionGranted()
|
D | DataPermissionEnforcer.java | 250 return mPermissionManager.checkPermissionForDataDelivery( in isPermissionGranted()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/ |
D | Utils.java | 613 private static boolean checkPermissionForDataDelivery(Context context, String permission, in checkPermissionForDataDelivery() method in Utils 669 return checkPermissionForDataDelivery(context, BLUETOOTH_CONNECT, in checkConnectPermissionForDataDelivery() 696 return checkPermissionForDataDelivery(context, BLUETOOTH_SCAN, in checkScanPermissionForDataDelivery() 725 return checkPermissionForDataDelivery(context, BLUETOOTH_ADVERTISE, in checkAdvertisePermissionForDataDelivery()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/visibilitystore/ |
D | VisibilityCheckerImpl.java | 386 == mPermissionManager.checkPermissionForDataDelivery( in doesCallerHavePermissionForDataDelivery()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | WifiPermissionsUtil.java | 231 int permissionCheckResult = mPermissionManager.checkPermissionForDataDelivery( in enforceNearbyDevicesPermission() 312 if (mPermissionManager.checkPermissionForDataDelivery( in enforceNearbyDevicesPermission()
|