Home | History | Annotate | Download | only in hardware_legacy

Lines Matching full:device

67         virtual status_t setDeviceConnectionState(AudioSystem::audio_devices device,
70 virtual AudioSystem::device_connection_state getDeviceConnectionState(AudioSystem::audio_devices device,
150 // device categories used for volume curve management.
166 // default volume curves per strategy and device category. See initializeVolumeCurves()
178 uint32_t device();
191 uint32_t mDevice; // current device this output is routed to
213 uint32_t mDevice; // current device this input is routed to
253 // return appropriate device for streams handled by the specified strategy according to current
255 // if fromCache is true, the device is returned from mDeviceForStrategy[], otherwise it is determined
256 // by current state (device connected, phone state, force use, a2dp output...)
259 // 2 access to either current device selection (fromCache == true) or
260 // "future" device selection (fromCache == false) when called from a context
265 void setOutputDevice(audio_io_handle_t output, uint32_t device, bool force = false, int delayMs = 0);
266 // select input device corresponding to requested audio source
270 // initialize volume curves for each strategy and device category
273 // device
274 virtual float computeVolume(int stream, int index, audio_io_handle_t output, uint32_t device);
276 status_t checkAndSetVolume(int stream, int index, audio_io_handle_t output, uint32_t device, int delayMs = 0, bool force = false);
277 // apply all stream volumes to the specified output and device
278 void applyStreamVolumes(audio_io_handle_t output, uint32_t device, int delayMs = 0, bool force = false);
284 // a special tone in the device used for communication
288 // true if device is in a telephony or VoIP call
290 // true if given state represents a device in a telephony or VoIP call
296 status_t handleA2dpConnection(AudioSystem::audio_devices device,
298 status_t handleA2dpDisconnection(AudioSystem::audio_devices device,
303 // changed: connected device, phone state, force use...
311 // selects the most appropriate device on output for current state
312 device choice for a given output is
313 // changed: connected device, phone state, force use, output start, output stop..
316 // updates cache of device used by all strategies (mDeviceForStrategy[])
317 // must be called every time a condition that affects the device choice for a given strategy is
318 // changed: connected device, phone state, force use...
330 uint32_t device);
341 // returns the category the device belongs to with regard to volume curve management
342 static device_category getDeviceCategory(uint32_t device);
358 String8 mA2dpDeviceAddress; // A2DP device MAC address
359 String8 mScoDeviceAddress; // SCO device MAC address
389 static float volIndexToAmpl(uint32_t device, const StreamDescriptor& streamDesc,