Home
last modified time | relevance | path

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

1234

/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/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/opencv3/modules/superres/src/
Dinput_array_utility.cpp236 Mat cv::superres::convertToType(const Mat& src, int type, Mat& buf0, Mat& buf1) in convertToType() argument
252 convertToDepth(src, buf1, depth); in convertToType()
253 return buf1; in convertToType()
257 convertToDepth(buf0, buf1, depth); in convertToType()
258 return buf1; in convertToType()
261 UMat cv::superres::convertToType(const UMat& src, int type, UMat& buf0, UMat& buf1) in convertToType() argument
277 convertToDepth(src, buf1, depth); in convertToType()
278 return buf1; in convertToType()
282 convertToDepth(buf0, buf1, depth); in convertToType()
283 return buf1; in convertToType()
[all …]
Dinput_array_utility.hpp59 CV_EXPORTS Mat convertToType(const Mat& src, int type, Mat& buf0, Mat& buf1);
60 CV_EXPORTS UMat convertToType(const UMat& src, int type, UMat& buf0, UMat& buf1);
61 …a::GpuMat convertToType(const cuda::GpuMat& src, int type, cuda::GpuMat& buf0, cuda::GpuMat& buf1);
/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/VEX/test/
Dfxsave.c105 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()
Dfrstor.c66 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/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/opencv3/modules/cudaarithm/test/
Dtest_buffer_pool.cpp67 GpuMat buf1 = pool.getBuffer(Size(640, 480), CV_8UC1); in RunSimpleTest() local
68 EXPECT_FALSE( buf1.empty() ); in RunSimpleTest()
70 buf0.convertTo(buf1, buf1.type(), 1.0, 1.0, stream); in RunSimpleTest()
72 buf1.download(dst_1, stream); in RunSimpleTest()
/external/libyuv/files/util/
Dcompare.cc32 uint8 buf1[kBlockSize]; in main() local
41 amt1 = fread(buf1, 1, kBlockSize, fin1); in main()
42 if (amt1 > 0) hash1 = libyuv::HashDjb2(buf1, amt1, hash1); in main()
48 sum_square_err += libyuv::ComputeSumSquareError(buf1, buf2, amt_min); in main()
/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()
/external/opencv3/modules/core/src/
Dconjugate_gradient.cpp86 …mSolver::Function> _f,Mat_<double>& x,const Mat_<double>& d,Mat_<double>& buf1,Mat_<double>& buf2);
89 …heLine(Ptr<MinProblemSolver::Function> _f,Mat_<double>& x,const Mat_<double>& d,Mat_<double>& buf1, in minimizeOnTheLine() argument
92 buf1=0.0; in minimizeOnTheLine()
102 _f->getGradient((double*)x.data,(double*)buf1.data); in minimizeOnTheLine()
104 print_matrix(buf1); in minimizeOnTheLine()
109 double d1=buf1.dot(d), d2=buf2.dot(d); in minimizeOnTheLine()
114 dprintf(("(buf2.dot(d)-buf1.dot(d))=%f\nalpha=%f\n",(buf2.dot(d)-buf1.dot(d)),alpha)); in minimizeOnTheLine()
/external/libvncserver/libvncclient/
Dtls_gnutls.c215 char buf1[500],buf2[10]; in ReadVeNCryptSecurityType() local
258 memset(buf1, 0, sizeof(buf1)); in ReadVeNCryptSecurityType()
261 if (strlen(buf1)>=sizeof(buf1)-1) break; in ReadVeNCryptSecurityType()
263 strncat(buf1, buf2, sizeof(buf1)-strlen(buf1)-1); in ReadVeNCryptSecurityType()
266 buf1); in ReadVeNCryptSecurityType()
Dtls_openssl.c368 char buf1[500],buf2[10]; in ReadVeNCryptSecurityType() local
411 memset(buf1, 0, sizeof(buf1)); in ReadVeNCryptSecurityType()
414 if (strlen(buf1)>=sizeof(buf1)-1) break; in ReadVeNCryptSecurityType()
416 strncat(buf1, buf2, sizeof(buf1)-strlen(buf1)-1); in ReadVeNCryptSecurityType()
419 buf1); in ReadVeNCryptSecurityType()
/external/libxml2/os400/dlfcn/
Ddlfcn.c413 char buf1[MAXPATHLEN + 1]; in dlresolveLink() local
431 if (!getcwd(buf1, sizeof buf1)) in dlresolveLink()
434 l1 = strlen(buf1); in dlresolveLink()
439 l1 = dlmakepath(buf1, l1, path, strlen(path)); in dlresolveLink()
451 if (lstat(buf1, &sbuf)) { in dlresolveLink()
466 l2 = readlink(buf1, buf2, MAXPATHLEN + 1); in dlresolveLink()
472 l1 = dlparentpath(buf1, l1); in dlresolveLink()
474 l1 = dlmakepath(buf1, l1, buf2, l2); in dlresolveLink()
482 memcpy(buf, buf1, l1 + 1); in dlresolveLink()
/external/e2fsprogs/intl/
Dlocalcharset.c145 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/icu/icu4c/source/test/cintltst/
Dbocu1tst.c789 char buf1[80], buf2[80]; in TestBOCU1RefDiff() local
823 printBytes(prev, buf1); in TestBOCU1RefDiff()
824 log_verbose(" wD(%8ld) %s\n", i, buf1); in TestBOCU1RefDiff()
839 printBytes(prev, buf1); in TestBOCU1RefDiff()
841 … log_verbose("ok: strcmp(wD(%8ld), wD(%8ld))=%2d %s%s\n", i-1, i, cmp, buf1, buf2); in TestBOCU1RefDiff()
845 printBytes(prev, buf1); in TestBOCU1RefDiff()
847 log_verbose("wrong: strcmp(wD(%8ld), wD(%8ld))=%2d %s%s\n", i-1, i, cmp, buf1, buf2); in TestBOCU1RefDiff()
854 printBytes((uint8_t *)"", buf1); in TestBOCU1RefDiff()
856 log_verbose(" wD(%8ld) %s%s\n", i-1, buf1, buf2); in TestBOCU1RefDiff()
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
DDigestInputStream2Test.java112 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/bison/lib/
Dlocalcharset.c190 char buf1[50+1]; in get_charset_aliases() local
211 if (fscanf (fp, "%50s %50s", buf1, buf2) < 2) in get_charset_aliases()
213 l1 = strlen (buf1); in get_charset_aliases()
233 strcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1); in get_charset_aliases()

1234