Home
last modified time | relevance | path

Searched refs:buff (Results 1 - 25 of 598) sorted by relevance

12345678910>>...24

/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/span/
H A Dtlv_util.cpp20 void TLVUtil::WriteString(std::vector<uint8_t>& buff, const std::string& value) in WriteString() argument
22 WriteUint8(buff, TLV_STRING_TAG); in WriteString()
23 WriteInt32(buff, value.length()); in WriteString()
25 WriteUint8(buff, static_cast<uint8_t>(ch)); in WriteString()
29 std::string TLVUtil::ReadString(std::vector<uint8_t>& buff, int32_t& cursor) in ReadString() argument
31 if (ReadUint8(buff, cursor) != TLV_STRING_TAG) { in ReadString()
34 int32_t strLen = ReadInt32(buff, cursor); in ReadString()
40 uint8_t chVal = ReadUint8(buff, cursor); in ReadString()
49 void TLVUtil::WriteDouble(std::vector<uint8_t>& buff, double value) in WriteDouble() argument
51 WriteUint8(buff, TLV_DOUBLE_TA in WriteDouble()
58 ReadDouble(std::vector<uint8_t>& buff, int32_t& cursor) ReadDouble() argument
71 WriteColor(std::vector<uint8_t>& buff, Color& value) WriteColor() argument
80 ReadColor(std::vector<uint8_t>& buff, int32_t& cursor) ReadColor() argument
92 WriteDimension(std::vector<uint8_t>& buff, const Dimension& value) WriteDimension() argument
99 ReadDimension(std::vector<uint8_t>& buff, int32_t& cursor) ReadDimension() argument
109 WriteFontFamily(std::vector<uint8_t>& buff, std::vector<std::string>& value) WriteFontFamily() argument
118 ReadFontFamily(std::vector<uint8_t>& buff, int32_t& cursor) ReadFontFamily() argument
132 WriteTextShadow(std::vector<uint8_t>& buff, Shadow& value) WriteTextShadow() argument
144 ReadTextShadow(std::vector<uint8_t>& buff, int32_t& cursor) ReadTextShadow() argument
163 WriteTextShadows(std::vector<uint8_t>& buff, std::vector<Shadow>& value) WriteTextShadows() argument
172 ReadTextShadows(std::vector<uint8_t>& buff, int32_t& cursor) ReadTextShadows() argument
185 WriteFontFeature(std::vector<uint8_t>& buff, std::list<std::pair<std::string, int32_t>>& value) WriteFontFeature() argument
195 ReadFontFeature(std::vector<uint8_t>& buff, int32_t& cursor) ReadFontFeature() argument
210 WriteBorderRadiusProperty(std::vector<uint8_t>& buff, NG::BorderRadiusProperty& value) WriteBorderRadiusProperty() argument
220 ReadBorderRadiusProperty(std::vector<uint8_t>& buff, int32_t& cursor) ReadBorderRadiusProperty() argument
246 WritePixelMap(std::vector<uint8_t>& buff, RefPtr<Ace::PixelMap>& pixelMap) WritePixelMap() argument
259 ReadPixelMap(std::vector<uint8_t>& buff, int32_t& cursor) ReadPixelMap() argument
274 WriteCalcDimension(std::vector<uint8_t>& buff, CalcDimension& value) WriteCalcDimension() argument
280 ReadCalcDimension(std::vector<uint8_t>& buff, int32_t& cursor) ReadCalcDimension() argument
290 WriteCalcLength(std::vector<uint8_t>& buff, NG::CalcLength& value) WriteCalcLength() argument
297 ReadCalcLength(std::vector<uint8_t>& buff, int32_t& cursor) ReadCalcLength() argument
310 WriteImageSpanSize(std::vector<uint8_t>& buff, ImageSpanSize& value) WriteImageSpanSize() argument
324 ReadImageSpanSize(std::vector<uint8_t>& buff, int32_t& cursor) ReadImageSpanSize() argument
348 WritePaddingProperty(std::vector<uint8_t>& buff, NG::PaddingProperty& value) WritePaddingProperty() argument
370 ReadPaddingProperty(std::vector<uint8_t>& buff, int32_t& cursor) ReadPaddingProperty() argument
402 WriteImageSpanAttribute(std::vector<uint8_t>& buff, ImageSpanAttribute& value) WriteImageSpanAttribute() argument
432 ReadImageSpanAttribute(std::vector<uint8_t>& buff, int32_t& cursor) ReadImageSpanAttribute() argument
472 WriteLeadingMargin(std::vector<uint8_t>& buff, NG::LeadingMargin& value) WriteLeadingMargin() argument
485 ReadLeadingMargin(std::vector<uint8_t>& buff, int32_t& cursor) ReadLeadingMargin() argument
[all...]
H A Dtlv_util.h142 static void Write##type(std::vector<uint8_t>& buff, type value) \
144 WriteUint8(buff, tag); \
145 WriteInt32(buff, static_cast<int32_t>(value)); \
147 static type Read##type(std::vector<uint8_t>& buff, int32_t& cursor) \
149 if (ReadUint8(buff, cursor) != (tag)) { \
152 auto val = ReadInt32(buff, cursor); \
158 static void WriteUint8(std::vector<uint8_t>& buff, uint8_t value) in WriteUint8() argument
160 buff.push_back(value); in WriteUint8()
163 static uint8_t ReadUint8(std::vector<uint8_t>& buff, int32_t& cursor) in ReadUint8() argument
165 if (static_cast<size_t>(cursor + 1) > buff in ReadUint8()
171 WriteInt32(std::vector<uint8_t>& buff, int32_t value) WriteInt32() argument
180 ReadInt32(std::vector<uint8_t>& buff, int32_t& cursor) ReadInt32() argument
[all...]
/base/security/device_auth/common_lib/impl/src/
H A Duint8buff_utils.c23 int32_t InitUint8Buff(Uint8Buff *buff, uint32_t buffLen) in InitUint8Buff() argument
25 if (buff == NULL) { in InitUint8Buff()
31 buff->val = (uint8_t *)HcMalloc(buffLen, 0); in InitUint8Buff()
32 if (buff->val == NULL) { in InitUint8Buff()
35 buff->length = buffLen; in InitUint8Buff()
39 int32_t DeepCopyUint8Buff(const Uint8Buff *buff, Uint8Buff *newBuff) in DeepCopyUint8Buff() argument
41 if (buff == NULL || buff->val == NULL || newBuff == NULL) { in DeepCopyUint8Buff()
44 if (buff->length == 0) { in DeepCopyUint8Buff()
47 uint8_t *val = (uint8_t *)HcMalloc(buff in DeepCopyUint8Buff()
57 FreeUint8Buff(Uint8Buff *buff) FreeUint8Buff() argument
67 ClearFreeUint8Buff(Uint8Buff *buff) ClearFreeUint8Buff() argument
78 IsUint8BuffValid(const Uint8Buff *buff, uint32_t maxLen) IsUint8BuffValid() argument
83 ToLowerCase(Uint8Buff *buff) ToLowerCase() argument
[all...]
/base/telephony/sms_mms/frameworks/native/mms/src/
H A Dmms_header.cpp40 auto func = [this](uint8_t fieldId, MmsDecodeBuffer &buff, int32_t &len) { in InitOctetHandleFun()
41 return DecodeFieldOctetValue(fieldId, buff, len); in InitOctetHandleFun()
61 memberFuncMap_[MMS_MM_FLAGS] = [this](uint8_t fieldId, MmsDecodeBuffer &buff, int32_t &len) { in InitOctetHandleFun()
62 return DecodeFieldMMFlag(fieldId, buff, len); in InitOctetHandleFun()
65 memberFuncMap_[MMS_MBOX_TOTALS] = [this](uint8_t fieldId, MmsDecodeBuffer &buff, int32_t &len) { in InitOctetHandleFun()
66 return DecodeFieldMBox(fieldId, buff, len); in InitOctetHandleFun()
68 memberFuncMap_[MMS_MBOX_QUOTAS] = [this](uint8_t fieldId, MmsDecodeBuffer &buff, int32_t &len) { in InitOctetHandleFun()
69 return DecodeFieldMBox(fieldId, buff, len); in InitOctetHandleFun()
74 memberFuncMap_[MMS_MESSAGE_TYPE] = [this](uint8_t fieldId, MmsDecodeBuffer &buff, int32_t &len) { in InitOctetHandleFun()
75 return DecodeMmsMsgType(fieldId, buff, le in InitOctetHandleFun()
591 DecodeMmsMsgType(uint8_t fieldId, MmsDecodeBuffer &buff, int32_t &len) DecodeMmsMsgType() argument
624 DecodeFieldAddressModelValue(uint8_t fieldId, MmsDecodeBuffer &buff, int32_t &len) DecodeFieldAddressModelValue() argument
651 DecodeFieldOctetValue(uint8_t fieldId, MmsDecodeBuffer &buff, int32_t &len) DecodeFieldOctetValue() argument
667 DecodeFieldLongValue(uint8_t fieldId, MmsDecodeBuffer &buff, int32_t &len) DecodeFieldLongValue() argument
710 DecodeFieldTextStringValue(uint8_t fieldId, MmsDecodeBuffer &buff, int32_t &len) DecodeFieldTextStringValue() argument
730 DecodeFieldEncodedStringValue(uint8_t fieldId, MmsDecodeBuffer &buff, int32_t &len) DecodeFieldEncodedStringValue() argument
759 DecodeFromValue(uint8_t fieldId, MmsDecodeBuffer &buff, int32_t &len) DecodeFromValue() argument
826 DecodeMmsContentType(uint8_t fieldId, MmsDecodeBuffer &buff, int32_t &len) DecodeMmsContentType() argument
853 DecodeFieldIntegerValue(uint8_t fieldId, MmsDecodeBuffer &buff, int32_t &len) DecodeFieldIntegerValue() argument
882 DecodeFieldDate(uint8_t fieldId, MmsDecodeBuffer &buff, int32_t &len) DecodeFieldDate() argument
931 DecodeFieldPreviouslySentDate(uint8_t fieldId, MmsDecodeBuffer &buff, int32_t &len) DecodeFieldPreviouslySentDate() argument
974 DecodeFieldMBox(uint8_t fieldId, MmsDecodeBuffer &buff, int32_t &len) DecodeFieldMBox() argument
1015 DecodeFieldMMFlag(uint8_t fieldId, MmsDecodeBuffer &buff, int32_t &len) DecodeFieldMMFlag() argument
1051 EncodeOctetValue(MmsEncodeBuffer &buff, uint8_t fieldId, uint8_t value) EncodeOctetValue() argument
1064 EncodeShortIntegerValue(MmsEncodeBuffer &buff, uint8_t fieldId, int64_t value) EncodeShortIntegerValue() argument
1077 EncodeTextStringValue(MmsEncodeBuffer &buff, uint8_t fieldId, std::string value) EncodeTextStringValue() argument
1094 EncodeEncodeStringValue(MmsEncodeBuffer &buff, uint8_t fieldId, MmsEncodeString value) EncodeEncodeStringValue() argument
1117 EncodeLongIntergerValue(MmsEncodeBuffer &buff, uint8_t fieldId, int64_t value) EncodeLongIntergerValue() argument
1130 EncodeOctetValueFromMap(MmsEncodeBuffer &buff, uint8_t fieldId) EncodeOctetValueFromMap() argument
1144 EncodeTextStringValueFromMap(MmsEncodeBuffer &buff, uint8_t fieldId) EncodeTextStringValueFromMap() argument
1158 EnocdeEncodeStringValueFromMap(MmsEncodeBuffer &buff, uint8_t fieldId) EnocdeEncodeStringValueFromMap() argument
1172 EncodeLongIntergerValueFromMap(MmsEncodeBuffer &buff, uint8_t fieldId) EncodeLongIntergerValueFromMap() argument
1186 EncodeFieldExpriyValue(MmsEncodeBuffer &buff, int64_t value) EncodeFieldExpriyValue() argument
1225 EncodeFieldFromValue(MmsEncodeBuffer &buff, std::vector<MmsAddress> &addr) EncodeFieldFromValue() argument
1268 EncodeMultipleAddressValue(MmsEncodeBuffer &buff, uint8_t fieldId, std::vector<MmsAddress> &addrs) EncodeMultipleAddressValue() argument
1290 EcondeFieldMessageClassValue(MmsEncodeBuffer &buff) EcondeFieldMessageClassValue() argument
1317 EncodeCommontFieldValue(MmsEncodeBuffer &buff) EncodeCommontFieldValue() argument
1350 EncodeMmsSendReq(MmsEncodeBuffer &buff) EncodeMmsSendReq() argument
1387 EncodeMmsSendConf(MmsEncodeBuffer &buff) EncodeMmsSendConf() argument
1406 EncodeMmsNotificationInd(MmsEncodeBuffer &buff) EncodeMmsNotificationInd() argument
1449 EnocdeMmsNotifyRespInd(MmsEncodeBuffer &buff) EnocdeMmsNotifyRespInd() argument
1468 EnocdeMmsRetrieveConf(MmsEncodeBuffer &buff) EnocdeMmsRetrieveConf() argument
1528 EnocdeMmsAcknowledgeInd(MmsEncodeBuffer &buff) EnocdeMmsAcknowledgeInd() argument
1542 EnocdeMmsDeliveryInd(MmsEncodeBuffer &buff) EnocdeMmsDeliveryInd() argument
1577 EncodeMmsReadRecInd(MmsEncodeBuffer &buff) EncodeMmsReadRecInd() argument
1620 EncodeMmsReadOrigInd(MmsEncodeBuffer &buff) EncodeMmsReadOrigInd() argument
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/malloc/
H A Dmemalign.c30 void *buff = (void *)memalign(align, 8 * align); in memalign_0100() local
31 EXPECT_TRUE("memalign_0100", buff != NULL); in memalign_0100()
32 free(buff); in memalign_0100()
33 buff = NULL; in memalign_0100()
45 void *buff = NULL; in memalign_0200() local
46 buff = (void *)memalign(align, 8 * align); in memalign_0200()
47 EXPECT_TRUE("memalign_0200", buff != NULL); in memalign_0200()
48 free(buff); in memalign_0200()
49 buff = NULL; in memalign_0200()
62 void *buff in memalign_0300() local
78 void *buff = (void *)memalign(align, SIZE_MAX - align + 1); memalign_0400() local
93 void *buff = (void *)memalign(align, align * 1024); memalign_0500() local
[all...]
/base/telephony/sms_mms/frameworks/native/mms/include/
H A Dmms_header.h58 bool DecodeMmsMsgType(uint8_t fieldId, MmsDecodeBuffer &buff, int32_t &len);
59 bool DecodeFieldAddressModelValue(uint8_t fieldId, MmsDecodeBuffer &buff, int32_t &len);
60 bool DecodeFieldOctetValue(uint8_t fieldId, MmsDecodeBuffer &buff, int32_t &len);
61 bool DecodeFieldLongValue(uint8_t fieldId, MmsDecodeBuffer &buff, int32_t &len);
62 bool DecodeFieldIntegerValue(uint8_t fieldId, MmsDecodeBuffer &buff, int32_t &len);
63 bool DecodeFieldTextStringValue(uint8_t fieldId, MmsDecodeBuffer &buff, int32_t &len);
64 bool DecodeFieldEncodedStringValue(uint8_t fieldId, MmsDecodeBuffer &buff, int32_t &len);
65 bool DecodeFromValue(uint8_t fieldId, MmsDecodeBuffer &buff, int32_t &len);
67 bool DecodeMmsContentType(uint8_t fieldId, MmsDecodeBuffer &buff, int32_t &len);
68 bool DecodeFieldDate(uint8_t fieldId, MmsDecodeBuffer &buff, int32_
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/gestures/
H A Dpan_gesture.cpp56 void PanGesture::SerializeTo(char* buff) in SerializeTo() argument
58 *reinterpret_cast<int32_t*>(buff) = fingers_; in SerializeTo()
59 buff += sizeof(int32_t); in SerializeTo()
60 *reinterpret_cast<GesturePriority*>(buff) = priority_; in SerializeTo()
61 buff += sizeof(GesturePriority); in SerializeTo()
62 *reinterpret_cast<GestureMask*>(buff) = gestureMask_; in SerializeTo()
63 buff += sizeof(GestureMask); in SerializeTo()
64 *reinterpret_cast<PanDirection*>(buff) = direction_; in SerializeTo()
65 buff += sizeof(PanDirection); in SerializeTo()
66 *reinterpret_cast<double*>(buff) in SerializeTo()
93 Deserialize(const char* buff) Deserialize() argument
[all...]
H A Dgesture_group.cpp58 int32_t GestureGroup::Deserialize(const char* buff) in Deserialize() argument
60 if (buff == nullptr) { in Deserialize()
63 int32_t* plen = reinterpret_cast<int32_t*>(const_cast<char*>(buff) + sizeof(GestureType)); in Deserialize()
77 buff += sizeof(GestureType) + sizeof(int32_t); in Deserialize()
78 mode_ = *reinterpret_cast<GestureMode*>(const_cast<char*>(buff)); in Deserialize()
83 buff += sizeof(GestureMode); in Deserialize()
85 auto gesture = MakeGesture(*(GestureType*)buff); in Deserialize()
86 auto len = gesture->Deserialize(buff); in Deserialize()
87 buff += len; in Deserialize()
121 int32_t GestureGroup::Serialize(char* buff) in Serialize() argument
[all...]
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_hal/unittest/
H A Dwifi_hal_crpc_server_add_test.cpp92 char buff[] = "N\tP2pSetRandomMac\t1"; in HWTEST_F() local
93 mContext->oneProcess = buff; in HWTEST_F()
95 mContext->nSize = strlen(buff); in HWTEST_F()
108 char buff[] = "N\tP2pSetDeviceName\tp2p_device_name"; in HWTEST_F() local
109 mContext->oneProcess = buff; in HWTEST_F()
111 mContext->nSize = strlen(buff); in HWTEST_F()
124 char buff[] = "N\tP2pSetSsidPostfixName\tp2p_postfix_name"; in HWTEST_F() local
125 mContext->oneProcess = buff; in HWTEST_F()
127 mContext->nSize = strlen(buff); in HWTEST_F()
140 char buff[] in HWTEST_F() local
156 char buff[] = "N\\tP2pSetWpsConfigMethods\\tp2p_config_methods"; HWTEST_F() local
172 char buff[] = "N\\tP2pGetDeviceAddress\\t17"; HWTEST_F() local
214 char buff[] = "N\\tP2pSetupWpsPbc\\tp2p-dev-wlan0\\t00:00:00:00:00:00"; HWTEST_F() local
230 char buff[] = "N\\tP2pSetupWpsPiN\\tp2p-dev-wlan0\\t00:00:00:00:00:00\\t123456789\\t8\\t"; HWTEST_F() local
246 char buff[] = "N\\tP2pRemoveNetwork\\t1"; HWTEST_F() local
269 char buff[] = "N\\tP2pSetGroupMaxIdle\\tp2p-dev-wlan0\\t1"; HWTEST_F() local
285 char buff[] = "N\\tP2pSetPowerSave\\tp2p-dev-wlan0\\t1"; HWTEST_F() local
301 char buff[] = "N\\tP2pSetWfdEnable\\t1"; HWTEST_F() local
317 char buff[] = "N\\tP2pSetWfdDeviceConfig\\tp2p_device_config"; HWTEST_F() local
333 char buff[] = "N\\tP2pStartFind\\t120"; HWTEST_F() local
356 char buff[] = "N\\tP2pSetExtListeN\\t0\\t0\\t0"; HWTEST_F() local
372 char buff[] = "N\\tP2pSetListenChannel\\t0\\t0"; HWTEST_F() local
388 char buff[] = "N\\tP2pConnect\\t0\\t0\\t0\\t0\\t00:00:00:00:00:00\\t12345678"; HWTEST_F() local
416 char buff[] = "N\\tP2pProvisionDiscovery\\t00:00:00:00:00:00\\t1"; HWTEST_F() local
432 char buff[] = "N\\tP2pAddGroup\\t0\\t1\\t0"; HWTEST_F() local
448 char buff[] = "N\\tP2pRemoveGroup\\tp2p-dev-wlan0"; HWTEST_F() local
464 char buff[] = "N\\tP2pInvite\\t0\\tp2p-dev-wlan0"; HWTEST_F() local
480 char buff[] = "N\\tP2pReinvoke\\t0\\t00:00:00:00:00:00"; HWTEST_F() local
496 char buff[] = "N\\tP2pGetGroupCapability\\t00:00:00:00:00:00"; HWTEST_F() local
512 char buff[] = "N\\tP2pAddService\\tx\\t0\\tservice_name"; HWTEST_F() local
543 char buff[] = "N\\tP2pRemoveService\\tx\\t0\\tservice_name"; HWTEST_F() local
574 char buff[] = "N\\tP2pReqServiceDiscovery\\t00:00:00:00:00:00\\tdiscover message"; HWTEST_F() local
590 char buff[] = "N\\tP2pCancelServiceDiscovery\\tdiscover message"; HWTEST_F() local
606 char buff[] = "N\\tP2pSetMiracastType\\tx\\t"; HWTEST_F() local
622 char buff[] = "N\\tP2pRespServerDiscovery\\t0\\t0\\t00:00:00:00:00:00\\ttlvs message"; HWTEST_F() local
638 char buff[] = "N\\tP2pSetServDiscExternal\\tx\\t"; HWTEST_F() local
654 char buff[] = "N\\tP2pSetPersistentReconnect\\tx\\t"; HWTEST_F() local
675 char buff[] = "N\\tP2pRemoveNetwork\\t18\\t"; HWTEST_F() local
689 char buff[] = "N\\tRpcP2pSetGroupConfig\\t18\\t"; HWTEST_F() local
703 char buff[] = "N\\tRpcP2pGetFrequencies\\t18\\t"; HWTEST_F() local
717 char buff[] = "N\\tRpcP2pGetPeer\\t18\\t"; HWTEST_F() local
[all...]
H A Dwifi_hal_crpc_server_test.cpp100 char buff[] = "N\tIncorrectTypeInputMessage"; in HWTEST_F() local
101 mContext->oneProcess = buff; in HWTEST_F()
103 mContext->nSize = strlen(buff); in HWTEST_F()
382 char buff[] = "N\tGetName\tx\t"; in HWTEST_F() local
383 mContext->oneProcess = buff; in HWTEST_F()
385 mContext->nSize = strlen(buff); in HWTEST_F()
405 char buff[] = "N\tRegisterEventCallback\tasdgfd\t"; in HWTEST_F() local
406 mContext->oneProcess = buff; in HWTEST_F()
408 mContext->nSize = strlen(buff); in HWTEST_F()
426 char buff[] in HWTEST_F() local
454 char buff[] = "N\\tGetWifiChip\\tadsgfsd\\t"; HWTEST_F() local
470 char buff[] = "N\\tGetWifiChipIds\\tx\\t"; HWTEST_F() local
493 char buff[] = "N\\tCreateIface\\tfdshajkdsghk\\t"; HWTEST_F() local
509 char buff[] = "N\\tGetIface\\twlan0"; HWTEST_F() local
530 char buff[] = "N\\tGetIfaceNames\\tasdgf\\tasdgf\\t"; HWTEST_F() local
551 char buff[] = "N\\tRemoveIface\\twlan0"; HWTEST_F() local
579 char buff[] = "N\\tGetSupportedComboModes\\tasdgds\\t"; HWTEST_F() local
595 char buff[] = "N\\tConfigComboModes\\tasdgds\\t"; HWTEST_F() local
618 char buff[] = "N\\tRequestFirmwareDebugDump\\tasdgds\\t"; HWTEST_F() local
676 char buff[] = "N\\tRequestToSupplicant\\tasdf\\t"; HWTEST_F() local
697 char buff[] = "N\\tSetPowerSave\\tfds\\t"; HWTEST_F() local
713 char buff[] = "N\\tWpaSetCountryCode\\tCHINA\\t"; HWTEST_F() local
736 char buff[] = "N\\tStartScan\\tx\\t10\\tscan_ssid1\\t10\\tscan_ssid2\\t2\\t2427\\t2442\\t2\\t"; HWTEST_F() local
772 char buff[] = "N\\tGetScanInfos\\tx\\t"; HWTEST_F() local
788 char buff[] = "N\\tGetNetworkList\\tx\\t"; HWTEST_F() local
804 char buff[] = "N\\tStartPnoScan\\t1\\tx\\t1\\t2\\t3\\tasd\\t4\\tasdf\\t1\\t5\\tasdfg\\t2\\t5040\\t5080\\t"; HWTEST_F() local
855 char buff[] = "N\\tConnect\\tx\\t"; HWTEST_F() local
871 char buff[] = "N\\tWpaAutoConnect\\t0ad\\t"; HWTEST_F() local
915 char buff[] = "N\\tGetDeviceMacAddress\\tx\\t"; HWTEST_F() local
931 char buff[] = "N\\tGetFrequencies\\t1\\t"; HWTEST_F() local
947 char buff[] = "N\\tSetAssocMacAddr\\tx\\t7d9c039dfeba46\\t"; HWTEST_F() local
969 char buff[] = "N\\tSetScanningMacAddress\\tx\\t7d9c039dfeba46\\t"; HWTEST_F() local
990 char buff[] = "N\\tDeauthLastRoamingBssid\\tx\\t7d9c039dfeba46\\t"; HWTEST_F() local
1018 char buff[] = "N\\tRunCmd\\twlan0"; HWTEST_F() local
1054 char buff[] = "N\\tSetWifiTxPower\\t12"; HWTEST_F() local
1070 char buff[] = "N\\tRemoveNetwork\\t12"; HWTEST_F() local
1093 char buff[] = "N\\tEnableNetwork\\t12"; HWTEST_F() local
1109 char buff[] = "N\\tDisableNetwork\\t12"; HWTEST_F() local
1125 char buff[] = "N\\tSetNetwork\\t0\\t1"; HWTEST_F() local
1146 char buff[] = "N\\tWpaGetNetwork\\t2\\tssid"; HWTEST_F() local
1169 char buff[] = "N\\tStartWpsPbcMode\\t1\\t2\\tadsgfkdsj"; HWTEST_F() local
1185 char buff[] = "N\\tStartWpsPinMode\\t1\\t2\\tadsgfkdsj"; HWTEST_F() local
1222 char buff[] = "N\\tSetRoamConfig\\tx\\tfdsagdsa\\tsafdgfds\\t1\\tvcxzcbvx\\t"; HWTEST_F() local
1253 char buff[] = "N\\tGetConnectSignalInfo\\tssid"; HWTEST_F() local
1276 char buff[] = "N\\tStopSoftAp\\t0\\t"; HWTEST_F() local
1287 char buff[] = "N\\tSetHostapdConfig\\ttests\\t5\\tadc123456\\t9\\t1\\t0\\t6\\t20\\t0\\t"; HWTEST_F() local
1304 char buff[] = "N\\tGetStaInfos\\t128"; HWTEST_F() local
1320 char buff[] = "N\\tSetCountryCode\\tCN"; HWTEST_F() local
1336 char buff[] = "N\\tSetMacFilter\\tx\\t345697dbf921d3\\t"; HWTEST_F() local
1357 char buff[] = "N\\tDelMacFilter\\tx\\t345697dbf921d3\\t"; HWTEST_F() local
1378 char buff[] = "N\\tDisassociateSta\\tx\\t345697dbf921d3\\t"; HWTEST_F() local
1399 char buff[] = "N\\tGetValidFrequenciesForBand\\t1\\t128"; HWTEST_F() local
1504 char buff[] = "N\\tRpcSetSuspendMode\\tx\\t"; HWTEST_F() local
1522 char buff[] = "N\\tRpcGetCommonCmd\\tchba0"; HWTEST_F() local
1554 char buff[] = "N\\tRpcSetPowerMode\\tx\\t"; HWTEST_F() local
[all...]
/third_party/ltp/testcases/kernel/syscalls/statx/
H A Dstatx01.c101 struct statx buff; in test_normal_file() local
103 TEST(statx(AT_FDCWD, TESTFILE, 0, 0, &buff)); in test_normal_file()
106 "statx(AT_FDCWD, %s, 0, 0, &buff)", TESTFILE); in test_normal_file()
109 "statx(AT_FDCWD, %s, 0, 0, &buff)", TESTFILE); in test_normal_file()
111 if (geteuid() == buff.stx_uid) in test_normal_file()
112 tst_res(TPASS, "stx_uid(%u) is correct", buff.stx_uid); in test_normal_file()
115 buff.stx_uid, geteuid()); in test_normal_file()
117 if (getegid() == buff.stx_gid) in test_normal_file()
118 tst_res(TPASS, "stx_gid(%u) is correct", buff.stx_gid); in test_normal_file()
121 buff in test_normal_file()
159 struct statx buff; test_device_file() local
[all...]
/base/security/device_auth/frameworks/deviceauth_lite/test/fuzztest/receivedata_fuzzer/
H A Dreceivedata_fuzzer.cpp110 struct uint8_buff buff; in ReceiveDataFuzz() local
113 buff.val = g_retStr1; in ReceiveDataFuzz()
114 buff.size = sizeof(g_retStr1); in ReceiveDataFuzz()
115 buff.length = sizeof(g_retStr1); in ReceiveDataFuzz()
118 buff.val = g_retStr2; in ReceiveDataFuzz()
119 buff.size = sizeof(g_retStr2); in ReceiveDataFuzz()
120 buff.length = sizeof(g_retStr2); in ReceiveDataFuzz()
123 buff.val = g_retStr3; in ReceiveDataFuzz()
124 buff.size = sizeof(g_retStr3); in ReceiveDataFuzz()
125 buff in ReceiveDataFuzz()
[all...]
/third_party/node/deps/npm/node_modules/socks/build/client/
H A Dsocksclient.js158 const buff = new smart_buffer_1.SmartBuffer();
159 buff.writeUInt16BE(0);
160 buff.writeUInt8(options.frameNumber || 0);
163 buff.writeUInt8(constants_1.Socks5HostType.IPv4);
164 buff.writeUInt32BE((0, helpers_1.ipv4ToInt32)(options.remoteHost.host));
167 buff.writeUInt8(constants_1.Socks5HostType.IPv6);
168 buff.writeBuffer((0, helpers_1.ipToBuffer)(options.remoteHost.host));
171 buff.writeUInt8(constants_1.Socks5HostType.Hostname);
172 buff.writeUInt8(Buffer.byteLength(options.remoteHost.host));
173 buff
[all...]
/foundation/communication/dsoftbus/adapter/common/net/hdi/common/
H A Dsoftbus_adapter_wlan_extend.c50 SoftBusFree(g_channelList.buff); in ReleaseMeasResources()
52 g_channelList.buff = NULL; in ReleaseMeasResources()
53 SoftBusFree(g_channelInfoList.buff); in ReleaseMeasResources()
55 g_channelInfoList.buff = NULL; in ReleaseMeasResources()
61 WlanChannelInfo *info = g_channelInfoList.buff; in ExcuteChannelMeas()
83 if (g_channelList.buff != NULL || g_channelInfoList.buff != NULL) { in SoftBusRequestWlanChannelInfo()
88 g_channelList.buff = (int32_t *)SoftBusCalloc(sizeof(int32_t) * num); in SoftBusRequestWlanChannelInfo()
89 if (g_channelList.buff == NULL) { in SoftBusRequestWlanChannelInfo()
95 if (memcpy_s(g_channelList.buff, sizeo in SoftBusRequestWlanChannelInfo()
[all...]
/base/security/device_security_level/test/dslm_unit_test/
H A Ddslm_baselib_utils_test.cpp74 uint8_t buff[MAX_ENTRY * sizeof(TlvCommon)] = {0}; in HWTEST_F() local
78 (void)memset_s(&buff[0], sizeof(buff), 0, sizeof(buff)); in HWTEST_F()
81 uint32_t ret = Deserialize(nullptr, sizeof(buff), &tlvs[0], MAX_ENTRY, &cnt); in HWTEST_F()
86 // buff contains 10 entries which greater than MAX_ENTRY in HWTEST_F()
89 uint8_t buff[(MAX_ENTRY + 2) * sizeof(TlvCommon)] = {0}; in HWTEST_F() local
95 TlvCommon *ptr = (TlvCommon *)buff + i; in HWTEST_F()
100 uint32_t ret = Deserialize(buff, sizeof(buff), in HWTEST_F()
118 uint8_t buff[MAX_ENTRY * sizeof(TlvCommon)] = {0}; HWTEST_F() local
145 uint8_t buff[(MAX_ENTRY + 2) * sizeof(TlvCommon)] = {0}; HWTEST_F() local
164 uint8_t buff[(MAX_ENTRY + 2) * sizeof(TlvCommon)] = {0}; HWTEST_F() local
192 uint8_t buff[MAX_ENTRY * sizeof(TlvCommon)] = {0}; HWTEST_F() local
231 uint8_t buff[MAX_ENTRY * sizeof(TlvCommon)] = {0}; HWTEST_F() local
276 uint8_t buff[MAX_ENTRY * sizeof(TlvCommon)] = {0}; HWTEST_F() local
[all...]
/base/security/device_security_level/services/common/
H A Ddslm_msg_serialize.c54 MessagePacket *ParseMessage(const MessageBuff *buff) in ParseMessage() argument
56 if (buff == NULL) { in ParseMessage()
61 if (!CheckMessage(buff->buff, buff->length)) { in ParseMessage()
66 DslmJsonHandle handle = DslmCreateJson((const char *)buff->buff); in ParseMessage()
109 void FreeMessageBuff(MessageBuff *buff) in FreeMessageBuff() argument
111 if (buff == NULL) { in FreeMessageBuff()
114 if (buff in FreeMessageBuff()
[all...]
/third_party/jerryscript/jerry-core/ecma/builtin-objects/
H A Decma-builtin-number-prototype.c402 JMEM_DEFINE_LOCAL_ARRAY (buff, buff_size, lit_utf8_byte_t); in ecma_builtin_number_prototype_object_to_string()
409 buff[buff_index++] = (lit_utf8_byte_t) (whole % radix); in ecma_builtin_number_prototype_object_to_string()
416 lit_utf8_byte_t swap = buff[i]; in ecma_builtin_number_prototype_object_to_string()
417 buff[i] = buff[buff_index - i - 1]; in ecma_builtin_number_prototype_object_to_string()
418 buff[buff_index - i - 1] = swap; in ecma_builtin_number_prototype_object_to_string()
445 buff[buff_index++] = digit; in ecma_builtin_number_prototype_object_to_string()
453 if (buff[buff_index] > radix / 2) in ecma_builtin_number_prototype_object_to_string()
456 buff[buff_index - 1]++; in ecma_builtin_number_prototype_object_to_string()
459 for (int i = buff_index - 1; i > 0 && buff[ in ecma_builtin_number_prototype_object_to_string()
[all...]
/base/security/huks/test/unittest/huks_standard_test/crypto_engine_test/src/
H A Dhks_crypto_hal_api_openssl.cpp153 uint8_t buff[1] = {0}; in HWTEST_F() local
158 key = { .size = 1, .data = buff }; in HWTEST_F()
162 message = { .size = 1, .data = buff }; in HWTEST_F()
166 cipherText = { .size = 1, .data = buff }; in HWTEST_F()
187 uint8_t buff[1] = {0}; in HWTEST_F() local
192 key = { .size = 1, .data = buff }; in HWTEST_F()
196 message = { .size = 1, .data = buff }; in HWTEST_F()
200 cipherText = { .size = 1, .data = buff }; in HWTEST_F()
217 uint8_t buff[HKS_KEY_BYTES(HKS_AES_KEY_SIZE_128)] = {0}; in HWTEST_F() local
218 HksBlob key = { .size = 1, .data = buff }; in HWTEST_F()
253 uint8_t buff[HKS_KEY_BYTES(HKS_AES_KEY_SIZE_128)] = {0}; HWTEST_F() local
281 uint8_t buff[HKS_KEY_BYTES(HKS_AES_KEY_SIZE_128)] = {0}; HWTEST_F() local
310 uint8_t buff[1] = {0}; HWTEST_F() local
337 uint8_t buff[1] = {0}; HWTEST_F() local
365 uint8_t buff[HKS_KEY_BYTES(HKS_RSA_KEY_SIZE_512)] = {0}; HWTEST_F() local
388 uint8_t buff[HKS_KEY_BYTES(HKS_RSA_KEY_SIZE_512)] = {0}; HWTEST_F() local
412 uint8_t buff[HKS_KEY_BYTES(DSA_KEY_LEN_512)] = {0}; HWTEST_F() local
432 uint8_t buff[HKS_KEY_BYTES(DSA_KEY_LEN_512)] = {0}; HWTEST_F() local
449 uint8_t buff[HKS_KEY_BYTES(HKS_ECC_KEY_SIZE_256)] = {0}; HWTEST_F() local
471 uint8_t buff[HKS_KEY_BYTES(KEY_LEN_256)] = {0}; HWTEST_F() local
495 uint8_t buff[1] = {0}; HWTEST_F() local
523 uint8_t buff[HKS_KEY_BYTES(HKS_RSA_KEY_SIZE_512)] = {0}; HWTEST_F() local
552 uint8_t buff[HKS_KEY_BYTES(HKS_DH_KEY_SIZE_2048)] = {0}; HWTEST_F() local
580 uint8_t buff[1] = {0}; HWTEST_F() local
604 uint8_t buff[1] = {0}; HWTEST_F() local
629 uint8_t buff[1] = {0}; HWTEST_F() local
662 uint8_t buff[1] = {0}; HWTEST_F() local
696 uint8_t buff[HKS_KEY_BYTES(HKS_AES_KEY_SIZE_128)] = {0}; HWTEST_F() local
734 uint8_t buff[HKS_KEY_BYTES(HKS_AES_KEY_SIZE_128)] = {0}; HWTEST_F() local
773 uint8_t buff[1] = {0}; HWTEST_F() local
807 uint8_t buff[HKS_KEY_BYTES(HKS_AES_KEY_SIZE_128)] = {0}; HWTEST_F() local
845 uint8_t buff[HKS_KEY_BYTES(HKS_AES_KEY_SIZE_128)] = {0}; HWTEST_F() local
[all...]
/foundation/communication/wifi/wifi/base/cRPC/src/
H A Dclient.c46 char *buff = ContextGetReadRecord(client->context); in RpcClientReadMsg() local
47 while (buff == NULL && client->threadRunFlag) { in RpcClientReadMsg()
62 buff = ContextGetReadRecord(client->context); in RpcClientReadMsg()
65 if (buff != NULL) { in RpcClientReadMsg()
66 free(buff); in RpcClientReadMsg()
67 buff = NULL; in RpcClientReadMsg()
71 return buff; in RpcClientReadMsg()
74 static void RpcClientDealReadMsg(RpcClient *client, char *buff) in RpcClientDealReadMsg() argument
77 if (buff != NULL) { in RpcClientDealReadMsg()
78 free(buff); in RpcClientDealReadMsg()
124 char *buff = RpcClientReadMsg(client); RpcClientThreadDeal() local
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/common/distributeddb/src/
H A Ddistributed_test_sysinfo.cpp53 char buff[PROC_BUFFER_LENGTH] = { 0 }; in GetSysMemOccpy() local
61 fgets(buff, sizeof(buff), fp); in GetSysMemOccpy()
62 int result1 = sscanf_s(buff, "%s %llu ", in GetSysMemOccpy()
64 fgets(buff, sizeof(buff), fp); in GetSysMemOccpy()
65 int result2 = sscanf_s(buff, "%s %llu ", in GetSysMemOccpy()
67 fgets(buff, sizeof(buff), fp); in GetSysMemOccpy()
68 int result3 = sscanf_s(buff, " in GetSysMemOccpy()
92 char buff[PROC_BUFFER_LENGTH] = { 0 }; GetSysCpuInfo() local
158 char buff[SYSTEM_INFO_BUFFER_SIZE] = { 0 }; ReadSysValFromFile() local
[all...]
/third_party/FatFs/source/
H A Ddiskio.c83 BYTE *buff, /* Data buffer to store read data */ in disk_read()
91 result = los_part_read((int)pdrv, (void *)buff, sector, (UINT32)count, TRUE); in disk_read()
98 return (DRESULT)g_diskDrv.drv[pdrv]->disk_read(g_diskDrv.lun[pdrv], buff, sector, count); in disk_read()
105 BYTE *buff, /* Data buffer to store read data */ in disk_read_readdir()
112 result = los_part_read((int)pdrv, (void *)buff, sector, (UINT32)count, FALSE); in disk_read_readdir()
123 DRESULT disk_raw_read (int id, void *buff, LBA_t sector, UINT32 count) in disk_raw_read() argument
127 result = los_disk_read(id, buff, sector, count, TRUE); in disk_raw_read()
146 const BYTE *buff, /* Data to be written */ in disk_write()
154 result = los_part_write((int)pdrv, (void *)buff, sector, (UINT32)count); in disk_write()
161 return (DRESULT)g_diskDrv.drv[pdrv]->disk_write(g_diskDrv.lun[pdrv], buff, secto in disk_write()
81 disk_read( BYTE pdrv, BYTE *buff, LBA_t sector, UINT count ) disk_read() argument
103 disk_read_readdir( BYTE pdrv, BYTE *buff, LBA_t sector, UINT count ) disk_read_readdir() argument
144 disk_write( BYTE pdrv, const BYTE *buff, LBA_t sector, UINT count ) disk_write() argument
166 disk_raw_write(int id, void *buff, QWORD sector, UINT32 count) disk_raw_write() argument
[all...]
/base/sensors/sensor/test/unittest/coverage/
H A Dsensor_basic_data_channel_test.cpp68 char buff[128] = {}; in HWTEST_F() local
69 ret = sensorChannel.SendData(static_cast<void *>(buff), sizeof(buff)); in HWTEST_F()
72 ret = sensorChannel.ReceiveData(static_cast<void *>(buff), sizeof(buff)); in HWTEST_F()
114 char buff[128] = {}; in HWTEST_F() local
115 int32_t ret = sensorChannel.SendData(static_cast<void *>(buff), sizeof(buff)); in HWTEST_F()
127 char buff[128] = {}; in HWTEST_F() local
128 ret = sensorChannel.SendData(static_cast<void *>(buff), sizeo in HWTEST_F()
136 char buff[128] = {}; HWTEST_F() local
[all...]
/base/security/device_security_level/services/dslm/
H A Ddslm_inner_process.c62 MessageBuff *buff = NULL; in SendDeviceInfoRequest() local
63 int32_t ret = BuildDeviceSecInfoRequest(device->nonce, &buff); in SendDeviceInfoRequest()
70 SendMsgToDevice(device->transNum, &device->identity, buff->buff, buff->length); in SendDeviceInfoRequest()
72 SECURITY_LOG_DEBUG("buff is %s", (char *)buff->buff); in SendDeviceInfoRequest()
75 FreeMessageBuff(buff); in SendDeviceInfoRequest()
79 int32_t VerifyDeviceInfoResponse(DslmDeviceInfo *device, const MessageBuff *buff) in VerifyDeviceInfoResponse() argument
[all...]
/base/update/updater/services/package/pkg_manager/
H A Dpkg_utils.cpp240 uint32_t ReadLE32(const uint8_t *buff) in GetFileSize() argument
242 if (buff == nullptr) { in GetFileSize()
243 PKG_LOGE("buff is null"); in GetFileSize()
247 uint32_t value32 = buff[0]; in GetFileSize()
249 value32 += static_cast<uint32_t>(static_cast<uint32_t>(buff[1]) << offset); in GetFileSize()
251 value32 += static_cast<uint32_t>(static_cast<uint32_t>(buff[SECOND_BUFFER]) << offset); in GetFileSize()
253 value32 += static_cast<uint32_t>(static_cast<uint32_t>(buff[THIRD_BUFFER]) << offset); in GetFileSize()
257 uint64_t ReadLE64(const uint8_t *buff) in GetFileSize() argument
259 if (buff == nullptr) { in GetFileSize()
260 PKG_LOGE("buff i in GetFileSize()
269 WriteLE32(uint8_t *buff, uint32_t value) GetFileSize() argument
285 ReadLE16(const uint8_t *buff) GetFileSize() argument
296 WriteLE16(uint8_t *buff, uint16_t value) GetFileSize() argument
[all...]
/third_party/node/benchmark/buffers/
H A Dbuffer-write.js74 const buff = buf === 'fast' ?
80 benchSpecialInt(buff, fn, n);
82 benchBigInt(buff, fn, BigInt(n));
84 benchInt(buff, fn, n);
86 benchFloat(buff, fn, n);
89 function benchBigInt(buff, fn, n) {
93 buff[fn](i & m, 0);
98 function benchInt(buff, fn, n) {
102 buff[fn](i & m, 0);
107 function benchSpecialInt(buff, f
[all...]

Completed in 17 milliseconds

12345678910>>...24