/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/string.streams/stringbuf/stringbuf.assign/ |
member_swap.pass.cpp | 23 std::stringbuf buf1("testing"); 25 buf.swap(buf1); 27 assert(buf1.str() == ""); 30 std::stringbuf buf1("testing", std::ios_base::in); 32 buf.swap(buf1); 34 assert(buf1.str() == ""); 37 std::stringbuf buf1("testing", std::ios_base::out); 39 buf.swap(buf1); 41 assert(buf1.str() == ""); 44 std::wstringbuf buf1(L"testing") [all...] |
nonmember_swap.pass.cpp | 25 std::stringbuf buf1("testing"); 27 swap(buf, buf1); 29 assert(buf1.str() == ""); 32 std::stringbuf buf1("testing", std::ios_base::in); 34 swap(buf, buf1); 36 assert(buf1.str() == ""); 39 std::stringbuf buf1("testing", std::ios_base::out); 41 swap(buf, buf1); 43 assert(buf1.str() == ""); 46 std::wstringbuf buf1(L"testing") [all...] |
move.pass.cpp | 23 std::stringbuf buf1("testing"); 25 buf = move(buf1); 29 std::stringbuf buf1("testing", std::ios_base::in); 31 buf = move(buf1); 35 std::stringbuf buf1("testing", std::ios_base::out); 37 buf = move(buf1); 41 std::wstringbuf buf1(L"testing"); 43 buf = move(buf1); 47 std::wstringbuf buf1(L"testing", std::ios_base::in); 49 buf = move(buf1); [all...] |
/external/chromium_org/net/quic/crypto/ |
quic_random_test.cc | 13 unsigned char buf1[16]; local 15 memset(buf1, 0xaf, sizeof(buf1)); 17 ASSERT_TRUE(memcmp(buf1, buf2, sizeof(buf1)) == 0); 20 rng->RandBytes(buf1, sizeof(buf1)); 21 EXPECT_FALSE(memcmp(buf1, buf2, sizeof(buf1)) == 0);
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/string.streams/stringbuf/stringbuf.cons/ |
move.pass.cpp | 23 std::stringbuf buf1("testing"); 24 std::stringbuf buf(move(buf1)); 28 std::stringbuf buf1("testing", std::ios_base::in); 29 std::stringbuf buf(move(buf1)); 33 std::stringbuf buf1("testing", std::ios_base::out); 34 std::stringbuf buf(move(buf1)); 38 std::wstringbuf buf1(L"testing"); 39 std::wstringbuf buf(move(buf1)); 43 std::wstringbuf buf1(L"testing", std::ios_base::in); 44 std::wstringbuf buf(move(buf1)); [all...] |
/frameworks/volley/tests/src/com/android/volley/toolbox/ |
ByteArrayPoolTest.java | 25 byte[] buf1 = pool.getBuf(16); 28 pool.returnBuf(buf1); 33 assertTrue(buf3 == buf1 || buf3 == buf2); 34 assertTrue(buf4 == buf1 || buf4 == buf2); 41 byte[] buf1 = pool.getBuf(16); 45 pool.returnBuf(buf1); 56 assertTrue(buf6 != buf1 && buf6 != buf2 && buf6 != buf3); 62 byte[] buf1 = pool.getBuf(16); 63 pool.returnBuf(buf1); 66 assertNotSame(buf2, buf1); [all...] |
/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...] |
/external/valgrind/main/none/tests/s390x/ |
xc.c | 7 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);
|
/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...] |
/external/valgrind/main/none/tests/amd64/ |
asorep.c | 5 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/chromium_org/native_client_sdk/src/libraries/nacl_io_test/ |
mount_node_test.cc | 89 char buf1[1024]; local 91 for (size_t a = 0; a < sizeof(buf1); a++) 92 buf1[a] = a; 101 EXPECT_EQ(0, file->Write(0, buf1, sizeof(buf1), &result_bytes)); 102 EXPECT_EQ(sizeof(buf1), result_bytes); 104 EXPECT_EQ(sizeof(buf1), result_size); 106 EXPECT_EQ(sizeof(buf1), result_bytes); 107 EXPECT_EQ(0, memcmp(buf1, buf2, sizeof(buf1))); 143 char buf1[1024]; local [all...] |
/external/chromium_org/third_party/lzma_sdk/ |
Bcj2.h | 29 const Byte *buf1, SizeT size1,
|
/external/libyuv/files/util/ |
compare.cc | 32 uint8 buf1[kBlockSize]; local 41 amt1 = fread(buf1, 1, kBlockSize, fin1); 42 if (amt1 > 0) hash1 = libyuv::HashDjb2(buf1, amt1, hash1); 48 sum_square_err += libyuv::ComputeSumSquareError(buf1, buf2, amt_min);
|
/external/lzma/C/ |
Bcj2.h | 29 const Byte *buf1, SizeT size1,
|
/external/valgrind/main/VEX/test/ |
frstor.c | 66 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);
|
fxsave.c | 105 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/ |
fxsave-amd64.c | 151 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 and dump it in buf3. * [all...] |
/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/chromium_org/third_party/libjingle/source/talk/base/ |
buffer_unittest.cc | 68 Buffer buf1(kTestData, sizeof(kTestData), 256), buf2(buf1); 72 EXPECT_EQ(buf1, buf2); 76 Buffer buf1, buf2(kTestData, sizeof(kTestData), 256); local 77 EXPECT_NE(buf1, buf2); 78 buf1 = buf2; 79 EXPECT_EQ(sizeof(kTestData), buf1.length()); 80 EXPECT_EQ(sizeof(kTestData), buf1.capacity()); // capacity isn't copied 81 EXPECT_EQ(0, memcmp(buf1.data(), kTestData, sizeof(kTestData))); 82 EXPECT_EQ(buf1, buf2) [all...] |
/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/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 );
|