Loading services/audiopolicy/service/AudioPolicyService.cpp +0 −2 Original line number Diff line number Diff line Loading @@ -1843,14 +1843,12 @@ void AudioPolicyService::UidPolicy::dumpInternals(int fd) { void AudioPolicyService::SensorPrivacyPolicy::registerSelf() { SensorPrivacyManager spm; mSensorPrivacyEnabled = spm.isSensorPrivacyEnabled(); (void)spm.addToggleSensorPrivacyListener(this); spm.addSensorPrivacyListener(this); } void AudioPolicyService::SensorPrivacyPolicy::unregisterSelf() { SensorPrivacyManager spm; spm.removeSensorPrivacyListener(this); spm.removeToggleSensorPrivacyListener(this); } bool AudioPolicyService::SensorPrivacyPolicy::isSensorPrivacyEnabled() { Loading Loading
services/audiopolicy/service/AudioPolicyService.cpp +0 −2 Original line number Diff line number Diff line Loading @@ -1843,14 +1843,12 @@ void AudioPolicyService::UidPolicy::dumpInternals(int fd) { void AudioPolicyService::SensorPrivacyPolicy::registerSelf() { SensorPrivacyManager spm; mSensorPrivacyEnabled = spm.isSensorPrivacyEnabled(); (void)spm.addToggleSensorPrivacyListener(this); spm.addSensorPrivacyListener(this); } void AudioPolicyService::SensorPrivacyPolicy::unregisterSelf() { SensorPrivacyManager spm; spm.removeSensorPrivacyListener(this); spm.removeToggleSensorPrivacyListener(this); } bool AudioPolicyService::SensorPrivacyPolicy::isSensorPrivacyEnabled() { Loading