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

12345

/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 Dsensors.h43 * Name of the sensors device to open
80 * This API is relative to the screen of the device in its default orientation,
81 * that is, if the device can be used in portrait or landscape, this API
83 * the axis are not swapped when the device's screen orientation changes.
153 * Base for device manufacturers private sensor types.
162 * physical sensors on the device. For instance the rotation vector sensor,
238 * device minus the force of gravity.
253 * When the device lies flat on a table and is pushed on its left side
256 * When the device lies flat on a table, the acceleration value is +9.81,
257 * which correspond to the acceleration of the device (
1301 sensors_open(const struct hw_module_t* module, struct sensors_poll_device_t** device) argument
1307 sensors_close(struct sensors_poll_device_t* device) argument
1311 sensors_open_1(const struct hw_module_t* module, sensors_poll_device_1_t** device) argument
1317 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 */
171 audio_devices_t device)
179 audio_devices_t device)
239 static int create_default_ap(const struct audio_policy_device *device, argument
304 static int default_ap_dev_close(hw_device_t* device) argument
306 free(device);
311 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
168 ap_set_stream_volume_index_for_device(struct audio_policy *pol, audio_stream_type_t stream, int index, audio_devices_t device) argument
176 ap_get_stream_volume_index_for_device(const struct audio_policy *pol, audio_stream_type_t stream, int *index, audio_devices_t device) argument
310 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
49 status_t AudioPolicyManagerBase::setDeviceConnectionState(audio_devices_t device, argument
55 ALOGV("setDeviceConnectionState() device: %x, state %d, address %s", device, state, device_address);
57 // connect/disconnect only 1 device at a time
58 if (!audio_is_output_device(device) && !audio_is_input_device(device)) return BAD_VALUE;
66 if (audio_is_output_device(device)) {
68 if (!mHasA2dp && audio_is_a2dp_device(device)) {
247 getDeviceConnectionState(audio_devices_t device, const char *device_address) argument
495 getProfileForDirectOutput( audio_devices_t device, uint32_t samplingRate, uint32_t format, uint32_t channelMask, audio_output_flags_t flags) argument
540 audio_devices_t device = getDeviceForStrategy(strategy, false /*fromCache*/); local
908 audio_devices_t device = getDeviceForInputSource(inputSource); local
1091 setStreamVolumeIndex(AudioSystem::stream_type stream, int index, audio_devices_t device) argument
1131 getStreamVolumeIndex(AudioSystem::stream_type stream, int *index, audio_devices_t device) argument
1199 audio_devices_t device = getDeviceForStrategy(strategy, false /*fromCache*/); local
1819 checkOutputsForDevice(audio_devices_t device, AudioSystem::device_connection_state state, SortedVector<audio_io_handle_t>& outputs) argument
2071 getOutputsForDevice(audio_devices_t device, DefaultKeyedVector<audio_io_handle_t, AudioOutputDescriptor *> openOutputs) argument
2224 audio_devices_t device = AUDIO_DEVICE_NONE; local
2318 uint32_t device = AUDIO_DEVICE_NONE; local
2547 audio_devices_t device = outputDesc->device(); local
2608 setOutputDevice(audio_io_handle_t output, audio_devices_t device, bool force, int delayMs) argument
2662 getInputProfile(audio_devices_t device, uint32_t samplingRate, uint32_t format, uint32_t channelMask) argument
2689 uint32_t device = AUDIO_DEVICE_NONE; local
2739 isVirtualInputDevice(audio_devices_t device) argument
2762 getDeviceForVolume(audio_devices_t device) argument
2783 device); local
2788 getDeviceCategory(audio_devices_t device) argument
2812 volIndexToAmpl(audio_devices_t device, const StreamDescriptor& streamDesc, int indexInUi) argument
2991 computeVolume(int stream, int index, audio_io_handle_t output, audio_devices_t device) argument
3055 checkAndSetVolume(int stream, int index, audio_io_handle_t output, audio_devices_t device, int delayMs, bool force) argument
3113 applyStreamVolumes(audio_io_handle_t output, audio_devices_t device, int delayMs, bool force) argument
3130 setStrategyMute(routing_strategy strategy, bool on, audio_io_handle_t output, int delayMs, audio_devices_t device) argument
3144 setStreamMute(int stream, bool on, audio_io_handle_t output, int delayMs, audio_devices_t device) argument
3274 audio_devices_t AudioPolicyManagerBase::AudioOutputDescriptor::device() const function in class:android_audio_legacy::AudioPolicyManagerBase::AudioOutputDescriptor
3438 getVolumeIndex(audio_devices_t device) argument
3550 isCompatibleProfile(audio_devices_t device, uint32_t samplingRate, uint32_t format, uint32_t channelMask, audio_output_flags_t flags) const argument
3747 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...]
/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/msm8960/libcopybit/
H A Dcopybit.h38 * Name of the graphics device to open
171 * Every device data structure must begin with hw_device_t
259 /** convenience API for opening and closing a device */
262 struct copybit_device_t** device) {
264 COPYBIT_HARDWARE_COPYBIT0, (struct hw_device_t**)device);
267 static inline int copybit_close(struct copybit_device_t* device) { argument
268 return device->common.close(&device->common);
261 copybit_open(const struct hw_module_t* module, struct copybit_device_t** device) argument
/hardware/qcom/display/msm8960/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/qcom/display/msm8974/libcopybit/
H A Dcopybit.h38 * Name of the graphics device to open
172 * Every device data structure must begin with hw_device_t
272 /** convenience API for opening and closing a device */
275 struct copybit_device_t** device) {
277 COPYBIT_HARDWARE_COPYBIT0, (struct hw_device_t**)device);
280 static inline int copybit_close(struct copybit_device_t* device) { argument
281 return device->common.close(&device->common);
274 copybit_open(const struct hw_module_t* module, struct copybit_device_t** device) argument
/hardware/qcom/display/msm8974/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
363 hw_device_t** device)
377 dev->device.common.tag = HARDWARE_DEVICE_TAG;
378 dev->device.common.version = 0;
379 dev->device.common.module = const_cast<hw_module_t*>(module);
380 dev->device.common.close = fb_close;
381 dev->device.setSwapInterval = fb_setSwapInterval;
382 dev->device.post = fb_post;
383 dev->device.setUpdateRect = 0;
384 dev->device
362 fb_device_open(hw_module_t const* module, const char* name, hw_device_t** device) argument
[all...]
/hardware/qcom/display/msm8x26/libcopybit/
H A Dcopybit.h38 * Name of the graphics device to open
171 * Every device data structure must begin with hw_device_t
259 /** convenience API for opening and closing a device */
262 struct copybit_device_t** device) {
264 COPYBIT_HARDWARE_COPYBIT0, (struct hw_device_t**)device);
267 static inline int copybit_close(struct copybit_device_t* device) { argument
268 return device->common.close(&device->common);
261 copybit_open(const struct hw_module_t* module, struct copybit_device_t** device) argument
/hardware/qcom/display/msm8x26/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...]

Completed in 785 milliseconds

12345