Home | History | Annotate | Download | only in audioservice

Lines Matching refs:device

89     audio_devices_t device, audio_policy_dev_state_t state) {
91 LOG(INFO) << "Audio device handler cannot call audio policy service. Will "
95 VLOG(1) << "Calling Audio Policy Service to change " << device << " to state "
97 aps_->setDeviceConnectionState(device, state, "", "");
100 void AudioDeviceHandler::ConnectAudioDevice(audio_devices_t device) {
102 NotifyAudioPolicyService(device, state);
103 if (audio_is_input_device(device))
104 connected_input_devices_.insert(device);
106 connected_output_devices_.insert(device);
109 void AudioDeviceHandler::DisconnectAudioDevice(audio_devices_t device) {
111 NotifyAudioPolicyService(device, state);
112 if (audio_is_input_device(device))
113 connected_input_devices_.erase(device);
115 connected_output_devices_.erase(device);
119 for (auto device : kSupportedInputDevices_) {
120 DisconnectAudioDevice(device);
122 for (auto device : kSupportedOutputDevices_) {
123 DisconnectAudioDevice(device);
129 audio_devices_t device = *(connected_input_devices_.begin());
130 DisconnectAudioDevice(device);
133 audio_devices_t device = *(connected_output_devices_.begin());
134 DisconnectAudioDevice(device);