Home
last modified time | relevance | path

Searched refs:value (Results 1 - 25 of 446) sorted by relevance

12345678910>>...18

/drivers/hdf_core/framework/utils/src/hcs_parser/
H A Dhcs_tree_if.c31 uint8_t value; in HcsGetBool() local
33 if ((attr == NULL) || (attr->value == NULL)) { in HcsGetBool()
38 if (!HcsSwapToUint8(&value, attr->value + HCS_PREFIX_LENGTH, HcsGetPrefix(attr->value))) { in HcsGetBool()
42 return value ? true : false; in HcsGetBool()
45 #define RETURN_DEFAULT_VALUE(attr, attrName, value, def) do { \
46 if (((attr) == NULL) || ((attr)->value == NULL) || ((value) == NULL)) { \
47 HDF_LOGE("%s failed, the attr of %s is NULL, or the value i
56 HcsGetUint8(const struct DeviceResourceNode *node, const char *attrName, uint8_t *value, uint8_t def) HcsGetUint8() argument
69 HcsGetUint16(const struct DeviceResourceNode *node, const char *attrName, uint16_t *value, uint16_t def) HcsGetUint16() argument
82 HcsGetUint32(const struct DeviceResourceNode *node, const char *attrName, uint32_t *value, uint32_t def) HcsGetUint32() argument
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/hdf_core/framework/utils/include/
H A Dhdf_sbuf_impl.h28 bool (*writeUint64)(struct HdfSBufImpl *sbuf, uint64_t value);
29 bool (*writeUint32)(struct HdfSBufImpl *sbuf, uint32_t value);
30 bool (*writeUint16)(struct HdfSBufImpl *sbuf, uint16_t value);
31 bool (*writeUint8)(struct HdfSBufImpl *sbuf, uint8_t value);
32 bool (*writeInt64)(struct HdfSBufImpl *sbuf, int64_t value);
33 bool (*writeInt32)(struct HdfSBufImpl *sbuf, int32_t value);
34 bool (*writeInt16)(struct HdfSBufImpl *sbuf, int16_t value);
35 bool (*writeInt8)(struct HdfSBufImpl *sbuf, int8_t value);
36 bool (*writeString)(struct HdfSBufImpl *sbuf, const char *value);
38 bool (*writeFloat)(struct HdfSBufImpl *sbuf, float value);
[all...]
/drivers/hdf_core/framework/tools/hdi-gen/util/
H A Dstring_helper.cpp47 bool StringHelper::StartWith(const std::string &value, char prefix) in StartWith() argument
49 return value.find(prefix) == 0; in StartWith()
52 bool StringHelper::StartWith(const std::string &value, const std::string &prefix) in StartWith() argument
54 return value.find(prefix) == 0; in StartWith()
57 bool StringHelper::EndWith(const std::string &value, char suffix) in EndWith() argument
59 if (value.empty()) { in EndWith()
62 return value.back() == suffix; in EndWith()
65 bool StringHelper::EndWith(const std::string &value, const std::string &suffix) in EndWith() argument
67 size_t index = value.rfind(suffix); in EndWith()
72 return index + suffix.size() == value in EndWith()
75 Replace(const std::string &value, char oldChar, char newChar) Replace() argument
91 Replace(const std::string &value, const std::string &oldstr, const std::string &newstr) Replace() argument
102 Replace( const std::string &value, size_t position, const std::string &substr, const std::string &newstr) Replace() argument
114 Replace(const std::string &value, size_t position, size_t len, const std::string &newStr) Replace() argument
125 SubStr(const std::string &value, size_t start, size_t end) SubStr() argument
133 StrToLower(const std::string &value) StrToLower() argument
144 StrToUpper(const std::string &value) StrToUpper() argument
[all...]
H A Dstring_helper.h22 static bool StartWith(const std::string &value, char prefix);
24 static bool StartWith(const std::string &value, const std::string &prefix);
26 static bool EndWith(const std::string &value, char suffix);
28 static bool EndWith(const std::string &value, const std::string &suffix);
30 static std::string Replace(const std::string &value, char oldChar, char newChar);
32 static std::string Replace(const std::string &value, const std::string &oldstr, const std::string &newstr);
35 const std::string &value, size_t position, const std::string &substr, const std::string &newstr);
37 static std::string Replace(const std::string &value, size_t position, size_t len, const std::string &newStr);
39 static std::string SubStr(const std::string &value, size_t start, size_t end = std::string::npos);
41 static std::string StrToLower(const std::string &value);
[all...]
/drivers/hdf_core/framework/test/unittest/osal/
H A Dosal_work_test.c106 int32_t value; in OsalTestAtomic() local
111 value = OsalAtomicRead(&atomic); in OsalTestAtomic()
112 UT_TEST_CHECK_RET(value != 1, OSAL_ATOMIC_SET); in OsalTestAtomic()
113 UT_TEST_CHECK_RET(value != 1, OSAL_ATOMIC_READ); in OsalTestAtomic()
114 HDF_LOGE("%s %d %d", __func__, __LINE__, value); in OsalTestAtomic()
117 value = OsalAtomicRead(&atomic); in OsalTestAtomic()
118 UT_TEST_CHECK_RET(value != ATOMIC_INC_VALUE, OSAL_ATOMIC_INC); in OsalTestAtomic()
119 UT_TEST_CHECK_RET(value != ATOMIC_INC_VALUE, OSAL_ATOMIC_READ); in OsalTestAtomic()
120 HDF_LOGE("%s %d %d", __func__, __LINE__, value); in OsalTestAtomic()
123 value in OsalTestAtomic()
[all...]
/drivers/peripheral/usb/ddk/host/src/
H A Dddk_sysfs_device.c45 static int32_t DdkSysfsReadProperty(const char *deviceDir, const char *propName, int64_t *value, uint64_t maxVal) in DdkSysfsReadProperty() argument
92 *value = res; in DdkSysfsReadProperty()
109 int64_t value = 0; in DdkSysfsGetInterface() local
110 int32_t ret = DdkSysfsReadProperty(intfPath, "bInterfaceClass", &value, UINT8_MAX); in DdkSysfsGetInterface()
111 intf->interfaceClass = (uint8_t)value; in DdkSysfsGetInterface()
112 ret += DdkSysfsReadProperty(intfPath, "bInterfaceSubClass", &value, UINT8_MAX); in DdkSysfsGetInterface()
113 intf->interfaceSubClass = (uint8_t)value; in DdkSysfsGetInterface()
114 ret += DdkSysfsReadProperty(intfPath, "bInterfaceProtocol", &value, UINT8_MAX); in DdkSysfsGetInterface()
115 intf->interfaceProtocol = (uint8_t)value; in DdkSysfsGetInterface()
116 ret += DdkSysfsReadProperty(intfPath, "bInterfaceNumber", &value, UINT8_MA in DdkSysfsGetInterface()
191 int64_t value = 0; DdkSysfsGetDevice() local
[all...]
/drivers/peripheral/vibrator/chipset/drv2605l/
H A Dvibrator_drv2605l_driver.c117 uint8_t value; in DetectDrv2605lDevice() local
132 ret = ReadDrv2605l(&drvData->drv2605lCfgData->vibratorBus.i2cCfg, chipIdReg, &value, sizeof(value)); in DetectDrv2605lDevice()
139 if (value != chipIdValue) { in DetectDrv2605lDevice()
151 uint8_t value[DRV2605L_VALUE_BUTT]; in InitDrv2605lChip() local
153 value[DRV2605L_ADDR_INDEX] = (uint8_t)DRV2605_REG_CONTROL3; in InitDrv2605lChip()
154 value[DRV2605L_VALUE_INDEX] = (uint8_t)DRV2605_MODE_OPEN_LOOP; in InitDrv2605lChip()
155 if (WriteDrv2605l(&drv2605lCfgData->vibratorBus.i2cCfg, value, sizeof(value)) != HDF_SUCCESS) { in InitDrv2605lChip()
156 HDF_LOGE("%s: i2c addr [%0X] write failed", __func__, value[DRV2605L_ADDR_INDE in InitDrv2605lChip()
186 uint8_t value[DRV2605L_VALUE_BUTT]; SetModulationParameter() local
221 uint8_t value[DRV2605L_VALUE_BUTT]; StartModulationParameter() local
239 uint8_t value[DRV2605L_VALUE_BUTT]; StopModulationParameter() local
[all...]
/drivers/hdf_core/interfaces/inner_api/utils/
H A Dhdf_sbuf.h54 SBUF_TYPE_MAX, /* Maximum value of the SBUF type */
62 * @param writeSize Indicates the size of the data segment to write. The maximum value is 512 KB.
73 * @param data Indicates the pointer to the data to write. The value cannot be a null pointer.
74 * @param writeSize Indicates the size of the data to write. The value cannot be <b>0</b>.
85 * @param value Indicates the 64-bit unsigned integer to write.
90 bool HdfSbufWriteUint64(struct HdfSBuf *sbuf, uint64_t value);
96 * @param value Indicates the 32-bit unsigned integer to write.
101 bool HdfSbufWriteUint32(struct HdfSBuf *sbuf, uint32_t value);
107 * @param value Indicates the 16-bit unsigned integer to write.
112 bool HdfSbufWriteUint16(struct HdfSBuf *sbuf, uint16_t value);
[all...]
H A Ddevice_resource_if.h56 * the attribute name, attribute value, and pointer that points to the next attribute.
60 const char *value; /**< Pointer to the attribute value */ member
102 * @brief Obtains the value of a <b>BOOL</b> attribute of a configuration tree node.
107 * @return Returns <b>true</b> if the operation is successful and the value of the <b>BOOL</b> attribute is
114 * @brief Obtains the value of a <b>Uint8</b> attribute of a configuration tree node.
118 * @param value Indicates the pointer to the memory that stores the obtained data. The memory is applied
120 * @param def Indicates the value to fill into the memory pointed by <b>value</b> if the operation fails.
122 * @return Returns <b>0</b> if the attribute value i
[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);
28 int32_t HcsGetUint8Array(const struct DeviceResourceNode *node, const char *attrName, uint8_t *value, uint32_t len,
30 int32_t HcsGetUint16(const struct DeviceResourceNode *node, const char *attrName, uint16_t *value, uint16_t def);
32 uint16_t *value, uint16_t def);
33 int32_t HcsGetUint16Array(const struct DeviceResourceNode *node, const char *attrName, uint16_t *value, uint32_t len,
35 int32_t HcsGetUint32(const struct DeviceResourceNode *node, const char *attrName, uint32_t *value, uint32_t def);
37 uint32_t *value, uint32_t def);
38 int32_t HcsGetUint32Array(const struct DeviceResourceNode *node, const char *attrName, uint32_t *value,
40 int32_t HcsGetUint64(const struct DeviceResourceNode *node, const char *attrName, uint64_t *value, uint64_
[all...]
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/
H A Dhdf_command_handler_base.py47 value = getattr(self.args, arg)
48 if not value:
59 value = getattr(self.args, arg)
60 return value
74 value = self._get_arg(arg)
75 if value:
77 ret[board_index] = '_'.join([ret[board_index], value])
85 value = self._get_arg(arg)
87 value = self._get_arg(arg)
88 if value
[all...]
/drivers/hdf_core/adapter/uhdf2/ipc/src/
H A Dhdf_sbuf_impl_hipc.cpp66 static bool SbufMParcelImplWriteUint64(struct HdfSBufImpl *sbuf, uint64_t value) in SbufMParcelImplWriteUint64() argument
68 return MParcelCast(sbuf)->WriteUint64(value); in SbufMParcelImplWriteUint64()
71 static bool SbufMParcelImplWriteUint32(struct HdfSBufImpl *sbuf, uint32_t value) in SbufMParcelImplWriteUint32() argument
73 return MParcelCast(sbuf)->WriteUint32(value); in SbufMParcelImplWriteUint32()
76 static bool SbufMParcelImplWriteUint16(struct HdfSBufImpl *sbuf, uint16_t value) in SbufMParcelImplWriteUint16() argument
78 return MParcelCast(sbuf)->WriteUint16(value); in SbufMParcelImplWriteUint16()
81 static bool SbufMParcelImplWriteUint8(struct HdfSBufImpl *sbuf, uint8_t value) in SbufMParcelImplWriteUint8() argument
83 return MParcelCast(sbuf)->WriteUint8(value); in SbufMParcelImplWriteUint8()
86 static bool SbufMParcelImplWriteInt64(struct HdfSBufImpl *sbuf, int64_t value) in SbufMParcelImplWriteInt64() argument
88 return MParcelCast(sbuf)->WriteInt64(value); in SbufMParcelImplWriteInt64()
91 SbufMParcelImplWriteInt32(struct HdfSBufImpl *sbuf, int32_t value) SbufMParcelImplWriteInt32() argument
96 SbufMParcelImplWriteInt16(struct HdfSBufImpl *sbuf, int16_t value) SbufMParcelImplWriteInt16() argument
101 SbufMParcelImplWriteInt8(struct HdfSBufImpl *sbuf, int8_t value) SbufMParcelImplWriteInt8() argument
106 SbufMParcelImplWriteString(struct HdfSBufImpl *sbuf, const char *value) SbufMParcelImplWriteString() argument
111 SbufMParcelImplWriteString16(struct HdfSBufImpl *sbuf, const char16_t *value, uint32_t size) SbufMParcelImplWriteString16() argument
121 SbufMParcelImplWriteDouble(struct HdfSBufImpl *sbuf, double value) SbufMParcelImplWriteDouble() argument
126 SbufMParcelImplWriteFloat(struct HdfSBufImpl *sbuf, float value) SbufMParcelImplWriteFloat() argument
131 SbufMParcelImplReadFloat(struct HdfSBufImpl *sbuf, float *value) SbufMParcelImplReadFloat() argument
142 SbufMParcelImplReadDouble(struct HdfSBufImpl *sbuf, double *value) SbufMParcelImplReadDouble() argument
174 SbufMParcelImplReadUint64(struct HdfSBufImpl *sbuf, uint64_t *value) SbufMParcelImplReadUint64() argument
185 SbufMParcelImplReadUint32(struct HdfSBufImpl *sbuf, uint32_t *value) SbufMParcelImplReadUint32() argument
196 SbufMParcelImplReadUint16(struct HdfSBufImpl *sbuf, uint16_t *value) SbufMParcelImplReadUint16() argument
207 SbufMParcelImplReadUint8(struct HdfSBufImpl *sbuf, uint8_t *value) SbufMParcelImplReadUint8() argument
218 SbufMParcelImplReadInt64(struct HdfSBufImpl *sbuf, int64_t *value) SbufMParcelImplReadInt64() argument
229 SbufMParcelImplReadInt32(struct HdfSBufImpl *sbuf, int32_t *value) SbufMParcelImplReadInt32() argument
240 SbufMParcelImplReadInt16(struct HdfSBufImpl *sbuf, int16_t *value) SbufMParcelImplReadInt16() argument
251 SbufMParcelImplReadInt8(struct HdfSBufImpl *sbuf, int8_t *value) SbufMParcelImplReadInt8() argument
[all...]
/drivers/hdf_core/framework/utils/src/
H A Dhdf_sbuf_impl_raw.c253 static bool SbufRawImplWriteUint64(struct HdfSBufImpl *impl, uint64_t value) in SbufRawImplWriteUint64() argument
255 return SbufRawImplWrite(impl, (uint8_t *)(&value), sizeof(value)); in SbufRawImplWriteUint64()
258 static bool SbufRawImplWriteUint32(struct HdfSBufImpl *impl, uint32_t value) in SbufRawImplWriteUint32() argument
260 return SbufRawImplWrite(impl, (uint8_t *)(&value), sizeof(value)); in SbufRawImplWriteUint32()
263 static bool SbufRawImplWriteUint16(struct HdfSBufImpl *impl, uint16_t value) in SbufRawImplWriteUint16() argument
265 return SbufRawImplWrite(impl, (uint8_t *)(&value), sizeof(value)); in SbufRawImplWriteUint16()
268 static bool SbufRawImplWriteUint8(struct HdfSBufImpl *impl, uint8_t value) in SbufRawImplWriteUint8() argument
273 SbufRawImplWriteInt64(struct HdfSBufImpl *impl, int64_t value) SbufRawImplWriteInt64() argument
278 SbufRawImplWriteInt32(struct HdfSBufImpl *impl, int32_t value) SbufRawImplWriteInt32() argument
283 SbufRawImplWriteInt16(struct HdfSBufImpl *impl, int16_t value) SbufRawImplWriteInt16() argument
288 SbufRawImplWriteInt8(struct HdfSBufImpl *impl, int8_t value) SbufRawImplWriteInt8() argument
314 SbufRawImplWriteString(struct HdfSBufImpl *impl, const char *value) SbufRawImplWriteString() argument
324 SbufRawImplReadUint64(struct HdfSBufImpl *impl, uint64_t *value) SbufRawImplReadUint64() argument
329 SbufRawImplReadUint32(struct HdfSBufImpl *impl, uint32_t *value) SbufRawImplReadUint32() argument
334 SbufRawImplReadUint16(struct HdfSBufImpl *impl, uint16_t *value) SbufRawImplReadUint16() argument
339 SbufRawImplReadUint8(struct HdfSBufImpl *impl, uint8_t *value) SbufRawImplReadUint8() argument
344 SbufRawImplReadInt64(struct HdfSBufImpl *impl, int64_t *value) SbufRawImplReadInt64() argument
349 SbufRawImplReadInt32(struct HdfSBufImpl *impl, int32_t *value) SbufRawImplReadInt32() argument
354 SbufRawImplReadInt16(struct HdfSBufImpl *impl, int16_t *value) SbufRawImplReadInt16() argument
359 SbufRawImplReadInt8(struct HdfSBufImpl *impl, int8_t *value) SbufRawImplReadInt8() argument
[all...]
H A Dhdf_sbuf.c131 bool HdfSbufWriteUint64(struct HdfSBuf *sbuf, uint64_t value) in HdfSbufWriteUint64() argument
134 return sbuf->impl->writeUint64(sbuf->impl, value); in HdfSbufWriteUint64()
137 bool HdfSbufWriteUint32(struct HdfSBuf *sbuf, uint32_t value) in HdfSbufWriteUint32() argument
140 return sbuf->impl->writeUint32(sbuf->impl, value); in HdfSbufWriteUint32()
143 bool HdfSbufWriteUint16(struct HdfSBuf *sbuf, uint16_t value) in HdfSbufWriteUint16() argument
146 return sbuf->impl->writeUint16(sbuf->impl, value); in HdfSbufWriteUint16()
149 bool HdfSbufWriteUint8(struct HdfSBuf *sbuf, uint8_t value) in HdfSbufWriteUint8() argument
152 return sbuf->impl->writeUint8(sbuf->impl, value); in HdfSbufWriteUint8()
155 bool HdfSbufWriteInt64(struct HdfSBuf *sbuf, int64_t value) in HdfSbufWriteInt64() argument
158 return sbuf->impl->writeInt64(sbuf->impl, value); in HdfSbufWriteInt64()
161 HdfSbufWriteInt32(struct HdfSBuf *sbuf, int32_t value) HdfSbufWriteInt32() argument
167 HdfSbufWriteInt16(struct HdfSBuf *sbuf, int16_t value) HdfSbufWriteInt16() argument
173 HdfSbufWriteInt8(struct HdfSBuf *sbuf, int8_t value) HdfSbufWriteInt8() argument
179 HdfSbufWriteString(struct HdfSBuf *sbuf, const char *value) HdfSbufWriteString() argument
185 HdfSbufWriteString16(struct HdfSBuf *sbuf, const char16_t *value, uint32_t size) HdfSbufWriteString16() argument
191 HdfSbufReadUint64(struct HdfSBuf *sbuf, uint64_t *value) HdfSbufReadUint64() argument
197 HdfSbufReadUint32(struct HdfSBuf *sbuf, uint32_t *value) HdfSbufReadUint32() argument
203 HdfSbufReadUint16(struct HdfSBuf *sbuf, uint16_t *value) HdfSbufReadUint16() argument
209 HdfSbufReadUint8(struct HdfSBuf *sbuf, uint8_t *value) HdfSbufReadUint8() argument
215 HdfSbufReadInt64(struct HdfSBuf *sbuf, int64_t *value) HdfSbufReadInt64() argument
221 HdfSbufReadInt32(struct HdfSBuf *sbuf, int32_t *value) HdfSbufReadInt32() argument
227 HdfSbufReadInt16(struct HdfSBuf *sbuf, int16_t *value) HdfSbufReadInt16() argument
233 HdfSbufReadInt8(struct HdfSBuf *sbuf, int8_t *value) HdfSbufReadInt8() argument
245 HdfSBufWriteString16(struct HdfSBuf *sbuf, const char16_t *value, uint32_t size) HdfSBufWriteString16() argument
[all...]
/drivers/hdf_core/framework/model/sensor/driver/common/src/
H A Dsensor_config_controller.c26 uint16_t value = 0; in SensorOpsRead() local
29 ret = ReadSensor(busCfg, cfgItem->regAddr, (uint8_t *)&value, sizeof(value)); in SensorOpsRead()
32 return value; in SensorOpsRead()
35 static uint32_t GetSensorRegRealValueMask(struct SensorRegCfg *cfgItem, uint32_t *value, uint32_t busMask) in GetSensorRegRealValueMask() argument
38 *value = cfgItem->value & busMask; in GetSensorRegRealValueMask()
42 *value = *value >> cfgItem->shiftNum; in GetSensorRegRealValueMask()
45 *value in GetSensorRegRealValueMask()
55 uint8_t value[SENSOR_SHORT_VALUE_BUTT]; SensorOpsWrite() local
94 uint32_t value = 0; SensorOpsReadCheck() local
116 SensorBitwiseCalculate(struct SensorRegCfg *cfgItem, uint32_t *value, uint32_t valueMask) SensorBitwiseCalculate() argument
152 uint32_t value = 0; SensorOpsUpdateBitwise() local
196 uint8_t *value = NULL; SensorOpsExtBuffWrite() local
[all...]
/drivers/hdf_core/framework/model/input/driver/
H A Devent_hub.h25 int32_t value; member
29 void PushOnePackage(InputDevice *inputDev, uint32_t type, uint32_t code, int32_t value);
32 static inline void ReportAbs(InputDevice *inputDev, uint32_t code, int32_t value) in ReportAbs() argument
34 PushOnePackage(inputDev, EV_ABS, code, value); in ReportAbs()
37 static inline void ReportKey(InputDevice *inputDev, uint32_t code, int32_t value) in ReportKey() argument
39 PushOnePackage(inputDev, EV_KEY, code, !!value); in ReportKey()
42 static inline void ReportRel(InputDevice *inputDev, uint32_t code, int32_t value) in ReportRel() argument
44 PushOnePackage(inputDev, EV_REL, code, value); in ReportRel()
/drivers/hdf_core/framework/include/osal/
H A Dosal_io.h48 * @param value Indicates the data to write.
54 #define OSAL_WRITEB(value, address) writeb(value, address)
58 * @param value Indicates the data to write.
64 #define OSAL_WRITEW(value, address) writew(value, address)
68 * @param value Indicates the data to write.
74 #define OSAL_WRITEL(value, address) writel(value, address)
/drivers/peripheral/distributed_camera/hdi_service/src/utils/
H A Danonymous_string.cpp22 std::string GetAnonyString(const std::string &value) in GetAnonyString() argument
29 size_t strLen = value.length(); in GetAnonyString()
35 res += value[0]; in GetAnonyString()
37 res += value[strLen - 1]; in GetAnonyString()
39 res.append(value, 0, INT32_PLAINTEXT_LENGTH); in GetAnonyString()
41 res.append(value, strLen - INT32_PLAINTEXT_LENGTH, INT32_PLAINTEXT_LENGTH); in GetAnonyString()
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/
H A DAttrEditor.js96 changeDataNodeNotInherit(searchId, type, value) {
98 AttrEditor.gi().changeNodeType(value);
99 } else if (searchId === 'name' && this.node_.name_ !== value) {
100 ModifyNode.modifyName(this.files_, this.root_, this.node_, value);
145 changecopyNode(searchId, type, value) {
146 if (searchId === 'name' && this.node_.name_ !== value) {
147 ModifyNode.modifyName(this.files_, this.root_, this.node_, value);
157 AttrEditor.gi().changeNodeType(value);
179 changeNodeType(value) {
184 AttrEditor.NODE_TYPE_STR.indexOf(value)
[all...]
/drivers/interface/camera/sequenceable/map_data/
H A Dmap_data_sequenceable.h38 int32_t Get(const std::string &key, int32_t &value) const;
39 int32_t Get(const std::string &key, int64_t &value) const;
40 int32_t Get(const std::string &key, double &value) const;
41 int32_t Get(const std::string &key, std::string &value) const;
42 int32_t Set(const std::string &key, int32_t value);
43 int32_t Set(const std::string &key, int64_t value);
44 int32_t Set(const std::string &key, double value);
45 int32_t Set(const std::string &key, const std::string& value);
59 int32_t Get(const std::string &key, MapDataType type, T &value) const;
H A Dmap_data_sequenceable.cpp132 int32_t MapDataSequenceable::Get(const std::string &key, int32_t &value) const in Get()
134 return Get<int32_t>(key, MapDataType::I32, value); in Get()
137 int32_t MapDataSequenceable::Get(const std::string &key, int64_t &value) const in Get()
139 return Get<int64_t>(key, MapDataType::I64, value); in Get()
142 int32_t MapDataSequenceable::Get(const std::string &key, double &value) const in Get()
144 return Get<double>(key, MapDataType::F64, value); in Get()
147 int32_t MapDataSequenceable::Get(const std::string &key, std::string &value) const in Get()
149 return Get<std::string>(key, MapDataType::STRING, value); in Get()
152 int32_t MapDataSequenceable::Set(const std::string &key, int32_t value) in Set() argument
154 return Set(key, MapDataType::I32, value); in Set()
157 Set(const std::string &key, int64_t value) Set() argument
162 Set(const std::string &key, double value) Set() argument
167 Set(const std::string &key, const std::string& value) Set() argument
[all...]
/drivers/interface/display/composer/command_pack/
H A Dcommand_data_unpacker.h37 bool ReadUint64(uint64_t& value) in ReadUint64() argument
39 return Read<uint64_t>(value); in ReadUint64()
42 bool ReadUint32(uint32_t& value) in ReadUint32() argument
44 return Read<uint32_t>(value); in ReadUint32()
47 bool ReadUint8(uint8_t& value) in ReadUint8() argument
52 value = static_cast<uint8_t>(intVal & 0xFF); in ReadUint8()
58 bool ReadInt32(int32_t& value) in ReadInt32() argument
60 return Read<int32_t>(value); in ReadInt32()
63 bool ReadBool(bool& value) in ReadBool() argument
68 value in ReadBool()
149 Read(T& value) Read() argument
[all...]
/drivers/hdf_core/framework/tools/hc-gen/src/
H A Dlexer.cpp251 std::string value; in LexFromString() local
260 value.push_back(c); in LexFromString()
268 token.strval = std::move(value); in LexFromString()
273 void Lexer::LexHexAndBinaryNum(std::string &value, char &c, uint64_t &v) in LexHexAndBinaryNum() argument
280 value.push_back(c); in LexHexAndBinaryNum()
283 v = static_cast<uint64_t>(strtoll(value.data(), nullptr, HEX_NUM)); in LexHexAndBinaryNum()
288 value.push_back(c); in LexHexAndBinaryNum()
291 v = static_cast<uint64_t>(strtoll(value.data(), nullptr, BINARY_NUM)); in LexHexAndBinaryNum()
299 std::string value; in LexFromNumber() local
314 value in LexFromNumber()
345 std::string value; LexFromLiteral() local
[all...]
H A Ddecompile.cpp64 bool Decompile::ReadUint32(uint32_t &value) in ReadUint32() argument
66 return ReadFile(reinterpret_cast<char *>(&value), sizeof(uint32_t)); in ReadUint32()
69 bool Decompile::ReadUint8(uint8_t &value) in ReadUint8() argument
76 value = static_cast<uint8_t>(readValue); in ReadUint8()
79 return ReadFile(reinterpret_cast<char *>(&value), sizeof(uint8_t)); in ReadUint8()
82 bool Decompile::ReadUint16(uint16_t &value) in ReadUint16() argument
89 value = static_cast<uint16_t>(readValue); in ReadUint16()
92 return ReadFile(reinterpret_cast<char *>(&value), sizeof(uint16_t)); in ReadUint16()
95 bool Decompile::ReadUint64(uint64_t &value) in ReadUint64() argument
97 return ReadFile(reinterpret_cast<char *>(&value), sizeo in ReadUint64()
100 ReadString(std::string &value) ReadString() argument
126 uint8_t value = 0; GetNextByteCode() local
183 auto value = RebuildObject(childOpCode); RebuildTerm() local
[all...]
/drivers/liteos/hievent/src/
H A Dhiview_hievent.c74 char *value; member
101 payload->value = NULL; in HiviewHieventPayloadCreate()
113 if (p->value) { in HiviewHieventPayloadDestroy()
114 LOS_MemFree((VOID *)OS_SYS_MEM_ADDR, p->value); in HiviewHieventPayloadDestroy()
171 const char *key, long value) in HiviewHieventPutIntegral()
191 if (payload->value) { in HiviewHieventPutIntegral()
192 LOS_MemFree((VOID *)OS_SYS_MEM_ADDR, payload->value); in HiviewHieventPutIntegral()
195 payload->value = LOS_MemAlloc((VOID *)OS_SYS_MEM_ADDR, INT_TYPE_MAX_LEN); in HiviewHieventPutIntegral()
196 if (!payload->value) { in HiviewHieventPutIntegral()
199 (VOID)memset_s(payload->value, INT_TYPE_MAX_LE in HiviewHieventPutIntegral()
170 HiviewHieventPutIntegral(struct HiviewHievent *event, const char *key, long value) HiviewHieventPutIntegral() argument
209 HiviewHieventPutString(struct HiviewHievent *event, const char *key, const char *value) HiviewHieventPutString() argument
306 HiviewHieventMakeRegular(char *value) HiviewHieventMakeRegular() argument
392 char *value = NULL; HiviewHieventFillPayload() local
[all...]

Completed in 11 milliseconds

12345678910>>...18