/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
D | ByteArrayInputStreamTest.java | 94 byte[] buf1 = new byte[100]; in test_markI() 98 is.read(buf1, 0, buf1.length); in test_markI() 102 assertTrue("Failed to mark correct position", new String(buf1, 0, in test_markI() 103 buf1.length).equals(new String(buf2, 0, buf2.length))); in test_markI() 127 byte[] buf1 = new byte[20]; in test_read$BII() 130 is.read(buf1, 0, buf1.length); in test_read$BII() 131 assertTrue("Failed to read correct data", new String(buf1, 0, in test_read$BII() 132 buf1.length).equals(fileString.substring(50, 70))); in test_read$BII() 139 byte[] buf1 = new byte[10]; in test_reset() 142 is.read(buf1, 0, 10); in test_reset() [all …]
|
D | FilterInputStreamTest.java | 92 byte[] buf1 = new byte[100]; in test_read$B() 93 is.read(buf1); in test_read$B() 94 assertTrue("Failed to read correct data", new String(buf1, 0, in test_read$B() 95 buf1.length, "UTF-8").equals(fileString.substring(0, 100))); in test_read$B() 102 byte[] buf1 = new byte[100]; in test_read$BII() 105 is.read(buf1, 0, buf1.length); in test_read$BII() 106 assertTrue("Failed to read correct data", new String(buf1, 0, in test_read$BII() 107 buf1.length, "UTF-8").equals(fileString.substring(3000, 3100))); in test_read$BII() 126 byte[] buf1 = new byte[10]; in test_skipJ() 128 is.read(buf1, 0, buf1.length); in test_skipJ() [all …]
|
D | BufferedInputStreamTest.java | 197 byte[] buf1 = new byte[100]; in test_markI() 201 is.read(buf1, 0, buf1.length); in test_markI() 205 assertTrue("Failed to mark correct position", new String(buf1, 0, in test_markI() 206 buf1.length).equals(new String(buf2, 0, buf2.length))); in test_markI() 335 byte[] buf1 = new byte[100]; in test_read$BII() 338 is.read(buf1, 0, buf1.length); in test_read$BII() 339 assertTrue("Failed to read correct data", new String(buf1, 0, in test_read$BII() 340 buf1.length).equals(fileString.substring(3000, 3100))); in test_read$BII() 383 byte[] buf1 = new byte[10]; in test_reset() 386 is.read(buf1, 0, 10); in test_reset() [all …]
|
D | FileInputStreamTest.java | 172 byte[] buf1 = new byte[100]; in test_read$B() 175 is.read(buf1); in test_read$B() 177 assertTrue("Failed to read correct data", new String(buf1, 0, in test_read$B() 178 buf1.length).equals(fileString.substring(3000, 3100))); in test_read$B() 185 byte[] buf1 = new byte[100]; in test_read$BII() 188 is.read(buf1, 0, buf1.length); in test_read$BII() 190 assertTrue("Failed to read correct data", new String(buf1, 0, in test_read$BII() 191 buf1.length).equals(fileString.substring(3000, 3100))); in test_read$BII() 329 byte[] buf1 = new byte[10]; in test_skipJ() 332 is.read(buf1, 0, buf1.length); in test_skipJ() [all …]
|
/external/valgrind/main/none/tests/s390x/ |
D | xc.c | 7 char buf1[20] = "UUUUU*UUU****U*\0\0\0\0\n"; in test_oc() local 17 asm volatile ("oc %O0(19,%R0),%1\n"::"Q" (*buf1), in test_oc() 20 dump_field(buf1, 20); in test_oc() 25 char buf1[20] = "UUUUU*UUU****U*\0\0\0\0\n"; in test_nc() local 35 asm volatile ("nc %O0(19,%R0),%1\n"::"Q" (*buf1), in test_nc() 38 dump_field(buf1, 20); in test_nc() 44 char buf1[20] = "UUUUU*UUU****U*\0\0\0\0\n"; in test_xc() local 85 asm volatile ("xc 0(19,%0),0(%1)\n"::"a" (buf1), in test_xc() 88 dump_field(buf1, 20); in test_xc()
|
D | clcl.c | 193 uint8_t buf1[4] = "yyyy"; in main() local 194 run_test(buf1, 4, NULL, 0, 'y'); // equal in main() 195 run_test(buf1, 4, NULL, 0, 'x'); // greater in main() 196 run_test(buf1, 4, NULL, 0, 'z'); // less in main()
|
/external/valgrind/main/memcheck/tests/amd64/ |
D | fxsave-amd64.c | 151 unsigned char* buf1 = memalign16(512); in main() local 160 memset(buf1, 0x55, 512); in main() 165 do_setup_then_fxsave(buf1, 0); in main() 167 show(buf1, xx); in main() 177 do_fxrstor(buf1, 0); in main() 184 memset(buf1, 0x55, 512); in main() 189 do_setup_then_fxsave(buf1, 1); in main() 191 show(buf1, xx); in main() 201 do_fxrstor(buf1, 1); in main() 207 free(buf1); free(buf2); free(buf3); in main()
|
/external/valgrind/main/none/tests/amd64/ |
D | asorep.c | 5 char buf1[64], buf2[64]; variable 11 uintptr_t b1 = (uintptr_t) buf1, b2 = (uintptr_t) buf2; in main() 18 memcpy (buf1, "abcde", 4); in main() 25 || rsi != (uintptr_t) buf1 + 4 in main() 47 memcpy (buf1, "abcdefghijklmno", 16); in main() 53 || rsi != (uintptr_t) buf1 + 15 in main()
|
/external/valgrind/main/VEX/test/ |
D | fxsave.c | 105 unsigned char* buf1 = memalign(16,512); in main() local 111 memset(buf1, 0x55, 512); in main() 116 do_setup_then_fxsave(buf1); in main() 118 show(buf1, xx); in main() 128 do_fxrstor(buf1); in main() 133 free(buf1); free(buf2); free(buf3); in main()
|
D | frstor.c | 66 unsigned short* buf1 = malloc(54*sizeof(short)); in main() local 73 do_fsave_interesting_stuff(buf1); in main() 74 show_fpustate( (unsigned char*)buf1, xx ); in main() 77 do_frstor(buf1); in main()
|
/external/valgrind/main/memcheck/tests/x86/ |
D | fxsave.c | 106 unsigned char* buf1 = memalign16(512); in main() local 112 memset(buf1, 0x55, 512); in main() 117 do_setup_then_fxsave(buf1); in main() 119 show(buf1, xx); in main() 129 do_fxrstor(buf1); in main() 134 free(buf1); free(buf2); free(buf3); in main()
|
/external/apache-harmony/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/ |
D | DeflaterInputStreamTest.java | 129 byte[] buf1 = new byte[256]; in testReadByteArrayIntInt() 132 assertEquals(23, dis.read(buf1, 0, 256)); in testReadByteArrayIntInt() 145 dis.read(buf1, 0, 512); in testReadByteArrayIntInt() 169 dis.read(buf1, -1, -1); in testReadByteArrayIntInt() 175 dis.read(buf1, 0, -1); in testReadByteArrayIntInt() 182 dis.read(buf1, 0, 512); in testReadByteArrayIntInt() 188 dis.read(buf1, 0, 1); in testReadByteArrayIntInt() 212 dis.read(buf1, -1, -1); in testReadByteArrayIntInt() 218 dis.read(buf1, 0, -1); in testReadByteArrayIntInt()
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ |
D | StringBuffer2Test.java | 83 char[] buf1 = { 'H', 'e', 'l', 'l', 'o' }; in test_append$CII() local 85 sb.append(buf1, 0, buf1.length); in test_append$CII() 100 char buf1 = 'H'; in test_appendC() local 102 sb.append(buf1); in test_appendC() 190 String buf1 = "Hello"; in test_appendLjava_lang_String() local 192 sb.append(buf1); in test_appendLjava_lang_String() 332 StringBuffer buf1 = new StringBuffer("abcd"); in test_insertI$C() local 334 buf1.insert(-1, (char[]) null); in test_insertI$C() 352 StringBuffer buf1 = new StringBuffer("abcd"); in test_insertI$CII() local 354 buf1.insert(-1, (char[]) null, 0, 0); in test_insertI$CII()
|
/external/oprofile/libutil++/ |
D | child_reader.cpp | 35 buf1(new char[PIPE_BUF]), in child_reader() 48 delete [] buf1; in ~child_reader() 132 ssize_t temp = read(fd1, buf1, PIPE_BUF); in block_read() 180 char ch = buf1[temp_pos++]; in getline() 186 result.append(&buf1[pos1], (temp_pos - pos1) - !ok); in getline() 211 out.write(buf1, end1); in get_data()
|
/external/liblzf/ |
D | lzf.c | 180 u8 buf1[MAX_BLOCKSIZE + MAX_HDR_SIZE + 16]; in compress_fd() local 185 while ((us = rread (from, &buf1[MAX_HDR_SIZE], blocksize)) > 0) in compress_fd() 187 cs = lzf_compress (&buf1[MAX_HDR_SIZE], us, &buf2[MAX_HDR_SIZE], us > 4 ? us - 4 : us); in compress_fd() 202 header = &buf1[MAX_HDR_SIZE - TYPE0_HDR_SIZE]; in compress_fd() 222 u8 buf1[MAX_BLOCKSIZE + MAX_HDR_SIZE + 16]; in uncompress_fd() local 275 memcpy (buf1, p, l); in uncompress_fd() 283 p = &buf1[l]; in uncompress_fd() 291 if (wwrite (to, buf1, us)) in uncompress_fd() 296 if (lzf_decompress (buf1, cs, buf2, us) != us) in uncompress_fd()
|
/external/stlport/test/unit/ |
D | cstring_test.cpp | 45 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()
|
/external/astl/tests/ |
D | test_sstream.cpp | 47 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/bluetooth/glib/tests/ |
D | mainloop-test.c | 105 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/e2fsprogs/intl/ |
D | localcharset.c | 145 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/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
D | DigestInputStream2Test.java | 112 byte buf1[] = new byte[bytesToRead + 5]; in test_read$BII() 118 int bytesRead1 = dis.read(buf1, 5, bytesToRead); in test_read$BII() 126 if (buf1[i] != buf2[i]) { in test_read$BII()
|
/external/icu4c/test/cintltst/ |
D | utransts.c | 248 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()
|
D | bocu1tst.c | 790 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()
|
/external/stlport/src/c_locale_dummy/ |
D | c_locale_dummy.c | 270 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/valgrind/main/callgrind/ |
D | sim.c | 1504 char buf1[RESULTS_BUF_LEN], in cachesim_printstat() local 1517 commify(total[fullOffset(EG_IR) +1], l1, buf1); in cachesim_printstat() 1518 VG_(message)(Vg_UserMsg, "I1 misses: %s\n", buf1); in cachesim_printstat() 1520 commify(total[fullOffset(EG_IR) +2], l1, buf1); in cachesim_printstat() 1521 VG_(message)(Vg_UserMsg, "LLi misses: %s\n", buf1); in cachesim_printstat() 1529 total[fullOffset(EG_IR)], p, l1+1, buf1); in cachesim_printstat() 1530 VG_(message)(Vg_UserMsg, "I1 miss rate: %s\n", buf1); in cachesim_printstat() 1533 total[fullOffset(EG_IR)], p, l1+1, buf1); in cachesim_printstat() 1534 VG_(message)(Vg_UserMsg, "LLi miss rate: %s\n", buf1); in cachesim_printstat() 1547 commify( D_total[0], l1, buf1); in cachesim_printstat() [all …]
|
/external/iproute2/tc/ |
D | m_nat.c | 172 char buf1[256]; in print_nat() local 193 format_host(AF_INET, 4, &sel->old_addr, buf1, sizeof(buf1)), in print_nat()
|