Searched refs:utf16_length (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/libs/androidfw/ |
D | Util.cpp | 45 ssize_t utf16_length = in Utf8ToUtf16() local 47 if (utf16_length <= 0) { in Utf8ToUtf16() 52 utf16.resize(utf16_length); in Utf8ToUtf16() 54 utf16_length + 1); in Utf8ToUtf16()
|
/frameworks/minikin/tests/perftests/ |
D | FontCollection.cpp | 89 size_t utf16_length = 0; in BM_FontCollection_itemize() local 90 ParseUnicode(buffer, 64, ITEMIZE_TEST_CASES[testIndex].itemizeText.c_str(), &utf16_length, in BM_FontCollection_itemize() 98 collection->itemize(buffer, utf16_length, paint, &result); in BM_FontCollection_itemize()
|
/frameworks/base/tools/aapt2/ |
D | StringPool.cpp | 371 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/ |
D | Util.cpp | 301 ssize_t utf16_length = utf8_to_utf16_length( in Utf8ToUtf16() local 303 if (utf16_length <= 0) { in Utf8ToUtf16() 308 utf16.resize(utf16_length); in Utf8ToUtf16() 310 &*utf16.begin(), utf16_length + 1); in Utf8ToUtf16()
|