Home
last modified time | relevance | path

Searched refs:utf8ToUtf16 (Results 1 – 16 of 16) sorted by relevance

/aosp12/frameworks/minikin/tests/unittest/
H A DLayoutTest.cpp69 text = utf8ToUtf16("oneword"); in TEST_F()
88 text = utf8ToUtf16("two words"); in TEST_F()
157 text = utf8ToUtf16("oneword"); in TEST_F()
176 text = utf8ToUtf16("two words"); in TEST_F()
251 text = utf8ToUtf16("oneword"); in TEST_F()
270 text = utf8ToUtf16("two words"); in TEST_F()
393 text = utf8ToUtf16("oneword"); in TEST_F()
401 text = utf8ToUtf16("oneword"); in TEST_F()
409 text = utf8ToUtf16("oneword"); in TEST_F()
417 text = utf8ToUtf16("oneword"); in TEST_F()
[all …]
H A DBidiUtilsTest.cpp33 auto text = utf8ToUtf16(LTR_1); in TEST()
92 auto text = utf8ToUtf16(RTL_1); in TEST()
152 uint32_t ltrLength = utf8ToUtf16(LTR_1).size(); in TEST()
153 uint32_t rtlLength = utf8ToUtf16(RTL_1).size(); in TEST()
240 uint32_t ltrLength = utf8ToUtf16(LTR_1).size(); in TEST()
241 uint32_t rtlLength = utf8ToUtf16(RTL_1).size(); in TEST()
328 uint32_t ltr1Length = utf8ToUtf16(LTR_1).size(); in TEST()
329 uint32_t ltr2Length = utf8ToUtf16(LTR_2).size(); in TEST()
330 uint32_t rtlLength = utf8ToUtf16(RTL_1).size(); in TEST()
433 uint32_t ltrLength = utf8ToUtf16(LTR_1).size(); in TEST()
[all …]
H A DBoundsCacheTest.cpp50 auto text = utf8ToUtf16("android"); in TEST()
69 auto text1 = utf8ToUtf16("android"); in TEST()
70 auto text2 = utf8ToUtf16("αβγδζ"); in TEST()
148 auto text = utf8ToUtf16("android"); in TEST()
159 auto text1 = utf8ToUtf16(std::string(10, c)); in TEST()
H A DLayoutCacheTest.cpp48 auto text = utf8ToUtf16("android"); in TEST()
66 auto text1 = utf8ToUtf16("android"); in TEST()
67 auto text2 = utf8ToUtf16("ANDROID"); in TEST()
253 auto text = utf8ToUtf16("android"); in TEST()
264 auto text1 = utf8ToUtf16(std::string(10, c)); in TEST()
277 auto text = utf8ToUtf16(std::string(130, 'a')); in TEST()
H A DMeasuredTextTest.cpp62 auto text = utf8ToUtf16("Hello, World!"); in TEST()
80 auto text = utf8ToUtf16("\u0028"); // U+0028 has 1em in LTR, 3em in RTL. in TEST()
94 auto text = utf8ToUtf16("\u0028"); // U+0028 has 1em in LTR, 3em in RTL. in TEST()
108 auto text = utf8ToUtf16("Hello, World!"); in TEST()
133 auto text = utf8ToUtf16("Hello, World!"); in TEST()
151 auto text = utf8ToUtf16("Hello, World!"); in TEST()
176 auto text = utf8ToUtf16("Hello, World!"); in TEST()
255 auto text = utf8ToUtf16("Hello, World!"); in TEST()
341 auto text = utf8ToUtf16("Hello, World!"); in TEST()
420 auto text = utf8ToUtf16("Hello, World!"); in TEST()
H A DGreedyLineBreakerTest.cpp660 const auto textBuf = utf8ToUtf16(""); in TEST_F()
668 const auto textBuf = utf8ToUtf16("A"); in TEST_F()
678 const auto textBuf = utf8ToUtf16("AB"); in TEST_F()
698 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F()
719 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F()
747 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F()
799 const auto textBuf = utf8ToUtf16("This is an url: http://a.b"); in TEST_F()
832 const auto textBuf = utf8ToUtf16("This is an url: http://a.b"); in TEST_F()
888 const auto textBuf = utf8ToUtf16("a \tb"); in TEST_F()
1150 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F()
[all …]
H A DOptimalLineBreakerTest.cpp899 const auto textBuf = utf8ToUtf16(""); in TEST_F()
907 const auto textBuf = utf8ToUtf16("A"); in TEST_F()
917 const auto textBuf = utf8ToUtf16("AB"); in TEST_F()
938 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F()
957 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F()
985 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F()
1035 const auto textBuf = utf8ToUtf16("This is an url: http://a.b"); in TEST_F()
1107 const auto textBuf = utf8ToUtf16("This is an url: http://a.b"); in TEST_F()
1417 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F()
1505 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F()
[all …]
H A DLayoutSplitterTest.cpp30 auto utf16 = utf8ToUtf16(text); in parseTestString()
49 auto utf16 = utf8ToUtf16(text); in parseExpectString()
H A DLineBreakerTestHelper.h119 std::vector<uint16_t> u16Str = utf8ToUtf16(expected[i].mLineContent); in sameLineBreak()
H A DLayoutCoreTest.cpp31 auto utf16 = utf8ToUtf16(text); in buildLayout()
H A DWordBreakerTests.cpp486 std::vector<uint16_t> buf = utf8ToUtf16("Hello http://abc/d.html World"); in TEST()
/aosp12/frameworks/minikin/tests/perftests/
H A DHyphenator.cpp32 std::vector<uint16_t> word = utf8ToUtf16("hyphen"); in BM_Hyphenator_short_word()
45 std::vector<uint16_t> word = utf8ToUtf16("Pneumonoultramicroscopicsilicovolcanoconiosis"); in BM_Hyphenator_long_word()
H A DWordBreaker.cpp32 std::vector<uint16_t> text = utf8ToUtf16(kLoremIpsum); in BM_WordBreaker_English()
/aosp12/frameworks/av/media/mtp/
H A DMtpStringBuffer.cpp45 static std::u16string utf8ToUtf16(std::string input_str) { in utf8ToUtf16() function
106 std::u16string src16 = utf8ToUtf16(mString); in writeToPacket()
/aosp12/frameworks/minikin/tests/util/
H A DUnicodeUtils.h32 std::vector<uint16_t> utf8ToUtf16(const std::string& text);
H A DUnicodeUtils.cpp105 std::vector<uint16_t> utf8ToUtf16(const std::string& text) { in utf8ToUtf16() function