Home
last modified time | relevance | path

Searched refs:byteLength (Results 1 – 25 of 85) sorted by relevance

1234

/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mkv/
DDefaultEbmlReader.java189 private long readInteger(ExtractorInput input, int byteLength) throws IOException { in readInteger() argument
190 input.readFully(scratch, 0, byteLength); in readInteger()
192 for (int i = 0; i < byteLength; i++) { in readInteger()
206 private double readFloat(ExtractorInput input, int byteLength) throws IOException { in readFloat() argument
207 long integerValue = readInteger(input, byteLength); in readFloat()
209 if (byteLength == VALID_FLOAT32_ELEMENT_SIZE_BYTES) { in readFloat()
226 private static String readString(ExtractorInput input, int byteLength) throws IOException { in readString() argument
227 if (byteLength == 0) { in readString()
230 byte[] stringBytes = new byte[byteLength]; in readString()
231 input.readFully(stringBytes, 0, byteLength); in readString()
[all …]
/external/skqp/src/utils/
DSkUTF.cpp47 int SkUTF::CountUTF8(const char* utf8, size_t byteLength) { in CountUTF8() argument
52 const char* stop = utf8 + byteLength; in CountUTF8()
70 int SkUTF::CountUTF16(const uint16_t* utf16, size_t byteLength) { in CountUTF16() argument
71 if (!utf16 || !is_align2(intptr_t(utf16)) || !is_align2(byteLength)) { in CountUTF16()
75 const uint16_t* stop = src + (byteLength >> 1); in CountUTF16()
96 int SkUTF::CountUTF32(const int32_t* utf32, size_t byteLength) { in CountUTF32() argument
97 if (!is_align4(intptr_t(utf32)) || !is_align4(byteLength) || byteLength >> 2 > INT_MAX) { in CountUTF32()
102 const uint32_t* stop = ptr + (byteLength >> 2); in CountUTF32()
109 return (int)(byteLength >> 2); in CountUTF32()
DSkUTF.h16 int CountUTF8(const char* utf8, size_t byteLength);
22 int CountUTF16(const uint16_t* utf16, size_t byteLength);
28 int CountUTF32(const int32_t* utf32, size_t byteLength);
/external/skia/src/utils/
DSkUTF.cpp48 int SkUTF::CountUTF8(const char* utf8, size_t byteLength) { in CountUTF8() argument
53 const char* stop = utf8 + byteLength; in CountUTF8()
71 int SkUTF::CountUTF16(const uint16_t* utf16, size_t byteLength) { in CountUTF16() argument
72 if (!utf16 || !is_align2(intptr_t(utf16)) || !is_align2(byteLength)) { in CountUTF16()
76 const uint16_t* stop = src + (byteLength >> 1); in CountUTF16()
97 int SkUTF::CountUTF32(const int32_t* utf32, size_t byteLength) { in CountUTF32() argument
98 if (!is_align4(intptr_t(utf32)) || !is_align4(byteLength) || !SkTFitsIn<int>(byteLength >> 2)) { in CountUTF32()
103 const uint32_t* stop = ptr + (byteLength >> 2); in CountUTF32()
110 return (int)(byteLength >> 2); in CountUTF32()
DSkUTF.h18 SK_SPI int CountUTF8(const char* utf8, size_t byteLength);
24 SK_SPI int CountUTF16(const uint16_t* utf16, size_t byteLength);
30 SK_SPI int CountUTF32(const int32_t* utf32, size_t byteLength);
/external/jline/src/src/main/java/jline/
DWindowsTerminal.java458 int byteLength; field in WindowsTerminal.ReplayPrefixOneCharInputStream
473 byteLength = 1; in setInput()
477 byteLength = 2; in setInput()
479 byteLength = 4; in setInput()
486 this.byteLength = 2; in setInputUTF8()
489 this.byteLength = 3; in setInputUTF8()
492 this.byteLength = 4; in setInputUTF8()
516 return byteLength - byteRead; in available()
DUnixTerminal.java372 int byteLength; field in UnixTerminal.ReplayPrefixOneCharInputStream
387 byteLength = 1; in setInput()
391 byteLength = 2; in setInput()
393 byteLength = 4; in setInput()
400 this.byteLength = 2; in setInputUTF8()
403 this.byteLength = 3; in setInputUTF8()
406 this.byteLength = 4; in setInputUTF8()
430 return byteLength - byteRead; in available()
/external/skia/src/core/
DSkFont.cpp157 const SkUnichar* convert(const void* text, size_t byteLength, SkTextEncoding encoding) { in convert() argument
161 uni = fStorage.reset(byteLength); in convert()
163 const char* end = ptr + byteLength; in convert()
169 uni = fStorage.reset(byteLength); in convert()
171 const uint16_t* end = ptr + (byteLength >> 1); in convert()
189 int SkFont::textToGlyphs(const void* text, size_t byteLength, SkTextEncoding encoding, in textToGlyphs() argument
191 if (0 == byteLength) { in textToGlyphs()
197 int count = SkFontPriv::CountTextElements(text, byteLength, encoding); in textToGlyphs()
208 const SkUnichar* uni = storage.convert(text, byteLength, encoding); in textToGlyphs()
404 int SkFontPriv::CountTextElements(const void* text, size_t byteLength, SkTextEncoding encoding) { in CountTextElements() argument
[all …]
/external/skqp/gm/
Dskbug_5321.cpp21 size_t byteLength = strlen(text); variable
22 canvas->drawSimpleText(text, byteLength, kUTF8_SkTextEncoding, x, y, font, SkPaint());
25 int glyph_count = font.countText(text, byteLength, kUTF8_SkTextEncoding);
29 font.textToGlyphs(text, byteLength, kUTF8_SkTextEncoding, rec.glyphs, glyph_count);
Dannotated_text.cpp16 size_t byteLength = strlen(static_cast<const char*>(text)); in draw_url_annotated_text_with_box() local
18 (void)font.measureText(text, byteLength, kUTF8_SkTextEncoding, &bounds); in draw_url_annotated_text_with_box()
25 canvas->drawSimpleText(text, byteLength, kUTF8_SkTextEncoding, x, y, font, SkPaint()); in draw_url_annotated_text_with_box()
/external/skia/gm/
Dskbug_5321.cpp28 size_t byteLength = strlen(text); variable
29 canvas->drawSimpleText(text, byteLength, SkTextEncoding::kUTF8, x, y, font, SkPaint());
32 int glyph_count = font.countText(text, byteLength, SkTextEncoding::kUTF8);
36 font.textToGlyphs(text, byteLength, SkTextEncoding::kUTF8, rec.glyphs, glyph_count);
Dannotated_text.cpp25 size_t byteLength = strlen(static_cast<const char*>(text)); in draw_url_annotated_text_with_box() local
27 (void)font.measureText(text, byteLength, SkTextEncoding::kUTF8, &bounds); in draw_url_annotated_text_with_box()
34 canvas->drawSimpleText(text, byteLength, SkTextEncoding::kUTF8, x, y, font, SkPaint()); in draw_url_annotated_text_with_box()
/external/perfetto/ui/src/controller/
Dtrace_stream.ts55 this.bytesRead += res.byteLength;
84 assertTrue(this.bytesRead <= this.traceBuf.byteLength);
85 const len = Math.min(SLICE_SIZE, this.traceBuf.byteLength - this.bytesRead);
90 eof: this.bytesRead >= this.traceBuf.byteLength,
92 bytesTotal: this.traceBuf.byteLength,
/external/skia/include/core/
DSkFont.h297 int textToGlyphs(const void* text, size_t byteLength, SkTextEncoding encoding,
321 int countText(const void* text, size_t byteLength, SkTextEncoding encoding) const { in countText() argument
322 return this->textToGlyphs(text, byteLength, encoding, nullptr, 0); in countText()
334 SkScalar measureText(const void* text, size_t byteLength, SkTextEncoding encoding,
336 return this->measureText(text, byteLength, encoding, bounds, nullptr);
350 SkScalar measureText(const void* text, size_t byteLength, SkTextEncoding encoding,
/external/skqp/include/core/
DSkFont.h293 int textToGlyphs(const void* text, size_t byteLength, SkTextEncoding encoding,
317 int countText(const void* text, size_t byteLength, SkTextEncoding encoding) const { in countText() argument
318 return this->textToGlyphs(text, byteLength, encoding, nullptr, 0); in countText()
332 SkScalar measureText(const void* text, size_t byteLength, SkTextEncoding encoding,
334 return this->measureText(text, byteLength, encoding, bounds, nullptr);
350 SkScalar measureText(const void* text, size_t byteLength, SkTextEncoding encoding,
DSkTextBlob.h89 static sk_sp<SkTextBlob> MakeFromText(const void* text, size_t byteLength, const SkFont& font,
130 static sk_sp<SkTextBlob> MakeFromPosTextH(const void* text, size_t byteLength,
146 static sk_sp<SkTextBlob> MakeFromPosText(const void* text, size_t byteLength,
151 static sk_sp<SkTextBlob> MakeFromRSXform(const void* text, size_t byteLength,
/external/cldr/tools/java/org/unicode/cldr/util/
DStateDictionary.java543 private void getDebugWords(int byteLength, int resultSoFar, Row row, in getDebugWords() argument
548 if (suppressAbove > byteLength) { in getDebugWords()
549 suppressAbove = byteLength; in getDebugWords()
559 soFar[byteLength] = key; in getDebugWords()
560 shown.set(byteLength, false); in getDebugWords()
563 CharSequence key2 = stringFromBytes(soFar, byteLength + 1); in getDebugWords()
565 for (int i = 0; i <= byteLength; ++i) { in getDebugWords()
581 getDebugWords(byteLength + 1, currentValue, cell.nextRow, in getDebugWords()
588 private void getWords(int byteLength, int resultSoFar, Row row) { in getWords() argument
591 soFar[byteLength] = key; in getWords()
[all …]
/external/icu/icu4c/source/test/cintltst/
Ducsdetst.c70 …tic char *extractBytes(const UChar *src, int32_t length, const char *codepage, int32_t *byteLength) in extractBytes() argument
82 *byteLength = byteCount; in extractBytes()
124 int32_t byteLength = 0, sLength = 0, dLength = 0; in TestUTF8() local
132 bytes = extractBytes(s, sLength, "UTF-8", &byteLength); in TestUTF8()
134 ucsdet_setText(csd, bytes, byteLength, &status); in TestUTF8()
287 int32_t byteLength = 0; in TestInputFilter() local
294 bytes = extractBytes(s, sLength, "ISO-8859-1", &byteLength); in TestInputFilter()
303 ucsdet_setText(csd, bytes, byteLength, &status); in TestInputFilter()
325 ucsdet_setText(csd, bytes, byteLength, &status); in TestInputFilter()
/external/skqp/src/core/
DSkReader32.h140 uint32_t byteLength = this->readU32(); in readData() local
141 if (0 == byteLength) { in readData()
144 return SkData::MakeWithCopy(this->skip(byteLength), byteLength); in readData()
DSkGlyphRun.cpp164 size_t byteLength, SkPoint origin) { in drawTextUTF8() argument
165 auto glyphIDs = textToGlyphIDs(font, bytes, byteLength, kUTF8_SkTextEncoding); in drawTextUTF8()
260 const SkFont& font, const void* bytes, size_t byteLength, SkTextEncoding encoding) { in textToGlyphIDs() argument
262 int count = font.countText(bytes, byteLength, encoding); in textToGlyphIDs()
265 font.textToGlyphs(bytes, byteLength, encoding, fScratchGlyphIDs.data(), count); in textToGlyphIDs()
271 return SkSpan<const SkGlyphID>((const SkGlyphID*)bytes, byteLength / 2); in textToGlyphIDs()
/external/skia/modules/canvaskit/
Dskp.js7 var iptr = CanvasKit._malloc(data.byteLength);
10 var pic = CanvasKit._MakePicture(iptr, data.byteLength);
Dgm.js40 WasmGMTests._LoadResource(name, bytePtr, buffer.byteLength);
44 var ptr = WasmGMTests._malloc(buffer.byteLength);
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/framework/jdwp/
DTypesLengths.java82 private static int byteLength = 1; field in TypesLengths
138 return byteLength; in getTypeLength()
218 byteLength = typeLength; in setTypeLength()
/external/icu/icu4c/source/test/intltest/
Dcsdetest.cpp171 int32_t byteLength = 0; in checkEncoding() local
172 std::unique_ptr<char []> bytes(extractBytes(testString, codepage, byteLength)); in checkEncoding()
181 ucsdet_setText(csd.getAlias(), bytes.get(), byteLength, &status); in checkEncoding()
323 int32_t byteLength = 0, sLength = s.length(); in UTF8Test() local
324 char *bytes = extractBytes(s, "UTF-8", byteLength); in UTF8Test()
329 ucsdet_setText(csd, bytes, byteLength, &status); in UTF8Test()
412 int32_t byteLength = 0; in InputFilterTest() local
413 char *bytes = extractBytes(s, "ISO-8859-1", byteLength); in InputFilterTest()
425 ucsdet_setText(csd, bytes, byteLength, &status); in InputFilterTest()
447 ucsdet_setText(csd, bytes, byteLength, &status); in InputFilterTest()
/external/proguard/src/proguard/classfile/constant/
DUtf8Constant.java190 int byteLength = 0; in getByteArrayRepresentation() local
197 byteLength += c == 0 ? 2 : in getByteArrayRepresentation()
204 byte[] bytes = new byte[byteLength]; in getByteArrayRepresentation()

1234