/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_service/storage/src/ |
H A D | hks_storage_manager_test.cpp | 91 .data = (uint8_t *)"HksStorageManagerTest001", .size = strlen("HksStorageManagerTest001") in HWTEST_F() 110 ASSERT_EQ(strlen((char *)alias.data), strlen(material.keyAliasPath)); in HWTEST_F() 111 ASSERT_EQ(EOK, HksMemCmp(alias.data, material.keyAliasPath, strlen(material.keyAliasPath))); in HWTEST_F() 113 ASSERT_EQ(strlen(HKS_KEY_STORE_KEY_PATH), strlen(material.storageTypePath)); in HWTEST_F() 114 ASSERT_EQ(EOK, HksMemCmp(HKS_KEY_STORE_KEY_PATH, material.storageTypePath, strlen(material.storageTypePath))); in HWTEST_F() 116 ASSERT_EQ(strlen("1"), strlen(material.uidPath)) << "uid path is " << material.uidPath; in HWTEST_F() 117 ASSERT_EQ(EOK, HksMemCmp("1", material.uidPath, strlen(materia in HWTEST_F() [all...] |
H A D | hks_storage_util_test.cpp | 92 ASSERT_EQ(strlen(fileInfo.mainPath.fileName), strlen(material.keyAliasPath)); in HWTEST_F() 93 ASSERT_EQ(EOK, HksMemCmp(fileInfo.mainPath.fileName, material.keyAliasPath, strlen(material.keyAliasPath))); in HWTEST_F() 97 ASSERT_EQ(strlen(fileInfo.mainPath.path), strlen(expectPath)) << fileInfo.mainPath.path; in HWTEST_F() 98 ASSERT_EQ(EOK, HksMemCmp(fileInfo.mainPath.path, expectPath, strlen(expectPath))); in HWTEST_F() 121 ASSERT_EQ(strlen(fileInfo.mainPath.fileName), strlen(material.keyAliasPath)); in HWTEST_F() 122 ASSERT_EQ(EOK, HksMemCmp(fileInfo.mainPath.fileName, material.keyAliasPath, strlen(material.keyAliasPath))); in HWTEST_F() 126 ASSERT_EQ(strlen(fileInf in HWTEST_F() [all...] |
/third_party/curl/tests/unit/ |
H A D | unit1603.c | 66 if(Curl_hash_str(key1, strlen(key1), slots) != 1 || 67 Curl_hash_str(key2, strlen(key2), slots) != 0 || 68 Curl_hash_str(key3, strlen(key3), slots) != 2 || 69 Curl_hash_str(key4, strlen(key4), slots) != 1) 73 nodep = Curl_hash_add(&hash_static, &key1, strlen(key1), &key1); 75 nodep = Curl_hash_pick(&hash_static, &key1, strlen(key1)); 78 nodep = Curl_hash_add(&hash_static, &key2, strlen(key2), &key2); 80 nodep = Curl_hash_pick(&hash_static, &key2, strlen(key2)); 83 nodep = Curl_hash_add(&hash_static, &key3, strlen(key3), &key3); 85 nodep = Curl_hash_pick(&hash_static, &key3, strlen(key [all...] |
/base/security/huks/frameworks/huks_standard/main/os_dependency/ipc/src/ |
H A D | hks_client_service_passthrough.c | 54 struct HksBlob processNameBlob = { strlen(processName), (uint8_t *)processName };
in HksClientRefreshKeyInfo() 68 { strlen(userId), (uint8_t *)userId },
in HksClientGenerateKey() 69 { strlen(processName), (uint8_t *)processName },
in HksClientGenerateKey() 86 { strlen(userId), (uint8_t *)userId },
in HksClientImportKey() 87 { strlen(processName), (uint8_t *)processName },
in HksClientImportKey() 104 { strlen(userId), (uint8_t *)userId },
in HksClientImportWrappedKey() 105 { strlen(processName), (uint8_t *)processName },
in HksClientImportWrappedKey() 123 { strlen(userId), (uint8_t *)userId },
in HksClientExportPublicKey() 124 { strlen(processName), (uint8_t *)processName },
in HksClientExportPublicKey() 140 { strlen(userI in HksClientDeleteKey() [all...] |
/third_party/ltp/testcases/kernel/fs/stream/ |
H A D | stream03.c | 87 if (fwrite(junk, sizeof(*junk), strlen(junk), stream) == 0) { in main() 94 if (pos != strlen(junk)) { in main() 96 "strlen(junk)=%zi: file pointer descrepancy 2 (pos=%li)", in main() 97 strlen(junk), pos); in main() 113 if (fseek(stream, strlen(junk), 1) != 0) { in main() 120 if (pos != strlen(junk)) { in main() 122 "strlen(junk)=%zi: file pointer descrepancy 4 (pos=%li)", in main() 123 strlen(junk), pos); in main() 135 if (pos != strlen(junk)) { in main() 137 "strlen(jun in main() [all...] |
/base/global/i18n_lite/frameworks/i18n/src/ |
H A D | date_time_data.cpp | 27 size_t len = strlen(const_cast<char*>(amPmMarkers));
in DateTimeData() 87 return (strlen(amPmMarkers) > 0) ? Parse(amPmMarkers, index) : "";
in GetAmPmMarker() 126 strlen(formatAbbreviatedMonthNames));
in SetMonthNamesData() 127 this->formatWideMonthNames = NewArrayAndCopy(formatWideMonthNames, strlen(formatWideMonthNames));
in SetMonthNamesData() 129 strlen(standaloneAbbreviatedMonthNames));
in SetMonthNamesData() 130 this->standaloneWideMonthNames = NewArrayAndCopy(standaloneWideMonthNames, strlen(standaloneWideMonthNames));
in SetMonthNamesData() 141 strlen(formatAbbreviatedDayNames));
in SetDayNamesData() 142 this->formatWideDayNames = NewArrayAndCopy(formatWideDayNames, strlen(formatWideDayNames));
in SetDayNamesData() 144 strlen(standaloneAbbreviatedDayNames));
in SetDayNamesData() 145 this->standaloneWideDayNames = NewArrayAndCopy(standaloneWideDayNames, strlen(standaloneWideDayName in SetDayNamesData() [all...] |
/base/startup/appspawn/test/unittest/hnp_test/ |
H A D | hnp_pack_test.cpp | 160 EXPECT_EQ(fwrite(cfg, sizeof(char), strlen(cfg) + 1, fp), strlen(cfg) + 1);
in HWTEST_F() 199 EXPECT_EQ(fwrite(cfg, sizeof(char), strlen(cfg) + 1, fp), strlen(cfg) + 1);
in HWTEST_F() 209 EXPECT_EQ(fwrite(cfg, sizeof(char), strlen(cfg) + 1, fp), strlen(cfg) + 1);
in HWTEST_F() 249 EXPECT_EQ(fwrite(cfg, sizeof(char), strlen(cfg) + 1, fp), strlen(cfg) + 1);
in HWTEST_F() 259 EXPECT_EQ(fwrite(cfg, sizeof(char), strlen(cfg) + 1, fp), strlen(cf in HWTEST_F() [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/stdio/ |
H A D | fopen.c | 44 size_t wrsize = fwrite(wstring, sizeof(char), strlen(wstring), fptr); in fopen_0100() 58 if (!strncmp(abc, add, strlen(add))) { in fopen_0100() 62 size_t wrsize = fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in fopen_0100() 100 size_t wrsize = fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in fopen_0300() 104 } else if (wrsize == strlen(wrstring)) { in fopen_0300() 131 size_t wrsize = fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in fopen_0400() 134 } else if (wrsize == strlen(wrstring)) { in fopen_0400() 163 size_t wrsize = fwrite(wstring, sizeof(char), strlen(wstring), fptr); in fopen_0500() 175 size_t wrsize = fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in fopen_0500() 178 } else if (wrsize == strlen(wrstrin in fopen_0500() [all...] |
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/ |
H A D | cert_manager_uri.c | 87 size_t resAvailLen = strlen(resAvail); in GetComponentEncodedLen() 88 size_t keyLen = strlen(key); in GetComponentEncodedLen() 89 size_t valueLen = strlen(value); in GetComponentEncodedLen() 109 uint32_t len = strlen(SCHEME); in GetEncodedLen() 146 size_t resAvailLen = strlen(resAvail); in EncodeComp() 147 size_t keyLen = strlen(key); in EncodeComp() 148 size_t valueLen = strlen(value); in EncodeComp() 298 if (memcpy_s(encoded, avail, SCHEME, strlen(SCHEME)) != EOK) { in CertManagerUriEncode() 301 off += strlen(SCHEME); in CertManagerUriEncode() 302 avail -= strlen(SCHEM in CertManagerUriEncode() [all...] |
/vendor/hisilicon/hispark_pegasus/demo/coap_demo/ |
H A D | iot_main.c | 93 topicLength = strlen(topic); in MsgRcvCallBack() 142 pubmsg.payloadlen = (int)strlen(msg->payload); in IoTMsgProcess() 247 clientID = hi_malloc(0, strlen(CN_CLIENTID_FMT) + strlen(CONFIG_DEVICE_ID) + strlen(CN_EVENT_TIME) + 1); in MainEntryProcess() 251 ret = snprintf_s(clientID, strlen(CN_CLIENTID_FMT) + strlen(CONFIG_DEVICE_ID) + strlen(CN_EVENT_TIME) + in MainEntryProcess() 252 CN_QUEUE_MSGNUM, strlen(CN_CLIENTID_FMT) + strlen(CONFIG_DEVICE_I in MainEntryProcess() [all...] |
/vendor/hisilicon/hispark_pegasus/demo/oc_demo/ |
H A D | iot_main.c | 93 topicLength = strlen(topic); in MsgRcvCallBack() 136 pubmsg.payloadlen = (int)strlen(msg->payload); in IoTMsgProcess() 240 clientID = hi_malloc(0, strlen(CN_CLIENTID_FMT) + strlen(CONFIG_DEVICE_ID) + strlen(CN_EVENT_TIME) + 1); in MainEntryProcess() 244 if (snprintf_s(clientID, strlen(CN_CLIENTID_FMT) + strlen(CONFIG_DEVICE_ID) + strlen(CN_EVENT_TIME) + in MainEntryProcess() 245 CN_QUEUE_MSGNUM, strlen(CN_CLIENTID_FMT) + strlen(CONFIG_DEVICE_I in MainEntryProcess() [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/temp/ |
H A D | mkostemp.c | 32 int cnt = write(fd, tmpfile, strlen(tmpfile)); in mkostemp_0100() 33 EXPECT_TRUE("mkostemp_0100", cnt == strlen(tmpfile)); in mkostemp_0100() 55 int cnt = write(fd, tmpfile, strlen(tmpfile)); in mkostemp_0200() 56 EXPECT_TRUE("mkostemp_0200", cnt == strlen(tmpfile)); in mkostemp_0200() 78 int cnt = write(fd, tmpfile, strlen(tmpfile)); in mkostemp_0300() 79 EXPECT_TRUE("mkostemp_0300", cnt == strlen(tmpfile)); in mkostemp_0300() 101 int cnt = write(fd, tmpfile, strlen(tmpfile)); in mkostemp_0400() 102 EXPECT_TRUE("mkostemp_0400", cnt == strlen(tmpfile)); in mkostemp_0400() 124 int cnt = write(fd, tmpfile, strlen(tmpfile)); in mkostemp_0500() 125 EXPECT_TRUE("mkostemp_0500", cnt == strlen(tmpfil in mkostemp_0500() [all...] |
H A D | mkostemps.c | 29 int fd = mkostemps(tmpfile, strlen(".dat"), O_CREAT); in mkostemps_0100() 32 int cnt = write(fd, tmpfile, strlen(tmpfile)); in mkostemps_0100() 33 EXPECT_TRUE("mkostemps_0100", cnt == strlen(tmpfile)); in mkostemps_0100() 55 int cnt = write(fd, tmpfile, strlen(tmpfile)); in mkostemps_0200() 56 EXPECT_TRUE("mkostemps_0200", cnt == strlen(tmpfile)); in mkostemps_0200() 74 int fd = mkostemps(tmpfile, strlen(".dat"), O_CREAT); in mkostemps_0300() 77 int cnt = write(fd, tmpfile, strlen(tmpfile)); in mkostemps_0300() 78 EXPECT_TRUE("mkostemps_0300", cnt == strlen(tmpfile)); in mkostemps_0300()
|
H A D | mkstemps.c | 27 int fd = mkstemps(tmpfile, strlen(".dat")); in mkstemps_0100() 30 int cnt = write(fd, tmpfile, strlen(tmpfile)); in mkstemps_0100() 31 EXPECT_TRUE("mkstemps_0100", cnt == strlen(tmpfile)); in mkstemps_0100() 52 int cnt = write(fd, tmpfile, strlen(tmpfile)); in mkstemps_0200() 53 EXPECT_TRUE("mkstemps_0200", cnt == strlen(tmpfile)); in mkstemps_0200() 71 int fd = mkstemps(tmpfile, strlen(".dat")); in mkstemps_0300() 74 int cnt = write(fd, tmpfile, strlen(tmpfile)); in mkstemps_0300() 75 EXPECT_TRUE("mkstemps_0300", cnt == strlen(tmpfile)); in mkstemps_0300()
|
/base/startup/init/test/unittest/param/ |
H A D | param_shell_unittest.cpp | 73 bshd->length = strlen(bshd->buffer); in TestParamShellCmd() 79 bshd->length = strlen(bshd->buffer); in TestParamShellCmd() 85 bshd->length = strlen(bshd->buffer); in TestParamShellCmd() 92 bshd->length = strlen(bshd->buffer); in TestParamShellCmd() 99 bshd->length = strlen(bshd->buffer); in TestParamShellCmd() 105 bshd->length = strlen(bshd->buffer); in TestParamShellCmd() 111 bshd->length = strlen(bshd->buffer); in TestParamShellCmd() 123 bshd->length = strlen(bshd->buffer); in TestParamShellCmd1() 129 bshd->length = strlen(bshd->buffer); in TestParamShellCmd1() 135 bshd->length = strlen(bsh in TestParamShellCmd1() [all...] |
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/include/asymmetric_alg_test/ |
H A D | hks_dh_agree_test.h | 30 strlen("HksDHAgreeKeyAliasTest001_1"), 34 strlen("HksDHAgreeKeyAliasTest001_2"), 38 strlen("HksDHAgreeKeyAliasTest001_1_final"), 42 strlen("HksDHAgreeKeyAliasTest001_2_final"), 108 strlen("HksDHAgreeKeyAliasTest002_1"), 112 strlen("HksDHAgreeKeyAliasTest002_2"), 116 strlen("HksDHAgreeKeyAliasTest002_1_final"), 120 strlen("HksDHAgreeKeyAliasTest002_2_final"), 186 strlen("HksDHAgreeKeyAliasTest003_1"), 190 strlen("HksDHAgreeKeyAliasTest003_ [all...] |
/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...] |
/base/security/huks/test/fuzz_test/innerapi_fuzzer/hksstorage_fuzzer/ |
H A D | hksstorage_fuzzer.cpp | 335 .data = (uint8_t *)"HksStorageManagerTest001", .size = strlen("HksStorageManagerTest001") in HksStorageManagerTest001() 354 HksMemCmp(alias.data, material.keyAliasPath, strlen(material.keyAliasPath)); in HksStorageManagerTest001() 355 HksMemCmp(HKS_KEY_STORE_KEY_PATH, material.storageTypePath, strlen(material.storageTypePath)); in HksStorageManagerTest001() 357 HksMemCmp("1", material.uidPath, strlen(material.uidPath)); in HksStorageManagerTest001() 358 HksMemCmp("1", material.userIdPath, strlen(material.userIdPath)); in HksStorageManagerTest001() 378 .data = (uint8_t *)"HksStorageManagerTest002", .size = strlen("HksStorageManagerTest002") in HksStorageManagerTest002() 394 HksMemCmp(alias.data, material.keyAliasPath, strlen(material.keyAliasPath)); in HksStorageManagerTest002() 395 HksMemCmp(HKS_KEY_STORE_KEY_PATH, material.storageTypePath, strlen(material.storageTypePath)); in HksStorageManagerTest002() 397 HksMemCmp("2", material.uidPath, strlen(material.uidPath)); in HksStorageManagerTest002() 398 HksMemCmp("2", material.userIdPath, strlen(materia in HksStorageManagerTest002() [all...] |
/third_party/musl/libc-test/src/functional/ |
H A D | renameat2_test.c | 42 size_t len = strlen(msg);
in WriteFile() 106 CompareFileString(g_newPath, strlen(g_oldMsg), g_oldMsg);
in RenameNoReplaceTest() 115 CompareFileString(g_oldPath, strlen(g_oldMsg), g_oldMsg);
in RenameNoReplaceTest() 116 CompareFileString(g_newPath, strlen(g_newMsg), g_newMsg);
in RenameNoReplaceTest() 128 CompareFileString(g_newPath, strlen(g_oldMsg), g_oldMsg);
in RenameNoReplaceTest() 137 CompareFileString(g_oldPath, strlen(g_oldMsg), g_oldMsg);
in RenameNoReplaceTest() 138 CompareFileString(g_newPath, strlen(g_newMsg), g_newMsg);
in RenameNoReplaceTest() 153 CompareFileString(g_newPath, strlen(g_oldMsg), g_oldMsg);
in ZeroTest() 166 CompareFileString(g_newPath, strlen(g_oldMsg), g_oldMsg);
in ZeroTest() 178 CompareFileString(g_newPath, strlen(g_oldMs in ZeroTest() [all...] |
/third_party/skia/third_party/externals/microhttpd/src/microhttpd/ |
H A D | digestauth.c | 111 MD5Update (&md5, username, strlen (username)); in digest_calc_ha1() 113 MD5Update (&md5, realm, strlen (realm)); in digest_calc_ha1() 115 MD5Update (&md5, password, strlen (password)); in digest_calc_ha1() 122 MD5Update (&md5, nonce, strlen (nonce)); in digest_calc_ha1() 124 MD5Update (&md5, cnonce, strlen (cnonce)); in digest_calc_ha1() 161 MD5Update (&md5, method, strlen(method)); in digest_calc_response() 163 MD5Update (&md5, uri, strlen(uri)); in digest_calc_response() 171 MD5Update (&md5, hentity, strlen(hentity)); in digest_calc_response() 180 MD5Update (&md5, nonce, strlen(nonce)); in digest_calc_response() 184 MD5Update (&md5, noncecount, strlen(noncecoun in digest_calc_response() [all...] |
/base/startup/init/services/modules/seccomp/ |
H A D | seccomp_policy.c | 101 size_t maxFilterNameLen = PATH_MAX - strlen(FILTER_LIB_PATH_FORMAT) + strlen("%s") - 1; in GetFilterFileByName() 102 if (filterName == NULL || strlen(filterName) > maxFilterNameLen) { in GetFilterFileByName() 110 strlen(filterName) + strlen(FILTER_LIB_PATH_FORMAT) - strlen("%s"), \ in GetFilterFileByName() 126 if (memcpy_s(filterLibRealPath, pathSize, files->paths[0], strlen(files->paths[0]) + 1) == EOK) { in GetFilterFileByName() 153 strlen(filterName) + strlen(FILTER_NAME_FORMAT) - strlen(" in GetSeccompPolicy() [all...] |
/third_party/ltp/testcases/kernel/pty/ |
H A D | hangup01.c | 90 size_t len = strlen(MESSAGE1); in parent() 115 strlen(MESSAGE1)) != 0) { in parent() 119 len = strlen(MESSAGE2); in parent() 123 strlen(MESSAGE2)) != 0) { in parent() 127 len = strlen(MESSAGE3); in parent() 131 strlen(MESSAGE3)) != 0) { in parent() 169 if (write(slavefd, MESSAGE1, strlen(MESSAGE1)) != strlen(MESSAGE1)) { in child() 181 if (write(slavefd, MESSAGE2, strlen(MESSAGE2)) != strlen(MESSAGE in child() [all...] |
/third_party/protobuf/src/google/protobuf/stubs/ |
H A D | substitute.h | 92 : text_(value), size_(strlen(text_)) {} in SubstituteArg() 109 : text_(FastInt32ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg() 111 : text_(FastUInt32ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg() 113 : text_(FastInt32ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg() 115 : text_(FastUInt32ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg() 117 : text_(FastLongToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg() 119 : text_(FastULongToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg() 121 : text_(FastInt64ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg() 123 : text_(FastUInt64ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg() 125 : text_(FloatToBuffer(value, scratch_)), size_(strlen(text in SubstituteArg() [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/misc/ |
H A D | uname.c | 36 if (strlen(buf.sysname) == 0) { in uname_0100() 40 if (strlen(buf.nodename) == 0) { in uname_0100() 44 if (strlen(buf.release) == 0) { in uname_0100() 48 if (strlen(buf.version) == 0) { in uname_0100() 52 if (strlen(buf.machine) == 0) { in uname_0100() 57 if (strlen(buf.domainname) == 0) { in uname_0100() 61 if (strlen(buf.__domainname) == 0) { in uname_0100()
|
/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...] |