Home
last modified time | relevance | path

Searched refs:strlen (Results 1 - 25 of 5620) sorted by relevance

12345678910>>...225

/foundation/communication/wifi/wifi/test/wifi_standard/wifi_hal/unittest/
H A Dwifi_hal_crpc_server_add_test.cpp94 mContext->nPos = strlen("N\tP2pSetRandomMac\t"); in HWTEST_F()
95 mContext->nSize = strlen(buff); in HWTEST_F()
99 mContext->nPos = strlen("N\tP2pSetRandomMac\t"); in HWTEST_F()
100 mContext->nSize = strlen(buff1); in HWTEST_F()
110 mContext->nPos = strlen("N\tP2pSetDeviceName\t"); in HWTEST_F()
111 mContext->nSize = strlen(buff); in HWTEST_F()
115 mContext->nPos = strlen("N\tP2pSetDeviceName\t"); in HWTEST_F()
116 mContext->nSize = strlen(buff1); in HWTEST_F()
126 mContext->nPos = strlen("N\tP2pSetSsidPostfixName\t"); in HWTEST_F()
127 mContext->nSize = strlen(buf in HWTEST_F()
[all...]
H A Dwifi_hal_crpc_server_test.cpp43 return strncmp(left, right, strlen(right)); in StrcmpMathRight()
103 mContext->nSize = strlen(buff); in HWTEST_F()
108 mContext->nSize = strlen(buff2); in HWTEST_F()
114 mContext->nSize = strlen(buff3); in HWTEST_F()
384 mContext->nPos = strlen("N\tGetName\t"); in HWTEST_F()
385 mContext->nSize = strlen(buff); in HWTEST_F()
389 mContext->nPos = strlen("N\tGetName\t"); in HWTEST_F()
390 mContext->nSize = strlen(buff2); in HWTEST_F()
407 mContext->nPos = strlen("N\tRegisterEventCallback\t"); in HWTEST_F()
408 mContext->nSize = strlen(buf in HWTEST_F()
[all...]
/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_service/storage/src/
H A Dhks_storage_manager_test.cpp91 .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 Dhks_storage_util_test.cpp92 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 Dunit1603.c66 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 Dhks_client_service_passthrough.c54 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 Dstream03.c87 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...]
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/idl_client/unittest/
H A Di_wifi_test.cpp356 mTestContext->nSize = strlen(test) + 1; in HWTEST_F()
367 mTestContext->nSize = strlen(test) + 1; in HWTEST_F()
372 mTestContext->nSize = strlen(test1) + 1; in HWTEST_F()
377 mTestContext->nSize = strlen(test2) + 1; in HWTEST_F()
382 mTestContext->nSize = strlen(test3) + 1; in HWTEST_F()
394 mTestContext->nSize = strlen(test) + 1; in HWTEST_F()
399 mTestContext->nSize = strlen(test1) + 1; in HWTEST_F()
409 mTestContext->nSize = strlen(test) + 1; in HWTEST_F()
414 mTestContext->nSize = strlen(test1) + 1; in HWTEST_F()
419 mTestContext->nSize = strlen(test in HWTEST_F()
[all...]
/base/global/i18n_lite/frameworks/i18n/src/
H A Ddate_time_data.cpp27 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 Dhnp_pack_test.cpp160 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 Dfopen.c44 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...]
/third_party/musl/libc-test/src/functionalext/supplement/temp/
H A Dmkostemp.c32 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 Dmkostemps.c29 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 Dmkstemps.c27 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/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
H A Dcert_manager_uri.c87 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...]
/base/startup/init/test/unittest/param/
H A Dparam_shell_unittest.cpp73 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 Dhks_dh_agree_test.h30 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...]
/foundation/graphic/graphic_2d/rosen/modules/graphics_effect/test/fuzztest/
H A Dget_object.h59 std::string GetStringFromData(int strlen) in GetStringFromData() argument
61 if (strlen <= 0) { in GetStringFromData()
64 if (strlen > STR_MAX_LEN) { in GetStringFromData()
65 strlen = STR_MAX_LEN; in GetStringFromData()
67 char cstr[strlen]; in GetStringFromData()
68 cstr[strlen - 1] = '\0'; in GetStringFromData()
69 for (int i = 0; i < strlen - 1; i++) { in GetStringFromData()
/third_party/musl/libc-test/src/functionalext/supplement/misc/
H A Duname.c36 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()
/third_party/musl/libc-test/src/functional/
H A Drenameat2_test.c42 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...]
/base/security/huks/test/fuzz_test/innerapi_fuzzer/hksstorage_fuzzer/
H A Dhksstorage_fuzzer.cpp335 .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...]
/base/startup/init/services/modules/seccomp/
H A Dseccomp_policy.c101 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...]
/foundation/arkui/ace_engine_lite/frameworks/src/core/modules/presets/test/unittest/common/
H A Dconsole_module_test.cpp119 const size_t targetLogLength = strlen(targetLog); in HWTEST_F()
121 const size_t evalCodeLen = strlen(codeToEval); in HWTEST_F()
141 const size_t targetLogLength = strlen(targetLog); in HWTEST_F()
143 const size_t evalCodeLen = strlen(codeToEval); in HWTEST_F()
163 const size_t targetLogLength = strlen(targetLog); in HWTEST_F()
165 const size_t evalCodeLen = strlen(codeToEval); in HWTEST_F()
185 const size_t targetLogLength = strlen(targetLog); in HWTEST_F()
187 const size_t evalCodeLen = strlen(codeToEval); in HWTEST_F()
207 const size_t targetLogLength = strlen(targetLog); in HWTEST_F()
209 const size_t evalCodeLen = strlen(codeToEva in HWTEST_F()
[all...]
/third_party/ltp/testcases/kernel/pty/
H A Dhangup01.c90 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 Dsubstitute.h92 : 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...]

Completed in 12 milliseconds

12345678910>>...225