Home
last modified time | relevance | path

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

12

/external/libbrillo/brillo/
Dany_internal_impl_unittest.cc95 Buffer buffer1; in TEST() local
98 buffer1.Assign(30); in TEST()
99 buffer1.CopyTo(&buffer2); in TEST()
100 EXPECT_FALSE(buffer1.IsEmpty()); in TEST()
102 EXPECT_STREQ(GetTypeTag<int>(), buffer1.GetDataPtr()->GetTypeTag()); in TEST()
104 EXPECT_EQ(30, buffer1.GetData<int>()); in TEST()
107 buffer1.Assign(std::string("abc")); in TEST()
108 buffer1.CopyTo(&buffer2); in TEST()
109 EXPECT_FALSE(buffer1.IsEmpty()); in TEST()
111 EXPECT_STREQ(GetTypeTag<std::string>(), buffer1.GetDataPtr()->GetTypeTag()); in TEST()
[all …]
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/utils/
DArchiveUtils.java74 byte[] buffer1; in matchAsciiBuffer()
76 buffer1 = expected.getBytes(CharsetNames.US_ASCII); in matchAsciiBuffer()
81 return isEqual(buffer1, 0, buffer1.length, buffer, offset, length, false); in matchAsciiBuffer()
156 final byte[] buffer1, final int offset1, final int length1, in isEqual() argument
161 if (buffer1[offset1+i] != buffer2[offset2+i]){ in isEqual()
171 if (buffer1[offset1+i] != 0){ in isEqual()
199 final byte[] buffer1, final int offset1, final int length1,
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);
[all …]
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/
DArchiveUtilsTest.java41 final byte[] buffer1 = {1,2,3}; 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()
50 assertTrue(ArchiveUtils.isEqual(buffer1, buffer3)); in testCompareBA()
51 assertTrue(ArchiveUtils.isEqual(buffer3, buffer1)); in testCompareBA()
56 final byte[] buffer1 = {'a','b','c'}; in testCompareAscii()
[all …]
/external/google-breakpad/src/common/dwarf/
Dbytereader-inl.h46 const uint16 buffer1 = buffer[1]; in ReadTwoBytes() local
48 return buffer0 | buffer1 << 8; in ReadTwoBytes()
50 return buffer1 | buffer0 << 8; in ReadTwoBytes()
58 const uint32 buffer1 = buffer[1]; 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()
72 const uint64 buffer1 = buffer[1]; 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/grpc-grpc/third_party/nanopb/tests/encode_unittests/
Dencode_unittests.c54 uint8_t buffer1[] = "foobartest1234"; in main() local
55 uint8_t buffer2[sizeof(buffer1)]; in main()
56 pb_ostream_t stream = pb_ostream_from_buffer(buffer2, sizeof(buffer1)); in main()
59 TEST(pb_write(&stream, buffer1, sizeof(buffer1))); in main()
60 TEST(memcmp(buffer1, buffer2, sizeof(buffer1)) == 0); in main()
61 TEST(!pb_write(&stream, buffer1, 1)); in main()
62 TEST(stream.bytes_written == sizeof(buffer1)); in main()
66 uint8_t buffer1[] = "xxxxxxx"; in main() local
70 TEST(pb_write(&stream, buffer1, 5)); in main()
71 buffer1[0] = 'a'; in main()
[all …]
/external/nanopb-c/tests/encode_unittests/
Dencode_unittests.c54 uint8_t buffer1[] = "foobartest1234"; in main() local
55 uint8_t buffer2[sizeof(buffer1)]; in main()
56 pb_ostream_t stream = pb_ostream_from_buffer(buffer2, sizeof(buffer1)); in main()
59 TEST(pb_write(&stream, buffer1, sizeof(buffer1))); in main()
60 TEST(memcmp(buffer1, buffer2, sizeof(buffer1)) == 0); in main()
61 TEST(!pb_write(&stream, buffer1, 1)); in main()
62 TEST(stream.bytes_written == sizeof(buffer1)); in main()
66 uint8_t buffer1[] = "xxxxxxx"; in main() local
70 TEST(pb_write(&stream, buffer1, 5)); in main()
71 buffer1[0] = 'a'; in main()
[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) {
18 %t0 = bitcast i32* %buffer1 to i8*
24 define signext i32 @memcmp4(i32* nocapture readonly %buffer1, i32* nocapture readonly %buffer2) {
36 %t0 = bitcast i32* %buffer1 to i8*
42 define signext i32 @memcmp2(i32* nocapture readonly %buffer1, i32* nocapture readonly %buffer2) {
50 %t0 = bitcast i32* %buffer1 to i8*
56 define signext i32 @memcmp1(i32* nocapture readonly %buffer1, i32* nocapture readonly %buffer2) {
64 %t0 = bitcast i32* %buffer1 to i8*
DmemCmpUsedInZeroEqualityComparison.ll6 @zeroEqualityTest01.buffer1 = private unnamed_addr constant [3 x i32] [i32 1, i32 2, i32 4], align 4
8 @zeroEqualityTest02.buffer1 = private unnamed_addr constant [4 x i32] [i32 4, i32 0, i32 0, i32 0],…
10 @zeroEqualityTest03.buffer1 = private unnamed_addr constant [4 x i32] [i32 0, i32 0, i32 0, i32 3],…
12 @zeroEqualityTest04.buffer1 = private unnamed_addr constant [15 x i32] [i32 0, i32 1, i32 2, i32 3,…
93 ; CHECK-NEXT: addis 3, 2, .LzeroEqualityTest02.buffer1@toc@ha
95 ; CHECK-NEXT: addi 6, 3, .LzeroEqualityTest02.buffer1@toc@l
119 …%call = tail call signext i32 @memcmp(i8* bitcast ([4 x i32]* @zeroEqualityTest02.buffer1 to i8*),…
129 ; CHECK-NEXT: addis 3, 2, .LzeroEqualityTest03.buffer1@toc@ha
131 ; CHECK-NEXT: addi 6, 3, .LzeroEqualityTest03.buffer1@toc@l
154 …%call = tail call signext i32 @memcmp(i8* bitcast ([4 x i32]* @zeroEqualityTest03.buffer1 to i8*),…
[all …]
DmemcmpIR.ll4 define signext i32 @test1(i32* nocapture readonly %buffer1, i32* nocapture readonly %buffer2) {
48 %0 = bitcast i32* %buffer1 to i8*
56 define signext i32 @test2(i32* nocapture readonly %buffer1, i32* nocapture readonly %buffer2) {
80 %0 = bitcast i32* %buffer1 to i8*
86 define signext i32 @test3(i32* nocapture readonly %buffer1, i32* nocapture readonly %buffer2) {
159 %0 = bitcast i32* %buffer1 to i8*
166 define signext i32 @test4(i32* nocapture readonly %buffer1, i32* nocapture readonly %buffer2) {
169 %0 = bitcast i32* %buffer1 to i8*
175 define signext i32 @test5(i32* nocapture readonly %buffer1, i32* nocapture readonly %buffer2, i32 s…
179 %0 = bitcast i32* %buffer1 to i8*
/external/archive-patcher/applier/src/main/java/com/google/archivepatcher/applier/bsdiff/
DBsPatch.java136 final byte[] buffer1 = new byte[PATCH_BUFFER_SIZE]; in applyPatchInternal()
208 transformBytes((int) diffSegmentLength, patchData, oldData, newData, buffer1, buffer2); in applyPatchInternal() local
211 pipe(patchData, newData, buffer1, (int) copySegmentLength); in applyPatchInternal()
245 final byte[] buffer1, in transformBytes() argument
250 final int numBytesThisRound = Math.min(numBytesLeft, buffer1.length); in transformBytes()
251 oldData.readFully(buffer1, 0, numBytesThisRound); in transformBytes()
254 buffer1[i] += buffer2[i]; in transformBytes()
256 newData.write(buffer1, 0, numBytesThisRound); in transformBytes()
/external/deqp-deps/glslang/Test/baseResults/
Dhlsl.attributeC11.frag.out38 0:? 'buffer1' (layout( set=0 binding=1 row_major std430) readonly buffer block{layout( row_majo…
87 0:? 'buffer1' (layout( set=0 binding=1 row_major std430) readonly buffer block{layout( row_majo…
117 Name 43 "buffer1"
118 MemberName 43(buffer1) 0 "@data"
119 Name 45 "buffer1"
132 MemberDecorate 43(buffer1) 0 NonWritable
133 MemberDecorate 43(buffer1) 0 Offset 0
134 Decorate 43(buffer1) BufferBlock
135 Decorate 45(buffer1) DescriptorSet 0
136 Decorate 45(buffer1) Binding 1
[all …]
/external/grpc-grpc/third_party/nanopb/tests/intsizes/
Dintsizes_unittests.c17 uint8_t buffer1[128], buffer2[128]; \
36 pb_ostream_t s = pb_ostream_from_buffer(buffer1, sizeof(buffer1)); \
42 pb_istream_t s = pb_istream_from_buffer(buffer1, msgsize); \
66 TEST(memcmp(buffer1, buffer2, msgsize) == 0); \
/external/nanopb-c/tests/intsizes/
Dintsizes_unittests.c17 uint8_t buffer1[128], buffer2[128]; \
36 pb_ostream_t s = pb_ostream_from_buffer(buffer1, sizeof(buffer1)); \
42 pb_istream_t s = pb_istream_from_buffer(buffer1, msgsize); \
66 TEST(memcmp(buffer1, buffer2, msgsize) == 0); \
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DWritableBufferAllocatorTestBase.java35 WritableBuffer buffer1 = allocator().allocate(100); in testBuffersAreDifferent() local
38 assertNotSame(buffer1, buffer2); in testBuffersAreDifferent()
40 buffer1.release(); in testBuffersAreDifferent()
/external/compiler-rt/test/asan/TestCases/Posix/
Dglobal-registration.c23 extern char buffer1[1];
25 char buffer1[1] = { 0 }; variable
30 buffer1[argc] = 0; in main()
/external/clang/test/CodeGenCXX/
Dvla-lambda-capturing.cpp60 ArrTy buffer1[n + arg]; in b() local
63 n = sizeof(buffer1[n]); in b()
66 n = sizeof(buffer1); in b()
/external/libxaac/decoder/
Dixheaacd_block.c1242 WORD32 buffer1; in ixheaacd_process_single_scf() local
1266 buffer1 = ixheaacd_mult32x16in32_shl_sat(temp1, scale_short); in ixheaacd_process_single_scf()
1267 buffer1 = ixheaacd_shr32(buffer1, shift); in ixheaacd_process_single_scf()
1268 *x_invquant++ = buffer1; in ixheaacd_process_single_scf()
1273 buffer1 = ixheaacd_mult32x16in32_shl(temp1, scale_short); in ixheaacd_process_single_scf()
1274 buffer1 = ixheaacd_shr32(buffer1, shift); in ixheaacd_process_single_scf()
1275 *x_invquant++ = buffer1; in ixheaacd_process_single_scf()
1285 buffer1 = ixheaacd_mult32x16in32_shl_sat(temp1, scale_short); in ixheaacd_process_single_scf()
1286 buffer1 = ixheaacd_shl32(buffer1, 1); in ixheaacd_process_single_scf()
1287 *x_invquant++ = buffer1; in ixheaacd_process_single_scf()
[all …]
/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/mdnsresponder/mDNSPosix/
DProxyResponder.c121 char buffer1[MAX_ESCAPED_DOMAIN_NAME], buffer2[MAX_ESCAPED_DOMAIN_NAME]; in ServiceCallback() local
122 ConvertDomainNameToCString(sr->RR_SRV.resrec.name, buffer1); 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
198 ConvertDomainNameToCString(rr->resrec.name, buffer1); in NoSuchServiceCallback()
203 printf("Name Conflict! %s renamed as %s\n", buffer1, buffer2); in NoSuchServiceCallback()
/external/grpc-grpc/test/cpp/util/
Dbyte_buffer_test.cc42 ByteBuffer buffer1; in TEST_F() local
43 EXPECT_FALSE(buffer1.Valid()); in TEST_F()
44 const ByteBuffer& buffer2 = buffer1; in TEST_F()
/external/grpc-grpc/third_party/nanopb/tests/decode_unittests/
Ddecode_unittests.c47 uint8_t buffer1[] = "foobartest1234"; in main() local
48 uint8_t buffer2[sizeof(buffer1)]; in main()
49 pb_istream_t stream = pb_istream_from_buffer(buffer1, sizeof(buffer1)); in main()
54 TEST(stream.bytes_left == sizeof(buffer1) - 6) in main()
56 TEST(memcmp(buffer1, buffer2, sizeof(buffer1)) == 0) in main()
/external/archive-patcher/applier/src/test/java/com/google/archivepatcher/applier/bsdiff/
DBsPatchTest.java40 private byte[] buffer1; field in BsPatchTest
54 buffer1 = 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()
127 final byte[] buffer1 = new byte[6]; in testTransformBytes_Error_JunkPatch_Underflow()
133 patchInput.length + 1, patchInputStream, oldData, newData, buffer1, buffer2); in testTransformBytes_Error_JunkPatch_Underflow()
/external/nanopb-c/tests/decode_unittests/
Ddecode_unittests.c47 uint8_t buffer1[] = "foobartest1234"; in main() local
48 uint8_t buffer2[sizeof(buffer1)]; in main()
49 pb_istream_t stream = pb_istream_from_buffer(buffer1, sizeof(buffer1)); in main()
54 TEST(stream.bytes_left == sizeof(buffer1) - 6) in main()
56 TEST(memcmp(buffer1, buffer2, sizeof(buffer1)) == 0) in main()
/external/libchrome/base/files/
Dfile_util.cc67 char buffer1[BUFFER_SIZE], buffer2[BUFFER_SIZE]; in ContentsEqual() local
69 file1.read(buffer1, BUFFER_SIZE); in ContentsEqual()
74 (memcmp(buffer1, buffer2, static_cast<size_t>(file1.gcount())))) { in ContentsEqual()
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/X86/
Dpr34088.ll36 %buffer1 = getelementptr inbounds %struct.Foo, %struct.Foo* %foo, i32 0, i32 1, i32 1
37 %1 = bitcast %struct.Buffer* %buffer1 to i64*

12