/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
ByteArrayInputStreamTest.java | 94 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.length).equals(fileString.substring(50, 70))) [all...] |
FilterInputStreamTest.java | 92 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 = new byte[10] [all...] |
FileInputStreamTest.java | 172 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 = new byte[10] [all...] |
BufferedInputStreamTest.java | 197 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.length).equals(fileString.substring(3000, 3100))) [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
OldByteArrayInputStreamTest.java | 104 byte[] buf1 = new byte[100]; 109 is.read(buf1, 0, buf1.length); 113 assertTrue("Failed to mark correct position", new String(buf1, 0, 114 buf1.length).equals(new String(buf2, 0, buf2.length))); 141 byte[] buf1 = new byte[20]; 144 is.read(buf1, 0, buf1.length); 146 new String(buf1, 0, buf1.length).equals [all...] |
OldFilterInputStreamTest.java | 97 byte[] buf1 = new byte[bufSize]; 102 is.read(buf1, 0, bufSize); 104 is.read(buf1, 0, bufSize); 112 Arrays.equals(buf1, buf2)); 119 is.read(buf1, 0, bufSize); 121 is.read(buf1, 0, bufSize); 125 Arrays.equals(buf1, buf2)); 160 byte[] buf1 = new byte[100]; 161 is.read(buf1); 163 new String(buf1, 0, buf1.length).equals [all...] |
OldFileInputStreamTest.java | 153 byte[] buf1 = new byte[100]; 156 is.read(buf1); 159 new String(buf1, 0, buf1.length).equals( 164 is.read(buf1); 172 byte[] buf1 = new byte[10]; 175 is.read(buf1, 0, buf1.length); 177 new String(buf1, 0, buf1.length).equals [all...] |
OldBufferedInputStreamTest.java | 127 byte[] buf1 = new byte[100]; 141 is.read(buf1, 0, buf1.length); 146 new String(buf1, 0, buf1.length).equals(new String(buf2, 0, buf2.length))); 159 new String(buf1, 0, buf1.length).equals(new String(buf2, 0, buf2.length)));
|
/system/core/toolbox/ |
cmp.c | 14 char buf1[4096], buf2[4096]; local 63 res1 = read(fd1, &buf1, sizeof(buf1)); 70 if(buf1[i] != buf2[i]) { 73 printf(" 0x%02x 0x%02x", buf1[i], buf2[i]);
|
/external/valgrind/main/memcheck/tests/x86/ |
fxsave.c | 106 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/ |
test_sstream.cpp | 47 stringbuf buf1(str); 51 EXPECT_TRUE(buf1.str() == str); 61 stringbuf buf1(str); 66 std::streamsize len1 = buf1.in_avail();
|
/external/chromium/net/base/ |
nss_memio.h | 72 * |buf1|, |len1| and |buf2|, |len2|. 75 const char **buf1, unsigned int *len1,
|
/external/stlport/test/unit/ |
cstring_test.cpp | 45 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 );
|
/ndk/tests/device/test-gnustl-full/unit/ |
cstring_test.cpp | 45 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 );
|
/ndk/tests/device/test-stlport/unit/ |
cstring_test.cpp | 45 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++/ |
child_reader.cpp | 35 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);
|
child_reader.h | 104 char * buf1; member in class:child_reader
|
/external/apache-harmony/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/ |
DeflaterInputStreamTest.java | 129 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/ |
lzf.c | 180 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/ |
DigestInputStream2Test.java | 112 byte buf1[] = new byte[bytesToRead + 5]; 118 int bytesRead1 = dis.read(buf1, 5, bytesToRead); 126 if (buf1[i] != buf2[i]) {
|
/ndk/sources/host-tools/sed-4.2.1/sed/ |
utils.c | 350 static char *buf1, *buf2; 359 buf1 = ck_malloc (PATH_MAX + 1); 369 strcpy (buf1, buf2); 370 buf = buf1; 376 buf1 = ck_realloc (buf1, buf_size); 386 /* Need to handle relative paths with care. Reallocate buf1 and 392 buf1 = ck_realloc (buf1, buf_size); 396 /* Always store the new path in buf1. * 348 static char *buf1, *buf2; local [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ |
StringBuffer2Test.java | 83 char[] buf1 = { 'H', 'e', 'l', 'l', 'o' }; local 85 sb.append(buf1, 0, buf1.length); 100 char buf1 = 'H'; local 102 sb.append(buf1); 190 String buf1 = "Hello"; local 192 sb.append(buf1); 332 StringBuffer buf1 = new StringBuffer("abcd"); local 334 buf1.insert(-1, (char[]) null); 352 StringBuffer buf1 = new StringBuffer("abcd") local [all...] |
/external/valgrind/main/memcheck/tests/ |
writev.c | 15 static char buf1[K_1]; variable 30 buf_list[0] = buf1;
|
/frameworks/base/media/libstagefright/codecs/aacenc/src/asm/ARMV7/ |
PrePostMDCT_v7.s | 40 VLD2.I32 {d13, d15}, [r3]! @ tr2 = *(buf1 - 1)@ ti1 = *(buf1 + 0)@ 41 VLD2.I32 {d12, d14}, [r3]! @ tr2 = *(buf1 - 1)@ ti1 = *(buf1 + 0)@ 108 VSUB.S32 Q5, Q13, Q12 @ *buf1-- = MULHIGH(sina, tr1) - MULHIGH(cosa, ti1)@ 115 VADD.S32 Q4, Q10, Q11 @ *buf1-- = MULHIGH(cosa, tr2) + MULHIGH(sina, ti2)@
|
/external/iproute2/tc/ |
m_nat.c | 172 char buf1[256]; local 193 format_host(AF_INET, 4, &sel->old_addr, buf1, sizeof(buf1)),
|