Home
last modified time | relevance | path

Searched refs:GetString (Results 1 – 25 of 46) sorted by relevance

12

/drivers/hdf_core/framework/model/audio/common/src/
Daudio_dsp_base.c31 if (drsOps == NULL || drsOps->GetString == NULL) { in DspGetServiceName()
36 ret = drsOps->GetString(node, "serviceName", drvDspName, 0); in DspGetServiceName()
62 if (drsOps == NULL || drsOps->GetString == NULL) { in DspGetDaiName()
67 ret = drsOps->GetString(node, "dspDaiName", drvDaiName, 0); in DspGetDaiName()
/drivers/peripheral/camera/vdi_base/common/pipeline_core/ipp/src/
Dipp_algo_parser.cpp96 int32_t ret = devResInstance_->GetString(node, "name", &name, nullptr); in ConstructPlugin()
102 ret = devResInstance_->GetString(node, "description", &description, nullptr); in ConstructPlugin()
108 ret = devResInstance_->GetString(node, "path", &path, nullptr); in ConstructPlugin()
115 ret = devResInstance_->GetString(node, "mode", &mode, nullptr); in ConstructPlugin()
/drivers/peripheral/battery/interfaces/hdi_service/test/systemtest/src/
Dbattery_sys_test.cpp184 std::string currentPath = g_batteryconfig.GetString("charger.current_limit.path");
186 std::string voltagePath = g_batteryconfig.GetString("charger.voltage_limit.path");
202 ASSERT_EQ("123", g_batteryconfig.GetString("XXXXXXXXX", "123"));
216 ASSERT_EQ("", g_batteryconfig.GetString("X.X.X.X.X.X"));
230 ASSERT_EQ("", g_batteryconfig.GetString(""));
/drivers/hdf_core/framework/test/unittest/platform/common/
Dpin_driver_test.c48 if (drsOps == NULL || drsOps->GetUint32 == NULL || drsOps->GetString == NULL) { in PinTestReadConfig()
52 ret = drsOps->GetString(node, "pinName", &config->pinName, 0); in PinTestReadConfig()
70 ret = drsOps->GetString(node, "funcName", &funcName, 0); in PinTestReadConfig()
Dgpio_driver_test.c47 ret = drsOps->GetString(node, "testNameOne", &tempName, "NULL"); in GpioReadNameTestInfos()
58 ret = drsOps->GetString(node, "testNameTwo", &tempName, "NULL"); in GpioReadNameTestInfos()
/drivers/hdf_core/framework/test/unittest/platform/virtual/
Dpin_virtual.c179 ret = drsOps->GetString(node, "F0", &desc->func[funcNum], "NULL"); in VirtualPinReadFunc()
186 ret = drsOps->GetString(node, "F1", &desc->func[funcNum], "NULL"); in VirtualPinReadFunc()
193 ret = drsOps->GetString(node, "F2", &desc->func[funcNum], "NULL"); in VirtualPinReadFunc()
200 ret = drsOps->GetString(node, "F3", &desc->func[funcNum], "NULL"); in VirtualPinReadFunc()
207 ret = drsOps->GetString(node, "F4", &desc->func[funcNum], "NULL"); in VirtualPinReadFunc()
214 ret = drsOps->GetString(node, "F5", &desc->func[funcNum], "NULL"); in VirtualPinReadFunc()
229 if (drsOps == NULL || drsOps->GetUint32 == NULL || drsOps->GetString == NULL) { in VirtualPinParsePinNode()
233 ret = drsOps->GetString(node, "pinName", &virtual->desc[index].pinName, "NULL"); in VirtualPinParsePinNode()
Dregulator_virtual.c135 if (drsOps == NULL || drsOps->GetString == NULL) { in VirtualRegulatorContinueReadHcs()
181 if (drsOps == NULL || drsOps->GetString == NULL) { in VirtualRegulatorReadHcs()
186 ret = drsOps->GetString(node, "name", &(regNode->regulatorInfo.name), "ERROR"); in VirtualRegulatorReadHcs()
198 ret = drsOps->GetString(node, "parentName", &(regNode->regulatorInfo.parentName), "ERROR"); in VirtualRegulatorReadHcs()
/drivers/hdf_core/framework/model/network/wifi/platform/src/
Dhdf_wlan_config_parser.c24 if (drsOps == NULL || drsOps->GetString == NULL || drsOps->GetUint8 == NULL) { in ParseWlanStaConfig()
28 ret = drsOps->GetString(node, "name", &staConfig->name, NULL); in ParseWlanStaConfig()
52 if (drsOps == NULL || drsOps->GetString == NULL || drsOps->GetUint8 == NULL) { in ParseWlanApConfig()
56 ret = drsOps->GetString(node, "name", &apConfig->name, NULL); in ParseWlanApConfig()
91 if (drsOps == NULL || drsOps->GetString == NULL || drsOps->GetUint8 == NULL) { in ParseWlanP2PConfig()
95 ret = drsOps->GetString(node, "name", &p2pConfig->name, NULL); in ParseWlanP2PConfig()
170 …if (drsOps == NULL || drsOps->GetChildNode == NULL || drsOps->GetString == NULL || drsOps->GetUint… in ParseWlanModuleConfig()
179 ret = drsOps->GetString(node, "msgName", &modConfig->msgName, NULL); in ParseWlanModuleConfig()
477 if (drsOps == NULL || drsOps->GetString == NULL || drsOps->GetChildNode == NULL) { in ParseWlanChipsCompsConfig()
482 if (drsOps->GetString(node, "driverName", &chipInst->driverName, NULL) != HDF_SUCCESS) { in ParseWlanChipsCompsConfig()
[all …]
/drivers/hdf_core/framework/model/audio/core/src/
Daudio_parse.c102 if (drsOps == NULL || drsOps->GetString == NULL) { in AudioFillConfigData()
107 (void)drsOps->GetString(node, "serviceName", &(configData->cardServiceName), 0); in AudioFillConfigData()
108 (void)drsOps->GetString(node, "codecName", &(configData->codecName), 0); in AudioFillConfigData()
109 (void)drsOps->GetString(node, "platformName", &(configData->platformName), 0); in AudioFillConfigData()
110 (void)drsOps->GetString(node, "cpuDaiName", &(configData->cpuDaiName), 0); in AudioFillConfigData()
111 (void)drsOps->GetString(node, "codecDaiName", &(configData->codecDaiName), 0); in AudioFillConfigData()
112 (void)drsOps->GetString(node, "dspName", &(configData->dspName), 0); in AudioFillConfigData()
113 (void)drsOps->GetString(node, "dspDaiName", &(configData->dspDaiName), 0); in AudioFillConfigData()
459 ret = parser->GetString(attrNode, "chipName", &config->chipName, NULL); in ParseAudioAttr()
562 if (drsOps == NULL || drsOps->GetString == NULL) { in AudioGetPortConfig()
[all …]
/drivers/hdf_core/adapter/khdf/linux/platform/regulator/
Dregulator_adapter.c306 if (drsOps == NULL || drsOps->GetString == NULL) { in LinuxRegulatorReadHcs()
311 ret = drsOps->GetString(node, "name", &(regNode->regulatorInfo.name), "ERROR"); in LinuxRegulatorReadHcs()
365 if (info == NULL || drsOps == NULL || drsOps->GetString == NULL) { in LinuxRegulatorReadAdapterHcs()
370 ret = drsOps->GetString(node, "devName", &(info->devName), "ERROR"); in LinuxRegulatorReadAdapterHcs()
377 ret = drsOps->GetString(node, "supplyName", &(info->supplyName), "ERROR"); in LinuxRegulatorReadAdapterHcs()
479 if (drsOps == NULL || drsOps->GetString == NULL) { in LinuxRegulatorParseAndRelease()
485 ret = drsOps->GetString(node, "name", &(name), "ERROR"); in LinuxRegulatorParseAndRelease()
/drivers/peripheral/camera/vdi_base/v4l2/src/camera_host/
Dhcs_deal.cpp99 int32_t ret = pDevResIns->GetString(&node, "logicCameraId", &cameraId, nullptr); in DealCameraAbility()
278 int32_t rc = pDevResIns->GetString(&metadataNode, "cameraPosition", &nodeValue, nullptr); in DealCameraPosition()
304 int32_t rc = pDevResIns->GetString(&metadataNode, "cameraType", &nodeValue, nullptr); in DealCameraType()
329 int32_t rc = pDevResIns->GetString(&metadataNode, "cameraConnectionType", &nodeValue, nullptr); in DealCameraConnectionType()
355 int32_t rc = pDevResIns->GetString(&metadataNode, "cameraMemoryType", &nodeValue, nullptr); in DealCameraMemoryType()
383 int32_t rc = pDevResIns->GetString(&metadataNode, "faceDetectMaxNum", &pNodeValue, nullptr); in DealCameraFaceDetectMaxNum()
499 int32_t rc = pDevResIns->GetString(&metadataNode, "faceDetectMode", &pNodeValue, nullptr); in DealFaceDetectMode()
545 int32_t rc = pDevResIns->GetString(&metadataNode, "focalLength", &pNodeValue, nullptr); in DealFocalLength()
682 int32_t rc = pDevResIns->GetString(&metadataNode, "mirrorSupported", &nodeValue, nullptr); in DealMirrorSupported()
738 …int32_t rc = pDevResIns->GetString(&metadataNode, "sensorOrientationSupported", &nodeValue, nullpt… in DealSensorOrientation()
[all …]
/drivers/hdf_core/framework/model/camera/parser/src/
Dcamera_config_parser.c45 ret = drsOps->GetString(node, "name", &sensorConfig->name, NULL); in ParseCameraSensorDeviceConfig()
76 ret = drsOps->GetString(node, "name", &ispConfig->name, NULL); in ParseCameraIspDeviceConfig()
117 ret = drsOps->GetString(node, "name", &vcmConfig->name, NULL); in ParseCameraVcmDeviceConfig()
150 ret = drsOps->GetString(node, "name", &lensConfig->name, NULL); in ParseCameraLensDeviceConfig()
175 ret = drsOps->GetString(node, "name", &flashConfig->name, NULL); in ParseCameraFlashDeviceConfig()
202 ret = drsOps->GetString(node, "name", &streamConfig->name, NULL); in ParseCameraStreamDeviceConfigs()
441 if (drsOps->GetString(node, "deviceName", &deviceConfig->deviceName, NULL) != HDF_SUCCESS) { in ParseCameraDeviceConfig()
505 if (drsOps == NULL || drsOps->GetString == NULL || drsOps->GetUint8 == NULL || in HdfParseCameraConfig()
/drivers/peripheral/battery/interfaces/hdi_service/src/
Dbattery_interface_impl.cpp58 currentPath_ = batteryConfig.GetString("charger.current_limit.path"); in Init()
59 voltagePath_ = batteryConfig.GetString("charger.voltage_limit.path"); in Init()
60 chargeTypePath_ = batteryConfig.GetString("charger.type.path"); in Init()
/drivers/hdf_core/framework/model/input/driver/
Dinput_config_parser.c42 ret = parser->GetString(infraredNode, "infraredName", &config->infraredName, NULL); in ParseInfraredConfig()
70 ret = parser->GetString(keyNode, "keyName", &config->keyName, NULL); in ParseKeyConfig()
117 ret = parser->GetString(attrNode, "devName", &attr->devName, NULL); in ParseAttr()
321 ret = parser->GetString(node, "chipName", &config->chipName, NULL); in ParseTouchChipConfig()
323 ret = parser->GetString(node, "vendorName", &config->vendorName, NULL); in ParseTouchChipConfig()
325 ret = parser->GetString(node, "chipInfo", &config->chipInfo, NULL); in ParseTouchChipConfig()
/drivers/hdf_core/framework/utils/src/hcs_parser/
Ddevice_resource_if.c29 instance->GetString = HcsGetString; in HcsIfaceConstruct()
/drivers/peripheral/battery/interfaces/hdi_service/include/
Dbattery_config.h44 std::string GetString(std::string key, std::string defVal = "") const;
/drivers/hdf_core/framework/model/sensor/driver/common/src/
Dsensor_config_parser.c311 ret = parser->GetString(infoNode, "sensorName", &name, NULL); in ParseSensorInfo()
318 ret = parser->GetString(infoNode, "vendorName", &name, NULL); in ParseSensorInfo()
325 ret = parser->GetString(infoNode, "firmwareVersion", &name, NULL); in ParseSensorInfo()
332 ret = parser->GetString(infoNode, "hardwareVersion", &name, NULL); in ParseSensorInfo()
424 ret = parser->GetString(attrNode, "chipName", &config->sensorAttr.chipName, NULL); in ParseSensorAttr()
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/resources/templates/lite/audio_template/
Drk3568_audio_adapter_source.template49 if (drsOps == NULL || drsOps->GetString == NULL) {
53 ret = drsOps->GetString(node, "serviceName", &g_chip->codec.drvCodecName, 0);
/drivers/peripheral/usb/ddk/host/src/
Dusb_pnp_manager.c107 if (iface->GetString(device->property, attrName, &path, pathDef) != HDF_SUCCESS) { in UsbPnpMgrGetGadgetPath()
/drivers/hdf_core/adapter/khdf/linux/platform/adc/
Dadc_iio_adapter.c151 if (drsOps == NULL || drsOps->GetUint32 == NULL || drsOps->GetString == NULL) { in AdcIioReadDrs()
173 ret = drsOps->GetString(node, channelName, &drName, NULL); in AdcIioReadDrs()
/drivers/hdf_core/interfaces/inner_api/utils/
Ddevice_resource_if.h322 …int32_t (*GetString)(const struct DeviceResourceNode *node, const char *attrName, const char **val… member
/drivers/hdf_core/framework/model/network/bluetooth/
Dhdf_bt_core.c77 if (drsOps == NULL || drsOps->GetUint8 == NULL || drsOps->GetString == NULL) { in ParseTransportConfig()
87 if (drsOps->GetString(node, "devName", &config->devName, "") != HDF_SUCCESS) { in ParseTransportConfig()
94 if (drsOps->GetString(node, "serviceName", &config->serviceName, "") != HDF_SUCCESS) { in ParseTransportConfig()
/drivers/hdf_core/adapter/khdf/liteos/model/bus/usb/
Dhdf_usb.c115 int32_t ret = instance->GetString(subNode, "controller", &ctrlName, NULL); in ProcControllorParam()
/drivers/peripheral/usb/gadget/function/usbfn/
Ddev_usbfn.c167 if (iface->GetString(device->property, "udc_name", &devMgr->udcName, UDC_NAME) != HDF_SUCCESS) { in UsbFnDriverInit()
/drivers/hdf_core/framework/model/display/driver/lcdkit/
Dlcdkit_parse_config.c269 if (drsOps == NULL || drsOps->GetChildNode == NULL || drsOps->GetString == NULL) { in ParseLcdConfig()
273 if (drsOps->GetString(node, "active_panel", &cfg->actPanel, NULL) != HDF_SUCCESS) { in ParseLcdConfig()

12