Home
last modified time | relevance | path

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

123

/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/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/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/OpenCL-CTS/test_conformance/buffers/
Dtest_sub_buffers.cpp51 …_context context, cl_command_queue queue, cl_char tag, SubBufferWrapper &buffer1, SubBufferWrapper…
77 …_context context, cl_command_queue queue, cl_char tag, SubBufferWrapper &buffer1, SubBufferWrapper… in Execute() argument
79 cl_char *tempBuffer = (cl_char*)malloc(buffer1.mSize); in Execute()
84 …cl_int error = clEnqueueReadBuffer( queue, buffer1, CL_TRUE, 0, buffer1.mSize, tempBuffer, 0, NULL… in Execute()
87 size_t start = get_random_size_t( 0, buffer1.mSize / 2, GetRandSeed() ); in Execute()
88 size_t end = get_random_size_t( start, buffer1.mSize, GetRandSeed() ); in Execute()
93 parentBufferState[ i + buffer1.mOrigin ] |= tag; in Execute()
96 …error = clEnqueueWriteBuffer( queue, buffer1, CL_TRUE, 0, buffer1.mSize, tempBuffer, 0, NULL, NULL… in Execute()
116 …_context context, cl_command_queue queue, cl_char tag, SubBufferWrapper &buffer1, SubBufferWrapper… in Execute() argument
119 size_t size = get_random_size_t( 0, MIN( buffer1.mSize, buffer2.mSize ), GetRandSeed() ); in Execute()
[all …]
/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/angle/third_party/glslang/src/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/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-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/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/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/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/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/libxaac/decoder/
Dixheaacd_block.c1244 WORD32 buffer1; in ixheaacd_process_single_scf() local
1268 buffer1 = ixheaacd_mult32x16in32_shl_sat(temp1, scale_short); in ixheaacd_process_single_scf()
1269 buffer1 = ixheaacd_shr32(buffer1, shift); in ixheaacd_process_single_scf()
1270 *x_invquant++ = buffer1; in ixheaacd_process_single_scf()
1275 buffer1 = ixheaacd_mult32x16in32_shl(temp1, scale_short); in ixheaacd_process_single_scf()
1276 buffer1 = ixheaacd_shr32(buffer1, shift); in ixheaacd_process_single_scf()
1277 *x_invquant++ = buffer1; in ixheaacd_process_single_scf()
1287 buffer1 = ixheaacd_mult32x16in32_shl_sat(temp1, scale_short); in ixheaacd_process_single_scf()
1288 buffer1 = ixheaacd_shl32(buffer1, 1); in ixheaacd_process_single_scf()
1289 *x_invquant++ = buffer1; in ixheaacd_process_single_scf()
[all …]
/external/OpenCSD/decoder/tests/snapshots/stm_only/
Dtrace.ini2 buffers=buffer1
4 [buffer1] section
/external/OpenCSD/decoder/tests/snapshots/stm_only-juno/
Dtrace.ini2 buffers=buffer1
4 [buffer1] section
/external/OpenCSD/decoder/tests/snapshots/stm_only-2/
Dtrace.ini2 buffers=buffer1
4 [buffer1] section
/external/skia/tests/
DGrQuadBufferTest.cpp145 GrQuadBuffer<TestData> buffer1; in TEST() local
148 buffer1.append(quadsA[i], {i, 2.f * i}, i % 2 == 0 ? &quadsB[i] : nullptr); in TEST()
153 ASSERT(kQuadCount == buffer1.count()); in TEST()
157 buffer1.concat(buffer2); in TEST()
159 ASSERT(2 * kQuadCount == buffer1.count()); in TEST()
161 auto iter = buffer1.iterator(); in TEST()
/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/deqp-deps/amber/src/
Dscript_test.cc228 auto buffer1 = MakeUnique<Buffer>(BufferType::kStorage); in TEST_F() local
229 buffer1->SetName("my_buffer"); in TEST_F()
232 Result r = s.AddBuffer(std::move(buffer1)); in TEST_F()
268 auto buffer1 = MakeUnique<Buffer>(BufferType::kStorage); in TEST_F() local
269 buffer1->SetName("my_buffer1"); in TEST_F()
271 const auto* ptr1 = buffer1.get(); in TEST_F()
274 Result r = s.AddBuffer(std::move(buffer1)); in TEST_F()

123