Home
last modified time | relevance | path

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

/frameworks/minikin/tests/unittest/
DLayoutTest.cpp49 auto utf16 = utf8ToUtf16(text); in doLayout()
59 auto utf16 = utf8ToUtf16(text); in doLayoutWithPrecomputedPieces()
93 text = utf8ToUtf16("oneword"); in TEST_F()
113 text = utf8ToUtf16("two words"); in TEST_F()
133 text = utf8ToUtf16("three words test"); in TEST_F()
153 text = utf8ToUtf16("two spaces"); in TEST_F()
189 text = utf8ToUtf16("oneword"); in TEST_F()
209 text = utf8ToUtf16("two words"); in TEST_F()
233 text = utf8ToUtf16("three words test"); in TEST_F()
255 text = utf8ToUtf16("two spaces"); in TEST_F()
[all …]
DBidiUtilsTest.cpp33 auto text = utf8ToUtf16(LTR_1); in TEST()
92 auto text = utf8ToUtf16(RTL_1); in TEST()
151 auto text = utf8ToUtf16(std::string(LTR_1) + RTL_1); in TEST()
152 uint32_t ltrLength = utf8ToUtf16(LTR_1).size(); in TEST()
153 uint32_t rtlLength = utf8ToUtf16(RTL_1).size(); in TEST()
239 auto text = utf8ToUtf16(std::string(RTL_1) + LTR_1); in TEST()
240 uint32_t ltrLength = utf8ToUtf16(LTR_1).size(); in TEST()
241 uint32_t rtlLength = utf8ToUtf16(RTL_1).size(); in TEST()
327 auto text = utf8ToUtf16(std::string(LTR_1) + RTL_1 + LTR_2); in TEST()
328 uint32_t ltr1Length = utf8ToUtf16(LTR_1).size(); in TEST()
[all …]
DGreedyLineBreakerTest.cpp83 const std::vector<uint16_t> textBuf = utf8ToUtf16("This is an example text."); in TEST_F()
291 const std::vector<uint16_t> textBuf = utf8ToUtf16("Hyphenation is hyphenation."); in TEST_F()
565 const std::vector<uint16_t> textBuf = utf8ToUtf16("czerwono-niebieska"); in TEST_F()
619 const auto textBuf = utf8ToUtf16(""); in TEST_F()
627 const auto textBuf = utf8ToUtf16("A"); in TEST_F()
637 const auto textBuf = utf8ToUtf16("AB"); in TEST_F()
657 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F()
668 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F()
687 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F()
736 const auto textBuf = utf8ToUtf16("This is an url: http://a.b"); in TEST_F()
[all …]
DLayoutCacheTest.cpp47 auto text = utf8ToUtf16("android"); in TEST()
65 auto text1 = utf8ToUtf16("android"); in TEST()
66 auto text2 = utf8ToUtf16("ANDROID"); in TEST()
252 auto text = utf8ToUtf16("android"); in TEST()
263 auto text1 = utf8ToUtf16(std::string(c, 10)); in TEST()
DOptimalLineBreakerTest.cpp92 const std::vector<uint16_t> textBuf = utf8ToUtf16("This is an example text."); in TEST_F()
828 const std::vector<uint16_t> textBuf = utf8ToUtf16("czerwono-niebieska"); in TEST_F()
886 const auto textBuf = utf8ToUtf16(""); in TEST_F()
895 const auto textBuf = utf8ToUtf16("A"); in TEST_F()
906 const auto textBuf = utf8ToUtf16("AB"); in TEST_F()
928 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F()
940 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F()
961 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F()
1008 const auto textBuf = utf8ToUtf16("This is an url: http://a.b"); in TEST_F()
1041 const auto textBuf = utf8ToUtf16("This is an email: a@example.com"); in TEST_F()
[all …]
DLineBreakerTestHelper.h106 std::vector<uint16_t> u16Str = utf8ToUtf16(expected[i].mLineContent); in sameLineBreak()
DWordBreakerTests.cpp488 std::vector<uint16_t> buf = utf8ToUtf16("Hello http://abc/d.html World"); in TEST()
/frameworks/minikin/tests/perftests/
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()
DWordBreaker.cpp32 std::vector<uint16_t> text = utf8ToUtf16(kLoremIpsum); in BM_WordBreaker_English()
/frameworks/av/media/mtp/
DMtpStringBuffer.cpp35 static std::u16string utf8ToUtf16(std::string input_str) { in utf8ToUtf16() function
89 std::u16string src16 = utf8ToUtf16(mString); in writeToPacket()
/frameworks/minikin/tests/util/
DUnicodeUtils.h32 std::vector<uint16_t> utf8ToUtf16(const std::string& text);
DUnicodeUtils.cpp105 std::vector<uint16_t> utf8ToUtf16(const std::string& text) { in utf8ToUtf16() function