/hardware/msm7k/libaudio-qsd8k/ |
D | AudioPolicyManager.cpp | 54 uint32_t device = 0; in getDeviceForStrategy() local 57 device = mDeviceForStrategy[strategy]; in getDeviceForStrategy() 58 ALOGV("getDeviceForStrategy() from cache strategy %d, device %x", strategy, device); in getDeviceForStrategy() 59 return device; in getDeviceForStrategy() 66 device = getDeviceForStrategy(STRATEGY_MEDIA, false); in getDeviceForStrategy() 78 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_BLUETOOTH_SCO_CARKIT; in getDeviceForStrategy() 79 if (device) break; in getDeviceForStrategy() 82 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_BLUETOOTH_SCO_HEADSET; in getDeviceForStrategy() 83 if (device) break; in getDeviceForStrategy() 84 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_BLUETOOTH_SCO; in getDeviceForStrategy() [all …]
|
D | AudioHardware.cpp | 645 static status_t do_route_audio_dev_ctrl(uint32_t device, bool inCall, uint32_t rx_acdb_id, uint32_t… in do_route_audio_dev_ctrl() argument 651 if (device == SND_DEVICE_CURRENT) in do_route_audio_dev_ctrl() 656 if (device == SND_DEVICE_HANDSET) { in do_route_audio_dev_ctrl() 660 } else if ((device == SND_DEVICE_BT) || (device == SND_DEVICE_BT_EC_OFF)) { in do_route_audio_dev_ctrl() 664 } else if (device == SND_DEVICE_SPEAKER || in do_route_audio_dev_ctrl() 665 device == SND_DEVICE_SPEAKER_BACK_MIC) { in do_route_audio_dev_ctrl() 669 } else if (device == SND_DEVICE_HEADSET) { in do_route_audio_dev_ctrl() 673 } else if (device == SND_DEVICE_HEADSET_AND_SPEAKER) { in do_route_audio_dev_ctrl() 677 } else if (device == SND_DEVICE_HEADSET_AND_SPEAKER_BACK_MIC) { in do_route_audio_dev_ctrl() 681 } else if (device == SND_DEVICE_NO_MIC_HEADSET) { in do_route_audio_dev_ctrl() [all …]
|
/hardware/msm7k/libaudio-qdsp5v2/ |
D | AudioPolicyManager.cpp | 54 uint32_t device = 0; in getDeviceForStrategy() local 57 device = mDeviceForStrategy[strategy]; in getDeviceForStrategy() 58 ALOGV("getDeviceForStrategy() from cache strategy %d, device %x", strategy, device); in getDeviceForStrategy() 59 return device; in getDeviceForStrategy() 66 device = getDeviceForStrategy(STRATEGY_MEDIA, false); in getDeviceForStrategy() 78 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_BLUETOOTH_SCO_CARKIT; in getDeviceForStrategy() 79 if (device) break; in getDeviceForStrategy() 82 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_BLUETOOTH_SCO_HEADSET; in getDeviceForStrategy() 83 if (device) break; in getDeviceForStrategy() 84 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_BLUETOOTH_SCO; in getDeviceForStrategy() [all …]
|
/hardware/ti/omap4xxx/camera/ |
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, in camera_set_preview_window() argument 83 if(!device) in camera_set_preview_window() 86 ti_dev = (ti_camera_device_t*) device; in camera_set_preview_window() 93 void camera_set_callbacks(struct camera_device * device, in camera_set_callbacks() argument 104 if(!device) in camera_set_callbacks() 107 ti_dev = (ti_camera_device_t*) device; in camera_set_callbacks() 112 void camera_enable_msg_type(struct camera_device * device, int32_t msg_type) in camera_enable_msg_type() argument 118 if(!device) in camera_enable_msg_type() [all …]
|
/hardware/libhardware/modules/local_time/ |
D | local_time_hw.c | 31 struct local_time_hw_device device; member 60 static int ltdev_close(hw_device_t *device) in ltdev_close() argument 62 free(device); in ltdev_close() 67 hw_device_t** device) in ltdev_open() argument 80 ltdev->device.common.tag = HARDWARE_DEVICE_TAG; in ltdev_open() 81 ltdev->device.common.version = 0; in ltdev_open() 82 ltdev->device.common.module = (struct hw_module_t *) module; in ltdev_open() 83 ltdev->device.common.close = ltdev_close; in ltdev_open() 85 ltdev->device.get_local_time = ltdev_get_local_time; in ltdev_open() 86 ltdev->device.get_local_freq = ltdev_get_local_freq; in ltdev_open() [all …]
|
/hardware/libhardware_legacy/audio/ |
D | AudioPolicyManagerBase.cpp | 41 status_t AudioPolicyManagerBase::setDeviceConnectionState(AudioSystem::audio_devices device, in setDeviceConnectionState() argument 47 …ALOGV("setDeviceConnectionState() device: %x, state %d, address %s", device, state, device_address… in setDeviceConnectionState() 50 if (AudioSystem::popCount(device) != 1) return BAD_VALUE; in setDeviceConnectionState() 58 if (AudioSystem::isOutputDevice(device)) { in setDeviceConnectionState() 60 if (!mHasA2dp && AudioSystem::isA2dpDevice(device)) { in setDeviceConnectionState() 61 ALOGE("setDeviceConnectionState() invalid device: %x", device); in setDeviceConnectionState() 64 if (!mHasUsb && audio_is_usb_device((audio_devices_t)device)) { in setDeviceConnectionState() 65 ALOGE("setDeviceConnectionState() invalid device: %x", device); in setDeviceConnectionState() 73 if (mAvailableOutputDevices & device) { in setDeviceConnectionState() 74 ALOGW("setDeviceConnectionState() device already connected: %x", device); in setDeviceConnectionState() [all …]
|
D | audio_policy_hal.cpp | 41 struct audio_policy_device device; member 65 audio_devices_t device, in ap_set_device_connection_state() argument 71 (AudioSystem::audio_devices)device, in ap_set_device_connection_state() 78 audio_devices_t device, in ap_get_device_connection_state() argument 83 (AudioSystem::audio_devices)device, in ap_get_device_connection_state() 235 audio_devices_t device) in ap_set_stream_volume_index_for_device() argument 240 device); in ap_set_stream_volume_index_for_device() 246 audio_devices_t device) in ap_get_stream_volume_index_for_device() argument 251 device); in ap_get_stream_volume_index_for_device() 311 static int create_legacy_ap(const struct audio_policy_device *device, in create_legacy_ap() argument [all …]
|
D | audio_hw_hal.cpp | 38 struct audio_hw_device device; member 537 static int legacy_adev_close(hw_device_t* device) in legacy_adev_close() argument 540 reinterpret_cast<struct audio_hw_device *>(device); in legacy_adev_close() 554 hw_device_t** device) in legacy_adev_open() argument 566 ladev->device.common.tag = HARDWARE_DEVICE_TAG; in legacy_adev_open() 567 ladev->device.common.version = AUDIO_DEVICE_API_VERSION_1_0; in legacy_adev_open() 568 ladev->device.common.module = const_cast<hw_module_t*>(module); in legacy_adev_open() 569 ladev->device.common.close = legacy_adev_close; in legacy_adev_open() 571 ladev->device.get_supported_devices = adev_get_supported_devices; in legacy_adev_open() 572 ladev->device.init_check = adev_init_check; in legacy_adev_open() [all …]
|
/hardware/libhardware/modules/audio/ |
D | audio_hw.c | 32 struct audio_hw_device device; member 362 static int adev_dump(const audio_hw_device_t *device, int fd) in adev_dump() argument 367 static int adev_close(hw_device_t *device) in adev_close() argument 369 free(device); in adev_close() 397 hw_device_t** device) in adev_open() argument 409 adev->device.common.tag = HARDWARE_DEVICE_TAG; in adev_open() 410 adev->device.common.version = AUDIO_DEVICE_API_VERSION_1_0; in adev_open() 411 adev->device.common.module = (struct hw_module_t *) module; in adev_open() 412 adev->device.common.close = adev_close; in adev_open() 414 adev->device.get_supported_devices = adev_get_supported_devices; in adev_open() [all …]
|
D | audio_policy.c | 35 struct audio_policy_device device; member 46 audio_devices_t device, in ap_set_device_connection_state() argument 55 audio_devices_t device, in ap_get_device_connection_state() argument 170 audio_devices_t device) in ap_set_stream_volume_index_for_device() argument 178 audio_devices_t device) in ap_get_stream_volume_index_for_device() argument 232 static int create_default_ap(const struct audio_policy_device *device, in create_default_ap() argument 295 static int default_ap_dev_close(hw_device_t* device) in default_ap_dev_close() argument 297 free(device); in default_ap_dev_close() 302 hw_device_t** device) in default_ap_dev_open() argument 306 *device = NULL; in default_ap_dev_open() [all …]
|
/hardware/libhardware/modules/hwcomposer/ |
D | hwcomposer.cpp | 32 hwc_composer_device_t device; member 37 struct hw_device_t** device); 108 struct hw_device_t** device) in hwc_device_open() argument 119 dev->device.common.tag = HARDWARE_DEVICE_TAG; in hwc_device_open() 120 dev->device.common.version = 0; in hwc_device_open() 121 dev->device.common.module = const_cast<hw_module_t*>(module); in hwc_device_open() 122 dev->device.common.close = hwc_device_close; in hwc_device_open() 124 dev->device.prepare = hwc_prepare; in hwc_device_open() 125 dev->device.set = hwc_set; in hwc_device_open() 127 *device = &dev->device.common; in hwc_device_open()
|
/hardware/ti/wpan/ |
D | ti-wpan-products.mk | 17 …device/ti/proprietary-open/wl12xx/wpan/bluetooth/TIInit_10.6.15.bts:system/etc/firmware/TIInit_10.… 18 …device/ti/proprietary-open/wl12xx/wpan/bluetooth/TIInit_7.2.31.bts:system/etc/firmware/TIInit_7.2.… 19 …device/ti/proprietary-open/wl12xx/wpan/bluetooth/TIInit_7.6.15.bts:system/etc/firmware/TIInit_7.6.… 20 …device/ti/proprietary-open/wl12xx/wpan/bluetooth/TIInit_12.7.27.bts:system/etc/firmware/TIInit_12.… 21 …device/ti/proprietary-open/wl12xx/wpan/fmradio/fmc_ch8_1283.2.bts:system/etc/firmware/fmc_ch8_1283… 22 …device/ti/proprietary-open/wl12xx/wpan/fmradio/fm_rx_ch8_1283.2.bts:system/etc/firmware/fm_rx_ch8_… 23 …device/ti/proprietary-open/wl12xx/wpan/fmradio/fm_tx_ch8_1283.2.bts:system/etc/firmware/fm_tx_ch8_… 24 …device/ti/proprietary-open/wl12xx/wpan/fmradio/fmc_init_1273.2.bts:system/etc/firmware/fmc_init_12… 25 …device/ti/proprietary-open/wl12xx/wpan/fmradio/fm_rx_init_1273.2.bts:system/etc/firmware/fm_rx_ini… 26 …device/ti/proprietary-open/wl12xx/wpan/fmradio/fm_tx_init_1273.2.bts:system/etc/firmware/fm_tx_ini… [all …]
|
/hardware/libhardware/tests/nusensors/ |
D | nusensors.cpp | 63 struct sensors_poll_device_t* device; in main() local 72 err = sensors_open(&module->common, &device); in main() 104 err = device->activate(device, list[i].handle, 0); in main() 113 err = device->activate(device, list[i].handle, 1); in main() 119 device->setDelay(device, list[i].handle, ms2ns(10)); in main() 123 int n = device->poll(device, buffer, numEvents); in main() 181 err = device->activate(device, list[i].handle, 0); in main() 189 err = sensors_close(device); in main()
|
/hardware/libhardware/modules/gralloc/ |
D | framebuffer.cpp | 55 framebuffer_device_t device; member 311 hw_device_t** device) in fb_device_open() argument 325 dev->device.common.tag = HARDWARE_DEVICE_TAG; in fb_device_open() 326 dev->device.common.version = 0; in fb_device_open() 327 dev->device.common.module = const_cast<hw_module_t*>(module); in fb_device_open() 328 dev->device.common.close = fb_close; in fb_device_open() 329 dev->device.setSwapInterval = fb_setSwapInterval; in fb_device_open() 330 dev->device.post = fb_post; in fb_device_open() 331 dev->device.setUpdateRect = 0; in fb_device_open() 340 const_cast<uint32_t&>(dev->device.flags) = 0; in fb_device_open() [all …]
|
D | gralloc.cpp | 43 alloc_device_t device; member 53 hw_device_t** device); 56 hw_device_t** device); 286 hw_device_t** device) in gralloc_device_open() argument 297 dev->device.common.tag = HARDWARE_DEVICE_TAG; in gralloc_device_open() 298 dev->device.common.version = 0; in gralloc_device_open() 299 dev->device.common.module = const_cast<hw_module_t*>(module); in gralloc_device_open() 300 dev->device.common.close = gralloc_close; in gralloc_device_open() 302 dev->device.alloc = gralloc_alloc; in gralloc_device_open() 303 dev->device.free = gralloc_free; in gralloc_device_open() [all …]
|
/hardware/msm7k/libgralloc/ |
D | framebuffer.cpp | 54 framebuffer_device_t device; member 330 hw_device_t** device) in fb_device_open() argument 344 dev->device.common.tag = HARDWARE_DEVICE_TAG; in fb_device_open() 345 dev->device.common.version = 0; in fb_device_open() 346 dev->device.common.module = const_cast<hw_module_t*>(module); in fb_device_open() 347 dev->device.common.close = fb_close; in fb_device_open() 348 dev->device.setSwapInterval = fb_setSwapInterval; in fb_device_open() 349 dev->device.post = fb_post; in fb_device_open() 350 dev->device.setUpdateRect = 0; in fb_device_open() 356 const_cast<uint32_t&>(dev->device.flags) = 0; in fb_device_open() [all …]
|
/hardware/msm7k/libgralloc-qsd8k/ |
D | framebuffer.cpp | 57 framebuffer_device_t device; member 365 hw_device_t** device) in fb_device_open() argument 379 dev->device.common.tag = HARDWARE_DEVICE_TAG; in fb_device_open() 380 dev->device.common.version = 0; in fb_device_open() 381 dev->device.common.module = const_cast<hw_module_t*>(module); in fb_device_open() 382 dev->device.common.close = fb_close; in fb_device_open() 383 dev->device.setSwapInterval = fb_setSwapInterval; in fb_device_open() 384 dev->device.post = fb_post; in fb_device_open() 385 dev->device.setUpdateRect = 0; in fb_device_open() 386 dev->device.compositionComplete = fb_compositionComplete; in fb_device_open() [all …]
|
/hardware/libhardware_legacy/include/hardware_legacy/ |
D | AudioPolicyManagerBase.h | 75 virtual status_t setDeviceConnectionState(AudioSystem::audio_devices device, 78 …al AudioSystem::device_connection_state getDeviceConnectionState(AudioSystem::audio_devices device, 115 audio_devices_t device); 118 audio_devices_t device); 198 bool isCompatibleProfile(audio_devices_t device, 241 audio_devices_t device(); 293 int getVolumeIndex(audio_devices_t device); 340 audio_devices_t device, 355 …rtual float computeVolume(int stream, int index, audio_io_handle_t output, audio_devices_t device); 358 …tVolume(int stream, int index, audio_io_handle_t output, audio_devices_t device, int delayMs = 0, … [all …]
|
/hardware/libhardware/include/hardware/ |
D | audio_policy.h | 90 audio_devices_t device, 97 audio_devices_t device, 200 audio_devices_t device); 206 audio_devices_t device); 413 int (*create_audio_policy)(const struct audio_policy_device *device, 418 int (*destroy_audio_policy)(const struct audio_policy_device *device, 425 struct audio_policy_device** device) in audio_policy_dev_open() argument 428 (hw_device_t**)device); in audio_policy_dev_open() 431 static inline int audio_policy_dev_close(struct audio_policy_device* device) in audio_policy_dev_close() argument 433 return device->common.close(&device->common); in audio_policy_dev_close()
|
D | local_time_hal.h | 103 struct local_time_hw_device** device) in local_time_hw_device_open() argument 106 (struct hw_device_t**)device); in local_time_hw_device_open() 109 static inline int local_time_hw_device_close(struct local_time_hw_device* device) in local_time_hw_device_close() argument 111 return device->common.close(&device->common); in local_time_hw_device_close()
|
D | fb.h | 152 struct framebuffer_device_t** device) { in framebuffer_open() argument 154 GRALLOC_HARDWARE_FB0, (struct hw_device_t**)device); in framebuffer_open() 157 static inline int framebuffer_close(struct framebuffer_device_t* device) { in framebuffer_close() argument 158 return device->common.close(&device->common); in framebuffer_close()
|
D | keymaster.h | 194 keymaster_device_t** device) in keymaster_open() argument 197 (struct hw_device_t**) device); in keymaster_open() 200 (*device)->client_version = KEYMASTER_API_VERSION; in keymaster_open() 206 static inline int keymaster_close(keymaster_device_t* device) in keymaster_close() argument 208 return device->common.close(&device->common); in keymaster_close()
|
D | gralloc.h | 250 struct alloc_device_t** device) { in gralloc_open() argument 252 GRALLOC_HARDWARE_GPU0, (struct hw_device_t**)device); in gralloc_open() 255 static inline int gralloc_close(struct alloc_device_t* device) { in gralloc_close() argument 256 return device->common.close(&device->common); in gralloc_close()
|
D | sensors.h | 474 struct sensors_poll_device_t** device) { in sensors_open() argument 476 SENSORS_HARDWARE_POLL, (struct hw_device_t**)device); in sensors_open() 479 static inline int sensors_close(struct sensors_poll_device_t* device) { in sensors_close() argument 480 return device->common.close(&device->common); in sensors_close()
|
/hardware/libhardware_legacy/qemu/ |
D | qemu.c | 136 snprintf(channel->device, sizeof channel->device, in qemu_channel_open_qemud_old() 139 fd = socket_local_client( channel->device, in qemu_channel_open_qemud_old() 144 channel->device, strerror(errno)); in qemu_channel_open_qemud_old() 172 ret = snprintf(channel->device, sizeof channel->device, in qemu_channel_open_tty() 174 if (ret >= (int)sizeof channel->device) { in qemu_channel_open_tty() 179 channel->is_tty = !memcmp("/dev/tty", channel->device, 8); in qemu_channel_open_tty() 227 fd = socket_local_client( channel->device, in qemu_channel_open() 235 fd = open(channel->device, mode); in qemu_channel_open()
|