Searched refs:isBackgroundReadFeatureEnabled (Results 1 – 4 of 4) sorted by relevance
278 when(mDeviceConfigManager.isBackgroundReadFeatureEnabled()).thenReturn(true); in testEnforceBackgroundReadRestrictions_permissionGranted_doesNotThrow()288 when(mDeviceConfigManager.isBackgroundReadFeatureEnabled()).thenReturn(true); in testEnforceBackgroundReadRestrictions_permissionDenied_throwsSecurityException()298 when(mDeviceConfigManager.isBackgroundReadFeatureEnabled()).thenReturn(false); in testEnforceBackgroundReadRestrictions_featureDisabled_throwsSecurityException()
182 if (mDeviceConfigManager.isBackgroundReadFeatureEnabled()) { in enforceBackgroundReadRestrictions()
472 public boolean isBackgroundReadFeatureEnabled() { in isBackgroundReadFeatureEnabled() method in HealthConnectDeviceConfigManager
2517 return !mDeviceConfigManager.isBackgroundReadFeatureEnabled() in isOnlySelfReadInBackgroundAllowed()