Home
last modified time | relevance | path

Searched refs:utf16_length (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/libs/androidfw/
DUtil.cpp46 ssize_t utf16_length = in Utf8ToUtf16() local
48 if (utf16_length <= 0) { in Utf8ToUtf16()
53 utf16.resize(utf16_length); in Utf8ToUtf16()
55 utf16_length + 1); in Utf8ToUtf16()
/frameworks/minikin/tests/perftests/
DFontCollection.cpp90 size_t utf16_length = 0; in BM_FontCollection_itemize() local
91 ParseUnicode(buffer, 64, ITEMIZE_TEST_CASES[testIndex].itemizeText.c_str(), &utf16_length, in BM_FontCollection_itemize()
99 collection->itemize(U16StringPiece(buffer, utf16_length), paint.fontStyle, in BM_FontCollection_itemize()
/frameworks/base/tools/aapt2/
DStringPool.cpp371 const ssize_t utf16_length = utf8_to_utf16_length( in EncodeString() local
373 CHECK(utf16_length >= 0); in EncodeString()
378 || (((size_t)utf16_length) > EncodeLengthMax<char>())) { in EncodeString()
387 const size_t total_size = EncodedLengthUnits<char>(utf16_length) in EncodeString()
393 data = EncodeLength(data, utf16_length); in EncodeString()
401 const ssize_t utf16_length = encoded.size(); in EncodeString() local
405 if (((size_t)utf16_length) > EncodeLengthMax<char16_t>()) { in EncodeString()
414 const size_t total_size = EncodedLengthUnits<char16_t>(utf16_length) in EncodeString()
420 data = EncodeLength(data, utf16_length); in EncodeString()
/frameworks/base/tools/aapt2/util/
DUtil.cpp445 ssize_t utf16_length = utf8_to_utf16_length( in Utf8ToUtf16() local
447 if (utf16_length <= 0) { in Utf8ToUtf16()
452 utf16.resize(utf16_length); in Utf8ToUtf16()
454 &*utf16.begin(), utf16_length + 1); in Utf8ToUtf16()