/foundation/communication/wifi/wifi/test/wifi_standard/wifi_hal/unittest/ |
H A D | wifi_hal_crpc_server_add_test.cpp | 94 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 D | wifi_hal_crpc_server_test.cpp | 43 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...] |
/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...] |
/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...] |
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/idl_client/unittest/ |
H A D | i_wifi_test.cpp | 356 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...] |
/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...] |
/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()
|
/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/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...] |
/foundation/graphic/graphic_2d/rosen/modules/graphics_effect/test/fuzztest/ |
H A D | get_object.h | 59 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 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()
|
/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...] |
/foundation/arkui/ace_engine_lite/frameworks/src/core/modules/presets/test/unittest/common/ |
H A D | console_module_test.cpp | 119 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 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/jerryscript/jerry-main/ |
H A D | cli.c | 50 char CMDNAME[strlen ((PROGNAME)) + strlen ((CMD)) + 2]; \ 51 strncpy (CMDNAME, (PROGNAME), strlen ((PROGNAME))); \ 52 CMDNAME[strlen ((PROGNAME))] = ' '; \ 53 strncpy (CMDNAME + strlen ((PROGNAME)) + 1, (CMD), strlen ((CMD)) + 1) 261 int length = (int) strlen (prog_name_p); in cli_opt_usage() 268 int command_length = (int) strlen (command_name_p); in cli_opt_usage() 291 opt_length += (int) strlen (opt_p); in cli_opt_usage() 325 int opt_length = (int) (2 + strlen (opt_ in cli_opt_usage() [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | vorbiscomment.c | 45 len += strlen(vendor_string); in ff_vorbiscomment_length() 51 int64_t len1 = !strcmp(tag->key, "title") ? 4 : strlen(tag->key); in ff_vorbiscomment_length() 52 len += 4 + 10 + len1 + 1 + strlen(tag->value); in ff_vorbiscomment_length() 59 len += 4 +strlen(tag->key) + 1 + strlen(tag->value); in ff_vorbiscomment_length() 69 size_t vendor_string_length = strlen(vendor_string); in ff_vorbiscomment_write() 83 int64_t len1 = strlen(tag->key); in ff_vorbiscomment_write() 84 int64_t len2 = strlen(tag->value); in ff_vorbiscomment_write() 113 int64_t len1 = !strcmp(tag->key, "title") ? 4 : strlen(tag->key); in ff_vorbiscomment_write() 114 int64_t len2 = strlen(ta in ff_vorbiscomment_write() [all...] |
/third_party/backends/sanei/ |
H A D | sanei_auth.c | 130 md5_buffer (tmpstr, strlen (tmpstr), md5digest); in check_passwd() 174 if (strlen (resource) > 127) in sanei_authorize() 244 if ((strlen (line) > 0) && (line[strlen (line) - 1] == '\n')) in sanei_authorize() 245 line[strlen (line) - 1] = '\n'; in sanei_authorize() 247 if ((strlen (line) > 0) && (line[strlen (line) - 1] == '\r')) in sanei_authorize() 248 line[strlen (line) - 1] = '\r'; in sanei_authorize() 251 if ((strncmp (line, username, strlen (username)) == 0) && in sanei_authorize() 252 (((strchr (line, ':')) - line) == (signed) strlen (usernam in sanei_authorize() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_send/ |
H A D | 3-2.c | 67 if (mq_send(queue, msgptr3, strlen(msgptr3), PRI3) != 0) { in main() 73 if (mq_send(queue, msgptr1, strlen(msgptr1), PRI1) != 0) { in main() 79 if (mq_send(queue, msgptr4, strlen(msgptr4), PRI4) != 0) { in main() 85 if (mq_send(queue, msgptr2, strlen(msgptr2), PRI2) != 0) { in main() 91 if (mq_send(queue, msgptr5, strlen(msgptr5), PRI5) != 0) { in main() 102 if (strncmp(msgptr1, msgrcd, strlen(msgptr1)) != 0) { in main() 112 if (strncmp(msgptr2, msgrcd, strlen(msgptr2)) != 0) { in main() 122 if (strncmp(msgptr3, msgrcd, strlen(msgptr3)) != 0) { in main() 132 if (strncmp(msgptr4, msgrcd, strlen(msgptr4)) != 0) { in main() 142 if (strncmp(msgptr5, msgrcd, strlen(msgptr in main() [all...] |
H A D | 3-1.c | 65 if (mq_send(queue, msgptr3, strlen(msgptr3), PRI3) != 0) { in main() 70 if (mq_send(queue, msgptr1, strlen(msgptr1), PRI1) != 0) { in main() 75 if (mq_send(queue, msgptr4, strlen(msgptr4), PRI4) != 0) { in main() 80 if (mq_send(queue, msgptr2, strlen(msgptr2), PRI2) != 0) { in main() 85 if (mq_send(queue, msgptr5, strlen(msgptr5), PRI5) != 0) { in main() 95 if (strncmp(msgptr1, msgrcd, strlen(msgptr1)) != 0) { in main() 105 if (strncmp(msgptr2, msgrcd, strlen(msgptr2)) != 0) { in main() 115 if (strncmp(msgptr3, msgrcd, strlen(msgptr3)) != 0) { in main() 125 if (strncmp(msgptr4, msgrcd, strlen(msgptr4)) != 0) { in main() 135 if (strncmp(msgptr5, msgrcd, strlen(msgptr in main() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/ |
H A D | 3-2.c | 72 if (mq_timedsend(queue, msgptr3, strlen(msgptr3), PRI3, &ts) != 0) { in main() 79 if (mq_timedsend(queue, msgptr1, strlen(msgptr1), PRI1, &ts) != 0) { in main() 86 if (mq_timedsend(queue, msgptr4, strlen(msgptr4), PRI4, &ts) != 0) { in main() 93 if (mq_timedsend(queue, msgptr2, strlen(msgptr2), PRI2, &ts) != 0) { in main() 100 if (mq_timedsend(queue, msgptr5, strlen(msgptr5), PRI5, &ts) != 0) { in main() 111 if (strncmp(msgptr1, msgrcd, strlen(msgptr1)) != 0) { in main() 121 if (strncmp(msgptr2, msgrcd, strlen(msgptr2)) != 0) { in main() 131 if (strncmp(msgptr3, msgrcd, strlen(msgptr3)) != 0) { in main() 141 if (strncmp(msgptr4, msgrcd, strlen(msgptr4)) != 0) { in main() 151 if (strncmp(msgptr5, msgrcd, strlen(msgptr in main() [all...] |
H A D | 3-1.c | 70 if (mq_timedsend(queue, msgptr3, strlen(msgptr3), PRI3, &ts) != 0) { in main() 76 if (mq_timedsend(queue, msgptr1, strlen(msgptr1), PRI1, &ts) != 0) { in main() 82 if (mq_timedsend(queue, msgptr4, strlen(msgptr4), PRI4, &ts) != 0) { in main() 88 if (mq_timedsend(queue, msgptr2, strlen(msgptr2), PRI2, &ts) != 0) { in main() 94 if (mq_timedsend(queue, msgptr5, strlen(msgptr5), PRI5, &ts) != 0) { in main() 104 if (strncmp(msgptr1, msgrcd, strlen(msgptr1)) != 0) { in main() 114 if (strncmp(msgptr2, msgrcd, strlen(msgptr2)) != 0) { in main() 124 if (strncmp(msgptr3, msgrcd, strlen(msgptr3)) != 0) { in main() 134 if (strncmp(msgptr4, msgrcd, strlen(msgptr4)) != 0) { in main() 144 if (strncmp(msgptr5, msgrcd, strlen(msgptr in main() [all...] |