Loading services/core/java/com/android/server/location/contexthub/ContextHubService.java +2 −7 Original line number Diff line number Diff line Loading @@ -124,9 +124,6 @@ public class ContextHubService extends IContextHubService.Stub { // True if WiFi is available for the Context Hub private boolean mIsWifiAvailable = false; // True if audio is disabled for the ContextHub private boolean mIsAudioDisabled = false; // Lock object for sendWifiSettingUpdate() private final Object mSendWifiSettingUpdateLock = new Object(); Loading Loading @@ -1084,11 +1081,9 @@ public class ContextHubService extends IContextHubService.Stub { SensorPrivacyManager manager = SensorPrivacyManager.getInstance(mContext); boolean disabled = manager.isIndividualSensorPrivacyEnabled( SensorPrivacyManager.INDIVIDUAL_SENSOR_MICROPHONE); if (mIsAudioDisabled != disabled) { mIsAudioDisabled = disabled; Log.d(TAG, "Mic Disabled Setting: " + disabled); mContextHubWrapper.onMicrophoneDisableSettingChanged(disabled); } } private String getCallingPackageName() { Loading Loading
services/core/java/com/android/server/location/contexthub/ContextHubService.java +2 −7 Original line number Diff line number Diff line Loading @@ -124,9 +124,6 @@ public class ContextHubService extends IContextHubService.Stub { // True if WiFi is available for the Context Hub private boolean mIsWifiAvailable = false; // True if audio is disabled for the ContextHub private boolean mIsAudioDisabled = false; // Lock object for sendWifiSettingUpdate() private final Object mSendWifiSettingUpdateLock = new Object(); Loading Loading @@ -1084,11 +1081,9 @@ public class ContextHubService extends IContextHubService.Stub { SensorPrivacyManager manager = SensorPrivacyManager.getInstance(mContext); boolean disabled = manager.isIndividualSensorPrivacyEnabled( SensorPrivacyManager.INDIVIDUAL_SENSOR_MICROPHONE); if (mIsAudioDisabled != disabled) { mIsAudioDisabled = disabled; Log.d(TAG, "Mic Disabled Setting: " + disabled); mContextHubWrapper.onMicrophoneDisableSettingChanged(disabled); } } private String getCallingPackageName() { Loading