/external/webrtc/webrtc/base/ |
D | buffer_unittest.cc | 68 Buffer buf1(kTestData), buf2(buf1); in TEST() local 69 EXPECT_EQ(buf2.size(), 16u); in TEST() 70 EXPECT_EQ(buf2.capacity(), 16u); in TEST() 71 EXPECT_EQ(0, memcmp(buf2.data(), kTestData, 16)); in TEST() 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() [all …]
|
/external/valgrind/none/tests/amd64/ |
D | asorep.c | 5 char buf1[64], buf2[64]; variable 11 uintptr_t b1 = (uintptr_t) buf1, b2 = (uintptr_t) buf2; in main() 23 if (memcmp (buf2, "abcd", 5) != 0 in main() 24 || rdi != (uintptr_t) buf2 + 4 in main() 34 if (memcmp (buf2, "0 0 0 ", 7) != 0 in main() 35 || rdi != (uintptr_t) buf2 + 6 in main() 43 if (rsi != (uintptr_t) buf2 + 4 in main() 48 memcpy (buf2, "abcdefghijklmnO", 16); in main() 52 if (rdi != (uintptr_t) buf2 + 15 in main() 57 memcpy (buf2, "ababababababababcdab", 20); in main() [all …]
|
/external/vboot_reference/tests/ |
D | vb21_common2_tests.c | 118 uint8_t *buf2; in test_verify_signature() local 123 buf2 = malloc(size); in test_verify_signature() 124 sig2 = (struct vb2_signature *)buf2; in test_verify_signature() 126 memcpy(buf2, sig, size); in test_verify_signature() 132 memcpy(buf2, sig, size); in test_verify_signature() 137 memcpy(buf2, sig, size); in test_verify_signature() 144 memcpy(buf2, sig, size); in test_verify_signature() 150 memcpy(buf2, sig, size); in test_verify_signature() 155 memcpy(buf2, sig, size); in test_verify_signature() 160 memcpy(buf2, sig, size); in test_verify_signature() [all …]
|
D | vb21_common_tests.c | 260 uint8_t *buf, *buf2; in test_verify_keyblock() local 286 buf2 = malloc(buf_size); in test_verify_keyblock() 287 memcpy(buf2, buf, buf_size); in test_verify_keyblock() 295 memcpy(buf, buf2, buf_size); in test_verify_keyblock() 299 memcpy(buf, buf2, buf_size); in test_verify_keyblock() 304 memcpy(buf, buf2, buf_size); in test_verify_keyblock() 310 memcpy(buf, buf2, buf_size); in test_verify_keyblock() 316 memcpy(buf, buf2, buf_size); in test_verify_keyblock() 322 memcpy(buf, buf2, buf_size); in test_verify_keyblock() 331 memcpy(buf, buf2, buf_size); in test_verify_keyblock() [all …]
|
D | tlcl_tests.c | 110 uint8_t buf[32], buf2[32]; in TlclTest() local 132 TEST_EQ(TlclSendReceive(buf, buf2, sizeof(buf2)), 0, "SendReceive"); in TlclTest() 139 TEST_EQ(TlclSendReceive(buf, buf2, sizeof(buf2)), VBERROR_SIMULATED, in TlclTest() 145 TEST_EQ(TlclSendReceive(buf, buf2, sizeof(buf2)), 123, in TlclTest() 273 uint8_t buf[kPcrDigestLength], buf2[kPcrDigestLength]; in PcrTest() local 284 TEST_EQ(TlclExtend(1, buf, buf2), 0, "Extend"); in PcrTest()
|
D | vb21_host_key_tests.c | 43 uint8_t *buf, *buf2; in private_key_tests() local 97 buf2 = malloc(bufsize); in private_key_tests() 98 memcpy(buf2, buf, bufsize); in private_key_tests() 104 memcpy(buf, buf2, bufsize); in private_key_tests() 111 memcpy(buf, buf2, bufsize); in private_key_tests() 117 memcpy(buf, buf2, bufsize); in private_key_tests() 123 memcpy(buf, buf2, bufsize); in private_key_tests() 129 memcpy(buf, buf2, bufsize); in private_key_tests() 135 memcpy(buf, buf2, bufsize); in private_key_tests() 141 memcpy(buf, buf2, bufsize); in private_key_tests() [all …]
|
/external/curl/src/ |
D | tool_homedir.c | 36 char buf1[1024], buf2[1024]; in GetEnv() local 49 rc = ExpandEnvironmentStrings (variable, buf2, sizeof(buf2)); in GetEnv() 50 if(rc > 0 && rc < sizeof(buf2) && in GetEnv() 51 !strchr(buf2, '%')) /* no vars still unexpanded */ in GetEnv() 52 env = buf2; in GetEnv()
|
/external/valgrind/none/tests/s390x/ |
D | xc.c | 8 char buf2[20] = "*U\0*\0\0UU*\0U*AUAA*UU\n"; in test_oc() local 18 "Q"(*buf2):"memory"); in test_oc() 26 char buf2[20] = "*U\0*\0\0UU*\0U*AUAA*UU\n"; in test_nc() local 36 "Q"(*buf2):"memory"); in test_nc() 45 char buf2[20] = "*U\0*\0\0UU*\0U*AUAA*UU\n"; in test_xc() local 86 "a"(buf2):"memory"); in test_xc()
|
D | ex_clone.c | 17 char buf2[40]; in threadfunc() local 20 memset(buf2, 0, sizeof(buf2)); in threadfunc() 32 ::"a" (buf2), "a" (source) in threadfunc() 34 printf("%s\n", buf2); in threadfunc()
|
D | ex_sig.c | 17 char buf2[40]; in handle_SIG() local 25 ::"a" (buf2), "a" (source) in handle_SIG()
|
/external/guava/guava-tests/test/com/google/common/io/ |
D | CharSequenceReaderTest.java | 212 CharBuffer buf2 = CharBuffer.allocate(expected.length()); in assertReadsCorrectly() local 213 assertEquals(expected.length() == 0 ? -1 : expected.length(), reader.read(buf2)); in assertReadsCorrectly() 214 buf2.flip(); in assertReadsCorrectly() 215 assertEquals(expected, buf2.toString()); in assertReadsCorrectly() 220 buf2 = CharBuffer.allocate(5); in assertReadsCorrectly() 222 while (reader.read(buf2) != -1) { in assertReadsCorrectly() 223 buf2.flip(); in assertReadsCorrectly() 224 builder.append(buf2); in assertReadsCorrectly() 225 buf2.clear(); in assertReadsCorrectly()
|
/external/valgrind/memcheck/tests/amd64/ |
D | fxsave-amd64.c | 160 unsigned char* buf2 = memalign16(512); in main() local 169 memset(buf2, 0x55, 512); in main() 180 do_fxsave(buf2, 0); in main() 182 show(buf2, xx); in main() 193 memset(buf2, 0x55, 512); in main() 204 do_fxsave(buf2, 1); in main() 206 show(buf2, xx); in main() 215 free(buf1); free(buf2); free(buf3); in main()
|
/external/valgrind/VEX/test/ |
D | fxsave.c | 106 unsigned char* buf2 = memalign(16,512); in main() local 112 memset(buf2, 0x55, 512); in main() 123 do_fxsave(buf2); in main() 125 show(buf2, xx); in main() 133 free(buf1); free(buf2); free(buf3); in main()
|
D | frstor.c | 67 unsigned short* buf2 = malloc(54*sizeof(short)); in main() local 78 do_fsave(buf2); in main() 79 show_fpustate( (unsigned char*)buf2, xx ); in main()
|
/external/valgrind/memcheck/tests/x86/ |
D | fxsave.c | 107 unsigned char* buf2 = memalign16(512); in main() local 113 memset(buf2, 0x55, 512); in main() 124 do_fxsave(buf2); in main() 126 show(buf2, xx); in main() 134 free(buf1); free(buf2); free(buf3); in main()
|
/external/libyuv/files/util/ |
D | compare.cc | 33 uint8 buf2[kBlockSize]; in main() local 44 amt2 = fread(buf2, 1, kBlockSize, fin2); in main() 45 if (amt2 > 0) hash2 = libyuv::HashDjb2(buf2, amt2, hash2); in main() 48 sum_square_err += libyuv::ComputeSumSquareError(buf1, buf2, amt_min); in main()
|
/external/mesa3d/src/mesa/main/ |
D | debug.c | 498 GLubyte *buf2; in _mesa_dump_depth_buffer() local 502 buf2 = (GLubyte *) malloc(w * h * 3); /* 3 bpp */ in _mesa_dump_depth_buffer() 512 buf2[i*3+0] = (buf[i] >> 24) & 0xff; in _mesa_dump_depth_buffer() 513 buf2[i*3+1] = (buf[i] >> 16) & 0xff; in _mesa_dump_depth_buffer() 514 buf2[i*3+2] = (buf[i] >> 8) & 0xff; in _mesa_dump_depth_buffer() 518 write_ppm(filename, buf2, w, h, 3, 0, 1, 2, GL_TRUE); in _mesa_dump_depth_buffer() 523 free(buf2); in _mesa_dump_depth_buffer() 534 GLubyte *buf2; in _mesa_dump_stencil_buffer() local 538 buf2 = (GLubyte *) malloc(w * h * 3); /* 3 bpp */ in _mesa_dump_stencil_buffer() 547 buf2[i*3+0] = buf[i]; in _mesa_dump_stencil_buffer() [all …]
|
/external/toybox/toys/posix/ |
D | cmp.c | 35 char *buf2 = toybuf+size; local 48 len2 = readall(fd, buf2, size); 52 if (toybuf[i] != buf2[i]) { 55 printf("%ld %o %o\n", byte_no, toybuf[i], buf2[i]);
|
/external/opencv3/modules/core/src/ |
D | conjugate_gradient.cpp | 86 …mSolver::Function> _f,Mat_<double>& x,const Mat_<double>& d,Mat_<double>& buf1,Mat_<double>& buf2); 90 Mat_<double>& buf2){ in minimizeOnTheLine() argument 93 buf2=0.0; in minimizeOnTheLine() 106 _f->getGradient((double*)x.data,(double*)buf2.data); in minimizeOnTheLine() 108 print_matrix(buf2); 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/opencv3/modules/cudaarithm/test/ |
D | test_buffer_pool.cpp | 76 GpuMat buf2 = pool.getBuffer(Size(1280, 1024), CV_32SC1); in RunSimpleTest() local 77 EXPECT_FALSE( buf2.empty() ); in RunSimpleTest() 79 buf2.setTo(Scalar::all(2), stream); in RunSimpleTest() 81 buf2.download(dst_2, stream); in RunSimpleTest()
|
/external/valgrind/coregrind/m_gdbserver/ |
D | remote-utils.c | 816 char *buf2; in putpkt_binary() local 820 buf2 = malloc (PBUFSIZ+POVERHSIZ); in putpkt_binary() 828 p = buf2; in putpkt_binary() 843 free (buf2); in putpkt_binary() 851 if (VG_(write) (write_remote_desc, buf2, p - buf2) != p - buf2) { in putpkt_binary() 853 free (buf2); in putpkt_binary() 858 char *tracebuf = malloc(4 * (p - buf2) + 1); // worst case in putpkt_binary() 861 for (UInt npr = 0; npr < p - buf2; npr++) { in putpkt_binary() 862 UChar uc = (unsigned char)buf2[npr]; in putpkt_binary() 873 strlen(tracebuf) == p - buf2 ? "binary " : "", in putpkt_binary() [all …]
|
/external/icu/icu4c/source/tools/gencolusb/ |
D | extract_unsafe_backwards.cpp | 82 char buf2[2048]; in main() local 83 int32_t len2 = pattern.extract(0, pattern.length(), buf2, "utf-8"); in main() 84 buf2[len2]=0; in main() 85 fprintf(stderr,"===\n%s\n===\n", buf2); in main()
|
/external/compiler-rt/lib/sanitizer_common/tests/ |
D | sanitizer_printf_test.cc | 112 char buf2[1024]; in TestAgainstLibc() local 113 snprintf(buf2, sizeof(buf2), fmt, arg1, arg2); in TestAgainstLibc() 115 EXPECT_STREQ(buf2, buf); in TestAgainstLibc()
|
/external/liblzf/ |
D | lzf.c | 181 u8 buf2[MAX_BLOCKSIZE + MAX_HDR_SIZE + 16]; in compress_fd() local 187 cs = lzf_compress (&buf1[MAX_HDR_SIZE], us, &buf2[MAX_HDR_SIZE], us > 4 ? us - 4 : us); in compress_fd() 190 header = &buf2[MAX_HDR_SIZE - TYPE1_HDR_SIZE]; in compress_fd() 223 u8 buf2[MAX_BLOCKSIZE + MAX_HDR_SIZE + 16]; in uncompress_fd() local 296 if (lzf_decompress (buf1, cs, buf2, us) != us) in uncompress_fd() 302 if (wwrite (to, buf2, us)) in uncompress_fd()
|
/external/wpa_supplicant_8/src/drivers/ |
D | rfkill.c | 110 char buf2[31 + 11 + 1]; in rfkill_init() local 158 os_snprintf(buf2, sizeof(buf2), in rfkill_init() 160 rfk_phy = realpath(buf2, NULL); in rfkill_init()
|