Searched defs:buffer2 (Results 1 - 25 of 33) sorted by relevance

12

/external/google-breakpad/src/common/linux/
H A Dsafe_readlink_unittest.cc55 char buffer2[PATH_MAX]; local
56 EXPECT_TRUE(SafeReadLink("/proc/self/exe", buffer2, path_length + 1));
57 EXPECT_EQ(path_length, strlen(buffer2));
58 EXPECT_EQ(0, strncmp(buffer, buffer2, PATH_MAX));
85 char buffer2[PATH_MAX]; local
86 EXPECT_TRUE(SafeReadLink("/proc/self/exe", buffer2));
87 EXPECT_EQ(path_length, strlen(buffer2));
88 EXPECT_EQ(0, strncmp(buffer, buffer2, PATH_MAX));
/external/clang/test/CodeGenCXX/
H A Dvla-lambda-capturing.cpp59 ArrTy buffer2; local
65 n = sizeof(buffer2);
/external/libbrillo/brillo/
H A Dany_internal_impl_unittest.cc96 Buffer buffer2; local
99 buffer1.CopyTo(&buffer2);
101 EXPECT_FALSE(buffer2.IsEmpty());
103 EXPECT_STREQ(GetTypeTag<int>(), buffer2.GetDataPtr()->GetTypeTag());
105 EXPECT_EQ(30, buffer2.GetData<int>());
108 buffer1.CopyTo(&buffer2);
110 EXPECT_FALSE(buffer2.IsEmpty());
112 EXPECT_STREQ(GetTypeTag<std::string>(), buffer2.GetDataPtr()->GetTypeTag());
114 EXPECT_EQ("abc", buffer2.GetData<std::string>());
123 Buffer buffer2; local
[all...]
/external/skia/tests/
H A DPDFGlyphsToUnicodeTest.cpp163 SkDynamicMemoryWStream buffer2; local
165 append_cmap_sections(glyphToUnicode, &subset2, &buffer2, true, 0, 0xffff);
178 REPORTER_ASSERT(reporter, stream_equals(buffer2, 0, expectedResult2,
179 buffer2.getOffset()));
H A DMatrixTest.cpp155 char buffer2[kBufferSize]; local
156 size3 = m2.writeToMemory(buffer2);
158 REPORTER_ASSERT(reporter, memcmp(buffer, buffer2, size1) == 0);
H A DPathTest.cpp2263 char buffer2[1024]; local
2264 size3 = p2.writeToMemory(buffer2);
2266 REPORTER_ASSERT(reporter, memcmp(buffer, buffer2, size1) == 0);
/external/nanopb-c/tests/decode_unittests/
H A Ddecode_unittests.c46 uint8_t buffer2[sizeof(buffer1)]; local
50 TEST(pb_read(&stream, buffer2, 6))
51 TEST(memcmp(buffer2, "foobar", 6) == 0)
53 TEST(pb_read(&stream, buffer2 + 6, stream.bytes_left))
54 TEST(memcmp(buffer1, buffer2, sizeof(buffer1)) == 0)
56 TEST(!pb_read(&stream, buffer2, 1))
/external/nanopb-c/tests/encode_unittests/
H A Dencode_unittests.c54 uint8_t buffer2[sizeof(buffer1)]; local
55 pb_ostream_t stream = pb_ostream_from_buffer(buffer2, sizeof(buffer1));
59 TEST(memcmp(buffer1, buffer2, sizeof(buffer1)) == 0);
/external/srtp/crypto/cipher/
H A Dcipher.c89 uint8_t buffer2[SELF_TEST_BUF_OCTETS]; local
287 buffer2[i] = buffer[i];
351 if (buffer[i] != buffer2[i]) {
/external/archive-patcher/applier/src/main/java/com/google/archivepatcher/applier/bsdiff/
H A DBsPatch.java112 final byte[] buffer2 = new byte[PATCH_BUFFER_SIZE];
164 transformBytes((int) diffSegmentLength, patchData, oldData, newData, buffer1, buffer2);
180 * |buffer2.length|, and |buffer1| and |buffer2| must be distinct objects.
192 * @param buffer2 temporary buffer to use for data transformation; contents are ignored, may be
202 final byte[] buffer2)
208 readFully(patchData, buffer2, 0, numBytesThisRound);
210 buffer1[i] += buffer2[i];
196 transformBytes( final int diffLength, final InputStream patchData, final RandomAccessFile oldData, final OutputStream newData, final byte[] buffer1, final byte[] buffer2) argument
/external/google-breakpad/src/common/dwarf/
H A Dbytereader-inl.h59 const uint32 buffer2 = buffer[2]; local
62 return buffer0 | buffer1 << 8 | buffer2 << 16 | buffer3 << 24;
64 return buffer3 | buffer2 << 8 | buffer1 << 16 | buffer0 << 24;
73 const uint64 buffer2 = buffer[2]; local
80 return buffer0 | buffer1 << 8 | buffer2 << 16 | buffer3 << 24 |
84 buffer3 << 32 | buffer2 << 40 | buffer1 << 48 | buffer0 << 56;
/external/tpm2/
H A DMemoryLib.c74 const void *buffer2, // IN: compare buffer2
81 b2 = (BYTE *)buffer2;
72 MemoryEqual( const void *buffer1, const void *buffer2, UINT32 size ) argument
/external/libchrome/base/files/
H A Dfile_util.cc67 char buffer1[BUFFER_SIZE], buffer2[BUFFER_SIZE]; local
70 file2.read(buffer2, BUFFER_SIZE);
74 (memcmp(buffer1, buffer2, static_cast<size_t>(file1.gcount())))) {
/external/mdnsresponder/mDNSPosix/
H A DProxyResponder.c121 char buffer1[MAX_ESCAPED_DOMAIN_NAME], buffer2[MAX_ESCAPED_DOMAIN_NAME]; local
124 ConvertDomainNameToCString(sr->RR_SRV.resrec.name, buffer2);
125 printf("Name Conflict! %s renamed as %s\n", buffer1, buffer2);
197 char buffer1[MAX_ESCAPED_DOMAIN_NAME], buffer2[MAX_ESCAPED_DOMAIN_NAME]; local
202 ConvertDomainNameToCString(rr->resrec.name, buffer2);
203 printf("Name Conflict! %s renamed as %s\n", buffer1, buffer2);
/external/archive-patcher/applier/src/test/java/com/google/archivepatcher/applier/bsdiff/
H A DBsPatchTest.java43 private byte[] buffer2; field in class:BsPatchTest
57 buffer2 = new byte[6];
87 BsPatch.transformBytes(patchInput.length, patchInputStream, oldData, newData, buffer1, buffer2);
100 BsPatch.transformBytes(2, patchIn, oldData, new ByteArrayOutputStream(), buffer1, buffer2);
116 patchInput.length, patchInputStream, oldData, newData, buffer1, buffer2);
130 final byte[] buffer2 = new byte[6];
135 patchInput.length + 1, patchInputStream, oldData, newData, buffer1, buffer2);
/external/icu/icu4c/source/test/intltest/
H A Duts46test.cpp586 char buffer[400], buffer2[400]; local
683 prettify(uNaN).extract(0, 0x7fffffff, buffer2, UPRV_LENGTHOF(buffer2));
686 (int)i, testCase.s, aNInfo.getErrors(), buffer, buffer2);
691 prettify(uTaN).extract(0, 0x7fffffff, buffer2, UPRV_LENGTHOF(buffer2));
694 (int)i, testCase.s, aNInfo.getErrors(), buffer, buffer2);
699 prettify(aNuN).extract(0, 0x7fffffff, buffer2, UPRV_LENGTHOF(buffer2));
702 (int)i, testCase.s, uNInfo.getErrors(), buffer, buffer2);
[all...]
H A Dtmsgfmt.cpp370 UnicodeString buffer1, buffer2; local
384 form->format(testArgs1, 2, buffer2, fieldpos, success));
1645 UnicodeString buffer1, buffer2; local
1651 icuMsg.format(zero0, 1, buffer2, fieldpos, ec));
1656 buffer2.remove();
1668 icuMsg.format(zero0, 1, buffer2, fieldpos, ec));
H A Dtranstst.cpp3461 UChar buffer2[20]; local
3477 u_strToUpper(buffer2, 20, deeDEETest.getBuffer(), deeDEETest.length(), NULL, &status);
3478 if (U_FAILURE(status) || (UnicodeString(buffer2)!= DEEDEETest)) {
3483 u_strToLower(buffer2, 20, deeDEETest.getBuffer(), deeDEETest.length(), NULL, &status);
3484 if (U_FAILURE(status) || (UnicodeString(buffer2)!= deedeeTest)) {
/external/libvncserver/libvncclient/
H A Dtight.c99 char *buffer2; local
198 buffer2 = &client->buffer[TIGHT_MIN_TO_COMPRESS * 4];
199 filterFn(client, rh, (CARDBPP *)buffer2);
201 CopyRectangle(client, (uint8_t *)buffer2, rx, ry, rw, rh);
232 buffer2 = &client->buffer[bufferSize];
274 filterFn(client, numRows, (CARDBPP *)buffer2);
280 CopyRectangle(client, (uint8_t *)buffer2, rx, ry+rowsProcessed, rw, numRows);
/external/libvorbis/lib/
H A Dpsytune.c243 signed char *buffer,*buffer2; local
285 buffer2=buffer+framesize*2;
305 long bytes=fread(buffer2,1,framesize*2,stdin);
307 memset(buffer2+bytes,0,framesize*2-bytes);
509 memmove(buffer,buffer2,framesize*2);
/external/icu/icu4c/source/test/cintltst/
H A Dudatatst.c1403 uint8_t *buffer, uint8_t *buffer2) {
1559 length2=swapFn(ds, buffer, length, buffer2, &errorCode);
1575 if(0!=uprv_memcmp(inHeader, buffer2, length)) {
1585 for(i=0; i<length && original[i]==buffer2[i]; ++i) {}
1588 for(j=i+1; j<length && original[j]!=buffer2[j]; ++j) {}
1612 diff[j-i]=buffer2[j];
1401 TestSwapCase(UDataMemory *pData, const char *name, UDataSwapFn *swapFn, uint8_t *buffer, uint8_t *buffer2) argument
/external/opencv/cvaux/src/
H A Dcveigenobjects.cpp240 uchar *buffer2; local
249 buffer2 = (uchar *)cvAlloc( sizeof( uchar ) * n );
250 if( buffer2 == NULL )
300 bu2 = buffer2;
347 cvFree( &buffer2 );
/external/opencv/otherlibs/highgui/
H A Dgrfmt_jpeg.cpp976 int buffer2[1024]; local
1001 buffer, buffer2, max_bits, first_table_bits ),
/external/dbus/dbus/
H A Ddbus-sysdeps-unix.c414 const DBusString *buffer2,
429 buffer2, start2, len2);
445 if (buffer2)
447 iov[1].iov_base = (char*) _dbus_string_get_const_data_len (buffer2, start2, len2);
453 m.msg_iovlen = buffer2 ? 2 : 1;
496 * @param buffer2 second buffer, or #NULL
506 const DBusString *buffer2,
525 if (buffer2 != NULL)
526 data2 = _dbus_string_get_const_data_len (buffer2, start2, len2);
554 buffer2, start
410 _dbus_write_socket_with_unix_fds_two(int fd, const DBusString *buffer1, int start1, int len1, const DBusString *buffer2, int start2, int len2, const int *fds, int n_fds) argument
502 _dbus_write_socket_two(int fd, const DBusString *buffer1, int start1, int len1, const DBusString *buffer2, int start2, int len2) argument
687 _dbus_write_two(int fd, const DBusString *buffer1, int start1, int len1, const DBusString *buffer2, int start2, int len2) argument
[all...]
H A Ddbus-sysdeps-win.c383 * @param buffer2 second buffer, or #NULL
393 const DBusString *buffer2,
412 if (buffer2 != NULL)
413 data2 = _dbus_string_get_const_data_len (buffer2, start2, len2);
389 _dbus_write_socket_two(int fd, const DBusString *buffer1, int start1, int len1, const DBusString *buffer2, int start2, int len2) argument

Completed in 195 milliseconds

12