Searched defs:utf16 (Results 1 - 3 of 3) sorted by relevance
/frameworks/base/libs/androidfw/ |
H A D | Util.cpp | 51 std::u16string utf16; local 52 utf16.resize(utf16_length); 53 utf8_to_utf16(reinterpret_cast<const uint8_t*>(utf8.data()), utf8.length(), &*utf16.begin(), 55 return utf16; 58 std::string Utf16ToUtf8(const StringPiece16& utf16) { argument 59 ssize_t utf8_length = utf16_to_utf8_length(utf16.data(), utf16.length()); 66 utf16_to_utf8(utf16.data(), utf16.length(), &*utf8.begin(), utf8_length + 1);
|
/frameworks/base/libs/hwui/tests/common/ |
H A D | TestUtils.cpp | 123 auto utf16 = asciiToUtf16(text); local 124 canvas->drawText(utf16.get(), 0, strlen(text), strlen(text), x, y, 0, paint, nullptr); 129 auto utf16 = asciiToUtf16(text); local 130 canvas->drawTextOnPath(utf16.get(), strlen(text), 0, path, 0, 0, paint, nullptr); 154 std::unique_ptr<uint16_t[]> utf16(new uint16_t[length]); 156 utf16.get()[i] = str[i]; 158 return utf16;
|
/frameworks/base/tools/aapt2/util/ |
H A D | Util.cpp | 451 std::u16string utf16; local 452 utf16.resize(utf16_length); 454 &*utf16.begin(), utf16_length + 1); 455 return utf16; 458 std::string Utf16ToUtf8(const StringPiece16& utf16) { argument 459 ssize_t utf8_length = utf16_to_utf8_length(utf16.data(), utf16.length()); 466 utf16_to_utf8(utf16.data(), utf16.length(), &*utf8.begin(), utf8_length + 1);
|
Completed in 120 milliseconds