/third_party/skia/third_party/externals/angle2/src/tests/deqp_support/ |
H A D | angle_deqp_gtest.cpp | 692 if (strncmp(displayTypeString, "angle-", strlen("angle-")) != 0) 774 if (strncmp(argv[argIndex], kdEQPEGLString, strlen(kdEQPEGLString)) == 0) 776 HandleDisplayType(argv[argIndex] + strlen(kdEQPEGLString)); 778 else if (strncmp(argv[argIndex], kANGLEEGLString, strlen(kANGLEEGLString)) == 0) 780 HandleDisplayType(argv[argIndex] + strlen(kANGLEEGLString)); 782 else if (strncmp(argv[argIndex], kANGLEPreRotation, strlen(kANGLEPreRotation)) == 0) 784 HandlePreRotation(argv[argIndex] + strlen(kANGLEPreRotation)); 787 strlen(gdEQPEGLConfigNameString)) == 0) 789 HandleEGLConfigName(argv[argIndex] + strlen(gdEQPEGLConfigNameString)); 791 else if (strncmp(argv[argIndex], kdEQPCaseString, strlen(kdEQPCaseStrin [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant_lib/ |
H A D | driver_nl80211_hisi.c | 194 if (buf_len > MAX_PRIV_CMD_SIZE || strlen(cmd) >= MAX_PRIV_CMD_SIZE) in wpa_driver_nl80211_driver_cmd() 196 wpa_printf(MSG_ERROR, "%s: too long priavte command, strlen(cmd)=%zu buf_len=%zu", __func__, strlen(cmd), buf_len); in wpa_driver_nl80211_driver_cmd() 202 buf_len = strlen(cmd); /* default driver xxx cmd */ in wpa_driver_nl80211_driver_cmd() 205 /* Hisi private data structure cmd should use buf_len, rather than strlen(cmd) */ in wpa_driver_nl80211_driver_cmd() 222 priv_cmd.used_len = buf_len; /* strlen(cmd) */ in wpa_driver_nl80211_driver_cmd() 227 wpa_printf(MSG_EXCESSIVE, "%s: 1:ifr_name=%s, len=%zu, buf_len=%zu", __func__, ifr.ifr_name, strlen(buf), buf_len); in wpa_driver_nl80211_driver_cmd() 265 wpa_printf(MSG_DEBUG, "%s:set country code end. len=%zu, ret_len=%d ret=%d", __func__, strlen(buf), ret_len, ret); in wpa_driver_nl80211_driver_cmd() 269 hisi_miracast_sink_log("%s:%.15s len=%zu, ret_len=%d ret=%d", __func__, buf, strlen(buf), ret_len, ret); in wpa_driver_nl80211_driver_cmd() 272 wpa_printf(MSG_EXCESSIVE, "%s:%.15s len=%zu, ret_len=%d ret=%d", __func__, buf, strlen(bu in wpa_driver_nl80211_driver_cmd() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant_lib/ |
H A D | driver_nl80211_hisi.c | 179 if (buf_len > MAX_PRIV_CMD_SIZE || strlen(cmd) >= MAX_PRIV_CMD_SIZE) { in wpa_driver_nl80211_driver_cmd() 180 wpa_printf(MSG_ERROR, "%s: too long priavte command, strlen(cmd)=%zu buf_len=%zu", __func__, strlen(cmd), buf_len); in wpa_driver_nl80211_driver_cmd() 185 buf_len = strlen(cmd); /* default driver xxx cmd */ in wpa_driver_nl80211_driver_cmd() 188 /* Hisi private data structure cmd should use buf_len, rather than strlen(cmd) */ in wpa_driver_nl80211_driver_cmd() 214 priv_cmd.used_len = buf_len; /* strlen(cmd) */ in wpa_driver_nl80211_driver_cmd() 219 wpa_printf(MSG_EXCESSIVE, "%s: 1:ifr_name=%s, len=%zu, buf_len=%zu", __func__, ifr.ifr_name, strlen(buf), buf_len); in wpa_driver_nl80211_driver_cmd() 252 wpa_printf(MSG_DEBUG, "%s:set country code end. len=%zu, ret_len=%d ret=%d", __func__, strlen(buf), ret_len, ret); in wpa_driver_nl80211_driver_cmd() 256 hisi_miracast_sink_log("%s:%.15s len=%zu, ret_len=%d ret=%d", __func__, buf, strlen(buf), ret_len, ret); in wpa_driver_nl80211_driver_cmd() 259 wpa_printf(MSG_EXCESSIVE, "%s:%.15s len=%zu, ret_len=%d ret=%d", __func__, buf, strlen(bu in wpa_driver_nl80211_driver_cmd() [all...] |
/foundation/communication/dsoftbus/core/bus_center/utils/src/ |
H A D | lnn_file_utils.c | 54 strlen(DEFAULT_STORAGE_PATH)) != EOK) { in InitStorageConfigPath() 69 if (strlen(g_storagePath) == 0) { in LnnGetFullStoragePath() 75 if (strncpy_s(path, len, g_storagePath, strlen(g_storagePath)) != EOK || in LnnGetFullStoragePath() 76 strncat_s(path, len, g_filePath[id].filePath, strlen(g_filePath[id].filePath)) != EOK) { in LnnGetFullStoragePath()
|
/third_party/curl/lib/vauth/ |
H A D | cleartext.c | 73 zlen = (authzid == NULL ? 0 : strlen(authzid)); in Curl_auth_create_plain_message() 74 clen = strlen(authcid); in Curl_auth_create_plain_message() 75 plen = strlen(passwd); in Curl_auth_create_plain_message() 114 Curl_bufref_set(out, valuep, strlen(valuep), NULL); in Curl_auth_create_login_message()
|
/third_party/ltp/testcases/kernel/syscalls/sendfile/ |
H A D | sendfile08.c | 34 TEST(sendfile(out_fd, in_fd, NULL, strlen(TEST_MSG_IN))); in run() 43 if (!strncmp(buf, TEST_MSG_ALL, strlen(TEST_MSG_ALL))) { in run() 55 SAFE_WRITE(SAFE_WRITE_ALL, in_fd, TEST_MSG_IN, strlen(TEST_MSG_IN)); in setup() 60 SAFE_WRITE(SAFE_WRITE_ALL, out_fd, TEST_MSG_OUT, strlen(TEST_MSG_OUT)); in setup()
|
/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
H A D | pwrite.c | 46 size_t cnt = pwrite(fd, txt, strlen(txt), 0); in pwrite_0100() 47 EXPECT_EQ("pwrite_0100", cnt, strlen(txt)); in pwrite_0100() 51 EXPECT_EQ("pwrite_0100", cnt, strlen(txt)); in pwrite_0100() 65 size_t cnt = pwrite(-1, txt, strlen(txt), 0); in pwrite_0200()
|
H A D | setdomainname.c | 39 result = setdomainname(name, strlen(name)); in setdomainname_0100() 56 result = setdomainname(cbuf, strlen(cbuf)); in setdomainname_0100() 90 if (strlen(buf) != 0) { in setdomainname_0200() 95 result = setdomainname(cbuf, strlen(cbuf)); in setdomainname_0200()
|
H A D | sethostname.c | 39 result = sethostname(name, strlen(name)); in sethostname_0100() 56 result = sethostname(cbuf, strlen(cbuf)); in sethostname_0100() 90 if (strlen(buf) != 0) { in sethostname_0200() 95 result = sethostname(cbuf, strlen(cbuf)); in sethostname_0200()
|
/third_party/selinux/libselinux/src/ |
H A D | get_default_type.c | 35 len = strlen(role); in find_default_type() 41 if (buf[strlen(buf) - 1]) in find_default_type() 42 buf[strlen(buf) - 1] = 0; in find_default_type() 65 t = strndup(ptr, strlen(buf) - len - 1); in find_default_type()
|
/kernel/linux/linux-6.6/drivers/md/ |
H A D | dm-ima.c | 28 int l = strlen(*buf); in fix_separator_chars() 172 md->ima.dm_version_str_len = strlen(DM_IMA_VERSION_STR); in dm_ima_reset_data() 195 const size_t hash_alg_prefix_len = strlen(DM_IMA_TABLE_HASH_ALG) + 1; in dm_ima_measure_on_table_load() 232 device_data_buf_len = strlen(device_data_buf); in dm_ima_measure_on_table_load() 247 target_metadata_buf_len = strlen(target_metadata_buf); in dm_ima_measure_on_table_load() 258 target_data_buf_len = strlen(target_data_buf); in dm_ima_measure_on_table_load() 343 table->md->ima.inactive_table.hash_len = strlen(digest_buf); in dm_ima_measure_on_table_load() 373 unsigned int active_len = strlen(active), capacity_len = 0; in dm_ima_measure_on_device_resume() 454 l = strlen(device_table_data); in dm_ima_measure_on_device_resume() 458 capacity_len = strlen(capacity_st in dm_ima_measure_on_device_resume() [all...] |
/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...] |
/kernel/linux/linux-5.10/security/integrity/evm/ |
H A D | evm_posix_acl.c | 14 int xattr_len = strlen(xattr); in posix_xattr_acl() 16 if ((strlen(XATTR_NAME_POSIX_ACL_ACCESS) == xattr_len) in posix_xattr_acl() 19 if ((strlen(XATTR_NAME_POSIX_ACL_DEFAULT) == xattr_len) in posix_xattr_acl()
|
/kernel/linux/linux-6.6/security/integrity/evm/ |
H A D | evm_posix_acl.c | 14 int xattr_len = strlen(xattr); in posix_xattr_acl() 16 if ((strlen(XATTR_NAME_POSIX_ACL_ACCESS) == xattr_len) in posix_xattr_acl() 19 if ((strlen(XATTR_NAME_POSIX_ACL_DEFAULT) == xattr_len) in posix_xattr_acl()
|
/third_party/python/Modules/clinic/ |
H A D | _codecsmodule.c.h | 56 if (strlen(encoding) != (size_t)encoding_length) { in _codecs_lookup() 115 if (strlen(encoding) != (size_t)encoding_length) { in _codecs_encode() 132 if (strlen(errors) != (size_t)errors_length) { in _codecs_encode() 192 if (strlen(encoding) != (size_t)encoding_length) { in _codecs_decode() 209 if (strlen(errors) != (size_t)errors_length) { in _codecs_decode() 271 if (strlen(errors) != (size_t)errors_length) { in _codecs_escape_decode() 331 if (strlen(errors) != (size_t)errors_length) { in _codecs_escape_encode() 389 if (strlen(errors) != (size_t)errors_length) { in _codecs_utf_7_decode() 459 if (strlen(errors) != (size_t)errors_length) { in _codecs_utf_8_decode() 529 if (strlen(error in _codecs_utf_16_decode() [all...] |
/foundation/arkui/ace_engine_lite/frameworks/src/core/stylemgr/test/unittest/common/ |
H A D | stylemgr_media_query_tdd_test.cpp | 480 uint16_t targetItemNameKey = KeyParser::ParseKeyId(itemName, strlen(itemName)); in GetStyleItemFromStyle() 521 strlen(StyleSheetCSSData::CSS_DATA_TEST_001)); in HWTEST_F() 546 strlen(StyleSheetCSSData::CSS_DATA_TEST_002)); in HWTEST_F() 589 strlen(StyleSheetCSSData::CSS_DATA_TEST_003)); in HWTEST_F() 613 strlen(StyleSheetCSSData::CSS_DATA_TEST_004)); in HWTEST_F() 640 strlen(StyleSheetCSSData::CSS_DATA_TEST_005)); in HWTEST_F() 666 strlen(StyleSheetCSSData::CSS_DATA_TEST_006)); in HWTEST_F() 693 strlen(StyleSheetCSSData::CSS_DATA_TEST_007)); in HWTEST_F() 728 strlen(StyleSheetCSSData::CSS_DATA_TEST_008)); in HWTEST_F() 769 strlen(StyleSheetCSSDat in HWTEST_F() [all...] |
/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_builder/src/ |
H A D | lnn_p2p_info_test.cpp | 147 int32_t ret = LnnParseWifiDirectAddrMsg(msg, wifiDirectAddr, strlen(msg)); in HWTEST_F() 152 ret = LnnParseWifiDirectAddrMsg(msg1, wifiDirectAddr, strlen(msg1)); in HWTEST_F() 284 reinterpret_cast<const uint8_t *>(msg), strlen(msg)); in HWTEST_F() 286 reinterpret_cast<const uint8_t *>(msg), strlen(msg)); in HWTEST_F() 340 ret = LnnParseP2pInfoMsg(msg, &info, strlen(msg) + 1); in HWTEST_F() 344 ret = LnnParseP2pInfoMsg(msg, &info, strlen(msg) + 1); in HWTEST_F() 348 ret = LnnParseP2pInfoMsg(msg, &info, strlen(msg) + 1); in HWTEST_F() 353 ret = LnnParseP2pInfoMsg(msg, &info, strlen(msg) + 1); in HWTEST_F() 358 ret = LnnParseP2pInfoMsg(msg, &info, strlen(msg) + 1); in HWTEST_F() 363 ret = LnnParseP2pInfoMsg(msg, &info, strlen(ms in HWTEST_F() [all...] |
/kernel/linux/linux-5.10/usr/ |
H A D | gen_init_cpio.c | 35 unsigned int name_len = strlen(name) + 1; in push_string() 52 unsigned int name_len = strlen(name) + 1; in push_rest() 92 (unsigned)strlen(name)+1, /* namesize */ in cpio_trailer() 119 (unsigned)strlen(target)+1, /* filesize */ in cpio_mkslink() 124 (unsigned)strlen(name) + 1,/* namesize */ in cpio_mkslink() 173 (unsigned)strlen(name) + 1,/* namesize */ in cpio_mkgeneric() 267 (unsigned)strlen(name) + 1,/* namesize */ in cpio_mknod() 342 namesize = strlen(name) + 1; in cpio_mkfile() 422 dname = malloc(strlen(line)); in cpio_mkfile_line() 428 dname_len = strlen(nam in cpio_mkfile_line() [all...] |
/kernel/linux/linux-6.6/usr/ |
H A D | gen_init_cpio.c | 39 unsigned int name_len = strlen(name) + 1; in push_string() 56 unsigned int name_len = strlen(name) + 1; in push_rest() 96 (unsigned)strlen(name)+1, /* namesize */ in cpio_trailer() 123 (unsigned)strlen(target)+1, /* filesize */ in cpio_mkslink() 128 (unsigned)strlen(name) + 1,/* namesize */ in cpio_mkslink() 177 (unsigned)strlen(name) + 1,/* namesize */ in cpio_mkgeneric() 271 (unsigned)strlen(name) + 1,/* namesize */ in cpio_mknod() 381 namesize = strlen(name) + 1; in cpio_mkfile() 472 dname = malloc(strlen(line)); in cpio_mkfile_line() 478 dname_len = strlen(nam in cpio_mkfile_line() [all...] |
/third_party/ffmpeg/libavutil/ |
H A D | avstring.c | 74 size_t needle_len = strlen(needle); in av_strnstr() 93 return len + strlen(src) - 1; in av_strlcpy() 98 size_t len = strlen(dst); in av_strlcat() 100 return len + strlen(src); in av_strlcat() 106 size_t len = strlen(dst); in av_strlcatf() 156 char *out = av_malloc(strlen(*buf) + 1); in av_get_token() 244 size_t tolen = strlen(to), fromlen = strlen(from); in av_strireplace() 253 av_bprint_append_data(&pbuf, pstr, strlen(pstr)); in av_strireplace() 317 p_len = strlen(pat in av_append_path_component() [all...] |
/third_party/libwebsockets/minimal-examples/api-tests/api-test-lws_tokenize/ |
H A D | main.c | 298 total = strlen(replace); in exp_cb1() 415 in_len = strlen(p); in main() 471 mcp = lws_nstrstr(t1, strlen(t1), "abc", 3); in main() 476 mcp = lws_nstrstr(t1, strlen(t1), "def", 3); in main() 481 mcp = lws_nstrstr(t1, strlen(t1), "456", 3); in main() 486 mcp = lws_nstrstr(t1, strlen(t1), "1", 1); in main() 491 mcp = lws_nstrstr(t1, strlen(t1), "abc1234567", 10); in main() 507 mcp = lws_json_simple_find(t1, strlen(t1), "\"myname1\":", &alen); in main() 514 mcp = lws_json_simple_find(t1, strlen(t1), "\"myname2\":", &alen); in main() 520 mcp = lws_json_simple_find(t1, strlen(t in main() [all...] |
/third_party/libexif/libexif/huawei/ |
H A D | mnote-huawei-entry.c | 86 mnote_huawei_entry_rational_timestamp_process(char *buff, const int buff_size, const char *v, int strlen, in mnote_huawei_entry_rational_timestamp_process() argument 93 pv = exif_mem_alloc(mem, strlen + 1); in mnote_huawei_entry_rational_timestamp_process() 98 *(pv + strlen) = 0; in mnote_huawei_entry_rational_timestamp_process() 99 memcpy(pv, v, strlen); in mnote_huawei_entry_rational_timestamp_process() 132 mnote_huawei_entry_string_process(char *buff, const int buff_size, const char *v, int strlen, in mnote_huawei_entry_string_process() argument 146 mnote_huawei_entry_value_process(char *buff, const int buff_size, const char *v, int strlen, in mnote_huawei_entry_value_process() argument 152 pv = exif_mem_alloc(mem, strlen + 1); in mnote_huawei_entry_value_process() 157 *(pv + strlen) = 0; in mnote_huawei_entry_value_process() 158 memcpy(pv, v, strlen); in mnote_huawei_entry_value_process() 188 mnote_huawei_entry_set_value(MnoteHuaweiEntry *e, const char *v, int strlen) in mnote_huawei_entry_set_value() argument [all...] |
/third_party/lwip/src/netif/ppp/ |
H A D | multilink.c | 168 l = 4 * strlen(peer_authname) + 10; in mp_join_bundle() 172 l += 3 * strlen(bundle_name) + 2; in mp_join_bundle() 294 key.dsize = strlen(blinks_id); in mp_bundle_terminated() 312 key.dsize = strlen(blinks_id); in make_bundle_links() 324 l = rec.dsize + strlen(entry); in make_bundle_links() 336 rec.dsize = strlen(p) + 1; in make_bundle_links() 352 key.dsize = strlen(blinks_id); in remove_bundle_link() 364 q = p + strlen(entry); in remove_bundle_link() 365 l = strlen(q) + 1; in remove_bundle_link() 380 key.dsize = strlen(blinks_i in iterate_bundle_links() [all...] |
/third_party/skia/third_party/externals/microhttpd/src/testcurl/ |
H A D | test_get_sendfile.c | 107 response = MHD_create_response_from_fd (strlen (TESTSTR), fd); in ahc_echo() 158 if (cbc.pos != strlen (TESTSTR)) in testInternalGet() 160 if (0 != strncmp (TESTSTR, cbc.buf, strlen (TESTSTR))) in testInternalGet() 207 if (cbc.pos != strlen (TESTSTR)) in testMultithreadedGet() 209 if (0 != strncmp (TESTSTR, cbc.buf, strlen (TESTSTR))) in testMultithreadedGet() 257 if (cbc.pos != strlen (TESTSTR)) in testMultithreadedPoolGet() 259 if (0 != strncmp (TESTSTR, cbc.buf, strlen (TESTSTR))) in testMultithreadedPoolGet() 379 if (cbc.pos != strlen (TESTSTR)) in testExternalGet() 381 if (0 != strncmp (TESTSTR, cbc.buf, strlen (TESTSTR))) in testExternalGet() 452 if (cbc.pos != strlen (TESTST in testUnknownPortGet() [all...] |