Home
last modified time | relevance | path

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

12345

/external/libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.assign/
Dnonmember_swap.pass.cpp25 std::stringbuf buf1("testing"); in main() local
27 swap(buf, buf1); in main()
29 assert(buf1.str() == ""); in main()
32 std::stringbuf buf1("testing", std::ios_base::in); in main() local
34 swap(buf, buf1); in main()
36 assert(buf1.str() == ""); in main()
39 std::stringbuf buf1("testing", std::ios_base::out); in main() local
41 swap(buf, buf1); in main()
43 assert(buf1.str() == ""); in main()
46 std::wstringbuf buf1(L"testing"); in main() local
[all …]
Dmember_swap.pass.cpp23 std::stringbuf buf1("testing"); in main() local
25 buf.swap(buf1); in main()
27 assert(buf1.str() == ""); in main()
30 std::stringbuf buf1("testing", std::ios_base::in); in main() local
32 buf.swap(buf1); in main()
34 assert(buf1.str() == ""); in main()
37 std::stringbuf buf1("testing", std::ios_base::out); in main() local
39 buf.swap(buf1); in main()
41 assert(buf1.str() == ""); in main()
44 std::wstringbuf buf1(L"testing"); in main() local
[all …]
Dmove.pass.cpp23 std::stringbuf buf1("testing"); in main() local
25 buf = move(buf1); in main()
29 std::stringbuf buf1("testing", std::ios_base::in); in main() local
31 buf = move(buf1); in main()
35 std::stringbuf buf1("testing", std::ios_base::out); in main() local
37 buf = move(buf1); in main()
41 std::wstringbuf buf1(L"testing"); in main() local
43 buf = move(buf1); in main()
47 std::wstringbuf buf1(L"testing", std::ios_base::in); in main() local
49 buf = move(buf1); in main()
[all …]
/external/webrtc/webrtc/base/
Dbuffer_unittest.cc68 Buffer buf1(kTestData), buf2(buf1); in TEST() local
72 EXPECT_NE(buf1.data(), buf2.data()); in TEST()
73 EXPECT_EQ(buf1, buf2); in TEST()
77 Buffer buf1, buf2(kTestData, sizeof(kTestData), 256); in TEST() local
78 EXPECT_NE(buf1, buf2); in TEST()
79 buf1 = buf2; in TEST()
80 EXPECT_EQ(buf1, buf2); in TEST()
81 EXPECT_NE(buf1.data(), buf2.data()); in TEST()
139 Buffer buf1(kTestData, 3, 40); in TEST() local
140 const uint8_t* data = buf1.data(); in TEST()
[all …]
/external/libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.cons/
Dmove.pass.cpp23 std::stringbuf buf1("testing"); in main() local
24 std::stringbuf buf(move(buf1)); in main()
28 std::stringbuf buf1("testing", std::ios_base::in); in main() local
29 std::stringbuf buf(move(buf1)); in main()
33 std::stringbuf buf1("testing", std::ios_base::out); in main() local
34 std::stringbuf buf(move(buf1)); in main()
38 std::wstringbuf buf1(L"testing"); in main() local
39 std::wstringbuf buf(move(buf1)); in main()
43 std::wstringbuf buf1(L"testing", std::ios_base::in); in main() local
44 std::wstringbuf buf(move(buf1)); in main()
[all …]
/external/compiler-rt/test/asan/TestCases/
Dcoverage-pc-buffer.cc35 uintptr_t *buf1 = NULL; in main() local
36 uintptr_t sz1 = __sanitizer_get_coverage_pc_buffer(&buf1); in main()
37 assertNotZeroPcs(buf1, sz1); in main()
38 assert(buf1 == buf); in main()
47 uintptr_t *buf1 = NULL; in main() local
48 uintptr_t sz1 = __sanitizer_get_coverage_pc_buffer(&buf1); in main()
49 assertNotZeroPcs(buf1, sz1); in main()
50 assert(buf1 == buf); in main()
59 uintptr_t *buf1 = NULL; in main() local
60 uintptr_t sz1 = __sanitizer_get_coverage_pc_buffer(&buf1); in main()
[all …]
/external/volley/src/test/java/com/android/volley/toolbox/
DByteArrayPoolTest.java30 byte[] buf1 = pool.getBuf(16); in reusesBuffer()
33 pool.returnBuf(buf1); in reusesBuffer()
38 assertTrue(buf3 == buf1 || buf3 == buf2); in reusesBuffer()
39 assertTrue(buf4 == buf1 || buf4 == buf2); in reusesBuffer()
46 byte[] buf1 = pool.getBuf(16); in obeysSizeLimit()
50 pool.returnBuf(buf1); in obeysSizeLimit()
61 assertTrue(buf6 != buf1 && buf6 != buf2 && buf6 != buf3); in obeysSizeLimit()
67 byte[] buf1 = pool.getBuf(16); in returnsBufferWithRightSize()
68 pool.returnBuf(buf1); in returnsBufferWithRightSize()
71 assertNotSame(buf2, buf1); in returnsBufferWithRightSize()
[all …]
/external/valgrind/none/tests/s390x/
Dxc.c7 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()
/external/ltp/testcases/kernel/syscalls/rename/
Drename01.c84 struct stat buf1; variable
135 if (stat(TC[i].name2, &buf1) == -1) { in main()
145 if (buf1.st_dev != *TC[i].olddev || in main()
146 buf1.st_ino != *TC[i].oldino) { in main()
156 if (stat(fname, &buf1) != -1) { in main()
200 if (stat(fname, &buf1) == -1) { in setup()
206 f_olddev = buf1.st_dev; in setup()
207 f_oldino = buf1.st_ino; in setup()
214 if (stat(fdir, &buf1) == -1) { in setup()
220 d_olddev = buf1.st_dev; in setup()
[all …]
Drename13.c77 struct stat buf1, buf2; variable
123 if (stat(fname, &buf1) == -1) { in main()
139 if (buf1.st_dev != olddev || buf1.st_ino != oldino) { in main()
171 if (stat(fname, &buf1) == -1) { in setup()
178 olddev = buf1.st_dev; in setup()
179 oldino = buf1.st_ino; in setup()
Drename03.c82 struct stat buf1, buf2; variable
208 if (stat(fname, &buf1) == -1) { in setup2()
215 f_olddev = buf1.st_dev; in setup2()
216 f_oldino = buf1.st_ino; in setup2()
224 if (stat(fdir, &buf1) == -1) { in setup2()
230 d_olddev = buf1.st_dev; in setup2()
231 d_oldino = buf1.st_ino; in setup2()
Drename07.c57 struct stat buf1, buf2; variable
121 if (stat(fdir, &buf1) != -1) { in setup()
129 if (stat(fdir, &buf1) == -1) { in setup()
136 olddev = buf1.st_dev; in setup()
137 oldino = buf1.st_ino; in setup()
Drename06.c75 struct stat buf1, buf2; variable
139 if (stat(fdir, &buf1) != -1) { in setup()
145 if (stat(fdir, &buf1) == -1) { in setup()
151 olddev = buf1.st_dev; in setup()
152 oldino = buf1.st_ino; in setup()
Drename05.c74 struct stat buf1, buf2; variable
142 if (stat(fname, &buf1) == -1) { in setup()
149 olddev = buf1.st_dev; in setup()
150 oldino = buf1.st_ino; in setup()
/external/ltp/testcases/kernel/syscalls/times/
Dtimes03.c94 struct tms buf1, buf2, buf3; in verify_times() local
96 if (times(&buf1) == -1) in verify_times()
99 if (buf1.tms_utime != 0) in verify_times()
100 tst_res(TFAIL, "buf1.tms_utime = %li", buf1.tms_utime); in verify_times()
104 if (buf1.tms_stime != 0) in verify_times()
105 tst_res(TFAIL, "buf1.tms_stime = %li", buf1.tms_stime); in verify_times()
120 if (buf1.tms_utime >= buf2.tms_utime) { in verify_times()
122 buf1.tms_utime, buf2.tms_utime); in verify_times()
125 buf1.tms_utime, buf2.tms_utime); in verify_times()
133 if (buf1.tms_stime >= buf2.tms_stime) { in verify_times()
[all …]
/external/libnetfilter_conntrack/include/internal/
Dbitops.h28 set_bitmask_u32(uint32_t *buf1, const uint32_t *buf2, int len) in set_bitmask_u32() argument
33 buf1[i] |= buf2[i]; in set_bitmask_u32()
37 unset_bitmask_u32(uint32_t *buf1, const uint32_t *buf2, int len) in unset_bitmask_u32() argument
42 buf1[i] &= ~buf2[i]; in unset_bitmask_u32()
51 test_bitmask_u32(const uint32_t *buf1, const uint32_t *buf2, int len) in test_bitmask_u32() argument
56 if ((buf1[i] & buf2[i]) != buf2[i]) { in test_bitmask_u32()
64 test_bitmask_u32_or(const uint32_t *buf1, const uint32_t *buf2, int len) in test_bitmask_u32_or() argument
69 if (buf1[i] & buf2[i]) { in test_bitmask_u32_or()
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_load_balance_test/
Dcpuset_sched_domains_check.c54 char buf1[128], buf2[128]; in check_sched_domains() local
91 bitmask_displaylist(buf1, sizeof(buf1), in check_sched_domains()
100 cpu, buf1, buf2); in check_sched_domains()
106 bitmask_displaylist(buf1, sizeof(buf1), in check_sched_domains()
112 cpu, buf1, buf2); in check_sched_domains()
/external/valgrind/memcheck/tests/amd64/
Dfxsave-amd64.c159 unsigned char* buf1 = memalign16(512); in main() local
168 memset(buf1, 0x55, 512); in main()
173 do_setup_then_fxsave(buf1, 0); in main()
175 show(buf1, xx); in main()
185 do_fxrstor(buf1, 0); in main()
192 memset(buf1, 0x55, 512); in main()
197 do_setup_then_fxsave(buf1, 1); in main()
199 show(buf1, xx); in main()
209 do_fxrstor(buf1, 1); in main()
215 free(buf1); free(buf2); free(buf3); in main()
/external/curl/src/
Dtool_homedir.c36 char buf1[1024], buf2[1024]; in GetEnv() local
42 rc = GetEnvironmentVariable(variable, buf1, sizeof(buf1)); in GetEnv()
43 if(rc > 0 && rc < sizeof(buf1)) { in GetEnv()
44 env = buf1; in GetEnv()
45 variable = buf1; in GetEnv()
/external/valgrind/none/tests/amd64/
Dasorep.c5 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/memcheck/tests/x86/
Dfxsave.c106 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/ltp/testcases/kernel/syscalls/mkdir/
Dmkdir02.c98 struct stat buf, buf1; in main() local
168 if (stat(tstdir1, &buf1) == -1) { in main()
176 if (chmod(tstdir1, buf1.st_mode | S_ISGID) != 0) { in main()
254 if (stat(tstdir1, &buf1) == -1) { in main()
261 if (buf.st_gid != buf1.st_gid) { in main()
265 buf.st_gid, buf1.st_gid); in main()
/external/libyuv/files/util/
Dcompare.cc32 uint8 buf1[kBlockSize]; in main() local
41 amt1 = static_cast<int>(fread(buf1, 1, kBlockSize, fin1)); in main()
43 hash1 = libyuv::HashDjb2(buf1, amt1, hash1); in main()
50 sum_square_err += libyuv::ComputeSumSquareError(buf1, buf2, amt_min); in main()
/external/ltp/testcases/kernel/io/direct_io/
Ddiotest_routines.c116 char buf1[BUFSIZ], buf2[BUFSIZ]; in filecmp() local
132 while ((ret1 = read(fd1, buf1, BUFSIZ)) > 0) { in filecmp()
143 if (strncmp(&buf1[i], &buf2[i], 1)) { in filecmp()
146 f1, i, buf1[i], in filecmp()
147 isprint(buf1[i]) ? buf1[1] : '.'); in filecmp()
/external/liblzf/
Dlzf.c180 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()

12345