Home
last modified time | relevance | path

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

12345678910>>...383

/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...]
/kernel/linux/linux-6.6/fs/btrfs/tests/
H A Dextent-buffer-tests.c26 u32 value_len = strlen(value); in test_btrfs_split_item()
97 if (btrfs_item_size(eb, 0) != strlen(split1)) { in test_btrfs_split_item()
104 strlen(split1)); in test_btrfs_split_item()
105 if (memcmp(buf, split1, strlen(split1))) { in test_btrfs_split_item()
108 (int)strlen(split1), buf, split1); in test_btrfs_split_item()
121 if (btrfs_item_size(eb, 1) != strlen(split2)) { in test_btrfs_split_item()
128 strlen(split2)); in test_btrfs_split_item()
129 if (memcmp(buf, split2, strlen(split2))) { in test_btrfs_split_item()
152 if (btrfs_item_size(eb, 0) != strlen(split3)) { in test_btrfs_split_item()
159 strlen(split in test_btrfs_split_item()
[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...]
/kernel/linux/linux-5.10/fs/btrfs/tests/
H A Dextent-buffer-tests.c26 u32 value_len = strlen(value); in test_btrfs_split_item()
94 if (btrfs_item_size(eb, item) != strlen(split1)) { in test_btrfs_split_item()
101 strlen(split1)); in test_btrfs_split_item()
102 if (memcmp(buf, split1, strlen(split1))) { in test_btrfs_split_item()
105 (int)strlen(split1), buf, split1); in test_btrfs_split_item()
119 if (btrfs_item_size(eb, item) != strlen(split2)) { in test_btrfs_split_item()
126 strlen(split2)); in test_btrfs_split_item()
127 if (memcmp(buf, split2, strlen(split2))) { in test_btrfs_split_item()
151 if (btrfs_item_size(eb, item) != strlen(split3)) { in test_btrfs_split_item()
158 strlen(split in test_btrfs_split_item()
[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...]
/kernel/linux/linux-5.10/tools/iio/
H A Dlsiio.c30 return strlen(str) > strlen(prefix) && in check_prefix()
31 strncmp(str, prefix, strlen(prefix)) == 0; in check_prefix()
36 return strlen(str) > strlen(postfix) && in check_postfix()
37 strcmp(str + strlen(str) - strlen(postfix), postfix) == 0; in check_postfix()
64 ret = sscanf(dev_dir_name + strlen(iio_dir) + strlen(type_device), "%i", in dump_one_device()
87 ret = sscanf(dev_dir_name + strlen(iio_di in dump_one_trigger()
[all...]
/kernel/linux/linux-6.6/tools/iio/
H A Dlsiio.c30 return strlen(str) > strlen(prefix) && in check_prefix()
31 strncmp(str, prefix, strlen(prefix)) == 0; in check_prefix()
36 return strlen(str) > strlen(postfix) && in check_postfix()
37 strcmp(str + strlen(str) - strlen(postfix), postfix) == 0; in check_postfix()
64 ret = sscanf(dev_dir_name + strlen(iio_dir) + strlen(type_device), "%i", in dump_one_device()
87 ret = sscanf(dev_dir_name + strlen(iio_di in dump_one_trigger()
[all...]
/kernel/liteos_a/fs/patchfs/
H A Dlos_partition_utils.c41 if (strncmp(p, partInfoName, strlen(partInfoName)) == 0) { in MatchPartPos()
42 value = p + strlen(partInfoName); in MatchPartPos()
44 if (strcmp(p + strlen(p) - 1, "M") == 0) { in MatchPartPos()
45 if ((offset < strlen(value) - 1) || (sscanf_s(value, "%d", partInfo) <= 0)) { in MatchPartPos()
49 } else if (strcmp(p + strlen(p) - 1, "K") == 0) { in MatchPartPos()
50 if ((offset < (strlen(value) - 1)) || (sscanf_s(value, "%d", partInfo) <= 0)) { in MatchPartPos()
55 value += strlen("0x"); in MatchPartPos()
56 if (strspn(value, HEX_NUMBER_STRING) < strlen(value)) { in MatchPartPos()
67 PRINT_ERR("Invalid format: %s\n", p + strlen(partInfoName)); in MatchPartPos()
78 if ((partInfo->storageType == NULL) && (strncmp(p, storageTypeArgName, strlen(storageTypeArgNam in MatchPartInfo()
[all...]
/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...]
/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()

Completed in 15 milliseconds

12345678910>>...383