/hardware/msm7k/libaudio-qdsp5v2/ |
H A D | AudioPolicyManager.cpp | 26 // 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 LOGV("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 D | AudioPolicyManager.cpp | 26 // 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 LOGV("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 D | CameraHal_Module.cpp | 39 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/hwcomposer/ |
H A D | hwcomposer.cpp | 32 hwc_composer_device_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 = 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/libhardware/tests/nusensors/ |
H A D | nusensors.cpp | 63 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/include/hardware/ |
H A D | fb.h | 149 /** convenience API for opening and closing a supported device */ 152 struct framebuffer_device_t** device) { 154 GRALLOC_HARDWARE_FB0, (struct hw_device_t**)device); 157 static inline int framebuffer_close(struct framebuffer_device_t* device) { argument 158 return device->common.close(&device->common); 151 framebuffer_open(const struct hw_module_t* module, struct framebuffer_device_t** device) argument
|
H A D | gralloc.h | 43 * Name of the graphics device to open 75 /* buffer will be used with the framebuffer device */ 203 * Every device data structure must begin with hw_device_t 247 /** convenience API for opening and closing a supported device */ 250 struct alloc_device_t** device) { 252 GRALLOC_HARDWARE_GPU0, (struct hw_device_t**)device); 255 static inline int gralloc_close(struct alloc_device_t* device) { argument 256 return device->common.close(&device->common); 249 gralloc_open(const struct hw_module_t* module, struct alloc_device_t** device) argument
|
H A D | hwcomposer.h | 39 * Name of the sensors device to open 337 /** convenience API for opening and closing a device */ 340 hwc_composer_device_t** device) { 342 HWC_HARDWARE_COMPOSER, (struct hw_device_t**)device); 345 static inline int hwc_close(hwc_composer_device_t* device) { argument 346 return device->common.close(&device->common); 339 hwc_open(const struct hw_module_t* module, hwc_composer_device_t** device) argument
|
H A D | sensors.h | 35 * Name of the sensors device to open 95 * This API is relative to the screen of the device in its default orientation, 96 * that is, if the device can be used in portrait or landscape, this API 98 * the axis are not swapped when the device's screen orientation changes. 162 * device minus the force of gravity. 172 * When the device lies flat on a table and is pushed on its left side 175 * When the device lies flat on a table, the acceleration value is +9.81, 176 * which correspond to the acceleration of the device (0 m/s^2) minus the 179 * When the device lies flat on a table and is pushed toward the sky, the 181 * acceleration of the device ( 473 sensors_open(const struct hw_module_t* module, struct sensors_poll_device_t** device) argument 479 sensors_close(struct sensors_poll_device_t* device) argument [all...] |
H A D | hardware.h | 77 /** Open a specific device */ 79 struct hw_device_t** device); 84 * Every device data structure must begin with hw_device_t 94 /** reference to the module this device belongs to */ 100 /** Close this device */ 101 int (*close)(struct hw_device_t* device);
|
H A D | audio.h | 51 * audio device parameters 118 /** dump the state of the audio input/output device */ 122 int (*set_device)(struct audio_stream *stream, audio_devices_t device); 326 /** convenience API for opening and closing a supported device */ 329 struct audio_hw_device** device) 332 (struct hw_device_t**)device); 335 static inline int audio_hw_device_close(struct audio_hw_device* device) argument 337 return device->common.close(&device->common); 328 audio_hw_device_open(const struct hw_module_t* module, struct audio_hw_device** device) argument
|
H A D | audio_policy.h | 56 * - keep track of current system state (removable device connections, phone 76 * route (destination device). It also make sure that streams are not 88 /* indicate a change in device connection status */ 90 audio_devices_t device, 94 /* retreive a device connection status */ 97 audio_devices_t device, 108 /* force using a specific device category for the specified usage */ 113 /* retreive current device category forced for a given usage */ 155 /* request an input appriate for record from the supplied device with 294 * volumes for each output (destination device) i 371 audio_policy_dev_open(const hw_module_t* module, struct audio_policy_device** device) argument 378 audio_policy_dev_close(struct audio_policy_device* device) argument [all...] |
/hardware/libhardware/modules/audio/ |
H A D | audio_hw.c | 32 struct audio_hw_device device; member in struct:stub_audio_device 348 static int adev_dump(const audio_hw_device_t *device, int fd) argument 353 static int adev_close(hw_device_t *device) argument 355 free(device); 383 hw_device_t** device) 395 adev->device.common.tag = HARDWARE_DEVICE_TAG; 396 adev->device.common.version = 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 D | audio_policy.c | 35 struct audio_policy_device device; member in struct:default_ap_device 46 audio_devices_t device, 55 audio_devices_t device, 76 /* retreive current device category forced for a given usage */ 215 static int create_default_ap(const struct audio_policy_device *device, argument 276 static int default_ap_dev_close(hw_device_t* device) argument 278 free(device); 283 hw_device_t** device) 287 *device = NULL; 296 dev->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 282 default_ap_dev_open(const hw_module_t* module, const char* name, hw_device_t** device) argument [all...] |
/hardware/libhardware_legacy/audio/ |
H A D | AudioPolicyManagerBase.cpp | 31 status_t AudioPolicyManagerBase::setDeviceConnectionState(AudioSystem::audio_devices device, argument 36 LOGV("setDeviceConnectionState() device: %x, state %d, address %s", device, state, device_address); 38 // connect/disconnect only 1 device at a time 39 if (AudioSystem::popCount(device) != 1) return BAD_VALUE; 47 if (AudioSystem::isOutputDevice(device)) { 50 if (AudioSystem::isA2dpDevice(device)) { 51 LOGE("setDeviceConnectionState() invalid device: %x", device); 58 // handle output device connectio 194 getDeviceConnectionState(AudioSystem::audio_devices device, const char *device_address) argument 434 uint32_t device = getDeviceForStrategy(strategy); local 680 uint32_t device = getDeviceForInputSource(inputSource); local 1311 handleA2dpConnection(AudioSystem::audio_devices device, const char *device_address) argument 1386 handleA2dpDisconnection(AudioSystem::audio_devices device, const char *device_address) argument 1559 uint32_t device = 0; local 1636 uint32_t device = 0; local 1795 setOutputDevice(audio_io_handle_t output, uint32_t device, bool force, int delayMs) argument 1850 uint32_t device; local 1898 getDeviceCategory(uint32_t device) argument 1920 device); local 1940 volIndexToAmpl(uint32_t device, const StreamDescriptor& streamDesc, int indexInUi) argument 2048 computeVolume(int stream, int index, audio_io_handle_t output, uint32_t device) argument 2098 checkAndSetVolume(int stream, int index, audio_io_handle_t output, uint32_t device, int delayMs, bool force) argument 2158 applyStreamVolumes(audio_io_handle_t output, uint32_t device, int delayMs, bool force) argument 2254 needsDirectOuput(AudioSystem::stream_type stream, uint32_t samplingRate, uint32_t format, uint32_t channels, AudioSystem::output_flags flags, uint32_t device) argument 2290 uint32_t AudioPolicyManagerBase::AudioOutputDescriptor::device() function in class:android_audio_legacy::AudioPolicyManagerBase::AudioOutputDescriptor 2292 uint32_t device = 0; local [all...] |
H A D | audio_policy_hal.cpp | 41 struct audio_policy_device device; member in struct:android_audio_legacy::legacy_ap_device 65 audio_devices_t device, 71 (AudioSystem::audio_devices)device, 78 audio_devices_t device, 83 (AudioSystem::audio_devices)device, 101 /* force using a specific device category for the specified usage */ 111 /* retreive current device category forced for a given usage */ 287 static int create_legacy_ap(const struct audio_policy_device *device, argument 373 static int legacy_ap_dev_close(hw_device_t* device) argument 375 if (device) 64 ap_set_device_connection_state(struct audio_policy *pol, audio_devices_t device, audio_policy_dev_state_t state, const char *device_address) argument 76 ap_get_device_connection_state( const struct audio_policy *pol, audio_devices_t device, const char *device_address) argument 380 legacy_ap_dev_open(const hw_module_t* module, const char* name, hw_device_t** device) argument [all...] |
H A D | audio_hw_hal.cpp | 38 struct audio_hw_device device; member in struct:android_audio_legacy::legacy_audio_device 518 static int legacy_adev_close(hw_device_t* device) argument 521 reinterpret_cast<struct audio_hw_device *>(device); 535 hw_device_t** device) 547 ladev->device.common.tag = HARDWARE_DEVICE_TAG; 548 ladev->device.common.version = 0; 549 ladev->device.common.module = const_cast<hw_module_t*>(module); 550 ladev->device.common.close = legacy_adev_close; 552 ladev->device.get_supported_devices = adev_get_supported_devices; 553 ladev->device 534 legacy_adev_open(const hw_module_t* module, const char* name, hw_device_t** device) argument [all...] |
/hardware/libhardware/modules/gralloc/ |
H A D | framebuffer.cpp | 55 framebuffer_device_t device; member in struct:fb_context_t 311 hw_device_t** device) 325 dev->device.common.tag = HARDWARE_DEVICE_TAG; 326 dev->device.common.version = 0; 327 dev->device.common.module = const_cast<hw_module_t*>(module); 328 dev->device.common.close = fb_close; 329 dev->device.setSwapInterval = fb_setSwapInterval; 330 dev->device.post = fb_post; 331 dev->device.setUpdateRect = 0; 340 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 D | gralloc.cpp | 43 alloc_device_t device; member in struct:gralloc_context_t 53 hw_device_t** device); 56 hw_device_t** device); 286 hw_device_t** device) 297 dev->device.common.tag = HARDWARE_DEVICE_TAG; 298 dev->device.common.version = 0; 299 dev->device.common.module = const_cast<hw_module_t*>(module); 300 dev->device.common.close = gralloc_close; 302 dev->device.alloc = gralloc_alloc; 303 dev->device 285 gralloc_device_open(const hw_module_t* module, const char* name, hw_device_t** device) argument [all...] |
/hardware/msm7k/libgralloc-qsd8k/ |
H A D | framebuffer.cpp | 57 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...] |
/hardware/libhardware/modules/nfc/ |
H A D | nfc_hw_example.c | 22 /* Close an opened pn544 device instance */ 29 * Generic device handling 32 hw_device_t** device) { 48 *device = (hw_device_t*) dev; 31 nfc_open(const hw_module_t* module, const char* name, hw_device_t** device) argument
|
/hardware/qcom/gps/loc_api/libloc_api/ |
H A D | gps.c | 40 struct hw_device_t** device) 50 *device = (struct hw_device_t*)dev; 39 open_gps(const struct hw_module_t* module, char const* name, struct hw_device_t** device) argument
|
/hardware/msm7k/libgralloc/ |
H A D | framebuffer.cpp | 54 framebuffer_device_t device; member in struct:fb_context_t 330 hw_device_t** device) 344 dev->device.common.tag = HARDWARE_DEVICE_TAG; 345 dev->device.common.version = 0; 346 dev->device.common.module = const_cast<hw_module_t*>(module); 347 dev->device.common.close = fb_close; 348 dev->device.setSwapInterval = fb_setSwapInterval; 349 dev->device.post = fb_post; 350 dev->device.setUpdateRect = 0; 356 const_cast<uint32_t&>(dev->device 329 fb_device_open(hw_module_t const* module, const char* name, hw_device_t** device) argument [all...] |
/hardware/libhardware_legacy/qemu/ |
H A D | qemu.c | 136 snprintf(channel->device, sizeof channel->device, 139 fd = socket_local_client( channel->device, 144 channel->device, strerror(errno)); 168 D("no kernel-provided %s device name", name); 172 ret = snprintf(channel->device, sizeof channel->device, 174 if (ret >= (int)sizeof channel->device) { 175 D("%s device name too long: '%s'", name, prop); 179 channel->is_tty = !memcmp("/dev/tty", channel->device, [all...] |
/hardware/libhardware_legacy/include/hardware_legacy/ |
H A D | AudioPolicyManagerBase.h | 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 connecte [all...] |