Home
last modified time | relevance | path

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

12345678

/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...]
/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...]
/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...]
/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...]
/foundation/communication/wifi/wifi/test/wifi_standard/ipc_framework/cRPC/unittest/
H A Dnet_test.cpp29 char buff[MAX_SIZE] = {0}; in HWTEST_F() local
30 EXPECT_TRUE(MyRead(fd, buff, 0) == 0); in HWTEST_F()
31 EXPECT_TRUE(MyRead(fd, buff, MAX_SIZE) == 0); in HWTEST_F()
32 EXPECT_TRUE(MyRead(fd, buff, MAX_SIZE + 1) == SOCK_ERR); in HWTEST_F()
33 EXPECT_TRUE(MyRead(fd, buff, 10) == 10); in HWTEST_F()
39 char buff[MAX_SIZE] = {0}; in HWTEST_F() local
40 EXPECT_TRUE(MyWrite(fd, buff, 0) == 0); in HWTEST_F()
41 EXPECT_TRUE(MyWrite(fd, buff, MAX_SIZE) == 0); in HWTEST_F()
42 EXPECT_TRUE(MyWrite(fd, buff, MAX_SIZE + 1) == SOCK_ERR); in HWTEST_F()
43 EXPECT_TRUE(MyWrite(fd, buff, 1 in HWTEST_F()
[all...]
H A Dcontext_test.cpp62 char buff[] = "123456789 123456789 123456789 12"; in HWTEST_F() local
64 ContextAppendWrite(ctx, buff, strlen(buff)); in HWTEST_F()
67 ContextAppendWrite(test, buff, strlen(buff)); in HWTEST_F()
68 ASSERT_TRUE(strcpy_s(buff, sizeof(buff), "123456789 123456789 123456789 1") == EOK); in HWTEST_F()
69 ContextAppendWrite(ctx, buff, strlen(buff)); in HWTEST_F()
73 ASSERT_TRUE(strcpy_s(buff, sizeo in HWTEST_F()
195 char buff[] = "123456789 123456789 123456789 12"; HWTEST_F() local
[all...]
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_base/
H A Dnet_test.cpp29 char buff[MAX_SIZE] = {0}; in HWTEST_F() local
30 EXPECT_TRUE(MyRead(fd, buff, 0) == 0); in HWTEST_F()
31 EXPECT_TRUE(MyRead(fd, buff, MAX_SIZE) == 0); in HWTEST_F()
32 EXPECT_TRUE(MyRead(fd, buff, MAX_SIZE + 1) == SOCK_ERR); in HWTEST_F()
33 EXPECT_TRUE(MyRead(fd, buff, 10) == 10); in HWTEST_F()
39 char buff[MAX_SIZE] = {0}; in HWTEST_F() local
40 EXPECT_TRUE(MyWrite(fd, buff, 0) == 0); in HWTEST_F()
41 EXPECT_TRUE(MyWrite(fd, buff, MAX_SIZE) == 0); in HWTEST_F()
42 EXPECT_TRUE(MyWrite(fd, buff, MAX_SIZE + 1) == SOCK_ERR); in HWTEST_F()
43 EXPECT_TRUE(MyWrite(fd, buff, 1 in HWTEST_F()
[all...]
H A Dcontext_test.cpp62 char buff[] = "123456789 123456789 123456789 12"; in HWTEST_F() local
64 ContextAppendWrite(ctx, buff, strlen(buff)); in HWTEST_F()
67 ContextAppendWrite(test, buff, strlen(buff)); in HWTEST_F()
68 ASSERT_TRUE(strcpy_s(buff, sizeof(buff), "123456789 123456789 123456789 1") == EOK); in HWTEST_F()
69 ContextAppendWrite(ctx, buff, strlen(buff)); in HWTEST_F()
73 ASSERT_TRUE(strcpy_s(buff, sizeo in HWTEST_F()
193 char buff[] = "123456789 123456789 123456789 12"; HWTEST_F() local
[all...]
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_toolkit/unittest/
H A Draw_socket_test.cpp60 uint8_t *buff = nullptr; in HWTEST_F() local
63 EXPECT_TRUE(pRawSocket->Send(buff, count, destHwaddr) == -1); in HWTEST_F()
68 uint8_t *buff = &NUMBLE; in HWTEST_F() local
72 EXPECT_TRUE(pRawSocket->Send(buff, count, destHwaddr) == -1); in HWTEST_F()
77 uint8_t *buff = &NUMBLE; in HWTEST_F() local
80 EXPECT_TRUE(pRawSocket->Recv(buff, count, timeoutMillis) == 0); in HWTEST_F()
90 uint8_t *buff = &NUMBLE; in HWTEST_F() local
93 EXPECT_TRUE(pRawSocket->Send(buff, count, destHwaddr) == -1); in HWTEST_F()
98 uint8_t *buff = &NUMBLE; in HWTEST_F() local
101 EXPECT_TRUE(pRawSocket->Send(buff, coun in HWTEST_F()
[all...]
/foundation/communication/dsoftbus/tests/core/common/utils/fuzztest/insertrecord_fuzzer/
H A Dinsertrecord_fuzzer.cpp32 uint8_t buff[OHOS::MAX_BUFFER_LEN] = { 0 }; in InsertRecordFuzzTest() local
33 if (memcpy_s(buff, sizeof(buff) - 1, data, size) != EOK) { in InsertRecordFuzzTest()
36 InsertRecord(ctx, TABLE_TRUSTED_DEV_INFO, buff); in InsertRecordFuzzTest()
37 InsertRecord(ctx, TABLE_NAME_ID_MAX, buff); in InsertRecordFuzzTest()
/foundation/communication/dsoftbus/tests/core/common/utils/fuzztest/removerecordbykey_fuzzer/
H A Dremoverecordbykey_fuzzer.cpp32 uint8_t buff[OHOS::MAX_BUFFER_LEN] = { 0 }; in RemoveRecordByKeyFuzzTest() local
33 if (memcpy_s(buff, sizeof(buff) - 1, data, size) != EOK) { in RemoveRecordByKeyFuzzTest()
36 RemoveRecordByKey(ctx, TABLE_TRUSTED_DEV_INFO, buff); in RemoveRecordByKeyFuzzTest()
37 RemoveRecordByKey(ctx, TABLE_NAME_ID_MAX, buff); in RemoveRecordByKeyFuzzTest()
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/l2cap/
H A Dl2cap_core.c138 uint8_t buff[4] = {0}; in L2capSendConnectionReq() local
143 L2capCpuToLe16(buff + 0, chan->rpsm); in L2capSendConnectionReq()
144 L2capCpuToLe16(buff + L2CAP_OFFSET_2, chan->lcid); in L2capSendConnectionReq()
148 signal.length = sizeof(buff); in L2capSendConnectionReq()
149 pkt = L2capBuildSignalPacket(L2CAP_SIGNALING_CHANNEL, &signal, buff); in L2capSendConnectionReq()
160 uint8_t buff[8] = {0}; in L2capSendConnectionRsp() local
163 L2capCpuToLe16(buff + 0, chan->lcid); in L2capSendConnectionRsp()
164 L2capCpuToLe16(buff + L2CAP_OFFSET_2, chan->rcid); in L2capSendConnectionRsp()
165 L2capCpuToLe16(buff + L2CAP_OFFSET_4, result); in L2capSendConnectionRsp()
166 L2capCpuToLe16(buff in L2capSendConnectionRsp()
184 uint8_t buff[48] = {0}; L2capSendConfigurationReq() local
243 L2capSendConfigurationRspRfcProcess( L2capChannel *chan, L2capSignalHeader *signal, uint8_t *buff, uint16_t result, const L2capConfigInfo *cfg) L2capSendConfigurationRspRfcProcess() argument
281 uint8_t buff[48] = {0}; L2capSendConfigurationRsp() local
329 uint8_t buff[4] = {0}; L2capSendDisconnectionReq() local
351 uint8_t buff[4] = {0}; L2capSendDisconnectionRsp() local
369 uint8_t buff[2] = {0}; L2capSendInformationReq() local
388 uint8_t buff[L2CAP_OFFSET_12] = {0}; L2capSendInformationRsp() local
1267 uint8_t buff[6] = {0}; L2capConfigurationRspReject() local
1287 uint8_t buff[L2CAP_SIGNAL_MTU] = {0}; L2capConfigurationRspUnknownOptions() local
1311 uint8_t buff[6] = {0}; L2capConfigurationRspContinuation() local
1490 uint8_t buff[4] = {0}; L2capConfigurationReqContinuation() local
2004 uint8_t buff[L2CAP_SIGNAL_MTU] = {0}; L2capProcessSignal() local
[all...]
/foundation/communication/dhcp/test/unittest/services/utils/
H A Ddhcp_arp_checker_test.cpp138 uint8_t *buff = nullptr; in HWTEST_F() local
143 EXPECT_TRUE(dhcpArpChecker.SendData(buff, count, destHwaddr) == -1); in HWTEST_F()
145 buff = &bufferTest; in HWTEST_F()
146 EXPECT_TRUE(dhcpArpChecker.SendData(buff, count, destHwaddr) == -1); in HWTEST_F()
148 EXPECT_TRUE(dhcpArpChecker.SendData(buff, count, destHwaddr) == -1); in HWTEST_F()
150 EXPECT_TRUE(dhcpArpChecker.SendData(buff, count, destHwaddr) == -1); in HWTEST_F()
152 dhcpArpChecker.SendData(buff, count, destHwaddr); in HWTEST_F()
166 uint8_t buff[MAC_ADDR_LEN] = {0}; in HWTEST_F() local
168 EXPECT_TRUE(dhcpArpChecker.RecvData(buff, 1, 1) == -1); in HWTEST_F()
170 dhcpArpChecker.RecvData(buff, in HWTEST_F()
[all...]
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_sta_sa/
H A Dwifi_device_callback_proxy_lite.cpp40 uint8_t buff[DEFAULT_IPC_SIZE]; in OnWifiStateChanged() local
41 IpcIoInit(&data, buff, DEFAULT_IPC_SIZE, 0); in OnWifiStateChanged()
66 uint8_t buff[IPC_DATA_SIZE]; in OnWifiConnectionChanged() local
67 IpcIoInit(&data, buff, IPC_DATA_SIZE, 0); in OnWifiConnectionChanged()
110 uint8_t buff[DEFAULT_IPC_SIZE]; in OnWifiRssiChanged() local
111 IpcIoInit(&data, buff, DEFAULT_IPC_SIZE, 0); in OnWifiRssiChanged()
135 uint8_t buff[DEFAULT_IPC_SIZE]; in OnWifiWpsStateChanged() local
136 IpcIoInit(&data, buff, DEFAULT_IPC_SIZE, 0); in OnWifiWpsStateChanged()
161 uint8_t buff[DEFAULT_IPC_SIZE]; in OnStreamChanged() local
162 IpcIoInit(&data, buff, DEFAULT_IPC_SIZ in OnStreamChanged()
186 uint8_t buff[DEFAULT_IPC_SIZE]; OnDeviceConfigChanged() local
[all...]
/foundation/ability/ability_runtime/test/unittest/ams_service_app_spawn_socket_test/
H A Dams_service_app_spawn_socket_test.cpp145 std::unique_ptr<uint8_t[]> buff = nullptr; in HWTEST() local
149 EXPECT_EQ(ERR_INVALID_VALUE, appSpawnSocket->ReadMessage(buff.get(), len)); in HWTEST()
169 std::unique_ptr<uint8_t[]> buff = std::make_unique<uint8_t[]>(10); in HWTEST() local
173 EXPECT_EQ(ERR_INVALID_VALUE, appSpawnSocket->ReadMessage(buff.get(), len)); in HWTEST()
193 std::unique_ptr<uint8_t[]> buff = std::make_unique<uint8_t[]>(10); in HWTEST() local
197 EXPECT_EQ(ERR_INVALID_VALUE, appSpawnSocket->ReadMessage(buff.get(), len)); in HWTEST()
217 std::unique_ptr<uint8_t[]> buff = std::make_unique<uint8_t[]>(10); in HWTEST() local
222 EXPECT_EQ(ERR_OK, appSpawnSocket->ReadMessage(buff.get(), len)); in HWTEST()
242 std::unique_ptr<uint8_t[]> buff = std::make_unique<uint8_t[]>(10); in HWTEST() local
247 EXPECT_EQ(ERR_APPEXECFWK_SOCKET_READ_FAILED, appSpawnSocket->ReadMessage(buff in HWTEST()
266 std::unique_ptr<uint8_t[]> buff = nullptr; HWTEST() local
290 std::unique_ptr<uint8_t[]> buff = std::make_unique<uint8_t[]>(10); HWTEST() local
314 std::unique_ptr<uint8_t[]> buff = std::make_unique<uint8_t[]>(10); HWTEST() local
338 std::unique_ptr<uint8_t[]> buff = std::make_unique<uint8_t[]>(10); HWTEST() local
363 std::unique_ptr<uint8_t[]> buff = std::make_unique<uint8_t[]>(10); HWTEST() local
[all...]
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/net_helper/
H A Ddns_checker.cpp155 int DnsChecker::recvDnsData(char* buff, int size, int timeout) in recvDnsData() argument
171 nBytes = read(dnsSocket, buff, size); in recvDnsData()
195 char buff[2048] = {0}; in checkDnsValid() local
196 struct DNS_HEADER *dns = (struct DNS_HEADER*)&buff; in checkDnsValid()
200 char* hostAddress = (char*)&buff[sizeof(struct DNS_HEADER)]; in checkDnsValid()
202 struct QUESTION *qinfo = (struct QUESTION *)&buff[sizeof(struct DNS_HEADER) + in checkDnsValid()
207 if (sendto(dnsSocket, buff, len, 0, (struct sockaddr*)&dest, sizeof(dest)) < 0) { in checkDnsValid()
215 int readLen = recvDnsData(buff, sizeof(buff), leftMillis); in checkDnsValid()
217 dns = (struct DNS_HEADER*)buff; in checkDnsValid()
[all...]
/foundation/CastEngine/castengine_wifi_display/services/mediaplayer/src/
H A Dvideo_play_controller.cpp206 outData->buff = std::make_shared<DataBuffer>(); in VideoPlayThread()
213 outData->buff->ReplaceData(data->buff->Peek(), data->buff->Size()); in VideoPlayThread()
228 if (sps != nullptr && sps->buff != nullptr) { in VideoPlayThread()
230 ProcessVideoData(sps->buff->Peek(), sps->buff->Size()); in VideoPlayThread()
233 if (pps != nullptr && pps->buff != nullptr) { in VideoPlayThread()
235 ProcessVideoData(pps->buff->Peek(), pps->buff in VideoPlayThread()
[all...]
/foundation/graphic/graphic_3d/lume/LumeEngine/src/image/loaders/
H A Dimage_loader_libjpeg.cpp97 static void ReadBuffer16Bit(jpeg_decompress_struct &cinfo, uint16_t *buff, int row_stride, bool needVerticalFlip) in ReadBuffer16Bit() argument
114 buff[pos++] = rowPointers12[0][k]; in ReadBuffer16Bit()
119 static void ReadBuffer8Bit(jpeg_decompress_struct &cinfo, uint8_t *buff, int row_stride, bool needVerticalFlip) in ReadBuffer8Bit() argument
134 buff[pos++] = rowPointers8[0][k]; in ReadBuffer8Bit()
155 uint16_t *buff = static_cast<uint16_t *>(malloc(imgSize * sizeof(uint16_t))); in LoadFromMemory() local
156 if (buff == nullptr) { in LoadFromMemory()
160 ReadBuffer16Bit(cinfo, buff, row_stride, needVerticalFlip); in LoadFromMemory()
162 uint16_t *buff = nullptr; in LoadFromMemory()
165 imageBytes = {buff, FreeLibBaseImageBytes}; in LoadFromMemory()
167 uint8_t *buff in LoadFromMemory() local
[all...]
/foundation/multimedia/av_codec/test/unittest/http_source_test/
H A Dhttp_media_downloader_unit_test.cpp91 unsigned char buff[5 * 1024 * 1024]; in HWTEST_F() local
96 httpMediaDownloader->Read(buff, readDataInfo); in HWTEST_F()
116 unsigned char buff[5 * 1024 * 1024]; in HWTEST_F() local
121 httpMediaDownloader->Read(buff, readDataInfo); in HWTEST_F()
141 unsigned char buff[5 * 1024 * 1024]; in HWTEST_F() local
146 httpMediaDownloader->Read(buff, readDataInfo); in HWTEST_F()
168 unsigned char buff[10 * 1024]; in HWTEST_F() local
172 httpMediaDownloader->Read(buff, readDataInfo); in HWTEST_F()
195 unsigned char buff[100 * 1024]; in HWTEST_F() local
199 httpMediaDownloader->Read(buff, readDataInf in HWTEST_F()
213 unsigned char buff[10]; HWTEST_F() local
235 unsigned char buff[10]; HWTEST_F() local
255 unsigned char buff[10]; HWTEST_F() local
277 unsigned char buff[10]; HWTEST_F() local
299 unsigned char buff[10]; HWTEST_F() local
351 unsigned char buff[10]; HWTEST_F() local
379 unsigned char buff[10]; HWTEST_F() local
405 unsigned char buff[10]; HWTEST_F() local
431 unsigned char buff[10]; HWTEST_F() local
459 unsigned char buff[5 * 1024 * 1024]; HWTEST_F() local
[all...]
/foundation/ability/ability_runtime/test/unittest/runtime_test/
H A Djs_module_reader_test.cpp57 uint8_t *buff = nullptr; in HWTEST_F() local
60 auto result = jsModuleReader("", &buff, &buffSize, errorMsg); in HWTEST_F()
73 uint8_t *buff = nullptr; in HWTEST_F() local
76 auto result = jsModuleReader("bundleName/moduleName", &buff, &buffSize, errorMsg); in HWTEST_F()

Completed in 13 milliseconds

12345678