/drivers/hdf_core/framework/utils/src/hcs_parser/ |
D | hcs_tree_if.c | 31 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 { … argument 46 …if (((attr) == NULL) || ((attr)->value == NULL) || ((value) == NULL)) { … 49 …if ((value) != NULL) { … 50 … *(value) = (def); \ 56 int32_t HcsGetUint8(const struct DeviceResourceNode *node, const char *attrName, uint8_t *value, ui… in HcsGetUint8() argument 59 RETURN_DEFAULT_VALUE(attr, attrName, value, def); in HcsGetUint8() [all …]
|
/drivers/peripheral/vibrator/chipset/drv2605l/ |
D | vibrator_drv2605l_driver.c | 117 uint8_t value; in DetectDrv2605lDevice() local 132 …et = 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_INDEX]); in InitDrv2605lChip() 160 value[DRV2605L_ADDR_INDEX] = (uint8_t)DRV2605_REG_FEEDBACK; in InitDrv2605lChip() 161 value[DRV2605L_VALUE_INDEX] = (uint8_t)DRV2605_MODE_LRA; in InitDrv2605lChip() [all …]
|
/drivers/hdf_core/framework/utils/include/ |
D | hdf_sbuf_impl.h | 28 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/ |
D | string_helper.cpp | 47 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.size(); in EndWith() [all …]
|
D | string_helper.h | 22 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 … 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::strin… 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/adapter/uhdf2/ipc/src/ |
D | hdf_sbuf_impl_hipc.cpp | 66 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() [all …]
|
/drivers/hdf_core/framework/model/sensor/driver/common/src/ |
D | sensor_config_controller.c | 26 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 b… in GetSensorRegRealValueMask() argument 38 *value = cfgItem->value & busMask; in GetSensorRegRealValueMask() 42 *value = *value >> cfgItem->shiftNum; in GetSensorRegRealValueMask() 45 *value = *value << cfgItem->shiftNum; in GetSensorRegRealValueMask() 55 uint8_t value[SENSOR_SHORT_VALUE_BUTT]; in SensorOpsWrite() local 67 value[SENSOR_SHORT_VALUE_INDEX0] = cfgItem->regAddr; in SensorOpsWrite() 69 value[SENSOR_SHORT_VALUE_INDEX1] = originValue & mask; in SensorOpsWrite() [all …]
|
/drivers/hdf_core/framework/test/unittest/osal/ |
D | osal_work_test.c | 106 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 = OsalAtomicRead(&atomic); in OsalTestAtomic() [all …]
|
/drivers/peripheral/usb/ddk/host/src/ |
D | ddk_sysfs_device.c | 45 static int32_t DdkSysfsReadProperty(const char *deviceDir, const char *propName, int64_t *value, ui… 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_MAX); in DdkSysfsGetInterface() [all …]
|
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/ |
D | hdf_command_handler_base.py | 47 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/interfaces/inner_api/utils/ |
D | hdf_sbuf.h | 90 bool HdfSbufWriteUint64(struct HdfSBuf *sbuf, uint64_t value); 101 bool HdfSbufWriteUint32(struct HdfSBuf *sbuf, uint32_t value); 112 bool HdfSbufWriteUint16(struct HdfSBuf *sbuf, uint16_t value); 123 bool HdfSbufWriteUint8(struct HdfSBuf *sbuf, uint8_t value); 134 bool HdfSbufWriteInt64(struct HdfSBuf *sbuf, int64_t value); 145 bool HdfSbufWriteInt32(struct HdfSBuf *sbuf, int32_t value); 156 bool HdfSbufWriteInt16(struct HdfSBuf *sbuf, int16_t value); 167 bool HdfSbufWriteInt8(struct HdfSBuf *sbuf, int8_t value); 178 bool HdfSbufWriteString(struct HdfSBuf *sbuf, const char *value); 191 bool HdfSbufWriteString16(struct HdfSBuf *sbuf, const char16_t *value, uint32_t size); [all …]
|
D | hcs_tree_if.h | 25 int32_t HcsGetUint8(const struct DeviceResourceNode *node, const char *attrName, uint8_t *value, ui… 27 uint8_t *value, uint8_t def); 28 …nt8Array(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, … 32 uint16_t *value, uint16_t def); 33 …16Array(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, … 37 uint32_t *value, uint32_t def); 38 …2_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, … [all …]
|
D | device_resource_if.h | 60 const char *value; /**< Pointer to the attribute value */ member 126 …int32_t (*GetUint8)(const struct DeviceResourceNode *node, const char *attrName, uint8_t *value, u… 143 uint8_t *value, uint8_t def); 162 …t8Array)(const struct DeviceResourceNode *node, const char *attrName, uint8_t *value, uint32_t len, 177 …int16)(const struct DeviceResourceNode *node, const char *attrName, uint16_t *value, uint16_t def); 193 uint16_t *value, uint16_t def); 211 …2_t (*GetUint16Array)(const struct DeviceResourceNode *node, const char *attrName, uint16_t *value, 226 …int32)(const struct DeviceResourceNode *node, const char *attrName, uint32_t *value, uint32_t def); 242 uint32_t *value, uint32_t def); 260 …2_t (*GetUint32Array)(const struct DeviceResourceNode *node, const char *attrName, uint32_t *value, [all …]
|
/drivers/hdf_core/framework/utils/src/ |
D | hdf_sbuf_impl_raw.c | 249 static bool SbufRawImplWriteUint64(struct HdfSBufImpl *impl, uint64_t value) in SbufRawImplWriteUint64() argument 251 return SbufRawImplWrite(impl, (uint8_t *)(&value), sizeof(value)); in SbufRawImplWriteUint64() 254 static bool SbufRawImplWriteUint32(struct HdfSBufImpl *impl, uint32_t value) in SbufRawImplWriteUint32() argument 256 return SbufRawImplWrite(impl, (uint8_t *)(&value), sizeof(value)); in SbufRawImplWriteUint32() 259 static bool SbufRawImplWriteUint16(struct HdfSBufImpl *impl, uint16_t value) in SbufRawImplWriteUint16() argument 261 return SbufRawImplWrite(impl, (uint8_t *)(&value), sizeof(value)); in SbufRawImplWriteUint16() 264 static bool SbufRawImplWriteUint8(struct HdfSBufImpl *impl, uint8_t value) in SbufRawImplWriteUint8() argument 266 return SbufRawImplWrite(impl, (uint8_t *)(&value), sizeof(value)); in SbufRawImplWriteUint8() 269 static bool SbufRawImplWriteInt64(struct HdfSBufImpl *impl, int64_t value) in SbufRawImplWriteInt64() argument 271 return SbufRawImplWrite(impl, (uint8_t *)(&value), sizeof(value)); in SbufRawImplWriteInt64() [all …]
|
D | hdf_sbuf.c | 133 bool HdfSbufWriteUint64(struct HdfSBuf *sbuf, uint64_t value) in HdfSbufWriteUint64() argument 136 return sbuf->impl->writeUint64(sbuf->impl, value); in HdfSbufWriteUint64() 139 bool HdfSbufWriteUint32(struct HdfSBuf *sbuf, uint32_t value) in HdfSbufWriteUint32() argument 142 return sbuf->impl->writeUint32(sbuf->impl, value); in HdfSbufWriteUint32() 145 bool HdfSbufWriteUint16(struct HdfSBuf *sbuf, uint16_t value) in HdfSbufWriteUint16() argument 148 return sbuf->impl->writeUint16(sbuf->impl, value); in HdfSbufWriteUint16() 151 bool HdfSbufWriteUint8(struct HdfSBuf *sbuf, uint8_t value) in HdfSbufWriteUint8() argument 154 return sbuf->impl->writeUint8(sbuf->impl, value); in HdfSbufWriteUint8() 157 bool HdfSbufWriteInt64(struct HdfSBuf *sbuf, int64_t value) in HdfSbufWriteInt64() argument 160 return sbuf->impl->writeInt64(sbuf->impl, value); in HdfSbufWriteInt64() [all …]
|
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/ |
D | AttrEditor.js | 96 changeDataNodeNotInherit(searchId, type, value) { argument 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) { argument 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) { argument 184 AttrEditor.NODE_TYPE_STR.indexOf(value) [all …]
|
/drivers/hdf_core/framework/model/input/driver/ |
D | event_hub.h | 25 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/liteos/hievent/src/ |
D | hiview_hievent.c | 74 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() argument 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_LEN, 0, INT_TYPE_MAX_LEN); in HiviewHieventPutIntegral() [all …]
|
/drivers/hdf_core/framework/include/osal/ |
D | osal_io.h | 54 #define OSAL_WRITEB(value, address) writeb(value, address) argument 64 #define OSAL_WRITEW(value, address) writew(value, address) argument 74 #define OSAL_WRITEL(value, address) writel(value, address) argument
|
/drivers/hdf_core/framework/tools/hc-gen/src/ |
D | lexer.cpp | 251 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.push_back(c); in LexFromNumber() [all …]
|
/drivers/peripheral/distributed_camera/hdi_service/src/utils/ |
D | anonymous_string.cpp | 22 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/interface/camera/sequenceable/map_data/ |
D | map_data_sequenceable.h | 38 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;
|
D | map_data_sequenceable.cpp | 132 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() [all …]
|
/drivers/interface/display/composer/command_pack/ |
D | command_data_unpacker.h | 37 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 = (intVal == 0 ? false : true); in ReadBool() [all …]
|
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/hcs/ |
D | lexer.js | 198 let value = ''; 205 value += toStr(c); 210 if (value === 'true') { 214 } else if (value === 'false') { 220 if (value in this.keyWords_) { 221 token.type = this.keyWords_[value]; 225 if (value.indexOf('.') >= 0) { 232 token.strval = value; 264 param.value += toStr(c); 266 param.v = parseInt(param.value, 8); [all …]
|