Home
last modified time | relevance | path

Searched refs:buffer2 (Results 1 – 25 of 63) 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/apache-commons-compress/src/main/java/org/apache/commons/compress/utils/
DArchiveUtils.java157 final byte[] buffer2, final int offset2, final int length2, in isEqual() argument
161 if (buffer1[offset1+i] != buffer2[offset2+i]){ in isEqual()
177 if (buffer2[offset2+i] != 0){ in isEqual()
200 final byte[] buffer2, final int offset2, final int length2){
201 return isEqual(buffer1, offset1, length1, buffer2, offset2, length2, false);
211 public static boolean isEqual(final byte[] buffer1, final byte[] buffer2 ){
212 return isEqual(buffer1, 0, buffer1.length, buffer2, 0, buffer2.length, false);
223 …public static boolean isEqual(final byte[] buffer1, final byte[] buffer2, final boolean ignoreTrai…
224 return isEqual(buffer1, 0, buffer1.length, buffer2, 0, buffer2.length, ignoreTrailingNulls);
240 final byte[] buffer2, final int offset2, final int length2){
[all …]
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/
DArchiveUtilsTest.java42 final byte[] buffer2 = {1,2,3,0}; in testCompareBA()
44 assertTrue(ArchiveUtils.isEqual(buffer1, buffer2, true)); in testCompareBA()
45 assertFalse(ArchiveUtils.isEqual(buffer1, buffer2, false)); in testCompareBA()
46 assertFalse(ArchiveUtils.isEqual(buffer1, buffer2)); in testCompareBA()
47 assertTrue(ArchiveUtils.isEqual(buffer2, buffer1, true)); in testCompareBA()
48 assertFalse(ArchiveUtils.isEqual(buffer2, buffer1, false)); in testCompareBA()
49 assertFalse(ArchiveUtils.isEqual(buffer2, buffer1)); in testCompareBA()
57 final byte[] buffer2 = {'d','e','f',0}; in testCompareAscii()
60 assertTrue(ArchiveUtils.matchAsciiBuffer("def\0", buffer2)); in testCompareAscii()
61 assertFalse(ArchiveUtils.matchAsciiBuffer("def", buffer2)); in testCompareAscii()
/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/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/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/PowerPC/
Dmemcmp.ll4 define signext i32 @memcmp8(i32* nocapture readonly %buffer1, i32* nocapture readonly %buffer2) {
19 %t1 = bitcast i32* %buffer2 to i8*
24 define signext i32 @memcmp4(i32* nocapture readonly %buffer1, i32* nocapture readonly %buffer2) {
37 %t1 = bitcast i32* %buffer2 to i8*
42 define signext i32 @memcmp2(i32* nocapture readonly %buffer1, i32* nocapture readonly %buffer2) {
51 %t1 = bitcast i32* %buffer2 to i8*
56 define signext i32 @memcmp1(i32* nocapture readonly %buffer1, i32* nocapture readonly %buffer2) {
65 %t1 = bitcast i32* %buffer2 to i8*
DmemCmpUsedInZeroEqualityComparison.ll7 @zeroEqualityTest01.buffer2 = private unnamed_addr constant [3 x i32] [i32 1, i32 2, i32 3], align 4
9 @zeroEqualityTest02.buffer2 = private unnamed_addr constant [4 x i32] [i32 3, i32 0, i32 0, i32 0],…
11 @zeroEqualityTest03.buffer2 = private unnamed_addr constant [4 x i32] [i32 0, i32 0, i32 0, i32 4],…
13 @zeroEqualityTest04.buffer2 = private unnamed_addr constant [15 x i32] [i32 0, i32 1, i32 2, i32 3,…
94 ; CHECK-NEXT: addis 4, 2, .LzeroEqualityTest02.buffer2@toc@ha
96 ; CHECK-NEXT: addi 5, 4, .LzeroEqualityTest02.buffer2@toc@l
119 …qualityTest02.buffer1 to i8*), i8* bitcast ([4 x i32]* @zeroEqualityTest02.buffer2 to i8*), i64 16)
130 ; CHECK-NEXT: addis 4, 2, .LzeroEqualityTest03.buffer2@toc@ha
132 ; CHECK-NEXT: addi 5, 4, .LzeroEqualityTest03.buffer2@toc@l
154 …qualityTest03.buffer1 to i8*), i8* bitcast ([4 x i32]* @zeroEqualityTest03.buffer2 to i8*), i64 16)
[all …]
DmemcmpIR.ll4 define signext i32 @test1(i32* nocapture readonly %buffer1, i32* nocapture readonly %buffer2) {
49 %1 = bitcast i32* %buffer2 to i8*
56 define signext i32 @test2(i32* nocapture readonly %buffer1, i32* nocapture readonly %buffer2) {
81 %1 = bitcast i32* %buffer2 to i8*
86 define signext i32 @test3(i32* nocapture readonly %buffer1, i32* nocapture readonly %buffer2) {
160 %1 = bitcast i32* %buffer2 to i8*
166 define signext i32 @test4(i32* nocapture readonly %buffer1, i32* nocapture readonly %buffer2) {
170 %1 = bitcast i32* %buffer2 to i8*
175 define signext i32 @test5(i32* nocapture readonly %buffer1, i32* nocapture readonly %buffer2, i32 s…
180 %1 = bitcast i32* %buffer2 to i8*
/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/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DWritableBufferAllocatorTestBase.java36 WritableBuffer buffer2 = allocator().allocate(100); in testBuffersAreDifferent() local
38 assertNotSame(buffer1, buffer2); in testBuffersAreDifferent()
41 buffer2.release(); in testBuffersAreDifferent()
/external/archive-patcher/applier/src/main/java/com/google/archivepatcher/applier/bsdiff/
DBsPatch.java137 final byte[] buffer2 = new byte[PATCH_BUFFER_SIZE]; in applyPatchInternal()
208 transformBytes((int) diffSegmentLength, patchData, oldData, newData, buffer1, buffer2); in applyPatchInternal() local
246 final byte[] buffer2) in transformBytes() argument
252 readFully(patchData, buffer2, 0, numBytesThisRound); in transformBytes()
254 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.cpp176 SkDynamicMemoryWStream buffer2; in DEF_TEST() local
180 SkPDFAppendCmapSections(&glyphToUnicode[0], &subset2, &buffer2, true, 0, in DEF_TEST()
194 REPORTER_ASSERT(reporter, stream_equals(buffer2, 0, expectedResult2, in DEF_TEST()
195 buffer2.bytesWritten())); in DEF_TEST()
DSerializationTest.cpp190 SkReadBuffer buffer2(dataWritten, bytesWritten); in TestObjectSerializationNoAlign() local
191 size_t offsetBefore = buffer2.offset(); in TestObjectSerializationNoAlign()
193 SerializationUtils<T>::Read(buffer2, &obj2); in TestObjectSerializationNoAlign()
194 size_t offsetAfter = buffer2.offset(); in TestObjectSerializationNoAlign()
196 REPORTER_ASSERT(reporter, buffer2.isValid() == !testInvalid); in TestObjectSerializationNoAlign()
228 SkReadBuffer buffer2(dataWritten, bytesWritten); in TestFlattenableSerialization() local
229 const unsigned char* peekBefore = static_cast<const unsigned char*>(buffer2.skip(0)); in TestFlattenableSerialization()
231 SerializationUtils<T>::Read(buffer2, &obj2); in TestFlattenableSerialization()
232 const unsigned char* peekAfter = static_cast<const unsigned char*>(buffer2.skip(0)); in TestFlattenableSerialization()
235 REPORTER_ASSERT(reporter, buffer2.isValid()); in TestFlattenableSerialization()
[all …]
/external/skia/tests/
DPDFGlyphsToUnicodeTest.cpp176 SkDynamicMemoryWStream buffer2; in DEF_TEST() local
180 SkPDFAppendCmapSections(&glyphToUnicode[0], &subset2, &buffer2, true, 0, in DEF_TEST()
194 REPORTER_ASSERT(reporter, stream_equals(buffer2, 0, expectedResult2, in DEF_TEST()
195 buffer2.bytesWritten())); in DEF_TEST()
DSerializationTest.cpp190 SkReadBuffer buffer2(dataWritten, bytesWritten); in TestObjectSerializationNoAlign() local
191 size_t offsetBefore = buffer2.offset(); in TestObjectSerializationNoAlign()
193 SerializationUtils<T>::Read(buffer2, &obj2); in TestObjectSerializationNoAlign()
194 size_t offsetAfter = buffer2.offset(); in TestObjectSerializationNoAlign()
196 REPORTER_ASSERT(reporter, buffer2.isValid() == !testInvalid); in TestObjectSerializationNoAlign()
228 SkReadBuffer buffer2(dataWritten, bytesWritten); in TestFlattenableSerialization() local
229 const unsigned char* peekBefore = static_cast<const unsigned char*>(buffer2.skip(0)); in TestFlattenableSerialization()
231 SerializationUtils<T>::Read(buffer2, &obj2); in TestFlattenableSerialization()
232 const unsigned char* peekAfter = static_cast<const unsigned char*>(buffer2.skip(0)); in TestFlattenableSerialization()
235 REPORTER_ASSERT(reporter, buffer2.isValid()); in TestFlattenableSerialization()
[all …]
/external/grpc-grpc/third_party/nanopb/tests/intsizes/
Dintsizes_unittests.c17 uint8_t buffer1[128], buffer2[128]; \
63 pb_ostream_t s = pb_ostream_from_buffer(buffer2, sizeof(buffer2)); \
66 TEST(memcmp(buffer1, buffer2, msgsize) == 0); \
/external/nanopb-c/tests/intsizes/
Dintsizes_unittests.c17 uint8_t buffer1[128], buffer2[128]; \
63 pb_ostream_t s = pb_ostream_from_buffer(buffer2, sizeof(buffer2)); \
66 TEST(memcmp(buffer1, buffer2, msgsize) == 0); \
/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/nanopb-c/tests/mem_release/
Dmem_release.c91 uint8_t buffer2[256]; in test_TestMessage() local
92 pb_ostream_t ostream = pb_ostream_from_buffer(buffer2, sizeof(buffer2)); in test_TestMessage()
95 TEST(memcmp(buffer, buffer2, msgsize) == 0); in test_TestMessage()
/external/grpc-grpc/third_party/nanopb/tests/mem_release/
Dmem_release.c91 uint8_t buffer2[256]; in test_TestMessage() local
92 pb_ostream_t ostream = pb_ostream_from_buffer(buffer2, sizeof(buffer2)); in test_TestMessage()
95 TEST(memcmp(buffer, buffer2, msgsize) == 0); in test_TestMessage()
/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/clang/test/CodeGenCXX/
Dvla-lambda-capturing.cpp59 ArrTy buffer2; in b() local
65 n = sizeof(buffer2); in b()
/external/archive-patcher/applier/src/test/java/com/google/archivepatcher/applier/bsdiff/
DBsPatchTest.java41 private byte[] buffer2; field in BsPatchTest
55 buffer2 = new byte[6]; in setUp()
85 BsPatch.transformBytes(patchInput.length, patchInputStream, oldData, newData, buffer1, buffer2); in testTransformBytes()
98 BsPatch.transformBytes(2, patchIn, oldData, new ByteArrayOutputStream(), buffer1, buffer2); in testTransformBytes_Error_NotEnoughBytes()
114 patchInput.length, patchInputStream, oldData, newData, buffer1, buffer2); in testTransformBytes_Error_JunkPatch()
128 final byte[] buffer2 = new byte[6]; in testTransformBytes_Error_JunkPatch_Underflow()
133 patchInput.length + 1, patchInputStream, oldData, newData, buffer1, buffer2); in testTransformBytes_Error_JunkPatch_Underflow()

123