Lines Matching refs:device
64 virtual status_t setDeviceConnectionState(AudioSystem::audio_devices device,
67 virtual AudioSystem::device_connection_state getDeviceConnectionState(AudioSystem::audio_devices device,
119 uint32_t device();
132 uint32_t mDevice; // current device this output is routed to
153 uint32_t mDevice; // current device this input is routed to
177 // return appropriate device for streams handled by the specified strategy according to current
179 // if fromCache is true, the device is returned from mDeviceForStrategy[], otherwise it is determined
180 // by current state (device connected, phone state, force use, a2dp output...)
183 // 2 access to either current device selection (fromCache == true) or
184 // "future" device selection (fromCache == false) when called from a context
189 void setOutputDevice(audio_io_handle_t output, uint32_t device, bool force = false, int delayMs = 0);
190 // select input device corresponding to requested audio source
195 // device
196 virtual float computeVolume(int stream, int index, audio_io_handle_t output, uint32_t device);
198 status_t checkAndSetVolume(int stream, int index, audio_io_handle_t output, uint32_t device, int delayMs = 0, bool force = false);
199 // apply all stream volumes to the specified output and device
200 void applyStreamVolumes(audio_io_handle_t output, uint32_t device, int delayMs = 0);
206 // a special tone in the device used for communication
214 status_t handleA2dpConnection(AudioSystem::audio_devices device,
216 status_t handleA2dpDisconnection(AudioSystem::audio_devices device,
221 // changed: connected device, phone state, force use...
228 // selects the most appropriate device on output for current state
229 // must be called every time a condition that affects the device choice for a given output is
230 // changed: connected device, phone state, force use, output start, output stop..
233 // updates cache of device used by all strategies (mDeviceForStrategy[])
234 // must be called every time a condition that affects the device choice for a given strategy is
235 // changed: connected device, phone state, force use...
247 uint32_t device);
268 String8 mA2dpDeviceAddress; // A2DP device MAC address
269 String8 mScoDeviceAddress; // SCO device MAC address