/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/permission/ |
D | DataPermissionEnforcerTest.java | 59 @Mock private PermissionManager mPermissionManager; field in DataPermissionEnforcerTest 76 new DataPermissionEnforcer(mPermissionManager, mContext, mDeviceConfigManager); in setUp() 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() [all …]
|
D | MedicalDataPermissionEnforcerTest.java | 47 @Mock private PermissionManager mPermissionManager; field in MedicalDataPermissionEnforcerTest 60 mMedicalDataPermissionEnforcer = new MedicalDataPermissionEnforcer(mPermissionManager); in setUp() 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() 120 when(mPermissionManager.checkPermissionForPreflight( in testGetGrantedMedicalPermissions_permissionGranted_returnsPermissions() 123 when(mPermissionManager.checkPermissionForPreflight(WRITE_MEDICAL_DATA, mAttributionSource)) in testGetGrantedMedicalPermissions_permissionGranted_returnsPermissions() 136 when(mPermissionManager.checkPermissionForPreflight( in testGetGrantedMedicalPermissions_onePermissionDenied_returnsOnePermission() [all …]
|
/packages/modules/Bluetooth/service/src/com/android/server/bluetooth/ |
D | BluetoothServiceBinder.java | 60 private final PermissionManager mPermissionManager; field in BluetoothServiceBinder 74 mPermissionManager = in BluetoothServiceBinder() 108 mPermissionManager, in enable() 129 mPermissionManager, in enableNoAutoConnect() 158 mPermissionManager, in disable() 186 mContext, mPermissionManager, source, "getAddress")) { in getAddress() 211 mContext, mPermissionManager, source, "getName")) { in getName() 232 mContext, mPermissionManager, source, "onFactoryReset")) { in onFactoryReset() 256 mPermissionManager, in enableBle() 279 mPermissionManager, in disableBle()
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/permission/ |
D | MedicalDataPermissionEnforcer.java | 39 private final PermissionManager mPermissionManager; field in MedicalDataPermissionEnforcer 42 mPermissionManager = permissionManager; in MedicalDataPermissionEnforcer() 91 if (mPermissionManager.checkPermissionForPreflight(permission, attributionSource) in getGrantedMedicalPermissionsForPreflight() 110 return mPermissionManager.checkPermissionForDataDelivery( in isPermissionGranted()
|
D | DataPermissionEnforcer.java | 50 private final PermissionManager mPermissionManager; field in DataPermissionEnforcer 58 mPermissionManager = permissionManager; in DataPermissionEnforcer() 250 return mPermissionManager.checkPermissionForDataDelivery( in isPermissionGranted()
|
/packages/services/Telephony/src/com/android/phone/euicc/ |
D | EuiccUiDispatcherActivity.java | 59 private LegacyPermissionManager mPermissionManager; field in EuiccUiDispatcherActivity 68 mPermissionManager = (LegacyPermissionManager) getSystemService( in onCreate() 204 mPermissionManager.grantDefaultPermissionsToLuiApp( in grantDefaultPermissionsToLuiApp() 226 mPermissionManager.revokeDefaultPermissionsFromLuiApps(luiAppsArray, in revokePermissionFromLuiApps()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/privacy/ |
D | PrivacyElementsProviderImpl.java | 63 private final PermissionManager mPermissionManager; field in PrivacyElementsProviderImpl 77 mPermissionManager = permissionManager; in PrivacyElementsProviderImpl() 154 return mPermissionManager.getIndicatorAppOpUsageData(); in getPermGroupUsages()
|
/packages/modules/Uwb/service/java/com/android/server/uwb/ |
D | UwbInjector.java | 103 private final PermissionManager mPermissionManager; field in UwbInjector 131 mPermissionManager = context.getSystemService(PermissionManager.class); in UwbInjector() 267 int permissionCheckResult = mPermissionManager.checkPermissionForPreflight( in enforceUwbRangingPermissionForPreflight() 281 int permissionCheckResult = mPermissionManager.checkPermissionForStartDataDelivery( in checkUwbRangingPermissionForStartDataDelivery() 289 mPermissionManager.finishDataDelivery(UWB_RANGING, attributionSource); in finishUwbRangingPermissionForDataDelivery()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/visibilitystore/ |
D | VisibilityCheckerImpl.java | 58 private final PermissionManager mPermissionManager; field in VisibilityCheckerImpl 68 mPermissionManager = userContext.getSystemService(PermissionManager.class); in VisibilityCheckerImpl() 386 == mPermissionManager.checkPermissionForDataDelivery( in doesCallerHavePermissionForDataDelivery()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | WifiPermissionsUtilTest.java | 110 @Mock private PermissionManager mPermissionManager; field in WifiPermissionsUtilTest 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() [all …]
|
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/ |
D | HealthConnectManagerServiceTest.java | 80 @Mock private PermissionManager mPermissionManager; field in HealthConnectManagerServiceTest 116 when(mContext.getSystemService(PermissionManager.class)).thenReturn(mPermissionManager); in setUp()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | WifiPermissionsUtil.java | 85 private final PermissionManager mPermissionManager; field in WifiPermissionsUtil 100 mPermissionManager = mContext.getSystemService(PermissionManager.class); in WifiPermissionsUtil() 231 int permissionCheckResult = mPermissionManager.checkPermissionForDataDelivery( in enforceNearbyDevicesPermission() 312 if (mPermissionManager.checkPermissionForDataDelivery( in enforceNearbyDevicesPermission()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/ |
D | AdapterServiceTest.java | 170 private PermissionManager mPermissionManager; field in AdapterServiceTest 257 mPermissionManager = targetContext.getSystemService(PermissionManager.class); in setUp() 293 Context.PERMISSION_SERVICE, PermissionManager.class, mPermissionManager); in setUp()
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/ |
D | HealthConnectServiceImpl.java | 202 private final PermissionManager mPermissionManager; field in HealthConnectServiceImpl 237 mPermissionManager = mContext.getSystemService(PermissionManager.class); in HealthConnectServiceImpl() 240 new DataPermissionEnforcer(mPermissionManager, mContext, deviceConfigManager); in HealthConnectServiceImpl()
|