Home
last modified time | relevance | path

Searched refs:buffer2 (Results 1 – 25 of 54) sorted by relevance

123

/external/libbrillo/brillo/
Dany_internal_impl_unittest.cc96 Buffer buffer2; in TEST() local
99 buffer1.CopyTo(&buffer2); in TEST()
101 EXPECT_FALSE(buffer2.IsEmpty()); in TEST()
103 EXPECT_STREQ(GetTypeTag<int>(), buffer2.GetDataPtr()->GetTypeTag()); in TEST()
105 EXPECT_EQ(30, buffer2.GetData<int>()); in TEST()
108 buffer1.CopyTo(&buffer2); in TEST()
110 EXPECT_FALSE(buffer2.IsEmpty()); in TEST()
112 EXPECT_STREQ(GetTypeTag<std::string>(), buffer2.GetDataPtr()->GetTypeTag()); in TEST()
114 EXPECT_EQ("abc", buffer2.GetData<std::string>()); in TEST()
123 Buffer buffer2; in TEST() local
[all …]
/external/google-breakpad/src/common/linux/
Dsafe_readlink_unittest.cc55 char buffer2[PATH_MAX]; in TEST() local
56 EXPECT_TRUE(SafeReadLink("/proc/self/exe", buffer2, path_length + 1)); in TEST()
57 EXPECT_EQ(path_length, strlen(buffer2)); in TEST()
58 EXPECT_EQ(0, strncmp(buffer, buffer2, PATH_MAX)); in TEST()
85 char buffer2[PATH_MAX]; in TEST() local
86 EXPECT_TRUE(SafeReadLink("/proc/self/exe", buffer2)); in TEST()
87 EXPECT_EQ(path_length, strlen(buffer2)); in TEST()
88 EXPECT_EQ(0, strncmp(buffer, buffer2, PATH_MAX)); in TEST()
/external/valgrind/exp-bbv/tests/x86/
Drep_prefix.S96 mov $buffer2, %edi
102 mov $buffer2, %esi
110 mov $buffer2, %edi
125 mov $buffer2, %edi
132 mov $buffer2,%edi
140 mov $buffer2,%edi
148 mov $buffer2,%edi
160 mov $buffer2, %edi
167 mov $buffer2,%edi
175 mov $buffer2,%edi
[all …]
/external/icu/icu4c/source/test/intltest/
Duts46test.cpp601 char buffer[400], buffer2[400]; in TestSomeCases() local
698 prettify(uNaN).extract(0, 0x7fffffff, buffer2, UPRV_LENGTHOF(buffer2)); in TestSomeCases()
701 (int)i, testCase.s, aNInfo.getErrors(), buffer, buffer2); in TestSomeCases()
706 prettify(uTaN).extract(0, 0x7fffffff, buffer2, UPRV_LENGTHOF(buffer2)); in TestSomeCases()
709 (int)i, testCase.s, aNInfo.getErrors(), buffer, buffer2); in TestSomeCases()
714 prettify(aNuN).extract(0, 0x7fffffff, buffer2, UPRV_LENGTHOF(buffer2)); in TestSomeCases()
717 (int)i, testCase.s, uNInfo.getErrors(), buffer, buffer2); in TestSomeCases()
722 prettify(aTuN).extract(0, 0x7fffffff, buffer2, UPRV_LENGTHOF(buffer2)); in TestSomeCases()
725 (int)i, testCase.s, uNInfo.getErrors(), buffer, buffer2); in TestSomeCases()
743 prettify(aNL).extract(0, 0x7fffffff, buffer2, UPRV_LENGTHOF(buffer2)); in TestSomeCases()
[all …]
/external/google-breakpad/src/common/dwarf/
Dbytereader-inl.h59 const uint32 buffer2 = buffer[2]; in ReadFourBytes() local
62 return buffer0 | buffer1 << 8 | buffer2 << 16 | buffer3 << 24; in ReadFourBytes()
64 return buffer3 | buffer2 << 8 | buffer1 << 16 | buffer0 << 24; in ReadFourBytes()
73 const uint64 buffer2 = buffer[2]; in ReadEightBytes() local
80 return buffer0 | buffer1 << 8 | buffer2 << 16 | buffer3 << 24 | in ReadEightBytes()
84 buffer3 << 32 | buffer2 << 40 | buffer1 << 48 | buffer0 << 56; in ReadEightBytes()
/external/compiler-rt/test/asan/TestCases/Posix/
Dglobal-registration.c24 extern char buffer2[1];
33 buffer2[argc] = 0; in main()
61 extern char buffer2[1];
62 char buffer2[1] = { 0 }; variable
/external/archive-patcher/applier/src/main/java/com/google/archivepatcher/applier/bsdiff/
DBsPatch.java112 final byte[] buffer2 = new byte[PATCH_BUFFER_SIZE]; in applyPatchInternal()
164 transformBytes((int) diffSegmentLength, patchData, oldData, newData, buffer1, buffer2); in applyPatchInternal() local
202 final byte[] buffer2) in transformBytes() argument
208 readFully(patchData, buffer2, 0, numBytesThisRound); in transformBytes()
210 buffer1[i] += buffer2[i]; in transformBytes()
/external/libevent/
Devbuffer-internal.h293 #define EVBUFFER_LOCK2(buffer1, buffer2) \ argument
295 EVLOCK_LOCK2((buffer1)->lock, (buffer2)->lock, 0, 0); \
297 #define EVBUFFER_UNLOCK2(buffer1, buffer2) \ argument
299 EVLOCK_UNLOCK2((buffer1)->lock, (buffer2)->lock, 0, 0); \
/external/skqp/tests/
DPDFGlyphsToUnicodeTest.cpp166 SkDynamicMemoryWStream buffer2; in DEF_TEST() local
168 SkPDFAppendCmapSections(glyphToUnicode, &subset2, &buffer2, true, 0, 0xffff); in DEF_TEST()
181 REPORTER_ASSERT(reporter, stream_equals(buffer2, 0, expectedResult2, in DEF_TEST()
182 buffer2.bytesWritten())); in DEF_TEST()
DSerializationTest.cpp176 SkReadBuffer buffer2(dataWritten, bytesWritten); in TestObjectSerializationNoAlign() local
177 size_t offsetBefore = buffer2.offset(); in TestObjectSerializationNoAlign()
179 SerializationUtils<T>::Read(buffer2, &obj2); in TestObjectSerializationNoAlign()
180 size_t offsetAfter = buffer2.offset(); in TestObjectSerializationNoAlign()
182 REPORTER_ASSERT(reporter, buffer2.isValid() == !testInvalid); in TestObjectSerializationNoAlign()
214 SkReadBuffer buffer2(dataWritten, bytesWritten); in TestFlattenableSerialization() local
215 const unsigned char* peekBefore = static_cast<const unsigned char*>(buffer2.skip(0)); in TestFlattenableSerialization()
217 SerializationUtils<T>::Read(buffer2, &obj2); in TestFlattenableSerialization()
218 const unsigned char* peekAfter = static_cast<const unsigned char*>(buffer2.skip(0)); in TestFlattenableSerialization()
221 REPORTER_ASSERT(reporter, buffer2.isValid()); in TestFlattenableSerialization()
[all …]
/external/skia/tests/
DPDFGlyphsToUnicodeTest.cpp166 SkDynamicMemoryWStream buffer2; in DEF_TEST() local
168 SkPDFAppendCmapSections(glyphToUnicode, &subset2, &buffer2, true, 0, 0xffff); in DEF_TEST()
181 REPORTER_ASSERT(reporter, stream_equals(buffer2, 0, expectedResult2, in DEF_TEST()
182 buffer2.bytesWritten())); in DEF_TEST()
DSerializationTest.cpp176 SkReadBuffer buffer2(dataWritten, bytesWritten); in TestObjectSerializationNoAlign() local
177 size_t offsetBefore = buffer2.offset(); in TestObjectSerializationNoAlign()
179 SerializationUtils<T>::Read(buffer2, &obj2); in TestObjectSerializationNoAlign()
180 size_t offsetAfter = buffer2.offset(); in TestObjectSerializationNoAlign()
182 REPORTER_ASSERT(reporter, buffer2.isValid() == !testInvalid); in TestObjectSerializationNoAlign()
214 SkReadBuffer buffer2(dataWritten, bytesWritten); in TestFlattenableSerialization() local
215 const unsigned char* peekBefore = static_cast<const unsigned char*>(buffer2.skip(0)); in TestFlattenableSerialization()
217 SerializationUtils<T>::Read(buffer2, &obj2); in TestFlattenableSerialization()
218 const unsigned char* peekAfter = static_cast<const unsigned char*>(buffer2.skip(0)); in TestFlattenableSerialization()
221 REPORTER_ASSERT(reporter, buffer2.isValid()); in TestFlattenableSerialization()
[all …]
/external/mdnsresponder/mDNSPosix/
DProxyResponder.c121 char buffer1[MAX_ESCAPED_DOMAIN_NAME], buffer2[MAX_ESCAPED_DOMAIN_NAME]; in ServiceCallback() local
124 ConvertDomainNameToCString(sr->RR_SRV.resrec.name, buffer2); in ServiceCallback()
125 printf("Name Conflict! %s renamed as %s\n", buffer1, buffer2); in ServiceCallback()
197 char buffer1[MAX_ESCAPED_DOMAIN_NAME], buffer2[MAX_ESCAPED_DOMAIN_NAME]; in NoSuchServiceCallback() local
202 ConvertDomainNameToCString(rr->resrec.name, buffer2); in NoSuchServiceCallback()
203 printf("Name Conflict! %s renamed as %s\n", buffer1, buffer2); in NoSuchServiceCallback()
/external/dng_sdk/source/
Ddng_image.cpp463 dng_pixel_buffer buffer2 (buffer); in GetEdge() local
465 buffer2.fPlane = buffer.fPlanes - 1; in GetEdge()
466 buffer2.fPlanes = 1; in GetEdge()
468 buffer2.fData = buffer.DirtyPixel (buffer2.fArea.t, in GetEdge()
469 buffer2.fArea.l, in GetEdge()
470 buffer2.fPlane); in GetEdge()
472 GetEdge (buffer2, in GetEdge()
/external/libchrome/base/
Dos_compat_android_unittest.cc37 char* buffer2 = const_cast<char*>(sub_dir2_string.c_str()); in TEST_F() local
38 EXPECT_TRUE(mkdtemp(buffer2) != NULL); in TEST_F()
/external/clang/test/CodeGenCXX/
Dvla-lambda-capturing.cpp59 ArrTy buffer2; in b() local
65 n = sizeof(buffer2); in b()
/external/nanopb-c/tests/decode_unittests/
Ddecode_unittests.c46 uint8_t buffer2[sizeof(buffer1)]; in main() local
50 TEST(pb_read(&stream, buffer2, 6)) in main()
51 TEST(memcmp(buffer2, "foobar", 6) == 0) in main()
53 TEST(pb_read(&stream, buffer2 + 6, stream.bytes_left)) in main()
54 TEST(memcmp(buffer1, buffer2, sizeof(buffer1)) == 0) in main()
56 TEST(!pb_read(&stream, buffer2, 1)) in main()
/external/archive-patcher/applier/src/test/java/com/google/archivepatcher/applier/bsdiff/
DBsPatchTest.java43 private byte[] buffer2; field in BsPatchTest
57 buffer2 = new byte[6]; in setUp()
87 BsPatch.transformBytes(patchInput.length, patchInputStream, oldData, newData, buffer1, buffer2); in testTransformBytes()
100 BsPatch.transformBytes(2, patchIn, oldData, new ByteArrayOutputStream(), buffer1, buffer2); in testTransformBytes_Error_NotEnoughBytes()
116 patchInput.length, patchInputStream, oldData, newData, buffer1, buffer2); in testTransformBytes_Error_JunkPatch()
130 final byte[] buffer2 = new byte[6]; in testTransformBytes_Error_JunkPatch_Underflow()
135 patchInput.length + 1, patchInputStream, oldData, newData, buffer1, buffer2); in testTransformBytes_Error_JunkPatch_Underflow()
/external/libchrome/base/files/
Dfile_util.cc67 char buffer1[BUFFER_SIZE], buffer2[BUFFER_SIZE]; in ContentsEqual() local
70 file2.read(buffer2, BUFFER_SIZE); in ContentsEqual()
74 (memcmp(buffer1, buffer2, static_cast<size_t>(file1.gcount())))) { in ContentsEqual()
/external/libvncserver/libvncclient/
Dtight.c99 char *buffer2; in HandleTightBPP() local
198 buffer2 = &client->buffer[TIGHT_MIN_TO_COMPRESS * 4]; in HandleTightBPP()
199 filterFn(client, rh, (CARDBPP *)buffer2); in HandleTightBPP()
201 CopyRectangle(client, (uint8_t *)buffer2, rx, ry, rw, rh); in HandleTightBPP()
232 buffer2 = &client->buffer[bufferSize]; in HandleTightBPP()
274 filterFn(client, numRows, (CARDBPP *)buffer2); in HandleTightBPP()
280 CopyRectangle(client, (uint8_t *)buffer2, rx, ry+rowsProcessed, rw, numRows); in HandleTightBPP()
/external/tpm2/
DMemoryLib.c74 const void *buffer2, // IN: compare buffer2 in MemoryEqual() argument
81 b2 = (BYTE *)buffer2; in MemoryEqual()
/external/libvpx/libvpx/vpx_dsp/
Davg.c73 int16_t buffer2[64]; in vpx_hadamard_8x8_c() local
84 hadamard_col8(tmp_buf, 8, buffer2 + 8 * idx); // tmp_buf: 12 bit in vpx_hadamard_8x8_c()
91 for (idx = 0; idx < 64; ++idx) coeff[idx] = (tran_low_t)buffer2[idx]; in vpx_hadamard_8x8_c()
/external/tensorflow/tensorflow/core/kernels/
Ddeep_conv2d.cc843 T* buffer1, T* buffer2, T* packed_tile_buffer, in Conv2DState()
852 buffer2(buffer2), in Conv2DState()
863 T* buffer2; member
886 cs.tile_transform_matrix, cs.buffer1, cs.buffer2); in operator ()()
900 cs.buffer2 + i * tile_coord_stride, in operator ()()
914 cs.output_transform_matrix, cs.buffer1, cs.buffer2, in operator ()()
1083 T* buffer2 = buffer2_tensor.template flat<T>().data(); in operator ()() local
1106 output_transform_matrix, buffer1, buffer2, in operator ()()
/external/nanopb-c/tests/encode_unittests/
Dencode_unittests.c54 uint8_t buffer2[sizeof(buffer1)]; in main() local
55 pb_ostream_t stream = pb_ostream_from_buffer(buffer2, sizeof(buffer1)); in main()
59 TEST(memcmp(buffer1, buffer2, sizeof(buffer1)) == 0); in main()
/external/libmojo/mojo/public/cpp/system/tests/
Dcore_unittest.cc471 ScopedSharedBufferHandle buffer2 = SharedBufferHandle::Create(1024); in TEST() local
472 EXPECT_TRUE(buffer2.is_valid()); in TEST()
476 buffer1 = std::move(buffer2); in TEST()
479 EXPECT_FALSE(buffer2.is_valid()); in TEST()

123