/test/xts/acts/kernel_lite/mem_posix/src/ |
H A D | ActsMemApiTest.cpp | 298 LogPrint(" memmem *haystack:='%s' size_haystack:='%d' ", srcStr, strlen(srcStr));
in HWTEST_F() 299 LogPrint("*needle:='%s' size_needle:='%d',\n", srcSubStr, strlen(srcSubStr));
in HWTEST_F() 300 if (strlen(srcStr) >= strlen(srcSubStr)) {
in HWTEST_F() 301 pos = (char *)memmem(srcStr, strlen(srcStr), srcSubStr, strlen(srcSubStr));
in HWTEST_F() 307 << strlen(srcStr) << "' *needle:='" << srcSubStr << "' size_needle:='" << strlen(srcSubStr)
in HWTEST_F() 321 if (strlen(srcStr) < strlen(srcSubSt in HWTEST_F() [all...] |
/test/xts/hats/kernel/syscalls/fileio/copyfilerange/ |
H A D | CopyFileRangeApiTest.cpp | 81 ret = write(fdIn, TEST_DATA, strlen(TEST_DATA)); in HWTEST_F() 82 EXPECT_EQ(ret, strlen(TEST_DATA)); in HWTEST_F() 86 size = copy_file_range(fdIn, &offIn, fdOut, &offOut, strlen(TEST_DATA), 0); in HWTEST_F() 87 EXPECT_EQ(size, strlen(TEST_DATA)); in HWTEST_F() 88 ret = read(fdOut, buffer, strlen(TEST_DATA)); in HWTEST_F() 89 EXPECT_EQ(size, strlen(TEST_DATA)); in HWTEST_F() 116 size = copy_file_range(invalidFd, &offIn, fd, &offOut, strlen(TEST_DATA), 0); in HWTEST_F() 121 size = copy_file_range(fd, &offIn, invalidFd, &offOut, strlen(TEST_DATA), 0); in HWTEST_F() 148 size = copy_file_range(fdIn, &offIn, fdOut, &offOut, strlen(TEST_DATA), 1); in HWTEST_F() 174 result = write(fdIn, TEST_DATA, strlen(TEST_DAT in HWTEST_F() [all...] |
/test/xts/hats/kernel/syscalls/net/data_handle/ |
H A D | DataHandleApiTest.cpp | 128 size = send(clientFd, TEST_BUFFER, strlen(TEST_BUFFER), 0); in TcpClient() 129 EXPECT_EQ(size, strlen(TEST_BUFFER)); in TcpClient() 132 EXPECT_EQ(size, strlen(TEST_EXIT)); in TcpClient() 158 size = sendto(clientFd, TEST_BUFFER, strlen(TEST_BUFFER), 0, in UdpClient() 160 EXPECT_EQ(size, strlen(TEST_BUFFER)); in UdpClient() 165 EXPECT_EQ(size, strlen(TEST_EXIT)); in UdpClient() 198 EXPECT_EQ(size, strlen(TEST_BUFFER)); in HWTEST_F() 201 size = sendto(g_udpFd, TEST_EXIT, strlen(TEST_EXIT), 0, in HWTEST_F() 203 EXPECT_EQ(size, strlen(TEST_EXIT)); in HWTEST_F() 250 size = sendto(BAD_SOCKET_FD, TEST_EXIT, strlen(TEST_EXI in HWTEST_F() [all...] |
/test/xts/acts/commonlibrary_lite/file_hal/src/ |
H A D | utils_file_func_test.c | 295 int ret = UtilsFileWrite(fd, g_def, strlen(g_def)); 310 UtilsFileWrite(fd0, g_def, strlen(g_def)); 313 int ret = UtilsFileWrite(fd, g_def, strlen(g_def)); 317 int ret1 = UtilsFileWrite(fd1, g_def, strlen(g_def)); 357 int ret = UtilsFileWrite(fd, g_def, strlen(g_def)); 395 UtilsFileWrite(fd0, g_def, strlen(g_def)); 413 UtilsFileWrite(fd0, g_def, strlen(g_def)); 431 UtilsFileWrite(fd0, g_def, strlen(g_def)); 449 UtilsFileWrite(fd0, g_def, strlen(g_def)); 467 UtilsFileWrite(fd0, g_def, strlen(g_de [all...] |
/test/xts/device_attest/services/oem_adapter/src/ |
H A D | device_attest_oem_file.c | 28 if ((strlen(dirPath) >= MAX_ATTEST_MALLOC_BUFF_SIZE) ||\ in OEMGenFilePath() 29 (strlen(fileName) >= MAX_ATTEST_MALLOC_BUFF_SIZE) ||\ in OEMGenFilePath() 30 (strlen(dirPath) + strlen(fileName)) >= MAX_ATTEST_MALLOC_BUFF_SIZE) { in OEMGenFilePath() 33 uint32_t filePathLen = strlen(dirPath) + 1 + strlen(fileName) + 1; in OEMGenFilePath() 167 uint32_t realPathLen = strlen(formatPath) + 1 + strlen(fileName) + 1; in OEMCreateFileImpl() 216 if ((strlen(formatPath) >= MAX_ATTEST_MALLOC_BUFF_SIZE) ||\ in OEMCreateFile() 217 (strlen(fileNam in OEMCreateFile() [all...] |
/test/xts/acts/startup_lite/syspara_hal/src/ |
H A D | deviceinfo_func_test.c | 86 TEST_ASSERT_TRUE(strlen(value) <= 32); 119 TEST_ASSERT_TRUE(strlen(value) <= 32); 152 TEST_ASSERT_TRUE(strlen(value) <= 32); 185 TEST_ASSERT_TRUE(strlen(value) <= 32); 218 TEST_ASSERT_TRUE(strlen(value) <= 32); 251 TEST_ASSERT_TRUE(strlen(value) <= 32); 284 TEST_ASSERT_TRUE(strlen(value) <= 32); 317 TEST_ASSERT_TRUE(strlen(value) <= 64); 350 TEST_ASSERT_TRUE(strlen(value) <= 64); 383 TEST_ASSERT_TRUE(strlen(valu [all...] |
H A D | parameter_func_test.c | 338 TEST_ASSERT_EQUAL_INT(strlen(rightVal), ret); 357 TEST_ASSERT_EQUAL_INT(strlen(g_defSysParam), ret); 377 TEST_ASSERT_EQUAL_INT(strlen(rightVal), ret); 396 TEST_ASSERT_EQUAL_INT(strlen(rightVal), ret); 416 TEST_ASSERT_EQUAL_INT(strlen(rightVal), ret); 433 TEST_ASSERT_EQUAL_INT(strlen(g_defSysParam), ret); 453 TEST_ASSERT_EQUAL_INT(strlen(rightVal1), ret); 463 TEST_ASSERT_EQUAL_INT(strlen(rightVal2), ret); 683 TEST_ASSERT_EQUAL_INT(strlen(rightVal), ret); 703 TEST_ASSERT_EQUAL_INT(strlen(rightVal [all...] |
/test/xts/acts/security_lite/huks/common/ |
H A D | hks_test_aes.c | 152 struct HksBlob authId = { strlen(TEST_KEY_AUTH_ID), (uint8_t *)TEST_KEY_AUTH_ID }; in GenerateBaseKey() 305 struct HksBlob authId = { strlen(TEST_KEY_AUTH_ID), (uint8_t *)TEST_KEY_AUTH_ID }; in ImportPubKey() 338 struct HksBlob baseKeyAlias1 = { strlen(TEST_AES_KEY_BASE_NAME_1), (uint8_t *)TEST_AES_KEY_BASE_NAME_1 }; in TestAes256ByAgree() 341 struct HksBlob baseKeyAlias2 = { strlen(TEST_AES_KEY_BASE_NAME_2), (uint8_t *)TEST_AES_KEY_BASE_NAME_2 }; in TestAes256ByAgree() 352 strlen(TEST_AES_KEY_BASE_NAME_1_PUBKEY), (uint8_t *)TEST_AES_KEY_BASE_NAME_1_PUBKEY in TestAes256ByAgree() 355 strlen(TEST_AES_KEY_BASE_NAME_2_PUBKEY), (uint8_t *)TEST_AES_KEY_BASE_NAME_2_PUBKEY in TestAes256ByAgree() 361 struct HksBlob aesKeyAlias1 = { strlen(TEST_AES_KEY_AGREE_NAME1), (uint8_t *)TEST_AES_KEY_AGREE_NAME1 }; in TestAes256ByAgree() 365 struct HksBlob aesKeyAlias2 = { strlen(TEST_AES_KEY_DERIVE_NAME2), (uint8_t *)TEST_AES_KEY_DERIVE_NAME2 }; in TestAes256ByAgree() 372 struct HksBlob plainText1 = { strlen(TEST_PLAIN_TEST) + 1, (uint8_t*)TEST_PLAIN_TEST }; in TestAes256ByAgree() 406 struct HksBlob baseKeyAlias1 = { strlen(TEST_AES_KEY_BASE_NAME_ in TestAes256ByAgree1() [all...] |
H A D | hks_test_file_operator.c | 47 if (strncpy_s(fullFileName, fullFileNameLen, path, strlen(path)) != EOK) { in GetFileName() 51 if (path[strlen(path) - 1] != '/') { in GetFileName() 52 if (strncat_s(fullFileName, fullFileNameLen, "/", strlen("/")) != EOK) { in GetFileName() 57 if (strncat_s(fullFileName, fullFileNameLen, fileName, strlen(fileName)) != EOK) { in GetFileName() 61 if (strncpy_s(fullFileName, fullFileNameLen, fileName, strlen(fileName)) != EOK) { in GetFileName() 107 if (memcpy_s(filePath, sizeof(filePath) - 1, fileName, strlen(fileName)) != EOK) { in FileRead() 150 if (memcpy_s(filePath, sizeof(filePath) - 1, fileName, strlen(fileName)) != EOK) { in FileWrite()
|
/test/xts/acts/ability_lite/ability_hal/src/ |
H A D | ability_mgr_test.c | 195 SetWantData(&want, (void *)data, strlen(data) + 1); 198 TEST_ASSERT_TRUE(want.dataLength == strlen(data) + 1); 202 TEST_ASSERT_TRUE(want.dataLength == strlen(data) + 1); 261 bool ret = SetIntParam(&want, key, strlen(key), value); 263 TEST_ASSERT_TRUE(want.dataLength == (strlen(key) + sizeof(int) + DATA_EXTERN)); 292 bool ret = SetStrParam(&want, key, strlen(key), value, strlen(value)); 294 TEST_ASSERT_TRUE(want.dataLength == (strlen(value) + strlen(key) + DATA_EXTERN));
|
/test/xts/device_attest/services/core/security/ |
H A D | attest_security_token.c | 42 (mbedtls_md_hmac_starts(&ctx, (const uint8_t*)challenge, strlen(challenge)) < 0) || in EncryptHmac() 69 int32_t productKeyLen = strlen((const char *)productKey); in GetIKM() 70 int32_t productIdLen = strlen((const char *)productId); in GetIKM() 100 int32_t endingFlagLen = strlen((const char*)endingFlag); in EncryptHmacIterative() 117 int32_t ret = EncryptHmac(challenge, (const uint8_t*)content, strlen(content), hmac, hmacLen); in EncryptHmacIterative() 138 int32_t ret = EncryptHmac(salt, ikm, strlen((const char *)ikm), prk, sizeof(prk)); in GetTokenValueSpecial() 153 ret = EncryptHmacIterative((const char*)prk, udidSha256, strlen((const char*)udidSha256), in GetTokenValueSpecial() 228 int32_t ret = MD5Encode(udidSha256, strlen((const char*)udidSha256), udidMD5, MD5_HEX_LEN + 1); in GetTokenIdSpecial() 259 if (ToLowerStr(udid, strlen(udid)) != ATTEST_OK) { in GetProductSalt() 264 int32_t ret = Sha256ValueToAscii((unsigned char *)udid, strlen(udi in GetProductSalt() [all...] |
/test/xts/device_attest_lite/services/core/security/ |
H A D | attest_security_token.c | 42 (mbedtls_md_hmac_starts(&ctx, (const uint8_t*)challenge, strlen(challenge)) < 0) || in EncryptHmac() 69 int32_t productKeyLen = strlen((const char *)productKey); in GetIKM() 70 int32_t productIdLen = strlen((const char *)productId); in GetIKM() 100 int32_t endingFlagLen = strlen((const char*)endingFlag); in EncryptHmacIterative() 117 int32_t ret = EncryptHmac(challenge, (const uint8_t*)content, strlen(content), hmac, hmacLen); in EncryptHmacIterative() 138 int32_t ret = EncryptHmac(salt, ikm, strlen((const char *)ikm), prk, sizeof(prk)); in GetTokenValueSpecial() 153 ret = EncryptHmacIterative((const char*)prk, udidSha256, strlen((const char*)udidSha256), in GetTokenValueSpecial() 228 int32_t ret = MD5Encode(udidSha256, strlen((const char*)udidSha256), udidMD5, MD5_HEX_LEN + 1); in GetTokenIdSpecial() 259 if (ToLowerStr(udid, strlen(udid)) != ATTEST_OK) { in GetProductSalt() 264 int32_t ret = Sha256ValueToAscii((unsigned char *)udid, strlen(udi in GetProductSalt() [all...] |
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/ |
H A D | uiondk.cpp | 65 struct iovec ios[] = {{buf1, strlen(buf1)}, {buf2, strlen(buf2)}};
in Readv() 71 if (value == strlen(buf1) + strlen(buf2)) {
in Readv() 100 iov[PARAM_0].iov_len = strlen(str0) + PARAM_1;
in Writev() 102 iov[PARAM_1].iov_len = strlen(str1) + PARAM_1;
in Writev() 123 struct iovec ios[] = {{buf1, strlen(buf1)}, {buf2, strlen(buf2)}};
in PReadV() 129 if (value == strlen(buf1) + strlen(buf in PReadV() [all...] |
H A D | unistdndk1.cpp | 89 napi_create_int32(env, ret == strlen(g_tempFileContent), &result);
in PreadChk_One() 116 napi_create_int32(env, ret == strlen(g_tempFileContent), &result);
in ReadChk_One() 134 size_t ret = pwrite(fileDescribe, g_tempFileContent, strlen(g_tempFileContent), PARAM_0);
in PWrite_One() 137 napi_create_int32(env, ret == strlen(g_tempFileContent), &result);
in PWrite_One() 144 int ret = pwrite(MPARAM_1, g_tempFileContent, strlen(g_tempFileContent), PARAM_0);
in PWrite_Two() 155 pwrite(fileDescribe, g_tempFileContent, strlen(g_tempFileContent), PARAM_0);
in PRead64_One() 160 napi_create_int32(env, ret == strlen(g_tempFileContent), &result);
in PRead64_One() 178 size_t ret = pwrite64(fileDescribe, g_tempFileContent, strlen(g_tempFileContent), PARAM_0);
in PWrite64_One() 181 napi_create_int32(env, ret == strlen(g_tempFileContent), &result);
in PWrite64_One() 188 int ret = pwrite64(MPARAM_1, g_tempFileContent, strlen(g_tempFileConten in PWrite64_Two() [all...] |
/test/xts/acts/graphic/acts_drawing_native/ |
H A D | DrawingNativeTextBlobTest.cpp | 144 byteLength = strlen(str); in HWTEST_F() 146 byteLength = strlen(str) * 2; in HWTEST_F() 148 byteLength = strlen(str) * 4; in HWTEST_F() 150 byteLength = strlen(str) * 16; in HWTEST_F() 177 OH_Drawing_TextBlob *textBlob1 = OH_Drawing_TextBlobCreateFromText(nullptr, strlen(str), font, TEXT_ENCODING_UTF8); in HWTEST_F() 185 OH_Drawing_TextBlob *textBlob3 = OH_Drawing_TextBlobCreateFromText(str, strlen(str), nullptr, TEXT_ENCODING_UTF8); in HWTEST_F() 221 OH_Drawing_TextBlob *textBlob = OH_Drawing_TextBlobCreateFromText(str, strlen(str), font, TEXT_ENCODING_UTF8); in HWTEST_F() 248 OH_Drawing_TextBlobCreateFromText(str, strlen(str), font, static_cast<OH_Drawing_TextEncoding>(-1)); in HWTEST_F() 272 size_t byteLength = strlen(str); in HWTEST_F() 295 int count = OH_Drawing_FontCountText(font, str, strlen(st in HWTEST_F() [all...] |
H A D | DrawingNativeFontTest.cpp | 583 int count = OH_Drawing_FontCountText(font, str, strlen(str), encode); in HWTEST_F() 619 OH_Drawing_FontCountText(nullptr, str, strlen(str), TEXT_ENCODING_UTF8); in HWTEST_F() 623 OH_Drawing_FontCountText(font, nullptr, strlen(str), TEXT_ENCODING_UTF8); in HWTEST_F() 649 int count = OH_Drawing_FontCountText(font, str, strlen(str), TEXT_ENCODING_UTF8); in HWTEST_F() 708 int count = OH_Drawing_FontCountText(font, str, strlen(str), encode); in HWTEST_F() 709 OH_Drawing_FontTextToGlyphs(font, str, strlen(str), encode, glyphs, count); in HWTEST_F() 730 int count = OH_Drawing_FontCountText(font, str, strlen(str), TEXT_ENCODING_UTF8); in HWTEST_F() 733 OH_Drawing_FontTextToGlyphs(nullptr, str, strlen(str), TEXT_ENCODING_UTF8, glyphs, count); in HWTEST_F() 737 OH_Drawing_FontTextToGlyphs(font, nullptr, strlen(str), TEXT_ENCODING_UTF8, glyphs, count); in HWTEST_F() 745 OH_Drawing_FontTextToGlyphs(font, str, strlen(st in HWTEST_F() [all...] |
/test/xts/acts/security/asset/asset_ndk/entry/src/main/cpp/ |
H A D | hello.cpp | 43 Asset_Blob secret = {static_cast<uint32_t>(strlen(secretBuffer)), reinterpret_cast<uint8_t *>(secretBuffer)}; in Asset_Add() 44 Asset_Blob alias = {static_cast<uint32_t>(strlen(aliasBuffer)), reinterpret_cast<uint8_t *>(aliasBuffer)}; in Asset_Add() 77 Asset_Blob secret = {static_cast<uint32_t>(strlen(secretBuffer)), reinterpret_cast<uint8_t *>(secretBuffer)}; in Asset_AddCE() 78 Asset_Blob alias = {static_cast<uint32_t>(strlen(aliasBuffer)), reinterpret_cast<uint8_t *>(aliasBuffer)}; in Asset_AddCE() 129 Asset_Blob secret = {static_cast<uint32_t>(strlen(secretBuffer)), reinterpret_cast<uint8_t *>(secretBuffer)}; in Asset_Add_Auth() 130 Asset_Blob alias = {static_cast<uint32_t>(strlen(aliasBuffer)), reinterpret_cast<uint8_t *>(aliasBuffer)}; in Asset_Add_Auth() 131 Asset_Blob label = {static_cast<uint32_t>(strlen(DEMO_LABEL)), in Asset_Add_Auth() 197 Asset_Blob alias2 = {static_cast<uint32_t>(strlen(aliasBuffer2)), reinterpret_cast<uint8_t *>(aliasBuffer2)}; in Asset_PreAndPostQueryNormal() 198 Asset_Blob alias = {static_cast<uint32_t>(strlen(aliasBuffer)), reinterpret_cast<uint8_t *>(aliasBuffer)}; in Asset_PreAndPostQueryNormal() 238 Asset_Blob secret = {static_cast<uint32_t>(strlen(secretBuffe in Asset_PreAndPostQueryError() [all...] |
/test/xts/device_attest/services/core/utils/ |
H A D | attest_utils_file.c | 33 uint32_t filePathLen = strlen(dirPath) + 1 + strlen(fileName) + 1; in GenFilePath() 179 uint32_t realPathLen = strlen(formatPath) + 1 + strlen(fileName) + 1; in CreateFileImpl() 229 if ((strlen(formatPath) >= MAX_ATTEST_MALLOC_BUFF_SIZE) ||\ in CreateFile() 230 (strlen(fileName) >= MAX_ATTEST_MALLOC_BUFF_SIZE) ||\ in CreateFile() 231 (strlen(formatPath) + strlen(fileName)) >= MAX_ATTEST_MALLOC_BUFF_SIZE) { in CreateFile()
|
/test/xts/device_attest_lite/services/core/attest/ |
H A D | attest_service_device.c | 100 if (CheckSysInfosLength(type, strlen(value)) != ATTEST_OK) { in SetSysData() 179 (void)memset_s(g_devSysInfos[i], strlen(g_devSysInfos[i]), 0, strlen(g_devSysInfos[i])); in DestroySysData() 256 int32_t enShortNameLen = strlen(enShortName); in GetUdidDecrypted() 257 int32_t modelLen = strlen(model); in GetUdidDecrypted() 258 int32_t snLen = strlen(sn); in GetUdidDecrypted() 262 if (strlen(sn) > MAX_ATTEST_SERIAL_LEN) { in GetUdidDecrypted() 306 ret = Sha256Value(udid, strlen((const char *)udid), (char*)udidSha256, UDID_STRING_LEN + 1); in GetUdidForVerification()
|
/test/testfwk/arkxtest/uitest/test/ |
H A D | extension_test.cpp | 153 memcpy_s(arg0, ARG_BUF_SIZE - 1, "--extension-name", strlen("--extension-name")); in TEST_F() 154 memcpy_s(arg1, ARG_BUF_SIZE - 1, "agent.so", strlen("agent.so")); in TEST_F() 155 memcpy_s(arg2, ARG_BUF_SIZE - 1, "--arg1", strlen("--arg1")); in TEST_F() 156 memcpy_s(arg3, ARG_BUF_SIZE - 1, "--val1", strlen("--val1")); in TEST_F() 165 memcpy_s(arg1, ARG_BUF_SIZE - 1, "notexist.so", strlen("notexist.so")); in TEST_F() 237 auto tag = Text { .data = "TAG", .size = strlen("TAG") }; in PrintLog() 238 auto fmt = Text { .data = format, .size = format == nullptr ? 0: strlen(format) }; in PrintLog() 315 auto callIn = Text { .data = suite.inMsg, .size = suite.inMsg == nullptr? 0 : strlen(suite.inMsg) }; in TEST_F() 352 auto goodName = Text{ .data = "recordUiAction", .size = strlen("recordUiAction") }; in TEST_F() 353 auto goodOpt = Text{ .data = "{}", .size = strlen("{}") }; in TEST_F() [all...] |
/test/xts/device_attest/services/core/network/ |
H A D | attest_network.c | 142 SHA256_Update(&sha256, udid, strlen(udid)); in Sha256Udid() 196 int32_t traceIdLen = strlen(randomUuid) + clientIdLastLen + 2; // traceid拼写规则:clientId后10位+'_'+randomUuid+'\0'(2字符) in SetSocketTracekId() 203 int32_t retCode = memcpy_s(tracekId, traceIdLen, clientId + strlen(clientId) - clientIdLastLen, clientIdLastLen); in SetSocketTracekId() 707 ATTEST_LOG_DEBUG("[BuildHttpsResetBody] ResetBody [%zu]\n%s\n", strlen(bodyData), bodyData); in BuildHttpsResetBody() 753 ATTEST_LOG_DEBUG("[BuildHttpsAuthBody] AuthBody [%zu]\n%s\n", strlen(bodyData), bodyData); in BuildHttpsAuthBody() 794 ATTEST_LOG_DEBUG("[BuildHttpsActiveBody] ActiBody [%zu]\n%s\n", strlen(bodyData), bodyData); in BuildHttpsActiveBody() 828 uint32_t headerLen = strlen(header); in BuildHttpsMsg() 829 uint32_t bodyLen = strlen(body); in BuildHttpsMsg() 879 retCode = BuildHttpsHead(devPacket, strlen(body), actionType, &header); in GenHttpsMsg() 931 int32_t postDataLen = strlen(postDat in SendHttpsMsg() [all...] |
/test/xts/acts/security/huks/huks_napi_BasicTest/src/ |
H A D | huks_warpped_test.cpp | 55 static struct OH_Huks_Blob g_wrappingKeyAliasAes256 = {.size = strlen("test_wrappingKey_x25519_aes256"), 58 static struct OH_Huks_Blob g_callerKeyAliasAes256 = {.size = strlen("test_caller_key_x25519_aes256"), 61 static struct OH_Huks_Blob g_callerKekAliasAes256 = {.size = strlen("test_caller_kek_x25519_aes256"), 64 static struct OH_Huks_Blob g_callerAes256Kek = {.size = strlen("This is kek to encrypt plain key"), 67 static struct OH_Huks_Blob g_callerAgreeKeyAliasAes256 = {.size = strlen("test_caller_agree_key_x25519_aes256"), 70 static struct OH_Huks_Blob g_importedKeyAliasAes256 = {.size = strlen("test_import_key_x25519_aes256"), 73 static struct OH_Huks_Blob g_importedAes256PlainKey = {.size = strlen("This is plain key to be imported"),
|
/test/xts/dcts/communication/softbus_standard/dsoftbusTest/ |
H A D | dsoftbusTest.cpp | 191 if (strncmp(msg.c_str(), CTRL_MSG_CLOSE_WIFI_TEN_SEC, strlen(CTRL_MSG_CLOSE_WIFI_TEN_SEC)) == 0) {
in GetCodeByMsg() 193 } else if (strncmp(msg.c_str(), CTRL_MSG_CLOSE_WIFI_THREE_SEC, strlen(CTRL_MSG_CLOSE_WIFI_THREE_SEC)) == 0) {
in GetCodeByMsg() 195 } else if (strncmp(msg.c_str(), CTRL_MSG_CLOSE_WIFI_TEN_MIN, strlen(CTRL_MSG_CLOSE_WIFI_TEN_MIN)) == 0) {
in GetCodeByMsg() 197 } else if (strncmp(msg.c_str(), CTRL_MSG_CLOSE_WIFI_FIVE_MIN, strlen(CTRL_MSG_CLOSE_WIFI_FIVE_MIN)) == 0) {
in GetCodeByMsg() 199 } else if (strncmp(msg.c_str(), CTRL_MSG_CHANGE_WIFI_TEN_SEC, strlen(CTRL_MSG_CHANGE_WIFI_TEN_SEC)) == 0) {
in GetCodeByMsg() 201 } else if (strncmp(msg.c_str(), CTRL_MSG_CHANGE_WIFI_SIXTY_SEC, strlen(CTRL_MSG_CHANGE_WIFI_SIXTY_SEC)) == 0) {
in GetCodeByMsg() 203 } else if (strncmp(msg.c_str(), CTRL_MSG_CLOSE_BR, strlen(CTRL_MSG_CLOSE_BR)) == 0) {
in GetCodeByMsg() 205 } else if (strncmp(msg.c_str(), CTRL_MSG_CLOSE_OPEN_BR, strlen(CTRL_MSG_CLOSE_OPEN_BR)) == 0) {
in GetCodeByMsg() 207 } else if (strncmp(msg.c_str(), CTRL_MSG_OPEN_SESSION, strlen(CTRL_MSG_OPEN_SESSION)) == 0) {
in GetCodeByMsg() 209 } else if (strncmp(msg.c_str(), CTRL_MSG_OPEN_SESSION_MSG, strlen(CTRL_MSG_OPEN_SESSION_MS in GetCodeByMsg() [all...] |
/test/xts/acts/communication_lite/lwip_posix/src/ |
H A D | ActsLwipTest.cpp | 129 rst = send(clnFd, dataBuf, strlen(dataBuf), 0); in CommTcpClientTask() 143 rst = send(clnFd, sendMsgList[count], strlen(sendMsgList[count]), 0); in CommTcpClientTask() 184 unsigned int srvMsgLen = strlen(g_srvMsg); in SampleTcpServerTask() 195 EXPECT_EQ(strlen(g_cliMsg), (unsigned int)ret); in SampleTcpServerTask() 230 EXPECT_EQ(len * strlen(g_cliMsg), (unsigned int)ret); in SampleTcpServerTask() 272 unsigned int cliMsgLen = strlen(g_cliMsg); in SampleTcpClientTask() 283 EXPECT_EQ(strlen(g_srvMsg), (unsigned int)ret); in SampleTcpClientTask() 319 EXPECT_EQ(len * strlen(g_srvMsg), (unsigned int)ret); in SampleTcpClientTask() 360 ret = send(cliFd, dataBuf, strlen(dataBuf), 0); in TcpServerForFork() 481 len = send(fds[i], dataBuf, strlen(dataBu in SelectServerForFork() [all...] |
/test/xts/device_attest/services/core/attest/ |
H A D | attest_service_device.c | 102 if (CheckSysInfosLength(type, strlen(value)) != ATTEST_OK) { in SetSysData() 183 (void)memset_s(g_devSysInfos[i], strlen(g_devSysInfos[i]), 0, strlen(g_devSysInfos[i])); in DestroySysData() 364 int32_t enShortNameLen = strlen(enShortName); in GetUdidDecrypted() 365 int32_t modelLen = strlen(model); in GetUdidDecrypted() 366 int32_t snLen = strlen(sn); in GetUdidDecrypted() 370 if (strlen(sn) > MAX_ATTEST_SERIAL_LEN) { in GetUdidDecrypted() 414 ret = Sha256Value(udid, strlen((const char *)udid), (char*)udidSha256, UDID_STRING_LEN + 1); in GetUdidForVerification()
|