/aosp12/hardware/interfaces/memtrack/1.0/default/ |
H A 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()
|
/aosp12/hardware/interfaces/power/1.0/default/ |
H A D | Power.cpp | 147 const hw_module_t* hw_module = nullptr; in HIDL_FETCH_IPower() local 149 int err = hw_get_module(POWER_HARDWARE_MODULE_ID, &hw_module); in HIDL_FETCH_IPower() 155 if (!hw_module->methods || !hw_module->methods->open) { in HIDL_FETCH_IPower() 157 const_cast<hw_module_t*>(hw_module)); in HIDL_FETCH_IPower() 159 err = hw_module->methods->open( in HIDL_FETCH_IPower() 160 hw_module, POWER_HARDWARE_MODULE_ID, in HIDL_FETCH_IPower()
|
/aosp12/hardware/libhardware/tests/fingerprint/ |
H A 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()
|
/aosp12/hardware/libhardware/tests/camera3/ |
H A 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()
|
/aosp12/hardware/interfaces/ir/1.0/default/ |
H A 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()
|
/aosp12/frameworks/av/services/audioflinger/ |
H A D | PatchPanel.cpp | 125 ALOGW("%s cannot find hw module %d", __func__, port->ext.device.hw_module); in getAudioPort() 175 oldPatch.sources[0].ext.device.hw_module != in createAudioPatch() 176 patch->sources[0].ext.device.hw_module)) { in createAudioPatch() 177 hwModule = oldPatch.sources[0].ext.device.hw_module; in createAudioPatch() 181 oldPatch.sinks[0].ext.device.hw_module != in createAudioPatch() 182 patch->sinks[0].ext.device.hw_module))) { in createAudioPatch() 188 hwModule = oldPatch.sinks[0].ext.device.hw_module; in createAudioPatch() 236 ((patch->sinks[0].ext.device.hw_module != srcModule) || in createAudioPatch() 243 patch->sources[1].ext.mix.hw_module)) { in createAudioPatch() 393 if (patch->sinks[i].ext.device.hw_module != srcModule) { in createAudioPatch() [all …]
|
H A D | Effects.cpp | 3332 mDevicePort.id, mDevicePort.ext.device.hw_module, effect); in addEffectToHal() 3341 mDevicePort.id, mDevicePort.ext.device.hw_module, effect); in removeEffectFromHal()
|
H A D | AudioFlinger.cpp | 2361 module = config->ext.device.hw_module; in setAudioPortConfig() 2363 module = config->ext.mix.hw_module; in setAudioPortConfig()
|
/aosp12/hardware/interfaces/vr/1.0/default/ |
H A 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()
|
/aosp12/hardware/interfaces/boot/1.0/default/ |
H A 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()
|
/aosp12/hardware/interfaces/vibrator/1.0/default/ |
H A 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()
|
/aosp12/hardware/interfaces/tv/input/1.0/default/ |
H A D | TvInput.cpp | 210 const hw_module_t* hw_module = nullptr; in HIDL_FETCH_ITvInput() local 212 ret = hw_get_module(TV_INPUT_HARDWARE_MODULE_ID, &hw_module); in HIDL_FETCH_ITvInput() 213 if (ret == 0 && hw_module->methods->open != nullptr) { in HIDL_FETCH_ITvInput() 214 ret = hw_module->methods->open(hw_module, TV_INPUT_DEFAULT_DEVICE, in HIDL_FETCH_ITvInput()
|
/aosp12/hardware/interfaces/nfc/1.0/default/ |
H A 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()
|
/aosp12/frameworks/base/services/core/jni/ |
H A D | com_android_server_fingerprint_FingerprintService.cpp | 202 const hw_module_t *hw_module = NULL; in nativeOpenHal() local 203 if (0 != (err = hw_get_module(FINGERPRINT_HARDWARE_MODULE_ID, &hw_module))) { in nativeOpenHal() 207 if (NULL == hw_module) { in nativeOpenHal() 212 gContext.module = reinterpret_cast<const fingerprint_module_t*>(hw_module); in nativeOpenHal() 221 if (0 != (err = gContext.module->common.methods->open(hw_module, NULL, &device))) { in nativeOpenHal()
|
/aosp12/hardware/interfaces/audio/common/all-versions/default/ |
H A D | HidlUtils.cpp | 192 config->ext.device.hwModule = halConfig.ext.device.hw_module; in audioPortConfigFromHal() 199 config->ext.mix.hwModule = halConfig.ext.mix.hw_module; in audioPortConfigFromHal() 231 halConfig->ext.device.hw_module = config.ext.device.hwModule; in audioPortConfigToHal() 238 halConfig->ext.mix.hw_module = config.ext.mix.hwModule; in audioPortConfigToHal() 284 port->ext.device.hwModule = halPort.ext.device.hw_module; in audioPortFromHal() 291 port->ext.mix.hwModule = halPort.ext.mix.hw_module; in audioPortFromHal() 335 halPort->ext.device.hw_module = port.ext.device.hwModule; in audioPortToHal() 342 halPort->ext.mix.hw_module = port.ext.mix.hwModule; in audioPortToHal()
|
/aosp12/hardware/libhardware/modules/radio/ |
H A 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()
|
/aosp12/system/media/tests/ |
H A D | systemaudio_tests.cpp | 363 port->ext.device.hw_module = mHwModule; in fillFakeAudioPortBaseInfo() 393 lhs->ext.device.hw_module = rhs->ext.device.hw_module + 1; in testAudioPortExtBaseEquivalent() 395 lhs->ext.device.hw_module = rhs->ext.device.hw_module; in testAudioPortExtBaseEquivalent() 407 lhs->ext.mix.hw_module = rhs->ext.mix.hw_module + 1; in testAudioPortExtBaseEquivalent() 409 lhs->ext.mix.hw_module = rhs->ext.mix.hw_module; in testAudioPortExtBaseEquivalent() 502 config->ext.device.hw_module = mHwModule; in fillFakeAudioPortConfigInfo() 508 config->ext.mix.hw_module = mHwModule; in fillFakeAudioPortConfigInfo()
|
/aosp12/system/media/audio/include/system/ |
H A D | audio.h | 538 audio_module_handle_t hw_module; /* module the device is attached to */ member 546 audio_module_handle_t hw_module; /* module the stream is attached to */ member 637 audio_module_handle_t hw_module; /* module the device is attached to */ member 648 audio_module_handle_t hw_module; /* module the stream is attached to */ member 865 if (lhs->ext.device.hw_module != rhs->ext.device.hw_module || in audio_port_configs_are_equal() 873 if (lhs->ext.mix.hw_module != rhs->ext.mix.hw_module || in audio_port_configs_are_equal() 961 lhs->ext.device.hw_module != rhs->ext.device.hw_module || 969 if (lhs->ext.mix.hw_module != rhs->ext.mix.hw_module ||
|
/aosp12/hardware/interfaces/tv/cec/1.0/default/ |
H A 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()
|
/aosp12/hardware/libhardware/modules/sensors/ |
H A 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()
|
/aosp12/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
H A D | DeviceDescriptor.h | 105 port->ext.device.hw_module = getModuleHandle();
|
/aosp12/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
H A D | AudioInputDescriptor.cpp | 90 dstConfig->ext.mix.hw_module = getModuleHandle(); in toAudioPortConfig() 102 port->ext.mix.hw_module = getModuleHandle(); in toAudioPort()
|
H A D | AudioOutputDescriptor.cpp | 214 dstConfig->ext.mix.hw_module = getModuleHandle(); in toAudioPortConfig() 223 port->ext.mix.hw_module = getModuleHandle(); in toAudioPort()
|
H A D | DeviceDescriptor.cpp | 159 dstConfig->ext.device.hw_module = getModuleHandle(); in toAudioPortConfig()
|
/aosp12/frameworks/av/media/libaudioclient/ |
H A D | AidlConversion.cpp | 724 legacy.hw_module = VALUE_OR_RETURN(aidl2legacy_int32_t_audio_module_handle_t(aidl.hwModule)); in aidl2legacy_AudioPortConfigDeviceExt_audio_port_config_device_ext() 734 aidl.hwModule = VALUE_OR_RETURN(legacy2aidl_audio_module_handle_t_int32_t(legacy.hw_module)); in legacy2aidl_audio_port_config_device_ext_AudioPortConfigDeviceExt() 955 legacy.hw_module = VALUE_OR_RETURN(aidl2legacy_int32_t_audio_module_handle_t(aidl.hwModule)); in aidl2legacy_AudioPortConfigMixExt() 964 aidl.hwModule = VALUE_OR_RETURN(legacy2aidl_audio_module_handle_t_int32_t(legacy.hw_module)); in legacy2aidl_AudioPortConfigMixExt() 1795 legacy.hw_module = VALUE_OR_RETURN(aidl2legacy_int32_t_audio_module_handle_t(aidl.hwModule)); in aidl2legacy_AudioPortDeviceExt_audio_port_device_ext() 1809 aidl.hwModule = VALUE_OR_RETURN(legacy2aidl_audio_module_handle_t_int32_t(legacy.hw_module)); in legacy2aidl_audio_port_device_ext_AudioPortDeviceExt() 1823 legacy.hw_module = VALUE_OR_RETURN(aidl2legacy_int32_t_audio_module_handle_t(aidl.hwModule)); in aidl2legacy_AudioPortMixExt_audio_port_mix_ext() 1833 aidl.hwModule = VALUE_OR_RETURN(legacy2aidl_audio_module_handle_t_int32_t(legacy.hw_module)); in legacy2aidl_audio_port_mix_ext_AudioPortMixExt()
|