Searched refs:buf1 (Results 1 - 25 of 82) sorted by relevance

1234

/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/
H A DByteArrayInputStreamTest.java94 byte[] buf1 = new byte[100];
98 is.read(buf1, 0, buf1.length);
102 assertTrue("Failed to mark correct position", new String(buf1, 0,
103 buf1.length).equals(new String(buf2, 0, buf2.length)));
127 byte[] buf1 = new byte[20];
130 is.read(buf1, 0, buf1.length);
131 assertTrue("Failed to read correct data", new String(buf1, 0,
132 buf1
[all...]
H A DFilterInputStreamTest.java92 byte[] buf1 = new byte[100];
93 is.read(buf1);
94 assertTrue("Failed to read correct data", new String(buf1, 0,
95 buf1.length, "UTF-8").equals(fileString.substring(0, 100)));
102 byte[] buf1 = new byte[100];
105 is.read(buf1, 0, buf1.length);
106 assertTrue("Failed to read correct data", new String(buf1, 0,
107 buf1.length, "UTF-8").equals(fileString.substring(3000, 3100)));
126 byte[] buf1
[all...]
H A DFileInputStreamTest.java172 byte[] buf1 = new byte[100];
175 is.read(buf1);
177 assertTrue("Failed to read correct data", new String(buf1, 0,
178 buf1.length).equals(fileString.substring(3000, 3100)));
185 byte[] buf1 = new byte[100];
188 is.read(buf1, 0, buf1.length);
190 assertTrue("Failed to read correct data", new String(buf1, 0,
191 buf1.length).equals(fileString.substring(3000, 3100)));
329 byte[] buf1
[all...]
H A DBufferedInputStreamTest.java197 byte[] buf1 = new byte[100];
201 is.read(buf1, 0, buf1.length);
205 assertTrue("Failed to mark correct position", new String(buf1, 0,
206 buf1.length).equals(new String(buf2, 0, buf2.length)));
335 byte[] buf1 = new byte[100];
338 is.read(buf1, 0, buf1.length);
339 assertTrue("Failed to read correct data", new String(buf1, 0,
340 buf1
[all...]
/external/valgrind/main/none/tests/s390x/
H A Dxc.c7 char buf1[20] = "UUUUU*UUU****U*\0\0\0\0\n"; local
17 asm volatile ("oc %O0(19,%R0),%1\n"::"Q" (*buf1),
20 dump_field(buf1, 20);
25 char buf1[20] = "UUUUU*UUU****U*\0\0\0\0\n"; local
35 asm volatile ("nc %O0(19,%R0),%1\n"::"Q" (*buf1),
38 dump_field(buf1, 20);
44 char buf1[20] = "UUUUU*UUU****U*\0\0\0\0\n"; local
85 asm volatile ("xc 0(19,%0),0(%1)\n"::"a" (buf1),
88 dump_field(buf1, 20);
H A Dclcl.c193 uint8_t buf1[4] = "yyyy"; local
194 run_test(buf1, 4, NULL, 0, 'y'); // equal
195 run_test(buf1, 4, NULL, 0, 'x'); // greater
196 run_test(buf1, 4, NULL, 0, 'z'); // less
/external/valgrind/main/none/tests/amd64/
H A Dasorep.c5 char buf1[64], buf2[64]; variable
11 uintptr_t b1 = (uintptr_t) buf1, b2 = (uintptr_t) buf2;
18 memcpy (buf1, "abcde", 4);
25 || rsi != (uintptr_t) buf1 + 4
47 memcpy (buf1, "abcdefghijklmno", 16);
53 || rsi != (uintptr_t) buf1 + 15
/external/valgrind/main/VEX/test/
H A Dfrstor.c66 unsigned short* buf1 = malloc(54*sizeof(short)); local
73 do_fsave_interesting_stuff(buf1);
74 show_fpustate( (unsigned char*)buf1, xx );
77 do_frstor(buf1);
H A Dfxsave.c105 unsigned char* buf1 = memalign(16,512); local
111 memset(buf1, 0x55, 512);
116 do_setup_then_fxsave(buf1);
118 show(buf1, xx);
127 /* Reload x87/xmm state from buf1 and dump it in buf3. */
128 do_fxrstor(buf1);
133 free(buf1); free(buf2); free(buf3);
/external/valgrind/main/memcheck/tests/amd64/
H A Dfxsave-amd64.c151 unsigned char* buf1 = memalign16(512); local
160 memset(buf1, 0x55, 512);
165 do_setup_then_fxsave(buf1, 0);
167 show(buf1, xx);
176 /* Reload x87/xmm state from buf1 and dump it in buf3. */
177 do_fxrstor(buf1, 0);
184 memset(buf1, 0x55, 512);
189 do_setup_then_fxsave(buf1, 1);
191 show(buf1, xx);
200 /* Reload x87/xmm state from buf1 an
[all...]
/external/valgrind/main/memcheck/tests/x86/
H A Dfxsave.c106 unsigned char* buf1 = memalign16(512); local
112 memset(buf1, 0x55, 512);
117 do_setup_then_fxsave(buf1);
119 show(buf1, xx);
128 /* Reload x87/xmm state from buf1 and dump it in buf3. */
129 do_fxrstor(buf1);
134 free(buf1); free(buf2); free(buf3);
/external/astl/tests/
H A Dtest_sstream.cpp47 stringbuf buf1(str);
51 EXPECT_TRUE(buf1.str() == str);
61 stringbuf buf1(str);
66 std::streamsize len1 = buf1.in_avail();
/external/chromium/net/base/
H A Dnss_memio.h72 * |buf1|, |len1| and |buf2|, |len2|.
75 const char **buf1, unsigned int *len1,
/external/stlport/test/unit/
H A Dcstring_test.cpp45 char buf1[1], buf2[1]; local
46 CPPUNIT_CHECK( std::memcpy(buf1, buf2, 0) != NULL );
47 CPPUNIT_CHECK( std::memmove(buf1, buf2, 0) != NULL );
48 CPPUNIT_CHECK( std::memset(buf1, 0, 1) != NULL );
/external/oprofile/libutil++/
H A Dchild_reader.cpp35 buf1(new char[PIPE_BUF]),
48 delete [] buf1;
132 ssize_t temp = read(fd1, buf1, PIPE_BUF);
180 char ch = buf1[temp_pos++];
186 result.append(&buf1[pos1], (temp_pos - pos1) - !ok);
211 out.write(buf1, end1);
H A Dchild_reader.h104 char * buf1; member in class:child_reader
/external/apache-harmony/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/
H A DDeflaterInputStreamTest.java129 byte[] buf1 = new byte[256];
132 assertEquals(23, dis.read(buf1, 0, 256));
145 dis.read(buf1, 0, 512);
169 dis.read(buf1, -1, -1);
175 dis.read(buf1, 0, -1);
182 dis.read(buf1, 0, 512);
188 dis.read(buf1, 0, 1);
212 dis.read(buf1, -1, -1);
218 dis.read(buf1, 0, -1);
/external/liblzf/
H A Dlzf.c180 u8 buf1[MAX_BLOCKSIZE + MAX_HDR_SIZE + 16]; local
185 while ((us = rread (from, &buf1[MAX_HDR_SIZE], blocksize)) > 0)
187 cs = lzf_compress (&buf1[MAX_HDR_SIZE], us, &buf2[MAX_HDR_SIZE], us > 4 ? us - 4 : us);
202 header = &buf1[MAX_HDR_SIZE - TYPE0_HDR_SIZE];
222 u8 buf1[MAX_BLOCKSIZE + MAX_HDR_SIZE + 16]; local
275 memcpy (buf1, p, l);
283 p = &buf1[l];
291 if (wwrite (to, buf1, us))
296 if (lzf_decompress (buf1, cs, buf2, us) != us)
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
H A DDigestInputStream2Test.java112 byte buf1[] = new byte[bytesToRead + 5];
118 int bytesRead1 = dis.read(buf1, 5, bytesToRead);
126 if (buf1[i] != buf2[i]) {
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/
H A DStringBuffer2Test.java83 char[] buf1 = { 'H', 'e', 'l', 'l', 'o' };
85 sb.append(buf1, 0, buf1.length);
100 char buf1 = 'H';
102 sb.append(buf1);
190 String buf1 = "Hello";
192 sb.append(buf1);
332 StringBuffer buf1 = new StringBuffer("abcd");
334 buf1.insert(-1, (char[]) null);
352 StringBuffer buf1
[all...]
/external/valgrind/main/memcheck/tests/
H A Dwritev1.c15 static char buf1[K_1]; variable
30 buf_list[0] = buf1;
/external/iproute2/tc/
H A Dm_nat.c172 char buf1[256]; local
193 format_host(AF_INET, 4, &sel->old_addr, buf1, sizeof(buf1)),
/external/e2fsprogs/intl/
H A Dlocalcharset.c145 char buf1[50+1]; local
169 if (fscanf (fp, "%50s %50s", buf1, buf2) < 2)
171 l1 = strlen (buf1);
189 strcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1);
/external/icu4c/test/cintltst/
H A Dbocu1tst.c790 char buf1[80], buf2[80]; local
824 printBytes(prev, buf1);
825 log_verbose(" wD(%8ld) %s\n", i, buf1);
840 printBytes(prev, buf1);
842 log_verbose("ok: strcmp(wD(%8ld), wD(%8ld))=%2d %s%s\n", i-1, i, cmp, buf1, buf2);
846 printBytes(prev, buf1);
848 log_verbose("wrong: strcmp(wD(%8ld), wD(%8ld))=%2d %s%s\n", i-1, i, cmp, buf1, buf2);
855 printBytes((uint8_t *)"", buf1);
857 log_verbose(" wD(%8ld) %s%s\n", i-1, buf1, buf2);
H A Dutransts.c248 char buf1[BUF_CAP]; local
282 utrans_getID(inverse1, buf1, BUF_CAP);
283 if(strcmp(buf1, TransID[i+1]) != 0){
284 log_err("FAIL :openInverse() for %s returned %s instead of %s\n", TransID[i], buf1, TransID[i+1]);
298 char buf1[BUF_CAP], buf2[BUF_CAP], buf3[BUF_CAP]; local
315 utrans_getID(t1, buf1, BUF_CAP);
319 if(strcmp(buf1, buf3) != 0 ||
320 strcmp(buf1, buf2) == 0) {
327 strcmp(buf1, buf3) == 0) {

Completed in 608 milliseconds

1234