Home
last modified time | relevance | path

Searched refs:buf1 (Results 1 – 25 of 50) sorted by relevance

12

/external/astl/tests/
Dtest_sstream.cpp47 stringbuf buf1(str); in testConstructor() local
51 EXPECT_TRUE(buf1.str() == str); in testConstructor()
61 stringbuf buf1(str); in testInAvail() local
66 std::streamsize len1 = buf1.in_avail(); in testInAvail()
/external/stlport/test/unit/
Dcstring_test.cpp45 char buf1[1], buf2[1]; in import_checks() local
46 CPPUNIT_CHECK( std::memcpy(buf1, buf2, 0) != NULL ); in import_checks()
47 CPPUNIT_CHECK( std::memmove(buf1, buf2, 0) != NULL ); in import_checks()
48 CPPUNIT_CHECK( std::memset(buf1, 0, 1) != NULL ); in import_checks()
Ddeque_test.cpp204 char buf1[1024]; in allocator_with_state() local
205 StackAllocator<int> stack1(buf1, buf1 + sizeof(buf1)); in allocator_with_state()
Dhash_test.cpp380 char buf1[2048]; in allocator_with_state() local
381 StackAllocator<int> stack1(buf1, buf1 + sizeof(buf1)); in allocator_with_state()
Dlist_test.cpp274 char buf1[1024]; in allocator_with_state() local
275 StackAllocator<int> stack1(buf1, buf1 + sizeof(buf1)); in allocator_with_state()
Dvector_test.cpp375 char buf1[1024]; in allocator_with_state() local
376 StackAllocator<int> stack1(buf1, buf1 + sizeof(buf1)); in allocator_with_state()
Dmap_test.cpp269 char buf1[1024]; in allocator_with_state() local
270 StackAllocator<pair<const int, int> > stack1(buf1, buf1 + sizeof(buf1)); in allocator_with_state()
Dslist_test.cpp333 char buf1[1024]; in allocator_with_state() local
334 StackAllocator<int> stack1(buf1, buf1 + sizeof(buf1)); in allocator_with_state()
Dset_test.cpp278 char buf1[1024]; in allocator_with_state() local
279 StackAllocator<int> stack1(buf1, buf1 + sizeof(buf1)); in allocator_with_state()
/external/bluetooth/glib/tests/
Dmainloop-test.c105 char buf1[32]; in adder_callback() local
112 if (!read_all (source, buf1, 32) || in adder_callback()
119 sprintf (result, "%d", atoi(buf1) + atoi(buf2)); in adder_callback()
216 char buf1[32]; in do_add() local
219 sprintf (buf1, "%d", a); in do_add()
222 write_all (in, buf1, 32); in do_add()
/external/clearsilver/util/
Dsnprintf.c761 char buf1[LONG_STRING]; in main() local
803 snprintf (buf1, sizeof (buf1), fp_fmt[x], fp_nums[y]); in main()
805 if (strcmp (buf1, buf2)) in main()
808 fp_fmt[x], buf1, buf2); in main()
817 snprintf (buf1, sizeof (buf1), int_fmt[x], int_nums[y]); in main()
819 if (strcmp (buf1, buf2)) in main()
822 int_fmt[x], buf1, buf2); in main()
/external/icu4c/test/cintltst/
Dbocu1tst.c790 char buf1[80], buf2[80]; in TestBOCU1RefDiff() local
824 printBytes(prev, buf1); in TestBOCU1RefDiff()
825 log_verbose(" wD(%8ld) %s\n", i, buf1); in TestBOCU1RefDiff()
840 printBytes(prev, buf1); in TestBOCU1RefDiff()
842 … log_verbose("ok: strcmp(wD(%8ld), wD(%8ld))=%2d %s%s\n", i-1, i, cmp, buf1, buf2); in TestBOCU1RefDiff()
846 printBytes(prev, buf1); in TestBOCU1RefDiff()
848 log_verbose("wrong: strcmp(wD(%8ld), wD(%8ld))=%2d %s%s\n", i-1, i, cmp, buf1, buf2); in TestBOCU1RefDiff()
855 printBytes((uint8_t *)"", buf1); in TestBOCU1RefDiff()
857 log_verbose(" wD(%8ld) %s%s\n", i-1, buf1, buf2); in TestBOCU1RefDiff()
Dutransts.c248 char buf1[BUF_CAP]; in TestOpenInverse() local
282 utrans_getID(inverse1, buf1, BUF_CAP); in TestOpenInverse()
283 if(strcmp(buf1, TransID[i+1]) != 0){ in TestOpenInverse()
284 … log_err("FAIL :openInverse() for %s returned %s instead of %s\n", TransID[i], buf1, TransID[i+1]); in TestOpenInverse()
298 char buf1[BUF_CAP], buf2[BUF_CAP], buf3[BUF_CAP]; in TestClone() local
315 utrans_getID(t1, buf1, BUF_CAP); in TestClone()
319 if(strcmp(buf1, buf3) != 0 || in TestClone()
320 strcmp(buf1, buf2) == 0) { in TestClone()
327 strcmp(buf1, buf3) == 0) { in TestClone()
/external/chromium/third_party/icu/source/test/cintltst/
Dbocu1tst.c790 char buf1[80], buf2[80]; in TestBOCU1RefDiff() local
824 printBytes(prev, buf1); in TestBOCU1RefDiff()
825 log_verbose(" wD(%8ld) %s\n", i, buf1); in TestBOCU1RefDiff()
840 printBytes(prev, buf1); in TestBOCU1RefDiff()
842 … log_verbose("ok: strcmp(wD(%8ld), wD(%8ld))=%2d %s%s\n", i-1, i, cmp, buf1, buf2); in TestBOCU1RefDiff()
846 printBytes(prev, buf1); in TestBOCU1RefDiff()
848 log_verbose("wrong: strcmp(wD(%8ld), wD(%8ld))=%2d %s%s\n", i-1, i, cmp, buf1, buf2); in TestBOCU1RefDiff()
855 printBytes((uint8_t *)"", buf1); in TestBOCU1RefDiff()
857 log_verbose(" wD(%8ld) %s%s\n", i-1, buf1, buf2); in TestBOCU1RefDiff()
Dutransts.c248 char buf1[BUF_CAP]; in TestOpenInverse() local
282 utrans_getID(inverse1, buf1, BUF_CAP); in TestOpenInverse()
283 if(strcmp(buf1, TransID[i+1]) != 0){ in TestOpenInverse()
284 … log_err("FAIL :openInverse() for %s returned %s instead of %s\n", TransID[i], buf1, TransID[i+1]); in TestOpenInverse()
298 char buf1[BUF_CAP], buf2[BUF_CAP], buf3[BUF_CAP]; in TestClone() local
315 utrans_getID(t1, buf1, BUF_CAP); in TestClone()
319 if(strcmp(buf1, buf3) != 0 || in TestClone()
320 strcmp(buf1, buf2) == 0) { in TestClone()
327 strcmp(buf1, buf3) == 0) { in TestClone()
/external/stlport/src/c_locale_dummy/
Dc_locale_dummy.c270 char buf1[64], buf2[64]; in _Locale_strcmp() local
274 _STLP_STRNCPY(buf1, 64, s1, bufsize1); buf1[bufsize1] = 0; in _Locale_strcmp()
277 ret = strcmp(buf1, buf2); in _Locale_strcmp()
290 wchar_t buf1[64], buf2[64]; in _WLocale_strcmp() local
294 _STLP_WCSNCPY(buf1, 64, s1, bufsize1); buf1[bufsize1] = 0; in _WLocale_strcmp()
297 ret = wcscmp(buf1, buf2); in _WLocale_strcmp()
/external/e2fsprogs/intl/
Dlocalcharset.c145 char buf1[50+1]; in get_charset_aliases() local
169 if (fscanf (fp, "%50s %50s", buf1, buf2) < 2) in get_charset_aliases()
171 l1 = strlen (buf1); in get_charset_aliases()
189 strcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1); in get_charset_aliases()
/external/chromium/net/disk_cache/
Dentry_unittest.cc1221 scoped_refptr<net::IOBuffer> buf1 = new net::IOBuffer(kSize); in PartialSparseEntry() local
1222 CacheTestFillBuffer(buf1->data(), kSize, false); in PartialSparseEntry()
1227 EXPECT_EQ(kSize, entry->WriteSparseData(20000, buf1, kSize, NULL)); in PartialSparseEntry()
1228 EXPECT_EQ(kSize, entry->WriteSparseData(500, buf1, kSize, NULL)); in PartialSparseEntry()
1230 entry->WriteSparseData(1080321, buf1, kSmallSize, NULL)); in PartialSparseEntry()
1239 EXPECT_EQ(0, memcmp(buf2->data(), buf1->data() + kSize - 500, 500)); in PartialSparseEntry()
1276 EXPECT_EQ(kSize, entry->WriteSparseData(500 + kSize, buf1, kSize, NULL)); in PartialSparseEntry()
1280 EXPECT_EQ(0, memcmp(buf2->data(), buf1->data() + kSize - 500, 500)); in PartialSparseEntry()
1281 EXPECT_EQ(0, memcmp(buf2->data() + 500, buf1->data(), kSize - 500)); in PartialSparseEntry()
1305 scoped_refptr<net::IOBuffer> buf1 = new net::IOBuffer(kSize); in TEST_F() local
[all …]
/external/iproute2/tc/
Dm_nat.c172 char buf1[256]; in print_nat() local
193 format_host(AF_INET, 4, &sel->old_addr, buf1, sizeof(buf1)), in print_nat()
/external/stlport/src/c_locale_glibc/
Dc_locale_glibc2.c366 char buf1[64], buf2[64]; in _Locale_strcmp() local
370 strncpy(buf1, s1, bufsize1); buf1[bufsize1] = 0; in _Locale_strcmp()
373 ret = strcoll_l(buf1, buf2, (locale_t)__loc); in _Locale_strcmp()
386 wchar_t buf1[64], buf2[64]; in _WLocale_strcmp() local
390 wcsncpy(buf1, s1, bufsize1); buf1[bufsize1] = 0; in _WLocale_strcmp()
393 ret = wcscoll_l(buf1, buf2, (locale_t)__loc); in _WLocale_strcmp()
/external/openssl/crypto/asn1/
Dasn1_lib.c465 char buf1[DECIMAL_SIZE(address)+1],buf2[DECIMAL_SIZE(offset)+1]; in asn1_add_error() local
467 BIO_snprintf(buf1,sizeof buf1,"%lu",(unsigned long)address); in asn1_add_error()
469 ERR_add_error_data(4,"address=",buf1," offset=",buf2); in asn1_add_error()
/external/wpa_supplicant_6/wpa_supplicant/src/eap_server/
Deap_peap.c275 struct wpabuf *buf1, *buf, *encr_req; in eap_peap_build_phase2_soh() local
279 buf1 = tncs_build_soh_request(); in eap_peap_build_phase2_soh()
280 if (buf1 == NULL) in eap_peap_build_phase2_soh()
283 buf = eap_msg_alloc(EAP_VENDOR_MICROSOFT, 0x21, wpabuf_len(buf1), in eap_peap_build_phase2_soh()
286 wpabuf_free(buf1); in eap_peap_build_phase2_soh()
289 wpabuf_put_buf(buf, buf1); in eap_peap_build_phase2_soh()
290 wpabuf_free(buf1); in eap_peap_build_phase2_soh()
/external/webkit/WebCore/loader/
DTextResourceDecoder.cpp423 const unsigned char* buf1 = reinterpret_cast<const unsigned char*>(m_buffer.data()); in checkForBOM() local
425 unsigned char c1 = buf1Len ? (--buf1Len, *buf1++) : buf2Len ? (--buf2Len, *buf2++) : 0; in checkForBOM()
426 unsigned char c2 = buf1Len ? (--buf1Len, *buf1++) : buf2Len ? (--buf2Len, *buf2++) : 0; in checkForBOM()
427 unsigned char c3 = buf1Len ? (--buf1Len, *buf1++) : buf2Len ? (--buf2Len, *buf2++) : 0; in checkForBOM()
/external/grub/netboot/
Dvia-rhine.c1006 #define buf1 (0x10000 - (RX_RING_SIZE * PKT_BUF_SZ + 32)) in rhine_reset() macro
1007 #define buf2 (buf1 - (RX_RING_SIZE * PKT_BUF_SZ + 32)) in rhine_reset()
1011 static char buf1[RX_RING_SIZE * PKT_BUF_SZ + 32]; in rhine_reset() local
1021 tx_bufs_tmp = (int) buf1; in rhine_reset()
/external/guava/src/com/google/common/io/
DByteStreams.java575 byte[] buf1 = new byte[BUF_SIZE];
584 int read1 = read(in1, buf1, 0, BUF_SIZE);
586 if (read1 != read2 || !Arrays.equals(buf1, buf2)) {

12