Home
last modified time | relevance | path

Searched refs:def (Results 1 - 19 of 19) sorted by relevance

/drivers/hdf_core/interfaces/inner_api/utils/
H A Ddevice_resource_if.h120 * @param def Indicates the value to fill into the memory pointed by <b>value</b> if the operation fails.
126 int32_t (*GetUint8)(const struct DeviceResourceNode *node, const char *attrName, uint8_t *value, uint8_t def);
135 * @param def Indicates the value to fill into the memory pointed by <b>value</b> if the operation fails.
143 uint8_t *value, uint8_t def);
152 * @param def Indicates the value to fill into <b>value</b> if the operation fails. If the obtained attribute value
154 * array is filled using the value of <b>def</b>, and the other elements are filled with the actual value obtained.
156 * <b>def</b>.
163 uint8_t def);
171 * @param def Indicates the value to fill into the memory pointed by <b>value</b> if the operation fails.
177 int32_t (*GetUint16)(const struct DeviceResourceNode *node, const char *attrName, uint16_t *value, uint16_t def);
[all...]
H A Dhcs_tree_if.h25 int32_t HcsGetUint8(const struct DeviceResourceNode *node, const char *attrName, uint8_t *value, uint8_t def);
27 uint8_t *value, uint8_t def);
29 uint8_t def);
30 int32_t HcsGetUint16(const struct DeviceResourceNode *node, const char *attrName, uint16_t *value, uint16_t def);
32 uint16_t *value, uint16_t def);
34 uint16_t def);
35 int32_t HcsGetUint32(const struct DeviceResourceNode *node, const char *attrName, uint32_t *value, uint32_t def);
37 uint32_t *value, uint32_t def);
39 uint32_t len, uint32_t def);
40 int32_t HcsGetUint64(const struct DeviceResourceNode *node, const char *attrName, uint64_t *value, uint64_t def);
[all...]
/drivers/hdf_core/framework/utils/src/hcs_parser/
H A Dhcs_tree_if.c45 #define RETURN_DEFAULT_VALUE(attr, attrName, value, def) do { \
50 *(value) = (def); \
56 int32_t HcsGetUint8(const struct DeviceResourceNode *node, const char *attrName, uint8_t *value, uint8_t def) in HcsGetUint8() argument
59 RETURN_DEFAULT_VALUE(attr, attrName, value, def); in HcsGetUint8()
62 *value = def; in HcsGetUint8()
69 int32_t HcsGetUint16(const struct DeviceResourceNode *node, const char *attrName, uint16_t *value, uint16_t def) in HcsGetUint16() argument
72 RETURN_DEFAULT_VALUE(attr, attrName, value, def); in HcsGetUint16()
75 *value = def; in HcsGetUint16()
82 int32_t HcsGetUint32(const struct DeviceResourceNode *node, const char *attrName, uint32_t *value, uint32_t def) in HcsGetUint32() argument
85 RETURN_DEFAULT_VALUE(attr, attrName, value, def); in HcsGetUint32()
95 HcsGetUint64(const struct DeviceResourceNode *node, const char *attrName, uint64_t *value, uint64_t def) HcsGetUint64() argument
132 HcsGetUint8ArrayElem(const struct DeviceResourceNode *node, const char *attrName, uint32_t index, uint8_t *value, uint8_t def) HcsGetUint8ArrayElem() argument
153 HcsGetUint16ArrayElem(const struct DeviceResourceNode *node, const char *attrName, uint32_t index, uint16_t *value, uint16_t def) HcsGetUint16ArrayElem() argument
174 HcsGetUint32ArrayElem(const struct DeviceResourceNode *node, const char *attrName, uint32_t index, uint32_t *value, uint32_t def) HcsGetUint32ArrayElem() argument
195 HcsGetUint64ArrayElem(const struct DeviceResourceNode *node, const char *attrName, uint32_t index, uint64_t *value, uint64_t def) HcsGetUint64ArrayElem() argument
222 HcsGetUint8Array(const struct DeviceResourceNode *node, const char *attrName, uint8_t *value, uint32_t len, uint8_t def) HcsGetUint8Array() argument
240 HcsGetUint16Array(const struct DeviceResourceNode *node, const char *attrName, uint16_t *value, uint32_t len, uint16_t def) HcsGetUint16Array() argument
258 HcsGetUint32Array(const struct DeviceResourceNode *node, const char *attrName, uint32_t *value, uint32_t len, uint32_t def) HcsGetUint32Array() argument
276 HcsGetUint64Array(const struct DeviceResourceNode *node, const char *attrName, uint64_t *value, uint32_t len, uint64_t def) HcsGetUint64Array() argument
295 HcsGetStringArrayElem(const struct DeviceResourceNode *node, const char *attrName, uint32_t index, const char **value, const char *def) HcsGetStringArrayElem() argument
312 HcsGetString(const struct DeviceResourceNode *node, const char *attrName, const char **value, const char *def) HcsGetString() argument
[all...]
/drivers/peripheral/thermal/test/unittest/
H A Dhdf_thermal_log_test.cpp88 uint32_t def = 888; in HWTEST_F() local
91 uint32_t width = hdfLog.GetIntParameter("persist.thermal.log.width", def, minVal); in HWTEST_F()
92 ASSERT_EQ(def, width); in HWTEST_F()
96 width = hdfLog.GetIntParameter("persist.thermal.log.width", def, minVal); in HWTEST_F()
/drivers/hdf_core/framework/model/network/wifi/platform/src/message/
H A Dsidecar.c232 Service *InitService(struct ServiceDef *def, const ServiceCfg *cfg) in InitService() argument
237 if (cfg == NULL || def == NULL) { in InitService()
241 if (def->serviceId == RESERVED_SERVICE_ID) { in InitService()
262 privateData->serviceId = def->serviceId; in InitService()
267 errCode = RegistLocalService(cfg->dispatcherId, def); in InitService()
273 HDF_LOGE("Register service failed!serviceId=%d,ret=%d", def->serviceId, errCode); in InitService()
/drivers/peripheral/thermal/interfaces/hdi_service/include/
H A Dthermal_dfx.h54 int32_t GetIntParameter(const std::string& key, const int32_t def, const int32_t minValue);
55 bool GetBoolParameter(const std::string& key, const bool def);
/drivers/peripheral/thermal/interfaces/hdi_service/src/
H A Dthermal_dfx.cpp402 int32_t ThermalDfx::GetIntParameter(const std::string& key, const int32_t def, const int32_t minValue) in GetIntParameter() argument
404 int32_t value = OHOS::system::GetIntParameter(key, def); in GetIntParameter()
405 return (value < minValue) ? def : value; in GetIntParameter()
408 bool ThermalDfx::GetBoolParameter(const std::string& key, const bool def) in GetBoolParameter() argument
412 return def; in GetBoolParameter()
/drivers/hdf_core/framework/model/camera/parser/include/
H A Dcamera_config_parser.h35 uint32_t def; member
/drivers/hdf_core/framework/model/network/wifi/platform/include/message/
H A Dsidecar.h99 Service *InitService(struct ServiceDef *def, const ServiceCfg *cfg);
/drivers/hdf_core/framework/model/camera/device_impl/src/
H A Dcamera_flash.c34 isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->flash.flash[devId].ctrlCap[i].def); in CameraCmdFlashQueryConfig()
H A Dcamera_lens.c34 isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->lens.lens[devId].ctrlCap[i].def); in CameraCmdLensQueryConfig()
H A Dcamera_isp.c34 isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->isp.isp[devId].ctrlCap[i].def); in CameraCmdIspQueryConfig()
H A Dcamera_sensor.c34 isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->sensor.sensor[devId].ctrlCap[i].def); in CameraCmdSensorQueryConfig()
H A Dcamera_vcm.c34 isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->vcm.vcm[devId].ctrlCap[i].def); in CameraCmdVcmQueryConfig()
/drivers/hdf_core/framework/model/camera/parser/src/
H A Dcamera_config_parser.c32 ctrlCap[i / CTRL_INFO_COUNT].def = ctrlValue[i + CTRL_DEF_INDEX]; in SetCtrlCapInfo()
34 "step = %{public}d, def = %{public}d", __func__, (i / CTRL_INFO_COUNT), in SetCtrlCapInfo()
36 ctrlCap[i / CTRL_INFO_COUNT].step, ctrlCap[i / CTRL_INFO_COUNT].def); in SetCtrlCapInfo()
/drivers/hdf_core/framework/model/network/wifi/include/
H A Dhdf_wifi_cmd.h272 uint8_t def; member
/drivers/peripheral/wlan/client/include/
H A Dwifi_driver_client.h444 uint8_t def; member
/drivers/peripheral/wlan/client/src/sbuf/
H A Dsbuf_wpa_cmd_adapter.c286 isSerializeFailed = isSerializeFailed || !HdfSbufWriteUint8(data, keyExt->def); in WifiCmdOperKey()
/drivers/hdf_core/framework/model/network/wifi/core/module/
H A Dwifi_base.c135 if (!HdfSbufReadUint8(reqData, &(keyExt->def)) || keyExt == NULL) { in WifiCmdFillKeyInner()
136 HDF_LOGE("%s: %s!ParamName=%s", __func__, ERROR_DESC_READ_REQ_FAILED, "def"); in WifiCmdFillKeyInner()
259 if (keyExt->def == TRUE) { in WifiGetMulticast()

Completed in 14 milliseconds