AudioChannelManager::AudioChannelManager() : mState(SWITCH_STATE_UNKNOWN) { RegisterSwitchObserver(SWITCH_HEADPHONES, this); mState = GetCurrentSwitchState(SWITCH_HEADPHONES); SetIsDOMBinding(); }
hal::SwitchState GetCurrentSwitchState(hal::SwitchDevice aDevice) { AssertMainThread(); RETURN_PROXY_IF_SANDBOXED(GetCurrentSwitchState(aDevice)); }
SwitchState GetCurrentSwitchState(SwitchDevice aDevice) { AssertMainThread(); RETURN_PROXY_IF_SANDBOXED(GetCurrentSwitchState(aDevice), SWITCH_STATE_UNKNOWN); }