Home
last modified time | relevance | path

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

12345678910>>...269

/external/harfbuzz_ng/src/
Dhb-ot-shape-complex-vowel-constraints.cc19 _output_dotted_circle (hb_buffer_t *buffer) in _output_dotted_circle() argument
21 hb_glyph_info_t &dottedcircle = buffer->output_glyph (0x25CCu); in _output_dotted_circle()
26 _output_with_dotted_circle (hb_buffer_t *buffer) in _output_with_dotted_circle() argument
28 _output_dotted_circle (buffer); in _output_with_dotted_circle()
29 buffer->next_glyph (); in _output_with_dotted_circle()
34 hb_buffer_t *buffer, in _hb_preprocess_text_vowel_constraints() argument
44 buffer->clear_output (); in _hb_preprocess_text_vowel_constraints()
45 unsigned int count = buffer->len; in _hb_preprocess_text_vowel_constraints()
46 switch ((unsigned) buffer->props.script) in _hb_preprocess_text_vowel_constraints()
49 for (buffer->idx = 0; buffer->idx + 1 < count && buffer->successful;) in _hb_preprocess_text_vowel_constraints()
[all …]
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-buffer.cc714 hb_buffer_t *buffer; in hb_buffer_create() local
716 if (!(buffer = hb_object_create<hb_buffer_t> ())) in hb_buffer_create()
719 buffer->max_len = HB_BUFFER_MAX_LEN_DEFAULT; in hb_buffer_create()
720 buffer->max_ops = HB_BUFFER_MAX_OPS_DEFAULT; in hb_buffer_create()
722 buffer->reset (); in hb_buffer_create()
724 return buffer; in hb_buffer_create()
755 hb_buffer_reference (hb_buffer_t *buffer) in hb_buffer_reference() argument
757 return hb_object_reference (buffer); in hb_buffer_reference()
771 hb_buffer_destroy (hb_buffer_t *buffer) in hb_buffer_destroy() argument
773 if (!hb_object_destroy (buffer)) return; in hb_buffer_destroy()
[all …]
Dhb-ot-shape.cc203 hb_buffer_t *buffer) const in substitute()
206 hb_aat_layout_substitute (this, font, buffer); in substitute()
208 map.substitute (this, font, buffer); in substitute()
213 hb_buffer_t *buffer) const in position()
216 map.position (this, font, buffer); in position()
218 hb_aat_layout_position (this, font, buffer); in position()
220 hb_ot_layout_kern (this, font, buffer); in position()
222 _hb_ot_shape_fallback_kern (this, font, buffer); in position()
225 hb_aat_layout_track (this, font, buffer); in position()
381 hb_buffer_t *buffer; member
[all …]
Dhb-ot-shape-complex-hangul.cc130 hb_buffer_t *buffer, in preprocess_text_hangul() argument
133 HB_BUFFER_ALLOCATE_VAR (buffer, hangul_shaping_feature); in preprocess_text_hangul()
183 buffer->clear_output (); in preprocess_text_hangul()
187 unsigned int count = buffer->len; in preprocess_text_hangul()
189 for (buffer->idx = 0; buffer->idx < count && buffer->successful;) in preprocess_text_hangul()
191 hb_codepoint_t u = buffer->cur().codepoint; in preprocess_text_hangul()
200 if (start < end && end == buffer->out_len) in preprocess_text_hangul()
203 buffer->unsafe_to_break_from_outbuffer (start, buffer->idx); in preprocess_text_hangul()
204 buffer->next_glyph (); in preprocess_text_hangul()
207 buffer->merge_out_clusters (start, end + 1); in preprocess_text_hangul()
[all …]
/external/pdfium/core/fxcodec/codec/
Dfx_codec_jpx_unittest.cpp46 uint8_t buffer[16]; in TEST() local
50 EXPECT_EQ(kReadError, opj_read_from_memory(buffer, sizeof(buffer), ptr)); in TEST()
57 uint8_t buffer[16]; in TEST() local
60 memset(buffer, 0xbd, sizeof(buffer)); in TEST()
61 EXPECT_EQ(kReadError, opj_read_from_memory(buffer, 0, &dd)); in TEST()
62 EXPECT_EQ(0xbd, buffer[0]); in TEST()
65 memset(buffer, 0xbd, sizeof(buffer)); in TEST()
66 EXPECT_EQ(kReadError, opj_read_from_memory(buffer, sizeof(buffer), &dd)); in TEST()
67 EXPECT_EQ(0xbd, buffer[0]); in TEST()
84 uint8_t buffer[16]; in TEST() local
[all …]
/external/libcxx/src/
Dcharconv.cpp36 append1(char* buffer, T i) in append1() argument
38 *buffer = '0' + static_cast<char>(i); in append1()
39 return buffer + 1; in append1()
44 append2(char* buffer, T i) in append2() argument
46 memcpy(buffer, &cDigitsLut[(i)*2], 2); in append2()
47 return buffer + 2; in append2()
52 append3(char* buffer, T i) in append3() argument
54 return append2(append1(buffer, (i) / 100), (i) % 100); in append3()
59 append4(char* buffer, T i) in append4() argument
61 return append2(append2(buffer, (i) / 100), (i) % 100); in append4()
[all …]
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/tar/
DTarUtilsTest.java57 byte [] buffer; in testParseOctal()
61 buffer = maxOctal.getBytes(CharsetNames.UTF_8); in testParseOctal()
62 value = TarUtils.parseOctal(buffer,0, buffer.length); in testParseOctal()
64 buffer[buffer.length - 1] = ' '; in testParseOctal()
65 value = TarUtils.parseOctal(buffer,0, buffer.length); in testParseOctal()
67 buffer[buffer.length-1]=0; in testParseOctal()
68 value = TarUtils.parseOctal(buffer,0, buffer.length); in testParseOctal()
70 buffer=new byte[]{0,0}; in testParseOctal()
71 value = TarUtils.parseOctal(buffer,0, buffer.length); in testParseOctal()
73 buffer=new byte[]{0,' '}; in testParseOctal()
[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/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/libcxx/test/std/experimental/simd/simd.mem/
Dstore.pass.cpp28 alignas(32) int32_t buffer[4] = {0}; in test_store() local
29 a.copy_to(buffer, ex::element_aligned_tag()); in test_store()
30 assert(buffer[0] == 4); in test_store()
31 assert(buffer[1] == 3); in test_store()
32 assert(buffer[2] == 2); in test_store()
33 assert(buffer[3] == 1); in test_store()
36 alignas(32) int32_t buffer[4] = {0}; in test_store() local
37 a.copy_to(buffer, ex::vector_aligned_tag()); in test_store()
38 assert(buffer[0] == 4); in test_store()
39 assert(buffer[1] == 3); in test_store()
[all …]
/external/libcups/cups/
Dppd-attr.c143 char *buffer, /* I - String buffer */ in _ppdNormalizeMakeAndModel() argument
149 if (!make_and_model || !buffer || bufsize < 1) in _ppdNormalizeMakeAndModel()
151 if (buffer) in _ppdNormalizeMakeAndModel()
152 *buffer = '\0'; in _ppdNormalizeMakeAndModel()
170 strlcpy(buffer, make_and_model + 1, bufsize); in _ppdNormalizeMakeAndModel()
172 if ((bufptr = strrchr(buffer, ')')) != NULL) in _ppdNormalizeMakeAndModel()
181 snprintf(buffer, bufsize, "Xerox %s", make_and_model); in _ppdNormalizeMakeAndModel()
189 snprintf(buffer, bufsize, "Kodak %s", make_and_model + 7); in _ppdNormalizeMakeAndModel()
197 snprintf(buffer, bufsize, "Apple LaserWriter%s", make_and_model + 11); in _ppdNormalizeMakeAndModel()
205 snprintf(buffer, bufsize, "Seiko %s", make_and_model); in _ppdNormalizeMakeAndModel()
[all …]
Dsnmp.c31 static void asn1_debug(const char *prefix, unsigned char *buffer,
33 static int asn1_decode_snmp(unsigned char *buffer, size_t len,
35 static int asn1_encode_snmp(unsigned char *buffer, size_t len,
37 static int asn1_get_integer(unsigned char **buffer,
40 static int asn1_get_oid(unsigned char **buffer,
43 static int asn1_get_packed(unsigned char **buffer,
45 static char *asn1_get_string(unsigned char **buffer,
49 static unsigned asn1_get_length(unsigned char **buffer,
51 static int asn1_get_type(unsigned char **buffer,
53 static void asn1_set_integer(unsigned char **buffer,
[all …]
/external/v8/src/wasm/
Dwasm-module-builder.cc29 size_t EmitSection(SectionCode code, ZoneBuffer& buffer) { in EmitSection() argument
31 buffer.write_u8(code); in EmitSection()
34 return buffer.reserve_u32v(); in EmitSection()
38 void FixupSection(ZoneBuffer& buffer, size_t start) { in FixupSection() argument
39 buffer.patch_u32v(start, static_cast<uint32_t>(buffer.offset() - start - in FixupSection()
179 void WasmFunctionBuilder::WriteSignature(ZoneBuffer& buffer) const { in WriteSignature()
180 buffer.write_u32v(signature_index_); in WriteSignature()
183 void WasmFunctionBuilder::WriteBody(ZoneBuffer& buffer) const { in WriteBody()
185 buffer.write_size(locals_size + body_.size()); in WriteBody()
186 buffer.EnsureSpace(locals_size); in WriteBody()
[all …]
/external/okhttp/repackaged/okio/okio/src/main/java/com/android/okhttp/okio/
DRealBufferedSource.java27 public final Buffer buffer; field in RealBufferedSource
31 public RealBufferedSource(Source source, Buffer buffer) { in RealBufferedSource() argument
33 this.buffer = buffer; in RealBufferedSource()
41 @Override public Buffer buffer() { in buffer() method in RealBufferedSource
42 return buffer; in buffer()
50 if (buffer.size == 0) { in read()
51 long read = source.read(buffer, Segment.SIZE); in read()
55 long toRead = Math.min(byteCount, buffer.size); in read()
56 return buffer.read(sink, toRead); in read()
61 return buffer.exhausted() && source.read(buffer, Segment.SIZE) == -1; in exhausted()
[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.c43 UChar buffer[32]; in TestCaseLower() local
48 buffer[0]=0xabcd; in TestCaseLower()
50 length=u_strToLower(buffer, UPRV_LENGTHOF(buffer), in TestCaseLower()
56 uprv_memcmp(lowerRoot, buffer, length*U_SIZEOF_UCHAR)!=0 || in TestCaseLower()
57 buffer[length]!=0 in TestCaseLower()
62 uprv_memcmp(lowerRoot, buffer, length*U_SIZEOF_UCHAR)==0 && in TestCaseLower()
63 buffer[length]==0 ? "yes" : "no", in TestCaseLower()
65 aescstrdup(buffer,-1)); in TestCaseLower()
69 uprv_memcpy(buffer, beforeLower, sizeof(beforeLower)); in TestCaseLower()
70 buffer[UPRV_LENGTHOF(beforeLower)]=0; in TestCaseLower()
[all …]
/external/vixl/test/
Dtest-code-buffer.cc53 static void TestDefaultsHelper(const CodeBuffer& buffer) { in TestDefaultsHelper() argument
54 VIXL_CHECK(buffer.GetCapacity() == CodeBuffer::kDefaultCapacity); in TestDefaultsHelper()
55 VIXL_CHECK(buffer.HasSpaceFor(CodeBuffer::kDefaultCapacity)); in TestDefaultsHelper()
56 VIXL_CHECK(!buffer.HasSpaceFor(CodeBuffer::kDefaultCapacity + 1)); in TestDefaultsHelper()
57 VIXL_CHECK(buffer.GetCursorOffset() == 0); in TestDefaultsHelper()
58 VIXL_CHECK(buffer.GetOffsetFrom(0) == 0); in TestDefaultsHelper()
59 VIXL_CHECK(buffer.IsManaged()); in TestDefaultsHelper()
60 VIXL_CHECK(!buffer.IsDirty()); in TestDefaultsHelper()
61 VIXL_CHECK(buffer.GetRemainingBytes() == CodeBuffer::kDefaultCapacity); in TestDefaultsHelper()
62 VIXL_CHECK(buffer.GetSizeInBytes() == 0); in TestDefaultsHelper()
[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/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/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/e2fsprogs/ext2ed/
Dgroup_com.c26 char *ptr,buffer [80]; in type_ext2_group_desc___next() local
28 ptr=parse_word (command_line,buffer); in type_ext2_group_desc___next()
30 ptr=parse_word (ptr,buffer); in type_ext2_group_desc___next()
31 entry_offset=atol (buffer); in type_ext2_group_desc___next()
34 sprintf (buffer,"entry %ld",group_info.group_num+entry_offset); in type_ext2_group_desc___next()
35 dispatch (buffer); in type_ext2_group_desc___next()
42 char *ptr,buffer [80]; in type_ext2_group_desc___prev() local
44 ptr=parse_word (command_line,buffer); in type_ext2_group_desc___prev()
46 ptr=parse_word (ptr,buffer); in type_ext2_group_desc___prev()
47 entry_offset=atol (buffer); in type_ext2_group_desc___prev()
[all …]
/external/flatbuffers/tests/FlatBuffers.Test/
DByteBufferTests.cs28 var buffer = new byte[1000]; in ByteBuffer_Length_MatchesBufferLength()
29 var uut = new ByteBuffer(buffer); in ByteBuffer_Length_MatchesBufferLength()
30 Assert.AreEqual(buffer.Length, uut.Length); in ByteBuffer_Length_MatchesBufferLength()
36 var buffer = new byte[1]; in ByteBuffer_PutBytePopulatesBufferAtZeroOffset()
37 var uut = new ByteBuffer(buffer); in ByteBuffer_PutBytePopulatesBufferAtZeroOffset()
40 Assert.AreEqual((byte)99, buffer[0]); in ByteBuffer_PutBytePopulatesBufferAtZeroOffset()
55 var buffer = new byte[2]; in ByteBuffer_PutShortPopulatesBufferCorrectly()
56 var uut = new ByteBuffer(buffer); in ByteBuffer_PutShortPopulatesBufferCorrectly()
60 Assert.AreEqual((byte)1, buffer[0]); in ByteBuffer_PutShortPopulatesBufferCorrectly()
61 Assert.AreEqual((byte)0, buffer[1]); in ByteBuffer_PutShortPopulatesBufferCorrectly()
[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 …]

12345678910>>...269