Home
last modified time | relevance | path

Searched refs:bufLen (Results 1 – 17 of 17) sorted by relevance

/test/xts/device_attest_lite/services/core/small/attest/
Dattest_service_pcid.c56 static int32_t EncodePcid(char *buff, int32_t bufLen, char **output) in EncodePcid() argument
58 if (output == NULL || buff == NULL || bufLen == 0) { in EncodePcid()
69 int32_t ret = Sha256Value((const uint8_t *)buff, bufLen, pcidSha256, PCID_STRING_LEN + 1); in EncodePcid()
/test/xts/device_attest_lite/services/core/network/
Dattest_coap.c484 … int32_t CoapParseOptionExtension(uint16_t* value, const uint8_t** p, uint8_t* hlen, size_t bufLen) in CoapParseOptionExtension() argument
492 if (bufLen < *hlen) { in CoapParseOptionExtension()
503 if (bufLen < *hlen) { in CoapParseOptionExtension()
525 …2_t CoapParseOption(CoapOption* option, uint16_t* runningDelta, const uint8_t** buf, size_t bufLen) in CoapParseOption() argument
536 if (bufLen < headLen) { in CoapParseOption()
543 if ((ret = CoapParseOptionExtension(&delta, &p, &headLen, bufLen)) != 0) { in CoapParseOption()
547 if ((ret = CoapParseOptionExtension(&len, &p, &headLen, bufLen)) != 0) { in CoapParseOption()
551 if ((p + 1 + len) > (*buf + bufLen)) { in CoapParseOption()
611 int32_t CoapDecode(CoapPacket* pkt, const uint8_t* buf, size_t bufLen) in CoapDecode() argument
614 if (pkt == NULL || buf == NULL || bufLen > MAX_MESSAGE_LEN) { in CoapDecode()
[all …]
/test/xts/acts/global_lite/i18n_lite/resource_parse_load/src/
Dhap_resource_test.cpp262 size_t bufLen; in LoadFromHap() local
264 &buf, bufLen, errOut); in LoadFromHap()
269 HILOG_DEBUG("extract success, bufLen:%zu", bufLen); in LoadFromHap()
272 out = HapParser::ParseResHex((char *)buf, bufLen, *resDesc, defaultConfig); in LoadFromHap()
/test/xts/dcts/communication/softbus_standard/transmission/sendstream/
Dtrans_stream_test.cpp78 .bufLen = data.length() + 1,
123 .bufLen = data.length() + 1,
/test/xts/acts/kernel_lite/ipc_posix/signal/
DSignalTestUtils.cpp178 const int bufLen = 64; in CheckSigString() local
179 char buffer[bufLen]; in CheckSigString()
182 size_t bytes = fread(buffer, 1, bufLen, fp); in CheckSigString()
/test/xts/device_attest/services/core/attest/
Dattest_service_device.c249 static int32_t EncodePcid(char *buff, int32_t bufLen, char **output) in EncodePcid() argument
251 if (output == NULL || buff == NULL || bufLen == 0) { in EncodePcid()
262 int32_t ret = Sha256Value((const uint8_t *)buff, bufLen, pcidSha256, PCID_STRING_LEN + 1); in EncodePcid()
/test/xts/device_attest_lite/services/core/include/network/
Dattest_coap.h107 int32_t CoapDecode(CoapPacket* pkt, const uint8_t* buf, size_t bufLen);
/test/testfwk/arkxtest/uitest/napi/
Duitest_napi.cpp570 …C" __attribute__((visibility("default"))) void NAPI_UiTest_GetJSCode(const char **buf, int *bufLen) in NAPI_UiTest_GetJSCode() argument
575 if (bufLen != nullptr) { in NAPI_UiTest_GetJSCode()
576 *bufLen = _binary_uitest_exporter_js_end - _binary_uitest_exporter_js_start; in NAPI_UiTest_GetJSCode()
580 …" __attribute__((visibility("default"))) void NAPI_UiTest_GetABCCode(const char **buf, int *bufLen) in NAPI_UiTest_GetABCCode() argument
585 if (bufLen != nullptr) { in NAPI_UiTest_GetABCCode()
586 *bufLen = _binary_uitest_exporter_abc_end - _binary_uitest_exporter_abc_start; in NAPI_UiTest_GetABCCode()
/test/xts/dcts/communication/softbus_standard/transmission/sessionmgt/
Dtrans_session_func_test.cpp406 .bufLen = data.length() + 1,
454 .bufLen = data.length() + 1,
502 .bufLen = data.length() + 1,
/test/xts/acts/storage/storagefileiojstest/src/main/js/test/module_fileio/members/
Dread.test.js60 let bufLen = 5;
61 expect(FILE_CONTENT.length > bufLen).assertTrue();
68 let len = fileio.readSync(fd, new ArrayBuffer(bufLen), {
71 expect(len == bufLen - 1).assertTrue();
/test/xts/hats/hdf/wlan/hdi_service/
Dwlan_hdi_hal_services_c_test.cpp815 param.bufLen = sizeof(data);
837 param.bufLen = sizeof(data);
859 param.bufLen = sizeof(data);
881 param.bufLen = sizeof(data);
903 param.bufLen = sizeof(data);
/test/xts/hats/hdf/wlan/wifi/hal/
Dwifi_hal_test.cpp2650 param->bufLen = 1;
2675 param->bufLen = 1;
2700 param->bufLen = 1;
2725 param->bufLen = 1;
2752 param->bufLen = 1;
2782 param->bufLen = 1;
2807 param->bufLen = 1;
2832 param->bufLen = 1;
2857 param->bufLen = 1;
2883 param->bufLen = 1;
/test/xts/acts/storage/storagefileiojstest/src/main/js/test/
DFileIO.test.js1611 let bufLen = 5
1612 expect(FILE_CONTENT.length > bufLen).assertTrue();
1617 let len = fileio.readSync(fd, new ArrayBuffer(bufLen), {
1620 expect(len == bufLen - 1).assertTrue();
/test/xts/device_attest/services/core/network/
Dattest_network.c327 int32_t bufLen = HTTPS_NETWORK_BUFFER_LEN; in InitSocketClient() local
351 if (setsockopt(sockfd, SOL_SOCKET, SO_SNDBUF, (const char *)&bufLen, 4) < 0) { in InitSocketClient()
/test/xts/dcts/communication/softbus_standard/dsoftbusTest/
DdsoftbusTest.cpp148 LOG("[cb][stream]Rec sid:%d, data= %.*s.\n", sessionId, data->bufLen, data->buf); in StreamReceived()
/test/xts/dcts/communication/softbus_standard/common/
Dnet_trans_common.c607 LOG("[cb][stream]ByteRec sessionId:%d, data= %.*s.\n", sessionId, data->bufLen, data->buf); in StreamReceived()
/test/xts/hats/hdf/wlan/wlanBenchmarkTest/
Dhdf_wifi_benchmark_test.cpp890 param->bufLen = 1; in BENCHMARK_F()