/hardware/msm7k/libaudio-qsd8k/ |
D | AudioPolicyManager.cpp | 54 uint32_t device = 0; in getDeviceForStrategy() local 57 device = mDeviceForStrategy[strategy]; in getDeviceForStrategy() 58 LOGV("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 LOGV("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_legacy/audio/ |
D | AudioPolicyManagerBase.cpp | 31 status_t AudioPolicyManagerBase::setDeviceConnectionState(AudioSystem::audio_devices device, in setDeviceConnectionState() argument 36 …LOGV("setDeviceConnectionState() device: %x, state %d, address %s", device, state, device_address); in setDeviceConnectionState() 39 if (AudioSystem::popCount(device) != 1) return BAD_VALUE; in setDeviceConnectionState() 47 if (AudioSystem::isOutputDevice(device)) { in setDeviceConnectionState() 50 if (AudioSystem::isA2dpDevice(device)) { in setDeviceConnectionState() 51 LOGE("setDeviceConnectionState() invalid device: %x", device); in setDeviceConnectionState() 60 if (mAvailableOutputDevices & device) { in setDeviceConnectionState() 61 LOGW("setDeviceConnectionState() device already connected: %x", device); in setDeviceConnectionState() 64 LOGV("setDeviceConnectionState() connecting device %x", device); in setDeviceConnectionState() 67 mAvailableOutputDevices |= device; in setDeviceConnectionState() [all …]
|
D | audio_hw_hal.cpp | 38 struct audio_hw_device device; member 518 static int legacy_adev_close(hw_device_t* device) in legacy_adev_close() argument 521 reinterpret_cast<struct audio_hw_device *>(device); in legacy_adev_close() 535 hw_device_t** device) in legacy_adev_open() argument 547 ladev->device.common.tag = HARDWARE_DEVICE_TAG; in legacy_adev_open() 548 ladev->device.common.version = 0; in legacy_adev_open() 549 ladev->device.common.module = const_cast<hw_module_t*>(module); in legacy_adev_open() 550 ladev->device.common.close = legacy_adev_close; in legacy_adev_open() 552 ladev->device.get_supported_devices = adev_get_supported_devices; in legacy_adev_open() 553 ladev->device.init_check = adev_init_check; in legacy_adev_open() [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() 287 static int create_legacy_ap(const struct audio_policy_device *device, in create_legacy_ap() argument 373 static int legacy_ap_dev_close(hw_device_t* device) in legacy_ap_dev_close() argument 375 if (device) in legacy_ap_dev_close() 376 free(device); in legacy_ap_dev_close() 381 hw_device_t** device) in legacy_ap_dev_open() argument [all …]
|
/hardware/libhardware/modules/audio/ |
D | audio_hw.c | 32 struct audio_hw_device device; member 348 static int adev_dump(const audio_hw_device_t *device, int fd) in adev_dump() argument 353 static int adev_close(hw_device_t *device) in adev_close() argument 355 free(device); in adev_close() 383 hw_device_t** device) in adev_open() argument 395 adev->device.common.tag = HARDWARE_DEVICE_TAG; in adev_open() 396 adev->device.common.version = 0; in adev_open() 397 adev->device.common.module = (struct hw_module_t *) module; in adev_open() 398 adev->device.common.close = adev_close; in adev_open() 400 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 215 static int create_default_ap(const struct audio_policy_device *device, in create_default_ap() argument 276 static int default_ap_dev_close(hw_device_t* device) in default_ap_dev_close() argument 278 free(device); in default_ap_dev_close() 283 hw_device_t** device) in default_ap_dev_open() argument 287 *device = NULL; in default_ap_dev_open() 296 dev->device.common.tag = HARDWARE_DEVICE_TAG; in default_ap_dev_open() 297 dev->device.common.version = 0; 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/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/include/hardware/ |
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 | audio_policy.h | 90 audio_devices_t device, 97 audio_devices_t device, 360 int (*create_audio_policy)(const struct audio_policy_device *device, 365 int (*destroy_audio_policy)(const struct audio_policy_device *device, 372 struct audio_policy_device** device) in audio_policy_dev_open() argument 375 (hw_device_t**)device); in audio_policy_dev_open() 378 static inline int audio_policy_dev_close(struct audio_policy_device* device) in audio_policy_dev_close() argument 380 return device->common.close(&device->common); in audio_policy_dev_close()
|
D | gralloc.h | 248 struct alloc_device_t** device) { in gralloc_open() argument 250 GRALLOC_HARDWARE_GPU0, (struct hw_device_t**)device); in gralloc_open() 253 static inline int gralloc_close(struct alloc_device_t* device) { in gralloc_close() argument 254 return device->common.close(&device->common); in gralloc_close()
|
D | hwcomposer.h | 330 hwc_composer_device_t** device) { in hwc_open() argument 332 HWC_HARDWARE_COMPOSER, (struct hw_device_t**)device); in hwc_open() 335 static inline int hwc_close(hwc_composer_device_t* device) { in hwc_close() argument 336 return device->common.close(&device->common); in hwc_close()
|
D | sensors.h | 478 struct sensors_poll_device_t** device) { in sensors_open() argument 480 SENSORS_HARDWARE_POLL, (struct hw_device_t**)device); in sensors_open() 483 static inline int sensors_close(struct sensors_poll_device_t* device) { in sensors_close() argument 484 return device->common.close(&device->common); in sensors_close()
|
D | audio.h | 122 int (*set_device)(struct audio_stream *stream, audio_devices_t device); 329 struct audio_hw_device** device) in audio_hw_device_open() argument 332 (struct hw_device_t**)device); in audio_hw_device_open() 335 static inline int audio_hw_device_close(struct audio_hw_device* device) in audio_hw_device_close() argument 337 return device->common.close(&device->common); in audio_hw_device_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()
|
/hardware/libhardware_legacy/include/hardware_legacy/ |
D | AudioPolicyManagerBase.h | 67 virtual status_t setDeviceConnectionState(AudioSystem::audio_devices device, 70 …al AudioSystem::device_connection_state getDeviceConnectionState(AudioSystem::audio_devices device, 178 uint32_t device(); 265 …void setOutputDevice(audio_io_handle_t output, uint32_t device, bool force = false, int delayMs = … 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 d… 278 …void applyStreamVolumes(audio_io_handle_t output, uint32_t device, int delayMs = 0, bool force = f… 296 status_t handleA2dpConnection(AudioSystem::audio_devices device, 298 status_t handleA2dpDisconnection(AudioSystem::audio_devices device, 330 uint32_t device); [all …]
|
D | AudioSystemLegacy.h | 319 static bool isOutputDevice(audio_devices device) { in isOutputDevice() argument 320 return audio_is_output_device((audio_devices_t)device); in isOutputDevice() 322 static bool isInputDevice(audio_devices device) { in isInputDevice() argument 323 return audio_is_input_device((audio_devices_t)device); in isInputDevice() 325 static bool isA2dpDevice(audio_devices device) { in isA2dpDevice() argument 326 return audio_is_a2dp_device((audio_devices_t)device); in isA2dpDevice() 328 static bool isBluetoothScoDevice(audio_devices device) { in isBluetoothScoDevice() argument 329 return audio_is_bluetooth_sco_device((audio_devices_t)device); in isBluetoothScoDevice()
|
/hardware/msm7k/libaudio/ |
D | AudioHardware.cpp | 360 static status_t set_volume_rpc(uint32_t device, in set_volume_rpc() argument 366 LOGD("rpc_snd_set_volume(%d, %d, %d)\n", device, method, volume); in set_volume_rpc() 369 if (device == -1UL) return NO_ERROR; in set_volume_rpc() 386 args.device = device; in set_volume_rpc() 435 static status_t do_route_audio_rpc(uint32_t device, in do_route_audio_rpc() argument 438 if (device == -1UL) in do_route_audio_rpc() 443 LOGD("rpc_snd_set_device(%d, %d, %d)\n", device, ear_mute, mic_mute); in do_route_audio_rpc() 462 args.device = device; in do_route_audio_rpc() 477 status_t AudioHardware::doAudioRouteOrMute(uint32_t device) in doAudioRouteOrMute() argument 479 if (device == (uint32_t)SND_DEVICE_BT || device == (uint32_t)SND_DEVICE_CARKIT) { in doAudioRouteOrMute() [all …]
|