Searched refs:device (Results 1 - 25 of 110) sorted by relevance

12345

/hardware/msm7k/libaudio-qdsp5v2/
H A DAudioPolicyManager.cpp26 // Max volume for streams when playing over bluetooth SCO device while in call: -18dB
54 uint32_t device = 0; local
57 device = mDeviceForStrategy[strategy];
58 ALOGV("getDeviceForStrategy() from cache strategy %d, device %x", strategy, device);
59 return device;
66 device = getDeviceForStrategy(STRATEGY_MEDIA, false);
78 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_BLUETOOTH_SCO_CARKIT;
79 if (device) break;
82 device
236 computeVolume(int stream, int index, audio_io_handle_t output, uint32_t device) argument
[all...]
/hardware/msm7k/libaudio-qsd8k/
H A DAudioPolicyManager.cpp26 // Max volume for streams when playing over bluetooth SCO device while in call: -18dB
54 uint32_t device = 0; local
57 device = mDeviceForStrategy[strategy];
58 ALOGV("getDeviceForStrategy() from cache strategy %d, device %x", strategy, device);
59 return device;
66 device = getDeviceForStrategy(STRATEGY_MEDIA, false);
78 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_BLUETOOTH_SCO_CARKIT;
79 if (device) break;
82 device
236 computeVolume(int stream, int index, audio_io_handle_t output, uint32_t device) argument
[all...]
/hardware/ti/omap4xxx/camera/
H A DCameraHal_Module.cpp39 hw_device_t** device);
40 static int camera_device_close(hw_device_t* device);
75 int camera_set_preview_window(struct camera_device * device, argument
83 if(!device)
86 ti_dev = (ti_camera_device_t*) device;
93 void camera_set_callbacks(struct camera_device * device, argument
104 if(!device)
107 ti_dev = (ti_camera_device_t*) device;
112 void camera_enable_msg_type(struct camera_device * device, int32_t msg_type) argument
118 if(!device)
126 camera_disable_msg_type(struct camera_device * device, int32_t msg_type) argument
140 camera_msg_type_enabled(struct camera_device * device, int32_t msg_type) argument
154 camera_start_preview(struct camera_device * device) argument
171 camera_stop_preview(struct camera_device * device) argument
185 camera_preview_enabled(struct camera_device * device) argument
201 camera_store_meta_data_in_buffers(struct camera_device * device, int enable) argument
219 camera_start_recording(struct camera_device * device) argument
235 camera_stop_recording(struct camera_device * device) argument
249 camera_recording_enabled(struct camera_device * device) argument
265 camera_release_recording_frame(struct camera_device * device, const void *opaque) argument
280 camera_auto_focus(struct camera_device * device) argument
296 camera_cancel_auto_focus(struct camera_device * device) argument
312 camera_take_picture(struct camera_device * device) argument
328 camera_cancel_picture(struct camera_device * device) argument
344 camera_set_parameters(struct camera_device * device, const char *params) argument
360 camera_get_parameters(struct camera_device * device) argument
377 camera_put_parameters(struct camera_device *device, char *parms) argument
391 camera_send_command(struct camera_device * device, int32_t cmd, int32_t arg1, int32_t arg2) argument
408 camera_release(struct camera_device * device) argument
422 camera_dump(struct camera_device * device, int fd) argument
438 camera_device_close(hw_device_t* device) argument
483 camera_device_open(const hw_module_t* module, const char* name, hw_device_t** device) argument
[all...]
/hardware/libhardware/modules/local_time/
H A Dlocal_time_hw.c31 struct local_time_hw_device device; member in struct:stub_local_time_device
60 static int ltdev_close(hw_device_t *device) argument
62 free(device);
67 hw_device_t** device)
80 ltdev->device.common.tag = HARDWARE_DEVICE_TAG;
81 ltdev->device.common.version = 0;
82 ltdev->device.common.module = (struct hw_module_t *) module;
83 ltdev->device.common.close = ltdev_close;
85 ltdev->device.get_local_time = ltdev_get_local_time;
86 ltdev->device
66 ltdev_open(const hw_module_t* module, const char* name, hw_device_t** device) argument
[all...]
/hardware/libhardware/include/hardware/
H A Dlocal_time_hal.h99 /** convenience API for opening and closing a supported device */
103 struct local_time_hw_device** device)
106 (struct hw_device_t**)device);
109 static inline int local_time_hw_device_close(struct local_time_hw_device* device) argument
111 return device->common.close(&device->common);
101 local_time_hw_device_open( const struct hw_module_t* module, struct local_time_hw_device** device) argument
H A Dfb.h152 /** convenience API for opening and closing a supported device */
155 struct framebuffer_device_t** device) {
157 GRALLOC_HARDWARE_FB0, (struct hw_device_t**)device);
160 static inline int framebuffer_close(struct framebuffer_device_t* device) { argument
161 return device->common.close(&device->common);
154 framebuffer_open(const struct hw_module_t* module, struct framebuffer_device_t** device) argument
H A Dkeymaster.h194 keymaster_device_t** device)
197 (struct hw_device_t**) device);
200 (*device)->client_version = KEYMASTER_API_VERSION;
206 static inline int keymaster_close(keymaster_device_t* device) argument
208 return device->common.close(&device->common);
193 keymaster_open(const struct hw_module_t* module, keymaster_device_t** device) argument
H A Dsensors.h42 * Name of the sensors device to open
70 * This API is relative to the screen of the device in its default orientation,
71 * that is, if the device can be used in portrait or landscape, this API
73 * the axis are not swapped when the device's screen orientation changes.
141 * physical sensors on the device. For instance the rotation vector sensor,
183 * device minus the force of gravity.
198 * When the device lies flat on a table and is pushed on its left side
201 * When the device lies flat on a table, the acceleration value is +9.81,
202 * which correspond to the acceleration of the device (0 m/s^2) minus the
205 * When the device lie
1161 sensors_open(const struct hw_module_t* module, struct sensors_poll_device_t** device) argument
1167 sensors_close(struct sensors_poll_device_t* device) argument
1171 sensors_open_1(const struct hw_module_t* module, sensors_poll_device_1_t** device) argument
1177 sensors_close_1(sensors_poll_device_1_t* device) argument
[all...]
/hardware/libhardware/modules/hwcomposer/
H A Dhwcomposer.cpp32 hwc_composer_device_1_t device; member in struct:hwc_context_t
37 struct hw_device_t** device);
108 struct hw_device_t** device)
119 dev->device.common.tag = HARDWARE_DEVICE_TAG;
120 dev->device.common.version = HWC_DEVICE_API_VERSION_1_0;
121 dev->device.common.module = const_cast<hw_module_t*>(module);
122 dev->device.common.close = hwc_device_close;
124 dev->device.prepare = hwc_prepare;
125 dev->device.set = hwc_set;
127 *device
107 hwc_device_open(const struct hw_module_t* module, const char* name, struct hw_device_t** device) argument
[all...]
/hardware/samsung_slsi/exynos5/mobicore/daemon/ClientLib/
H A DClientLib.cpp77 Device *device = (*iterator); local
79 if (device->deviceId == deviceId) {
80 return device;
88 void addDevice(Device *device) argument
90 devices.push_back(device);
100 Device *device = (*iterator); local
102 if (device->deviceId == deviceId) {
104 delete device;
116 #define CHECK_DEVICE(device) \
117 if (NULL == device) \
184 Device *device = resolveDeviceId(deviceId); local
266 Device *device = resolveDeviceId(deviceId); local
322 Device *device = resolveDeviceId(session->deviceId); local
469 Device *device = resolveDeviceId(session->deviceId); local
518 Device *device = resolveDeviceId(session->deviceId); local
555 Device *device = resolveDeviceId(session->deviceId); local
637 Device *device = resolveDeviceId(deviceId); local
667 Device *device; local
723 Device *device = resolveDeviceId(sessionHandle->deviceId); local
809 Device *device = resolveDeviceId(sessionHandle->deviceId); local
881 Device *device = resolveDeviceId(session->deviceId); local
920 Device *device = resolveDeviceId(deviceId); local
[all...]
/hardware/libhardware/modules/audio/
H A Daudio_hw.c32 struct audio_hw_device device; member in struct:stub_audio_device
371 static int adev_dump(const audio_hw_device_t *device, int fd) argument
376 static int adev_close(hw_device_t *device) argument
378 free(device);
383 hw_device_t** device)
395 adev->device.common.tag = HARDWARE_DEVICE_TAG;
396 adev->device.common.version = AUDIO_DEVICE_API_VERSION_2_0;
397 adev->device.common.module = (struct hw_module_t *) module;
398 adev->device.common.close = adev_close;
400 adev->device
382 adev_open(const hw_module_t* module, const char* name, hw_device_t** device) argument
[all...]
H A Daudio_policy.c35 struct audio_policy_device device; member in struct:default_ap_device
46 audio_devices_t device,
55 audio_devices_t device,
77 /* retreive current device category forced for a given usage */
170 audio_devices_t device)
178 audio_devices_t device)
232 static int create_default_ap(const struct audio_policy_device *device, argument
295 static int default_ap_dev_close(hw_device_t* device) argument
297 free(device);
302 hw_device_t** device)
45 ap_set_device_connection_state(struct audio_policy *pol, audio_devices_t device, audio_policy_dev_state_t state, const char *device_address) argument
53 ap_get_device_connection_state( const struct audio_policy *pol, audio_devices_t device, const char *device_address) argument
167 ap_set_stream_volume_index_for_device(struct audio_policy *pol, audio_stream_type_t stream, int index, audio_devices_t device) argument
175 ap_get_stream_volume_index_for_device(const struct audio_policy *pol, audio_stream_type_t stream, int *index, audio_devices_t device) argument
301 default_ap_dev_open(const hw_module_t* module, const char* name, hw_device_t** device) argument
[all...]
/hardware/libhardware/tests/nusensors/
H A Dnusensors.cpp63 struct sensors_poll_device_t* device; local
72 err = sensors_open(&module->common, &device);
104 err = device->activate(device, list[i].handle, 0);
113 err = device->activate(device, list[i].handle, 1);
119 device->setDelay(device, list[i].handle, ms2ns(10));
123 int n = device->poll(device, buffe
[all...]
/hardware/libhardware_legacy/audio/
H A DAudioPolicyManagerBase.cpp27 // A device mask for all audio input devices that are considered "virtual" when evaluating
30 // A device mask for all audio output devices that are considered "remote" when evaluating
48 status_t AudioPolicyManagerBase::setDeviceConnectionState(audio_devices_t device, argument
54 ALOGV("setDeviceConnectionState() device: %x, state %d, address %s", device, state, device_address);
56 // connect/disconnect only 1 device at a time
57 if (!audio_is_output_device(device) && !audio_is_input_device(device)) return BAD_VALUE;
65 if (audio_is_output_device(device)) {
67 if (!mHasA2dp && audio_is_a2dp_device(device)) {
244 getDeviceConnectionState(audio_devices_t device, const char *device_address) argument
482 getProfileForDirectOutput( audio_devices_t device, uint32_t samplingRate, uint32_t format, uint32_t channelMask, audio_output_flags_t flags) argument
516 audio_devices_t device = getDeviceForStrategy(strategy, false /*fromCache*/); local
851 audio_devices_t device = getDeviceForInputSource(inputSource); local
1009 setStreamVolumeIndex(AudioSystem::stream_type stream, int index, audio_devices_t device) argument
1049 getStreamVolumeIndex(AudioSystem::stream_type stream, int *index, audio_devices_t device) argument
1077 audio_devices_t device = getDeviceForStrategy(strategy, false /*fromCache*/); local
1612 checkOutputsForDevice(audio_devices_t device, AudioSystem::device_connection_state state, SortedVector<audio_io_handle_t>& outputs) argument
1858 getOutputsForDevice(audio_devices_t device, DefaultKeyedVector<audio_io_handle_t, AudioOutputDescriptor *> openOutputs) argument
2017 audio_devices_t device = AUDIO_DEVICE_NONE; local
2111 uint32_t device = AUDIO_DEVICE_NONE; local
2340 audio_devices_t device = outputDesc->device(); local
2401 setOutputDevice(audio_io_handle_t output, audio_devices_t device, bool force, int delayMs) argument
2455 getInputProfile(audio_devices_t device, uint32_t samplingRate, uint32_t format, uint32_t channelMask) argument
2482 uint32_t device = AUDIO_DEVICE_NONE; local
2531 isVirtualInputDevice(audio_devices_t device) argument
2554 getDeviceForVolume(audio_devices_t device) argument
2575 device); local
2580 getDeviceCategory(audio_devices_t device) argument
2604 volIndexToAmpl(audio_devices_t device, const StreamDescriptor& streamDesc, int indexInUi) argument
2759 computeVolume(int stream, int index, audio_io_handle_t output, audio_devices_t device) argument
2823 checkAndSetVolume(int stream, int index, audio_io_handle_t output, audio_devices_t device, int delayMs, bool force) argument
2881 applyStreamVolumes(audio_io_handle_t output, audio_devices_t device, int delayMs, bool force) argument
2898 setStrategyMute(routing_strategy strategy, bool on, audio_io_handle_t output, int delayMs, audio_devices_t device) argument
2912 setStreamMute(int stream, bool on, audio_io_handle_t output, int delayMs, audio_devices_t device) argument
3005 needsDirectOuput(audio_stream_type_t stream, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags, audio_devices_t device) argument
3053 audio_devices_t AudioPolicyManagerBase::AudioOutputDescriptor::device() const function in class:android_audio_legacy::AudioPolicyManagerBase::AudioOutputDescriptor
3217 getVolumeIndex(audio_devices_t device) argument
3328 isCompatibleProfile(audio_devices_t device, uint32_t samplingRate, uint32_t format, uint32_t channelMask, audio_output_flags_t flags) const argument
3515 uint32_t device = 0; local
[all...]
/hardware/libhardware/modules/gralloc/
H A Dframebuffer.cpp55 framebuffer_device_t device; member in struct:fb_context_t
311 hw_device_t** device)
320 dev->device.common.tag = HARDWARE_DEVICE_TAG;
321 dev->device.common.version = 0;
322 dev->device.common.module = const_cast<hw_module_t*>(module);
323 dev->device.common.close = fb_close;
324 dev->device.setSwapInterval = fb_setSwapInterval;
325 dev->device.post = fb_post;
326 dev->device.setUpdateRect = 0;
335 const_cast<uint32_t&>(dev->device
310 fb_device_open(hw_module_t const* module, const char* name, hw_device_t** device) argument
[all...]
H A Dgralloc.cpp43 alloc_device_t device; member in struct:gralloc_context_t
53 hw_device_t** device);
56 hw_device_t** device);
287 hw_device_t** device)
298 dev->device.common.tag = HARDWARE_DEVICE_TAG;
299 dev->device.common.version = 0;
300 dev->device.common.module = const_cast<hw_module_t*>(module);
301 dev->device.common.close = gralloc_close;
303 dev->device.alloc = gralloc_alloc;
304 dev->device
286 gralloc_device_open(const hw_module_t* module, const char* name, hw_device_t** device) argument
[all...]
/hardware/qcom/audio/legacy/alsa_sound/
H A DALSAStreamOps.cpp97 uint32_t device)
99 mDevices = device;
192 int device; local
205 if (param.getInt(key, device) == NO_ERROR) {
206 // Ignore routing if device is 0.
207 ALOGD("setParameters(): keyRouting with device 0x%x", device);
209 if ((device == 0) && (mDevices == AudioSystem::DEVICE_OUT_AUX_DIGITAL)) {
210 device = AudioSystem::DEVICE_OUT_SPEAKER;
212 if (device)
94 set(int *format, uint32_t *channels, uint32_t *rate, uint32_t device) argument
[all...]
H A Dacoustics_default.cpp51 hw_device_t** device)
72 *device = &dev->common;
76 static int s_device_close(hw_device_t* device) argument
78 free(device);
50 s_device_open(const hw_module_t* module, const char* name, hw_device_t** device) argument
H A DALSAMixer.cpp54 const AudioSystem::audio_devices device; member in struct:android::alsa_properties_t
108 ALOGW("Unable to attach mixer to device %s: %s",
112 ALOGE("Unable to attach mixer to device default: %s",
209 for (int j = 0; mixerProp[j][i].device; j++) {
257 for (int j = 0; mixerProp[j][i].device; j++) {
305 status_t ALSAMixer::setVolume(uint32_t device, float left, float right) argument
307 for (int j = 0; mixerProp[j][SND_PCM_STREAM_PLAYBACK].device; j++)
308 if (mixerProp[j][SND_PCM_STREAM_PLAYBACK].device & device) {
328 status_t ALSAMixer::setGain(uint32_t device, floa argument
351 setCaptureMuteState(uint32_t device, bool state) argument
375 getCaptureMuteState(uint32_t device, bool *state) argument
392 setPlaybackMuteState(uint32_t device, bool state) argument
416 getPlaybackMuteState(uint32_t device, bool *state) argument
[all...]
/hardware/qcom/display/libcopybit/
H A Dcopybit.h38 * Name of the graphics device to open
173 * Every device data structure must begin with hw_device_t
261 /** convenience API for opening and closing a device */
264 struct copybit_device_t** device) {
266 COPYBIT_HARDWARE_COPYBIT0, (struct hw_device_t**)device);
269 static inline int copybit_close(struct copybit_device_t* device) { argument
270 return device->common.close(&device->common);
263 copybit_open(const struct hw_module_t* module, struct copybit_device_t** device) argument
/hardware/qcom/display/libgralloc/
H A Dgralloc.cpp37 hw_device_t** device);
40 hw_device_t** device);
98 // Open Gralloc device
100 hw_device_t** device)
109 *device = &dev->common;
112 status = fb_device_open(module, name, device);
99 gralloc_device_open(const hw_module_t* module, const char* name, hw_device_t** device) argument
H A Dframebuffer.cpp60 framebuffer_device_t device; member in struct:fb_context_t
357 hw_device_t** device)
371 dev->device.common.tag = HARDWARE_DEVICE_TAG;
372 dev->device.common.version = 0;
373 dev->device.common.module = const_cast<hw_module_t*>(module);
374 dev->device.common.close = fb_close;
375 dev->device.setSwapInterval = fb_setSwapInterval;
376 dev->device.post = fb_post;
377 dev->device.setUpdateRect = 0;
378 dev->device
356 fb_device_open(hw_module_t const* module, const char* name, hw_device_t** device) argument
[all...]
/hardware/samsung_slsi/exynos5/mobicore/daemon/Daemon/
H A DMobiCoreDriverDaemon.cpp93 // Unload any device drivers might have been loaded
158 // Load device driver if requested
199 MobiCoreDevice *device = (MobiCoreDevice *) (connection->connectionData); local
201 if (device != NULL) {
202 LOG_I("dropConnection(): closing still open device.");
204 device->close(connection);
344 LOG_V("%s: no device associated with connection",__FUNCTION__); \
357 // Check if device has been registered to the connection
358 MobiCoreDevice *device = (MobiCoreDevice *) (connection->connectionData); local
359 if (NULL != device) {
393 MobiCoreDevice *device = (MobiCoreDevice *) (connection->connectionData); local
414 MobiCoreDevice *device = (MobiCoreDevice *) (connection->connectionData); local
482 MobiCoreDevice *device = (MobiCoreDevice *) (connection->connectionData); local
505 MobiCoreDevice *device = (MobiCoreDevice *)(connection->connectionData); local
566 MobiCoreDevice *device = (MobiCoreDevice *) (connection->connectionData); local
591 MobiCoreDevice *device = (MobiCoreDevice *) (connection->connectionData); local
633 MobiCoreDevice *device = (MobiCoreDevice *) (connection->connectionData); local
674 MobiCoreDevice *device = (MobiCoreDevice *) (connection->connectionData); local
[all...]
/hardware/invensense/libsensors_iio/
H A Dsensors_mpl.cpp56 struct hw_device_t** device);
83 struct sensors_poll_device_t device; // must be first member in struct:sensors_poll_context_t
238 /** Open a new instance of a sensor device using name */
240 struct hw_device_t** device)
246 memset(&dev->device, 0, sizeof(sensors_poll_device_t));
248 dev->device.common.tag = HARDWARE_DEVICE_TAG;
249 dev->device.common.version = 0;
250 dev->device.common.module = const_cast<hw_module_t*>(module);
251 dev->device.common.close = poll__close;
252 dev->device
239 open_sensors(const struct hw_module_t* module, const char* id, struct hw_device_t** device) argument
[all...]
/hardware/msm7k/libgralloc-qsd8k/
H A Dframebuffer.cpp57 framebuffer_device_t device; member in struct:fb_context_t
365 hw_device_t** device)
379 dev->device.common.tag = HARDWARE_DEVICE_TAG;
380 dev->device.common.version = 0;
381 dev->device.common.module = const_cast<hw_module_t*>(module);
382 dev->device.common.close = fb_close;
383 dev->device.setSwapInterval = fb_setSwapInterval;
384 dev->device.post = fb_post;
385 dev->device.setUpdateRect = 0;
386 dev->device
364 fb_device_open(hw_module_t const* module, const char* name, hw_device_t** device) argument
[all...]

Completed in 788 milliseconds

12345