Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 25 of 4373) sorted by relevance

12345678910>>...175

/external/pdfium/core/src/fxcodec/codec/
Dfx_codec_jpx_unittest.cpp23 unsigned char buffer[16]; in TEST() local
27 EXPECT_EQ(kReadError, opj_read_from_memory(buffer, sizeof(buffer), ptr)); in TEST()
28 EXPECT_EQ(kWriteError, opj_write_from_memory(buffer, sizeof(buffer), ptr)); in TEST()
35 unsigned char buffer[16]; in TEST() local
38 memset(buffer, 0xbd, sizeof(buffer)); in TEST()
39 EXPECT_EQ(kReadError, opj_read_from_memory(buffer, 0, &dd)); in TEST()
40 EXPECT_EQ(0xbd, buffer[0]); in TEST()
43 memset(buffer, 0xbd, sizeof(buffer)); in TEST()
44 EXPECT_EQ(kReadError, opj_read_from_memory(buffer, sizeof(buffer), &dd)); in TEST()
45 EXPECT_EQ(0xbd, buffer[0]); in TEST()
[all …]
/external/v8/test/cctest/
Dtest-fixed-dtoa.cc44 Vector<char> buffer(buffer_container, kBufferSize); in TEST() local
48 CHECK(FastFixedDtoa(1.0, 1, buffer, &length, &point)); in TEST()
49 CHECK_EQ(0, strcmp("1", buffer.start())); in TEST()
52 CHECK(FastFixedDtoa(1.0, 15, buffer, &length, &point)); in TEST()
53 CHECK_EQ(0, strcmp("1", buffer.start())); in TEST()
56 CHECK(FastFixedDtoa(1.0, 0, buffer, &length, &point)); in TEST()
57 CHECK_EQ(0, strcmp("1", buffer.start())); in TEST()
60 CHECK(FastFixedDtoa(0xFFFFFFFF, 5, buffer, &length, &point)); in TEST()
61 CHECK_EQ(0, strcmp("4294967295", buffer.start())); in TEST()
64 CHECK(FastFixedDtoa(4294967296.0, 5, buffer, &length, &point)); in TEST()
[all …]
Dtest-bignum.cc52 char buffer[kBufferSize]; in TEST() local
56 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
57 CHECK_EQ(0, strcmp("0", buffer)); in TEST()
59 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
60 CHECK_EQ(0, strcmp("A", buffer)); in TEST()
62 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
63 CHECK_EQ(0, strcmp("20", buffer)); in TEST()
67 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
68 CHECK_EQ(0, strcmp("0", buffer)); in TEST()
70 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
[all …]
Dtest-bignum-dtoa.cc61 Vector<char> buffer(buffer_container, kBufferSize); in TEST() local
65 BignumDtoa(1.0, BIGNUM_DTOA_SHORTEST, 0, buffer, &length, &point); in TEST()
66 CHECK_EQ(0, strcmp("1", buffer.start())); in TEST()
69 BignumDtoa(1.0, BIGNUM_DTOA_FIXED, 3, buffer, &length, &point); in TEST()
71 TrimRepresentation(buffer); in TEST()
72 CHECK_EQ(0, strcmp("1", buffer.start())); in TEST()
75 BignumDtoa(1.0, BIGNUM_DTOA_PRECISION, 3, buffer, &length, &point); in TEST()
77 TrimRepresentation(buffer); in TEST()
78 CHECK_EQ(0, strcmp("1", buffer.start())); in TEST()
81 BignumDtoa(1.5, BIGNUM_DTOA_SHORTEST, 0, buffer, &length, &point); in TEST()
[all …]
Dtest-dtoa.cc61 Vector<char> buffer(buffer_container, kBufferSize); in TEST() local
66 DoubleToAscii(0.0, DTOA_SHORTEST, 0, buffer, &sign, &length, &point); in TEST()
67 CHECK_EQ(0, strcmp("0", buffer.start())); in TEST()
70 DoubleToAscii(0.0, DTOA_FIXED, 2, buffer, &sign, &length, &point); in TEST()
72 CHECK_EQ(0, strcmp("0", buffer.start())); in TEST()
75 DoubleToAscii(0.0, DTOA_PRECISION, 3, buffer, &sign, &length, &point); in TEST()
77 CHECK_EQ(0, strcmp("0", buffer.start())); in TEST()
80 DoubleToAscii(1.0, DTOA_SHORTEST, 0, buffer, &sign, &length, &point); in TEST()
81 CHECK_EQ(0, strcmp("1", buffer.start())); in TEST()
84 DoubleToAscii(1.0, DTOA_FIXED, 3, buffer, &sign, &length, &point); in TEST()
[all …]
/external/harfbuzz_ng/src/
Dhb-ot-shape-normalize.cc98 output_char (hb_buffer_t *buffer, hb_codepoint_t unichar, hb_codepoint_t glyph) in output_char() argument
100 buffer->cur().glyph_index() = glyph; in output_char()
101 buffer->output_glyph (unichar); /* This is very confusing indeed. */ in output_char()
102 _hb_glyph_info_set_unicode_props (&buffer->prev(), buffer); in output_char()
106 next_char (hb_buffer_t *buffer, hb_codepoint_t glyph) in next_char() argument
108 buffer->cur().glyph_index() = glyph; in next_char()
109 buffer->next_glyph (); in next_char()
113 skip_char (hb_buffer_t *buffer) in skip_char() argument
115 buffer->skip_glyph (); in skip_char()
123 hb_buffer_t * const buffer = c->buffer; in decompose() local
[all …]
Dhb-ot-shape.cc210 hb_buffer_t *buffer; member
226 hb_set_unicode_props (hb_buffer_t *buffer) in hb_set_unicode_props() argument
228 unsigned int count = buffer->len; in hb_set_unicode_props()
229 hb_glyph_info_t *info = buffer->info; in hb_set_unicode_props()
231 _hb_glyph_info_set_unicode_props (&info[i], buffer); in hb_set_unicode_props()
235 hb_insert_dotted_circle (hb_buffer_t *buffer, hb_font_t *font) in hb_insert_dotted_circle() argument
237 if (!(buffer->flags & HB_BUFFER_FLAG_BOT) || in hb_insert_dotted_circle()
238 buffer->context_len[0] || in hb_insert_dotted_circle()
239 _hb_glyph_info_get_general_category (&buffer->info[0]) != in hb_insert_dotted_circle()
248 _hb_glyph_info_set_unicode_props (&dottedcircle, buffer); in hb_insert_dotted_circle()
[all …]
Dhb-buffer.cc683 hb_buffer_t *buffer; in hb_buffer_create() local
685 if (!(buffer = hb_object_create<hb_buffer_t> ())) in hb_buffer_create()
688 buffer->max_len = HB_BUFFER_MAX_LEN_DEFAULT; in hb_buffer_create()
690 buffer->reset (); in hb_buffer_create()
692 return buffer; in hb_buffer_create()
742 hb_buffer_reference (hb_buffer_t *buffer) in hb_buffer_reference() argument
744 return hb_object_reference (buffer); in hb_buffer_reference()
758 hb_buffer_destroy (hb_buffer_t *buffer) in hb_buffer_destroy() argument
760 if (!hb_object_destroy (buffer)) return; in hb_buffer_destroy()
762 hb_unicode_funcs_destroy (buffer->unicode); in hb_buffer_destroy()
[all …]
/external/tpm2/
Dtpm_generated.h16 UINT16 uint8_t_Marshal(uint8_t* source, BYTE** buffer, INT32* size);
18 TPM_RC uint8_t_Unmarshal(uint8_t* target, BYTE** buffer, INT32* size);
20 UINT16 int8_t_Marshal(int8_t* source, BYTE** buffer, INT32* size);
22 TPM_RC int8_t_Unmarshal(int8_t* target, BYTE** buffer, INT32* size);
24 UINT16 uint16_t_Marshal(uint16_t* source, BYTE** buffer, INT32* size);
26 TPM_RC uint16_t_Unmarshal(uint16_t* target, BYTE** buffer, INT32* size);
28 UINT16 int16_t_Marshal(int16_t* source, BYTE** buffer, INT32* size);
30 TPM_RC int16_t_Unmarshal(int16_t* target, BYTE** buffer, INT32* size);
32 UINT16 uint32_t_Marshal(uint32_t* source, BYTE** buffer, INT32* size);
34 TPM_RC uint32_t_Unmarshal(uint32_t* target, BYTE** buffer, INT32* size);
[all …]
Dtpm_generated.c9 UINT16 uint8_t_Marshal(uint8_t* source, BYTE** buffer, INT32* size) { in uint8_t_Marshal() argument
27 memcpy(*buffer, &value_net, sizeof(uint8_t)); in uint8_t_Marshal()
28 *buffer += sizeof(uint8_t); in uint8_t_Marshal()
33 TPM_RC uint8_t_Unmarshal(uint8_t* target, BYTE** buffer, INT32* size) { in uint8_t_Unmarshal() argument
38 memcpy(&value_net, *buffer, sizeof(uint8_t)); in uint8_t_Unmarshal()
52 *buffer += sizeof(uint8_t); in uint8_t_Unmarshal()
57 UINT16 int8_t_Marshal(int8_t* source, BYTE** buffer, INT32* size) { in int8_t_Marshal() argument
75 memcpy(*buffer, &value_net, sizeof(int8_t)); in int8_t_Marshal()
76 *buffer += sizeof(int8_t); in int8_t_Marshal()
81 TPM_RC int8_t_Unmarshal(int8_t* target, BYTE** buffer, INT32* size) { in int8_t_Unmarshal() argument
[all …]
/external/webrtc/webrtc/modules/rtp_rtcp/source/rtcp_packet/
Dvoip_metric.cc45 void VoipMetric::Parse(const uint8_t* buffer) { in Parse() argument
46 RTC_DCHECK(buffer[0] == kBlockType); in Parse()
48 RTC_DCHECK(ByteReader<uint16_t>::ReadBigEndian(&buffer[2]) == kBlockLength); in Parse()
49 ssrc_ = ByteReader<uint32_t>::ReadBigEndian(&buffer[4]); in Parse()
50 voip_metric_.lossRate = buffer[8]; in Parse()
51 voip_metric_.discardRate = buffer[9]; in Parse()
52 voip_metric_.burstDensity = buffer[10]; in Parse()
53 voip_metric_.gapDensity = buffer[11]; in Parse()
54 voip_metric_.burstDuration = ByteReader<uint16_t>::ReadBigEndian(&buffer[12]); in Parse()
55 voip_metric_.gapDuration = ByteReader<uint16_t>::ReadBigEndian(&buffer[14]); in Parse()
[all …]
/external/webrtc/webrtc/base/
Dbitbuffer_unittest.cc21 BitBuffer buffer(bytes, 32); in TEST() local
23 EXPECT_EQ(total_bits, buffer.RemainingBitCount()); in TEST()
24 EXPECT_TRUE(buffer.ConsumeBits(3)); in TEST()
26 EXPECT_EQ(total_bits, buffer.RemainingBitCount()); in TEST()
27 EXPECT_TRUE(buffer.ConsumeBits(3)); in TEST()
29 EXPECT_EQ(total_bits, buffer.RemainingBitCount()); in TEST()
30 EXPECT_TRUE(buffer.ConsumeBits(15)); in TEST()
32 EXPECT_EQ(total_bits, buffer.RemainingBitCount()); in TEST()
33 EXPECT_TRUE(buffer.ConsumeBits(37)); in TEST()
35 EXPECT_EQ(total_bits, buffer.RemainingBitCount()); in TEST()
[all …]
Dbytebuffer_unittest.cc57 ByteBuffer buffer; in TEST() local
59 EXPECT_EQ(size, buffer.Length()); in TEST()
61 buffer.WriteUInt8(1); in TEST()
63 EXPECT_EQ(size, buffer.Length()); in TEST()
65 buffer.WriteUInt16(1); in TEST()
67 EXPECT_EQ(size, buffer.Length()); in TEST()
69 buffer.WriteUInt24(1); in TEST()
71 EXPECT_EQ(size, buffer.Length()); in TEST()
73 buffer.WriteUInt32(1); in TEST()
75 EXPECT_EQ(size, buffer.Length()); in TEST()
[all …]
/external/jetty/src/java/org/eclipse/jetty/io/
DBufferUtil.java43 public static int toInt(Buffer buffer) in toInt() argument
48 for (int i= buffer.getIndex(); i < buffer.putIndex(); i++) in toInt()
50 byte b= buffer.peek(i); in toInt()
71 throw new NumberFormatException(buffer.toString()); in toInt()
81 public static long toLong(Buffer buffer) in toLong() argument
86 for (int i= buffer.getIndex(); i < buffer.putIndex(); i++) in toLong()
88 byte b= buffer.peek(i); in toLong()
109 throw new NumberFormatException(buffer.toString()); in toLong()
112 public static void putHexInt(Buffer buffer, int n) in putHexInt() argument
117 buffer.put((byte)'-'); in putHexInt()
[all …]
/external/okhttp/okio/okio/src/main/java/okio/
DRealBufferedSource.java26 public final Buffer buffer; field in RealBufferedSource
30 public RealBufferedSource(Source source, Buffer buffer) { in RealBufferedSource() argument
32 this.buffer = buffer; in RealBufferedSource()
40 @Override public Buffer buffer() { in buffer() method in RealBufferedSource
41 return buffer; in buffer()
49 if (buffer.size == 0) { in read()
50 long read = source.read(buffer, Segment.SIZE); in read()
54 long toRead = Math.min(byteCount, buffer.size); in read()
55 return buffer.read(sink, toRead); in read()
60 return buffer.exhausted() && source.read(buffer, Segment.SIZE) == -1; in exhausted()
[all …]
/external/icu/icu4c/source/test/cintltst/
Dcstrcase.c40 UChar buffer[32]; in TestCaseLower() local
45 buffer[0]=0xabcd; in TestCaseLower()
47 length=u_strToLower(buffer, sizeof(buffer)/U_SIZEOF_UCHAR, in TestCaseLower()
53 uprv_memcmp(lowerRoot, buffer, length*U_SIZEOF_UCHAR)!=0 || in TestCaseLower()
54 buffer[length]!=0 in TestCaseLower()
59 uprv_memcmp(lowerRoot, buffer, length*U_SIZEOF_UCHAR)==0 && in TestCaseLower()
60 buffer[length]==0 ? "yes" : "no", in TestCaseLower()
62 aescstrdup(buffer,-1)); in TestCaseLower()
66 uprv_memcpy(buffer, beforeLower, sizeof(beforeLower)); in TestCaseLower()
67 buffer[sizeof(beforeLower)/U_SIZEOF_UCHAR]=0; in TestCaseLower()
[all …]
/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/com/badlogic/gdx/utils/
DBufferUtils.java89 ShortBuffer buffer = null; in copy() local
91 buffer = ((ByteBuffer)dst).asShortBuffer(); in copy()
92 else if (dst instanceof ShortBuffer) buffer = (ShortBuffer)dst; in copy()
93 if (buffer == null) throw new GdxRuntimeException("dst must be a ByteBuffer or ShortBuffer"); in copy()
95 int oldPosition = buffer.position(); in copy()
96 buffer.put(src, srcOffset, numElements); in copy()
97 buffer.position(oldPosition); in copy()
98 buffer.limit(oldPosition + numElements); in copy()
111 CharBuffer buffer = null; in copy() local
113 buffer = ((ByteBuffer)dst).asCharBuffer(); in copy()
[all …]
/external/skia/src/gpu/vk/
DGrVkProgramDataManager.cpp46 void* buffer; in set1f() local
48 buffer = fVertexUniformData.get(); in set1f()
51 buffer = fFragmentUniformData.get(); in set1f()
53 buffer = static_cast<char*>(buffer) + uni.fOffset; in set1f()
55 memcpy(buffer, &v0, sizeof(float)); in set1f()
68 void* buffer; in set1fv() local
70 buffer = fVertexUniformData.get(); in set1fv()
73 buffer = fFragmentUniformData.get(); in set1fv()
75 buffer = static_cast<char*>(buffer) + uni.fOffset; in set1fv()
77 memcpy(buffer, v, arrayCount * sizeof(float)); in set1fv()
[all …]
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/
DByteBuffer.java27 private byte[] buffer; field in ByteBuffer
39 this.buffer = new byte[initialCapacity]; in ByteBuffer()
47 public ByteBuffer(byte[] buffer) in ByteBuffer() argument
49 this.buffer = buffer; in ByteBuffer()
50 this.length = buffer.length; in ByteBuffer()
58 public ByteBuffer(byte[] buffer, int length) in ByteBuffer() argument
60 if (length > buffer.length) in ByteBuffer()
64 this.buffer = buffer; in ByteBuffer()
80 this.buffer = new byte[chunk]; in ByteBuffer()
83 while ((read = in.read(this.buffer, this.length, chunk)) > 0) in ByteBuffer()
[all …]
/external/okhttp/okio/okio/src/test/java/okio/
DUtf8Test.java80 Buffer buffer = new Buffer(); in stringSpansSegments() local
84 buffer.writeUtf8(a); in stringSpansSegments()
85 buffer.writeUtf8(b); in stringSpansSegments()
86 buffer.writeUtf8(c); in stringSpansSegments()
87 assertEquals(a + b + c, buffer.readUtf8()); in stringSpansSegments()
91 Buffer buffer = new Buffer(); in readEmptyBufferThrowsEofException() local
93 buffer.readUtf8CodePoint(); in readEmptyBufferThrowsEofException()
100 Buffer buffer = new Buffer(); in readLeadingContinuationByteReturnsReplacementCharacter() local
101 buffer.writeByte(0xbf); in readLeadingContinuationByteReturnsReplacementCharacter()
102 assertEquals(Buffer.REPLACEMENT_CHARACTER, buffer.readUtf8CodePoint()); in readLeadingContinuationByteReturnsReplacementCharacter()
[all …]
/external/e2fsprogs/ext2ed/
Dgroup_com.c25 char *ptr,buffer [80]; in type_ext2_group_desc___next() local
27 ptr=parse_word (command_line,buffer); in type_ext2_group_desc___next()
29 ptr=parse_word (ptr,buffer); in type_ext2_group_desc___next()
30 entry_offset=atol (buffer); in type_ext2_group_desc___next()
33 sprintf (buffer,"entry %ld",group_info.group_num+entry_offset); in type_ext2_group_desc___next()
34 dispatch (buffer); in type_ext2_group_desc___next()
41 char *ptr,buffer [80]; in type_ext2_group_desc___prev() local
43 ptr=parse_word (command_line,buffer); in type_ext2_group_desc___prev()
45 ptr=parse_word (ptr,buffer); in type_ext2_group_desc___prev()
46 entry_offset=atol (buffer); in type_ext2_group_desc___prev()
[all …]
/external/webrtc/webrtc/modules/audio_coding/neteq/
Ddtmf_buffer_unittest.cc57 DtmfBuffer* buffer = new DtmfBuffer(sample_rate_hz); in TEST() local
58 delete buffer; in TEST()
91 DtmfBuffer buffer(sample_rate_hz); in TEST() local
92 EXPECT_EQ(DtmfBuffer::kOK, buffer.InsertEvent(event)); in TEST()
93 EXPECT_EQ(1u, buffer.Length()); in TEST()
94 EXPECT_FALSE(buffer.Empty()); in TEST()
97 EXPECT_FALSE(buffer.GetEvent(timestamp - 10, &out_event)); in TEST()
98 EXPECT_EQ(1u, buffer.Length()); in TEST()
99 EXPECT_FALSE(buffer.Empty()); in TEST()
101 EXPECT_TRUE(buffer.GetEvent(timestamp, &out_event)); in TEST()
[all …]
/external/webrtc/webrtc/common_video/
Di420_buffer_pool_unittest.cc20 rtc::scoped_refptr<VideoFrameBuffer> buffer = pool.CreateBuffer(16, 16); in TEST() local
21 EXPECT_EQ(16, buffer->width()); in TEST()
22 EXPECT_EQ(16, buffer->height()); in TEST()
24 const uint8_t* y_ptr = buffer->data(kYPlane); in TEST()
25 const uint8_t* u_ptr = buffer->data(kUPlane); in TEST()
26 const uint8_t* v_ptr = buffer->data(kVPlane); in TEST()
28 buffer = nullptr; in TEST()
30 buffer = pool.CreateBuffer(16, 16); in TEST()
31 EXPECT_EQ(y_ptr, buffer->data(kYPlane)); in TEST()
32 EXPECT_EQ(u_ptr, buffer->data(kUPlane)); in TEST()
[all …]
/external/skia/src/core/
DSkBuffer.cpp14 void SkRBuffer::readNoSizeCheck(void* buffer, size_t size) in readNoSizeCheck() argument
17 if (buffer) in readNoSizeCheck()
18 memcpy(buffer, fPos, size); in readNoSizeCheck()
37 bool SkRBufferWithSizeCheck::read(void* buffer, size_t size) { in read() argument
40 readNoSizeCheck(buffer, size); in read()
52 void SkWBuffer::writeNoSizeCheck(const void* buffer, size_t size) in writeNoSizeCheck() argument
55 if (fData && buffer) in writeNoSizeCheck()
56 memcpy(fPos, buffer, size); in writeNoSizeCheck()
79 static void AssertBuffer32(const void* buffer)
81 SkASSERT(buffer);
[all …]
/external/protobuf/src/google/protobuf/io/
Dprinter_unittest.cc54 char buffer[8192]; in TEST() local
56 ArrayOutputStream output(buffer, GOOGLE_ARRAYSIZE(buffer), block_size); in TEST()
62 char buffer[8192]; in TEST() local
65 ArrayOutputStream output(buffer, sizeof(buffer), block_size); in TEST()
77 buffer[output.ByteCount()] = '\0'; in TEST()
82 buffer); in TEST()
87 char buffer[8192]; in TEST() local
90 ArrayOutputStream output(buffer, sizeof(buffer), block_size); in TEST()
103 buffer[output.ByteCount()] = '\0'; in TEST()
110 buffer); in TEST()
[all …]

12345678910>>...175