/third_party/protobuf/js/experimental/runtime/kernel/ |
D | typed_arrays_test.js | 10 const buffer1 = new ArrayBuffer(0); constant 12 expect(arrayBufferEqual(buffer1, buffer2)).toBe(true); 78 const buffer1 = new Uint8Array([0, 1, 2, 3]).buffer; 80 const array1 = new Uint8Array(buffer1, 1, 3); 102 const buffer1 = new ArrayBuffer(0); constant 103 const buffer2 = arrayBufferSlice(buffer1, 0); 104 expect(buffer2).not.toBe(buffer1); 105 expect(arrayBufferEqual(buffer1, buffer2)).toBe(true); 109 const buffer1 = new Uint8Array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]).buffer; 110 expect(buffer1.byteLength).toEqual(10); [all …]
|
D | typed_arrays.js | 13 function arrayBufferEqual(buffer1, buffer2) { argument 14 if (!buffer1 || !buffer2) { 18 const array1 = new Uint8Array(buffer1);
|
/third_party/gstreamer/gstreamer/tests/check/elements/ |
D | filesrc.c | 172 GstBuffer *buffer1, *buffer2; in GST_START_TEST() local 208 buffer1 = NULL; in GST_START_TEST() 209 ret = gst_pad_get_range (pad, 0, 100, &buffer1); in GST_START_TEST() 211 fail_unless (buffer1 != NULL); in GST_START_TEST() 212 fail_unless (gst_buffer_get_size (buffer1) == 100); in GST_START_TEST() 221 fail_unless (gst_buffer_map (buffer1, &info1, GST_MAP_READ)); in GST_START_TEST() 240 gst_buffer_unmap (buffer1, &info1); in GST_START_TEST() 241 gst_buffer_unref (buffer1); in GST_START_TEST() 245 buffer1 = NULL; in GST_START_TEST() 246 ret = gst_pad_get_range (pad, stop - 10, 10, &buffer1); in GST_START_TEST() [all …]
|
D | queue.c | 234 GstBuffer *buffer1; in GST_START_TEST() local 262 buffer1 = gst_buffer_new_and_alloc (4); in GST_START_TEST() 264 gst_pad_push (mysrcpad, buffer1); in GST_START_TEST() 309 fail_unless (buffer == buffer1); in GST_START_TEST() 330 GstBuffer *buffer1; in GST_START_TEST() local 357 buffer1 = gst_buffer_new_and_alloc (4); in GST_START_TEST() 359 gst_pad_push (mysrcpad, buffer1); in GST_START_TEST() 395 fail_unless (buffer == buffer1); in GST_START_TEST() 419 GstBuffer *buffer1; in GST_START_TEST() local 446 buffer1 = gst_buffer_new_and_alloc (4); in GST_START_TEST() [all …]
|
/third_party/mindspore/tests/ut/cpp/cxx_api/ |
D | types_test.cc | 179 Buffer buffer1(data.data(), data.size() * sizeof(uint32_t)); in TEST_F() local 180 Buffer buffer2 = buffer1; in TEST_F() 181 Buffer buffer3 = buffer1.Clone(); in TEST_F() 184 ASSERT_EQ(buffer1.DataSize(), buffer2.DataSize()); in TEST_F() 185 ASSERT_EQ(buffer1.DataSize(), buffer3.DataSize()); in TEST_F() 186 ASSERT_EQ(buffer1.Data(), buffer2.MutableData()); in TEST_F() 187 ASSERT_NE(buffer1.Data(), buffer3.Data()); in TEST_F() 192 Buffer buffer1(data.data(), data.size() * sizeof(uint32_t)); in TEST_F() local 195 ASSERT_EQ(buffer1.ResizeData(0), true); in TEST_F() 200 Buffer buffer1(data.data(), data.size() * sizeof(uint32_t)); in TEST_F() local [all …]
|
/third_party/boost/libs/compute/test/ |
D | test_buffer.cpp | 92 boost::compute::buffer buffer1(context, 16); in BOOST_AUTO_TEST_CASE() local 93 BOOST_CHECK(buffer1.get() != 0); in BOOST_AUTO_TEST_CASE() 94 BOOST_CHECK_EQUAL(buffer1.size(), size_t(16)); in BOOST_AUTO_TEST_CASE() 96 boost::compute::buffer buffer2(std::move(buffer1)); in BOOST_AUTO_TEST_CASE() 97 BOOST_CHECK(buffer1.get() == 0); in BOOST_AUTO_TEST_CASE() 105 boost::compute::buffer buffer1(context, 16); in BOOST_AUTO_TEST_CASE() local 106 boost::compute::buffer buffer2 = buffer1.clone(queue); in BOOST_AUTO_TEST_CASE() 107 BOOST_CHECK(buffer1.get() != buffer2.get()); in BOOST_AUTO_TEST_CASE() 108 BOOST_CHECK_EQUAL(buffer1.size(), buffer2.size()); in BOOST_AUTO_TEST_CASE() 109 BOOST_CHECK(buffer1.get_memory_flags() == buffer2.get_memory_flags()); in BOOST_AUTO_TEST_CASE()
|
/third_party/mbedtls/programs/test/ |
D | selftest.c | 83 void *buffer1 = mbedtls_calloc( 1, 1 ); in calloc_self_test() local 109 if( buffer1 == NULL || buffer2 == NULL ) in calloc_self_test() 115 else if( buffer1 == buffer2 ) in calloc_self_test() 127 old_buffer1 = (uintptr_t) buffer1; in calloc_self_test() 128 mbedtls_free( buffer1 ); in calloc_self_test() 129 buffer1 = mbedtls_calloc( 1, 1 ); in calloc_self_test() 130 if( buffer1 == NULL ) in calloc_self_test() 140 (uintptr_t) old_buffer1 == (uintptr_t) buffer1 ? in calloc_self_test() 148 mbedtls_free( buffer1 ); in calloc_self_test()
|
/third_party/glslang/Test/baseResults/ |
D | hlsl.attributeC11.frag.out | 38 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 …]
|
/third_party/protobuf/js/experimental/runtime/testing/ |
D | ensure_custom_equality_test.js | 14 const buffer1 = new ArrayBuffer(4); constant 16 const array = new Uint8Array(buffer1); 18 expect(buffer1).not.toEqual(buffer2);
|
/third_party/skia/tests/ |
D | GrQuadBufferTest.cpp | 145 GrQuadBuffer<TestData> buffer1; in TEST() local 148 buffer1.append(quadsA[i], {i, 2.f * i}, i % 2 == 0 ? &quadsB[i] : nullptr); in TEST() 152 ASSERT(kQuadCount == buffer1.count()); in TEST() 156 buffer1.concat(buffer2); in TEST() 158 ASSERT(2 * kQuadCount == buffer1.count()); in TEST() 160 auto iter = buffer1.iterator(); in TEST()
|
/third_party/flutter/skia/tests/ |
D | GrQuadBufferTest.cpp | 144 GrQuadBuffer<TestData> buffer1; in TEST() local 147 buffer1.append(quadsA[i], {i, 2.f * i}, i % 2 == 0 ? &quadsB[i] : nullptr); in TEST() 152 ASSERT(kQuadCount == buffer1.count()); in TEST() 156 buffer1.concat(buffer2); in TEST() 158 ASSERT(2 * kQuadCount == buffer1.count()); in TEST() 160 auto iter = buffer1.iterator(); in TEST()
|
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/src/main/cpp/audio/ |
D | FFMpegExtractor.cpp | 272 short *buffer1; in decode() local 274 (uint8_t **) &buffer1, in decode() 282 (uint8_t **) &buffer1, in decode() 288 memcpy(targetData + bytesWritten, buffer1, (size_t)bytesToWrite); in decode() 290 av_freep(&buffer1); in decode()
|
/third_party/gn/src/gn/ |
D | escape_unittest.cc | 94 StringOutputBuffer buffer1; in TEST() local 95 std::ostream out1(&buffer1); in TEST() 97 EXPECT_EQ("foo bar\\\\\\\\", buffer1.str()); in TEST()
|
/third_party/gstreamer/gstplugins_good/tests/check/elements/ |
D | rtpred.c | 720 GstBuffer * buffer1) in rtpredenc_cant_create_red_packet_base_test() argument 745 bufout = gst_harness_push_and_pull (h, buffer1); in rtpredenc_cant_create_red_packet_base_test() 761 GstBuffer *buffer0, *buffer1; in GST_START_TEST() local 776 buffer1 = in GST_START_TEST() 784 fail_unless (gst_rtp_buffer_map (buffer1, GST_MAP_WRITE, &rtp)); in GST_START_TEST() 788 rtpredenc_cant_create_red_packet_base_test (buffer0, buffer1); in GST_START_TEST() 798 GstBuffer *buffer0, *buffer1; in GST_START_TEST() local 815 buffer1 = in GST_START_TEST() 822 fail_unless (gst_rtp_buffer_map (buffer1, GST_MAP_WRITE, &rtp)); in GST_START_TEST() 826 rtpredenc_cant_create_red_packet_base_test (buffer0, buffer1); in GST_START_TEST() [all …]
|
/third_party/boost/libs/process/test/ |
D | bind_stdout_stderr.cpp | 106 boost::asio::streambuf buffer1; variable 107 boost::asio::async_read_until(p1, buffer1, '\n', 108 read_handler(buffer1));
|
/third_party/grpc/test/cpp/util/ |
D | byte_buffer_test.cc | 47 ByteBuffer buffer1; in TEST_F() local 48 EXPECT_FALSE(buffer1.Valid()); in TEST_F() 49 const ByteBuffer& buffer2 = buffer1; in TEST_F()
|
/third_party/protobuf/js/experimental/runtime/ |
D | bytestring_test.js | 126 const buffer1 = byteString.toArrayBuffer(); constant 129 expect(buffer1).toEqual(buffer2); 131 const array1 = new Uint8Array(buffer1); 134 expect(buffer1).not.toEqual(buffer2);
|
/third_party/skia/src/effects/imagefilters/ |
D | SkBlurImageFilter.cpp | 253 skvx::Vec<4, uint32_t>* buffer1 = buffer0 + passSize; in Make() local 254 skvx::Vec<4, uint32_t>* buffer2 = buffer1 + passSize; in Make() 309 return alloc->make<GaussPass>(buffer0, buffer1, buffer2, buffersEnd, border, divisor); in Make() 313 skvx::Vec<4, uint32_t>* buffer1, in GaussPass() argument 320 , fBuffer1{buffer1} 517 skvx::Vec<4, uint32_t>* buffer1 = buffer0 + passSize; in Make() local 518 skvx::Vec<4, uint32_t>* buffersEnd = buffer1 + passSize; in Make() 562 return alloc->make<TentPass>(buffer0, buffer1, buffersEnd, border, divisor); in Make() 566 skvx::Vec<4, uint32_t>* buffer1, in TentPass() argument 572 , fBuffer1{buffer1}
|
/third_party/ffmpeg/libavcodec/ |
D | xan.c | 62 uint8_t *buffer1; member 81 av_freep(&s->buffer1); in xan_decode_end() 98 s->buffer1 = av_malloc(s->buffer1_size); in xan_decode_init() 99 if (!s->buffer1) in xan_decode_init() 308 uint8_t *opcode_buffer = s->buffer1; in xan_wc3_decode_frame() 309 uint8_t *opcode_buffer_end = s->buffer1 + s->buffer1_size; in xan_wc3_decode_frame()
|
D | ra288.c | 149 float buffer1[MAX_BACKWARD_FILTER_ORDER + 1]; in do_hybrid_window() local 159 convolve(buffer1, work + order , n , order); in do_hybrid_window() 163 out2[i] = out2[i] * 0.5625 + buffer1[i]; in do_hybrid_window()
|
D | hnm4video.c | 44 uint8_t *buffer1; member 474 hnm->buffer1 = av_mallocz(avctx->width * avctx->height); in hnm_decode_init() 478 if (!hnm->buffer1 || !hnm->buffer2 || !hnm->processed) { in hnm_decode_init() 483 hnm->current = hnm->buffer1; in hnm_decode_init() 493 av_freep(&hnm->buffer1); in hnm_decode_end()
|
/third_party/gn/src/base/files/ |
D | file_util.cc | 60 char buffer1[BUFFER_SIZE], buffer2[BUFFER_SIZE]; in ContentsEqual() local 62 file1.read(buffer1, BUFFER_SIZE); in ContentsEqual() 66 (memcmp(buffer1, buffer2, static_cast<size_t>(file1.gcount())))) { in ContentsEqual()
|
/third_party/gstreamer/gstplugins_base/ext/vorbis/ |
D | gstvorbisdec.c | 578 GstBuffer *buffer1, *buffer3, *buffer5; in check_pending_headers() local 587 buffer1 = (GstBuffer *) tmp->data; in check_pending_headers() 594 gst_buffer_map (buffer1, &map, GST_MAP_READ); in check_pending_headers() 596 gst_buffer_unmap (buffer1, &map); in check_pending_headers() 631 result = vorbis_dec_handle_header_buffer (vd, buffer1); in check_pending_headers() 632 gst_buffer_unref (buffer1); in check_pending_headers()
|
/third_party/glslang/Test/ |
D | hlsl.attributeC11.frag | 6 StructuredBuffer<S> buffer1;
|
/third_party/gettext/gettext-tools/src/ |
D | xg-message.c | 313 char buffer1[21]; in remember_a_message() local 328 buffer1[0] = '\0'; in remember_a_message() 330 sprintf (buffer1, ":%ld", (long) pos1.line_number); in remember_a_message() 340 pos1.file_name, buffer1), in remember_a_message()
|