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