/hardware/interfaces/memtrack/1.0/default/ |
D | Memtrack.cpp | 75 const hw_module_t* hw_module = nullptr; in HIDL_FETCH_IMemtrack() local 77 int err = hw_get_module(MEMTRACK_HARDWARE_MODULE_ID, &hw_module); in HIDL_FETCH_IMemtrack() 83 if (!hw_module->methods || !hw_module->methods->open) { in HIDL_FETCH_IMemtrack() 84 memtrack_module = reinterpret_cast<const memtrack_module_t*>(hw_module); in HIDL_FETCH_IMemtrack() 86 err = hw_module->methods->open(hw_module, MEMTRACK_HARDWARE_MODULE_ID, in HIDL_FETCH_IMemtrack()
|
/hardware/libhardware/tests/fingerprint/ |
D | fingerprint_test_fixtures.h | 35 const hw_module_t *hw_module = NULL; in SetUp() local 36 ASSERT_EQ(0, hw_get_module(FINGERPRINT_HARDWARE_MODULE_ID, &hw_module)) in SetUp() 38 ASSERT_TRUE(NULL != hw_module) in SetUp() 41 fp_module_ = reinterpret_cast<const fingerprint_module_t*>(hw_module); in SetUp()
|
/hardware/libhardware/tests/camera3/ |
D | camera3test_fixtures.h | 37 const hw_module_t *hw_module = NULL; in SetUp() local 38 ASSERT_EQ(0, hw_get_module(CAMERA_HARDWARE_MODULE_ID, &hw_module)) in SetUp() 40 ASSERT_TRUE(NULL != hw_module) in SetUp() 43 cam_module_ = reinterpret_cast<const camera_module_t*>(hw_module); in SetUp()
|
/hardware/interfaces/power/1.0/default/ |
D | Power.cpp | 148 const hw_module_t* hw_module = nullptr; in HIDL_FETCH_IPower() local 150 int err = hw_get_module(POWER_HARDWARE_MODULE_ID, &hw_module); in HIDL_FETCH_IPower() 156 if (!hw_module->methods || !hw_module->methods->open) { in HIDL_FETCH_IPower() 158 const_cast<hw_module_t*>(hw_module)); in HIDL_FETCH_IPower() 160 err = hw_module->methods->open( in HIDL_FETCH_IPower() 161 hw_module, POWER_HARDWARE_MODULE_ID, in HIDL_FETCH_IPower()
|
/hardware/interfaces/vr/1.0/default/ |
D | Vr.cpp | 46 const hw_module_t *hw_module = NULL; in HIDL_FETCH_IVr() local 48 int ret = hw_get_module(VR_HARDWARE_MODULE_ID, &hw_module); in HIDL_FETCH_IVr() 51 const_cast<hw_module_t*>(hw_module))); in HIDL_FETCH_IVr()
|
/hardware/interfaces/ir/1.0/default/ |
D | ConsumerIr.cpp | 68 const hw_module_t *hw_module = NULL; in HIDL_FETCH_IConsumerIr() local 70 int ret = hw_get_module(CONSUMERIR_HARDWARE_MODULE_ID, &hw_module); in HIDL_FETCH_IConsumerIr() 75 ret = hw_module->methods->open(hw_module, CONSUMERIR_TRANSMITTER, (hw_device_t **) &dev); in HIDL_FETCH_IConsumerIr()
|
/hardware/interfaces/vibrator/1.0/default/ |
D | Vibrator.cpp | 70 const hw_module_t *hw_module = nullptr; in HIDL_FETCH_IVibrator() local 72 int ret = hw_get_module(VIBRATOR_HARDWARE_MODULE_ID, &hw_module); in HIDL_FETCH_IVibrator() 74 ret = vibrator_open(hw_module, &vib_device); in HIDL_FETCH_IVibrator()
|
/hardware/interfaces/boot/1.0/default/ |
D | BootControl.cpp | 105 const hw_module_t* hw_module = &HAL_MODULE_INFO_SYM; in HIDL_FETCH_IBootControl() local 106 if (!hw_module || in HIDL_FETCH_IBootControl() 107 strcmp(BOOT_CONTROL_HARDWARE_MODULE_ID, hw_module->id) != 0) { in HIDL_FETCH_IBootControl() 111 module = reinterpret_cast<boot_control_module_t*>(const_cast<hw_module_t*>(hw_module)); in HIDL_FETCH_IBootControl()
|
/hardware/interfaces/nfc/1.0/default/ |
D | Nfc.cpp | 81 const hw_module_t* hw_module = nullptr; in HIDL_FETCH_INfc() local 83 ret = hw_get_module (NFC_NCI_HARDWARE_MODULE_ID, &hw_module); in HIDL_FETCH_INfc() 85 ret = nfc_nci_open (hw_module, &nfc_device); in HIDL_FETCH_INfc()
|
/hardware/interfaces/tv/input/1.0/default/ |
D | TvInput.cpp | 200 const hw_module_t* hw_module = nullptr; in HIDL_FETCH_ITvInput() local 202 ret = hw_get_module(TV_INPUT_HARDWARE_MODULE_ID, &hw_module); in HIDL_FETCH_ITvInput() 203 if (ret == 0 && hw_module->methods->open != nullptr) { in HIDL_FETCH_ITvInput() 204 ret = hw_module->methods->open(hw_module, TV_INPUT_DEFAULT_DEVICE, in HIDL_FETCH_ITvInput()
|
/hardware/libhardware/modules/radio/ |
D | radio_hal_tool.c | 170 const hw_module_t *hw_module = NULL; in main() local 172 rc = hw_get_module_by_class(RADIO_HARDWARE_MODULE_ID, RADIO_HARDWARE_MODULE_ID_FM, &hw_module); in main() 179 rc = radio_hw_device_open(hw_module, &dev); in main()
|
/hardware/interfaces/audio/common/all-versions/default/ |
D | HidlUtils.cpp | 154 config->ext.device.hwModule = halConfig.ext.device.hw_module; in audioPortConfigFromHal() 161 config->ext.mix.hwModule = halConfig.ext.mix.hw_module; in audioPortConfigFromHal() 192 halConfig->ext.device.hw_module = config.ext.device.hwModule; in audioPortConfigToHal() 199 halConfig->ext.mix.hw_module = config.ext.mix.hwModule; in audioPortConfigToHal() 262 port->ext.device.hwModule = halPort.ext.device.hw_module; in audioPortFromHal() 269 port->ext.mix.hwModule = halPort.ext.mix.hw_module; in audioPortFromHal() 312 halPort->ext.device.hw_module = port.ext.device.hwModule; in audioPortToHal() 319 halPort->ext.mix.hw_module = port.ext.mix.hwModule; in audioPortToHal()
|
/hardware/interfaces/tv/cec/2.0/default/ |
D | HdmiCec.cpp | 396 const hw_module_t* hw_module = nullptr; in HIDL_FETCH_IHdmiCec() local 398 ret = hw_get_module(HDMI_CEC_HARDWARE_MODULE_ID, &hw_module); in HIDL_FETCH_IHdmiCec() 400 ret = hdmi_cec_open(hw_module, &hdmi_cec_device); in HIDL_FETCH_IHdmiCec()
|
/hardware/interfaces/tv/cec/1.0/default/ |
D | HdmiCec.cpp | 397 const hw_module_t* hw_module = nullptr; in HIDL_FETCH_IHdmiCec() local 399 ret = hw_get_module (HDMI_CEC_HARDWARE_MODULE_ID, &hw_module); in HIDL_FETCH_IHdmiCec() 401 ret = hdmi_cec_open (hw_module, &hdmi_cec_device); in HIDL_FETCH_IHdmiCec()
|
/hardware/libhardware/modules/sensors/ |
D | multihal.cpp | 712 hw_module_t *hw_module = *it; in lazy_init_sensors_list() local 715 struct sensors_module_t *module = (struct sensors_module_t*) hw_module; in lazy_init_sensors_list() 787 static int open_sensors(const struct hw_module_t* hw_module, const char* name, in open_sensors() argument 798 dev->proxy_device.common.module = const_cast<hw_module_t*>(hw_module); in open_sensors()
|