Home
last modified time | relevance | path

Searched refs:buffer1 (Results 1 – 21 of 21) sorted by relevance

/external/chromium/net/disk_cache/
Dmapped_file_unittest.cc47 char buffer1[20]; in TEST_F() local
49 CacheTestFillBuffer(buffer1, sizeof(buffer1), false); in TEST_F()
50 base::strlcpy(buffer1, "the data", arraysize(buffer1)); in TEST_F()
51 EXPECT_TRUE(file->Write(buffer1, sizeof(buffer1), 8192)); in TEST_F()
53 EXPECT_STREQ(buffer1, buffer2); in TEST_F()
69 char buffer1[20]; in TEST_F() local
71 CacheTestFillBuffer(buffer1, sizeof(buffer1), false); in TEST_F()
72 base::strlcpy(buffer1, "the data", arraysize(buffer1)); in TEST_F()
74 EXPECT_TRUE(file->Write(buffer1, sizeof(buffer1), 1024 * 1024, &callback, in TEST_F()
90 EXPECT_STREQ(buffer1, buffer2); in TEST_F()
Dentry_unittest.cc80 scoped_refptr<net::IOBuffer> buffer1(new net::IOBuffer(kSize1)); in InternalSyncIOBackground() local
81 CacheTestFillBuffer(buffer1->data(), kSize1, false); in InternalSyncIOBackground()
82 EXPECT_EQ(0, entry->ReadData(0, 0, buffer1, kSize1, NULL)); in InternalSyncIOBackground()
83 base::strlcpy(buffer1->data(), "the data", kSize1); in InternalSyncIOBackground()
84 EXPECT_EQ(10, entry->WriteData(0, 0, buffer1, kSize1, NULL, false)); in InternalSyncIOBackground()
85 memset(buffer1->data(), 0, kSize1); in InternalSyncIOBackground()
86 EXPECT_EQ(10, entry->ReadData(0, 0, buffer1, kSize1, NULL)); in InternalSyncIOBackground()
87 EXPECT_STREQ("the data", buffer1->data()); in InternalSyncIOBackground()
183 scoped_refptr<net::IOBuffer> buffer1(new net::IOBuffer(kSize1)); in InternalAsyncIO() local
186 CacheTestFillBuffer(buffer1->data(), kSize1, false); in InternalAsyncIO()
[all …]
Ddisk_cache_perftest.cc47 scoped_refptr<net::IOBuffer> buffer1(new net::IOBuffer(kSize1)); in TimeWrite() local
50 CacheTestFillBuffer(buffer1->data(), kSize1, false); in TimeWrite()
73 int ret = cache_entry->WriteData(0, 0, buffer1, kSize1, &callback, false); in TimeWrite()
98 scoped_refptr<net::IOBuffer> buffer1(new net::IOBuffer(kSize1)); in TimeRead() local
101 CacheTestFillBuffer(buffer1->data(), kSize1, false); in TimeRead()
121 int ret = cache_entry->ReadData(0, 0, buffer1, kSize1, &callback); in TimeRead()
Dbackend_unittest.cc239 scoped_refptr<net::IOBuffer> buffer1(new net::IOBuffer(kSize)); in TEST_F() local
240 CacheTestFillBuffer(buffer1->data(), kSize, false); in TEST_F()
241 ASSERT_EQ(kSize, file_util::WriteFile(filename, buffer1->data(), kSize)); in TEST_F()
246 ASSERT_EQ(0, WriteData(entry, 0, 20000, buffer1, 0, false)); in TEST_F()
252 EXPECT_EQ(0, memcmp(buffer1->data(), buffer2->data(), kSize)); in TEST_F()
507 scoped_refptr<net::IOBuffer> buffer1(new net::IOBuffer(kSize)); in BackendValidEntry() local
508 memset(buffer1->data(), 0, kSize); in BackendValidEntry()
509 base::strlcpy(buffer1->data(), "And the data to save", kSize); in BackendValidEntry()
510 EXPECT_EQ(kSize, WriteData(entry, 0, 0, buffer1, kSize, false)); in BackendValidEntry()
520 EXPECT_STREQ(buffer1->data(), buffer2->data()); in BackendValidEntry()
[all …]
/external/valgrind/main/exp-bbv/tests/x86/
Drep_prefix.S22 mov $buffer1, %esi # set source
26 mov $buffer1, %esi # set source
42 mov $buffer1, %edi # set destination
48 mov $buffer1, %esi # set source
59 mov $buffer1, %edi # set destination
65 mov $buffer1, %esi # set source
76 mov $buffer1, %edi # set destination
82 mov $buffer1, %esi # set source
95 mov $buffer1, %esi
103 mov $buffer1, %edi
[all …]
/external/v8/test/cctest/
Dtest-utils.cc109 Vector<byte> buffer1 = Vector<byte>::New(N); in TEST() local
113 buffer1[i] = static_cast<byte>(i & 0x7F); in TEST()
118 TestMemCopy(buffer1, buffer2, i, i, i * 2); in TEST()
124 TestMemCopy(buffer1, buffer2, i, (i + j) & 0x1F , 0); in TEST()
130 TestMemCopy(buffer1, buffer2, 3, 7, i); in TEST()
134 buffer1.Dispose(); in TEST()
/external/srtp/crypto/test/
Dcipher_driver.c263 uint8_t buffer0[buflen], buffer1[buflen], *current, *end; in cipher_driver_test_buffering() local
277 buffer0[j] = buffer1[j] = 0; in cipher_driver_test_buffering()
295 current = buffer1; in cipher_driver_test_buffering()
296 end = buffer1 + buflen; in cipher_driver_test_buffering()
320 if (buffer0[j] != buffer1[j]) { in cipher_driver_test_buffering()
323 printf("computed: %s\n", octet_string_hex_string(buffer1, buflen)); in cipher_driver_test_buffering()
/external/qemu/distrib/sdl-1.2.12/src/video/gem/
DSDL_gemvideo.h52 void *buffer1; /* Our shadow buffers */ member
142 #define GEM_buffer1 (this->hidden->buffer1)
/external/grub/netboot/
Dw89c840.c211 u32 buffer1; member
218 u32 buffer1, buffer2; /* We use only buffer 1. */ member
457 memcpy(nic->packet, le32desc_to_virt(w840private.rx_ring[entry].buffer1), pkt_len); in w89c840_poll()
522 w840private.tx_ring[entry].buffer1 = virt_to_le32desc(tx_packet); in w89c840_transmit()
920 w840private.rx_ring[i].buffer1 = virt_to_le32desc(p + (PKT_BUF_SZ * i)); in init_ring()
Dtulip.c367 u32 buffer1, buffer2; member
373 u32 buffer1, buffer2; member
915 rx_ring[i].buffer1 = virt_to_le32desc(&rxb[i * BUFLEN]); in tulip_init_ring()
926 tx_ring[0].buffer1 = virt_to_le32desc(&txb[0]); in tulip_init_ring()
932 tx_ring[1].buffer1 = virt_to_le32desc(&txb[0]); in tulip_init_ring()
1020 tx_ring[0].buffer1 = virt_to_le32desc(&txb[0]); in tulip_reset()
/external/chromium/base/
Dfile_util.cc94 char buffer1[BUFFER_SIZE], buffer2[BUFFER_SIZE]; in ContentsEqual() local
96 file1.read(buffer1, BUFFER_SIZE); in ContentsEqual()
101 (memcmp(buffer1, buffer2, file1.gcount()))) { in ContentsEqual()
/external/dbus/dbus/
Ddbus-sysdeps-unix.c391 const DBusString *buffer1, in _dbus_write_socket_with_unix_fds_two() argument
408 buffer1, start1, len1, in _dbus_write_socket_with_unix_fds_two()
422 iov[0].iov_base = (char*) _dbus_string_get_const_data_len (buffer1, start1, len1); in _dbus_write_socket_with_unix_fds_two()
483 const DBusString *buffer1, in _dbus_write_socket_two() argument
497 _dbus_assert (buffer1 != NULL); in _dbus_write_socket_two()
503 data1 = _dbus_string_get_const_data_len (buffer1, start1, len1); in _dbus_write_socket_two()
533 return _dbus_write_two (fd, buffer1, start1, len1, in _dbus_write_socket_two()
668 const DBusString *buffer1, in _dbus_write_two() argument
675 _dbus_assert (buffer1 != NULL); in _dbus_write_two()
688 data1 = _dbus_string_get_const_data_len (buffer1, start1, len1); in _dbus_write_two()
[all …]
Ddbus-sysdeps-unix.h59 const DBusString *buffer1,
Ddbus-sysdeps.h136 const DBusString *buffer1,
155 const DBusString *buffer1,
Ddbus-sysdeps-win.c388 const DBusString *buffer1, in _dbus_write_socket_two() argument
401 _dbus_assert (buffer1 != NULL); in _dbus_write_socket_two()
408 data1 = _dbus_string_get_const_data_len (buffer1, start1, len1); in _dbus_write_socket_two()
/external/icu4c/common/
Dcmemory.h35 #define uprv_memcmp(buffer1, buffer2, size) U_STANDARD_CPP_NAMESPACE memcmp(buffer1, buffer2,size) argument
/external/yaffs2/yaffs2/direct/
Ddtest.c1244 char buffer1[1000]; in cache_bypass_bug_test() local
1247 memset(buffer1,0,sizeof(buffer1)); in cache_bypass_bug_test()
1267 yaffs_read(a,buffer1,30); in cache_bypass_bug_test()
1273 printf("buffer 1 %s\n",buffer1); in cache_bypass_bug_test()
1276 if(strncmp(buffer1,buffer2,20)) in cache_bypass_bug_test()
/external/opencv/cv/src/
Dcvlkpyramid.cpp231 float* buffer1 = buffer0 + src_width; in icvCalcIxIy_32f() local
245 buffer0[x] = t0; buffer1[x] = t1; in icvCalcIxIy_32f()
251 float t1 = (buffer1[x] + buffer1[x+2])*smooth_k[0] + buffer1[x+1]*smooth_k[1]; in icvCalcIxIy_32f()
/external/quake/quake/src/QW/dxsdk/sdk/inc/
Dd3drmdef.h131 void* buffer1; /* memory to render into (first buffer). */ member
/external/quake/quake/src/WinQuake/dxsdk/SDK/INC/
DD3DRMDEF.H131 void* buffer1; /* memory to render into (first buffer). */ member
/external/icu4c/test/intltest/
Dtmsgfmt.cpp361 UnicodeString buffer1, buffer2; in sample() local