Searched refs:utf16 (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/libs/hwui/tests/common/ |
D | TestUtils.cpp | 98 auto utf16 = asciiToUtf16(text); in drawUtf8ToCanvas() local 99 canvas->drawText(utf16.get(), 0, strlen(text), strlen(text), x, y, 0, paint, nullptr); in drawUtf8ToCanvas() 104 auto utf16 = asciiToUtf16(text); in drawUtf8ToCanvas() local 105 canvas->drawTextOnPath(utf16.get(), strlen(text), 0, path, 0, 0, paint, nullptr); in drawUtf8ToCanvas() 120 std::unique_ptr<uint16_t[]> utf16(new uint16_t[length]); in asciiToUtf16() local 122 utf16.get()[i] = str[i]; in asciiToUtf16() 124 return utf16; in asciiToUtf16()
|
/frameworks/base/tools/aapt2/util/ |
D | Util.cpp | 431 std::u16string utf16; in utf8ToUtf16() local 432 utf16.resize(utf16Length); in utf8ToUtf16() 433 utf8_to_utf16(reinterpret_cast<const uint8_t*>(utf8.data()), utf8.length(), &*utf16.begin()); in utf8ToUtf16() 434 return utf16; in utf8ToUtf16() 437 std::string utf16ToUtf8(const StringPiece16& utf16) { in utf16ToUtf8() argument 438 ssize_t utf8Length = utf16_to_utf8_length(utf16.data(), utf16.length()); in utf16ToUtf8() 445 utf16_to_utf8(utf16.data(), utf16.length(), &*utf8.begin()); in utf16ToUtf8()
|
/frameworks/base/core/jni/ |
D | android_database_CursorWindow.cpp | 226 String16 utf16(value, sizeIncludingNull - 1); in nativeGetString() local 227 return env->NewString(reinterpret_cast<const jchar*>(utf16.string()), utf16.size()); in nativeGetString()
|
/frameworks/minikin/tests/ |
D | GraphemeBreakTests.cpp | 32 TEST(GraphemeBreak, utf16) { in TEST() argument
|