Searched refs:hw_module (Results 1 - 13 of 13) sorted by relevance

/hardware/interfaces/vr/1.0/default/
H A DVr.cpp46 const hw_module_t *hw_module = NULL; local
48 int ret = hw_get_module(VR_HARDWARE_MODULE_ID, &hw_module);
51 const_cast<hw_module_t*>(hw_module)));
/hardware/interfaces/memtrack/1.0/default/
H A DMemtrack.cpp77 const hw_module_t* hw_module = nullptr; local
79 int err = hw_get_module(MEMTRACK_HARDWARE_MODULE_ID, &hw_module);
85 if (!hw_module->methods || !hw_module->methods->open) {
86 memtrack_module = reinterpret_cast<const memtrack_module_t*>(hw_module);
88 err = hw_module->methods->open(hw_module, MEMTRACK_HARDWARE_MODULE_ID,
/hardware/interfaces/ir/1.0/default/
H A DConsumerIr.cpp68 const hw_module_t *hw_module = NULL; local
70 int ret = hw_get_module(CONSUMERIR_HARDWARE_MODULE_ID, &hw_module);
75 ret = hw_module->methods->open(hw_module, CONSUMERIR_TRANSMITTER, (hw_device_t **) &dev);
/hardware/libhardware/tests/camera3/
H A Dcamera3test_fixtures.h37 const hw_module_t *hw_module = NULL; local
38 ASSERT_EQ(0, hw_get_module(CAMERA_HARDWARE_MODULE_ID, &hw_module))
40 ASSERT_TRUE(NULL != hw_module)
43 cam_module_ = reinterpret_cast<const camera_module_t*>(hw_module);
/hardware/libhardware/tests/fingerprint/
H A Dfingerprint_test_fixtures.h35 const hw_module_t *hw_module = NULL; local
36 ASSERT_EQ(0, hw_get_module(FINGERPRINT_HARDWARE_MODULE_ID, &hw_module))
38 ASSERT_TRUE(NULL != hw_module)
41 fp_module_ = reinterpret_cast<const fingerprint_module_t*>(hw_module);
/hardware/interfaces/vibrator/1.0/default/
H A DVibrator.cpp70 const hw_module_t *hw_module = nullptr; local
72 int ret = hw_get_module(VIBRATOR_HARDWARE_MODULE_ID, &hw_module);
74 ret = vibrator_open(hw_module, &vib_device);
/hardware/interfaces/power/1.0/default/
H A DPower.cpp148 const hw_module_t* hw_module = nullptr; local
150 int err = hw_get_module(POWER_HARDWARE_MODULE_ID, &hw_module);
156 if (!hw_module->methods || !hw_module->methods->open) {
158 const_cast<hw_module_t*>(hw_module));
160 err = hw_module->methods->open(
161 hw_module, POWER_HARDWARE_MODULE_ID,
/hardware/interfaces/nfc/1.0/default/
H A DNfc.cpp81 const hw_module_t* hw_module = nullptr; local
83 ret = hw_get_module (NFC_NCI_HARDWARE_MODULE_ID, &hw_module);
85 ret = nfc_nci_open (hw_module, &nfc_device);
/hardware/interfaces/tv/input/1.0/default/
H A DTvInput.cpp200 const hw_module_t* hw_module = nullptr; local
202 ret = hw_get_module(TV_INPUT_HARDWARE_MODULE_ID, &hw_module);
203 if (ret == 0 && hw_module->methods->open != nullptr) {
204 ret = hw_module->methods->open(hw_module, TV_INPUT_DEFAULT_DEVICE,
/hardware/libhardware/modules/radio/
H A Dradio_hal_tool.c170 const hw_module_t *hw_module = NULL; local
172 rc = hw_get_module_by_class(RADIO_HARDWARE_MODULE_ID, RADIO_HARDWARE_MODULE_ID_FM, &hw_module);
179 rc = radio_hw_device_open(hw_module, &dev);
/hardware/interfaces/audio/common/all-versions/default/include/common/all-versions/default/
H A DHidlUtils.impl.h167 config->ext.device.hwModule = halConfig.ext.device.hw_module;
174 config->ext.mix.hwModule = halConfig.ext.mix.hw_module;
205 halConfig->ext.device.hw_module = config.ext.device.hwModule;
212 halConfig->ext.mix.hw_module = config.ext.mix.hwModule;
275 port->ext.device.hwModule = halPort.ext.device.hw_module;
282 port->ext.mix.hwModule = halPort.ext.mix.hw_module;
325 halPort->ext.device.hw_module = port.ext.device.hwModule;
332 halPort->ext.mix.hw_module = port.ext.mix.hwModule;
/hardware/interfaces/tv/cec/1.0/default/
H A DHdmiCec.cpp397 const hw_module_t* hw_module = nullptr; local
399 ret = hw_get_module (HDMI_CEC_HARDWARE_MODULE_ID, &hw_module);
401 ret = hdmi_cec_open (hw_module, &hdmi_cec_device);
/hardware/libhardware/modules/sensors/
H A Dmultihal.cpp712 hw_module_t *hw_module = *it; local
715 struct sensors_module_t *module = (struct sensors_module_t*) hw_module;
787 static int open_sensors(const struct hw_module_t* hw_module, const char* name, argument
798 dev->proxy_device.common.module = const_cast<hw_module_t*>(hw_module);

Completed in 379 milliseconds