Searched refs:utf8ToUtf16 (Results 1 – 16 of 16) sorted by relevance
/frameworks/minikin/tests/unittest/ |
D | LayoutTest.cpp | 69 text = utf8ToUtf16("oneword"); in TEST_F() 88 text = utf8ToUtf16("two words"); in TEST_F() 107 text = utf8ToUtf16("three words test"); in TEST_F() 126 text = utf8ToUtf16("two spaces"); in TEST_F() 157 text = utf8ToUtf16("oneword"); in TEST_F() 176 text = utf8ToUtf16("two words"); in TEST_F() 196 text = utf8ToUtf16("three words test"); in TEST_F() 217 text = utf8ToUtf16("two spaces"); in TEST_F() 251 text = utf8ToUtf16("oneword"); in TEST_F() 270 text = utf8ToUtf16("two words"); in TEST_F() [all …]
|
D | BidiUtilsTest.cpp | 33 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 …]
|
D | BoundsCacheTest.cpp | 50 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()
|
D | LayoutCacheTest.cpp | 48 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()
|
D | MeasuredTextTest.cpp | 64 auto text = utf8ToUtf16("Hello, World!"); in TEST() 84 auto text = utf8ToUtf16("\u0028"); // U+0028 has 1em in LTR, 3em in RTL. in TEST() 100 auto text = utf8ToUtf16("\u0028"); // U+0028 has 1em in LTR, 3em in RTL. in TEST() 116 auto text = utf8ToUtf16("Hello, World!"); in TEST() 144 auto text = utf8ToUtf16("Hello, World!"); in TEST() 164 auto text = utf8ToUtf16("Hello, World!"); in TEST() 192 auto text = utf8ToUtf16("Hello, World!"); in TEST() 273 auto text = utf8ToUtf16("Hello, World!"); in TEST() 362 auto text = utf8ToUtf16("Hello, World!"); in TEST() 443 auto text = utf8ToUtf16("Hello, World!"); in TEST() [all …]
|
D | GreedyLineBreakerTest.cpp | 107 const std::vector<uint16_t> textBuffer = utf8ToUtf16("8888888888888888888"); in TEST_F() 127 const std::vector<uint16_t> textBuf = utf8ToUtf16("This is an example text."); in TEST_F() 334 const std::vector<uint16_t> textBuf = utf8ToUtf16("Hyphenation is hyphenation."); in TEST_F() 609 const std::vector<uint16_t> textBuf = utf8ToUtf16("czerwono-niebieska"); in TEST_F() 662 const auto textBuf = utf8ToUtf16(""); in TEST_F() 670 const auto textBuf = utf8ToUtf16("A"); in TEST_F() 680 const auto textBuf = utf8ToUtf16("AB"); in TEST_F() 700 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F() 721 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F() 749 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F() [all …]
|
D | OptimalLineBreakerTest.cpp | 130 const std::vector<uint16_t> textBuf = utf8ToUtf16("This is an example text."); in TEST_F() 678 const std::vector<uint16_t> textBuf = utf8ToUtf16("czerwono-niebieska"); in TEST_F() 723 const auto textBuf = utf8ToUtf16(""); in TEST_F() 728 const auto textBuf = utf8ToUtf16("A"); in TEST_F() 735 const auto textBuf = utf8ToUtf16("AB"); in TEST_F() 753 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F() 772 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F() 800 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F() 850 const auto textBuf = utf8ToUtf16("This is an url: http://a.b"); in TEST_F() 872 const auto textBuf = utf8ToUtf16("This is an email: a@example.com"); in TEST_F() [all …]
|
D | LayoutSplitterTest.cpp | 30 auto utf16 = utf8ToUtf16(text); in parseTestString() 49 auto utf16 = utf8ToUtf16(text); in parseExpectString()
|
D | LineBreakerTestHelper.h | 127 std::vector<uint16_t> u16Str = utf8ToUtf16(expected[i].mLineContent); in sameLineBreak()
|
D | LayoutCoreTest.cpp | 31 auto utf16 = utf8ToUtf16(text); in buildLayout()
|
D | WordBreakerTests.cpp | 541 std::vector<uint16_t> buf = utf8ToUtf16("Hello http://abc/d.html World"); in TEST()
|
/frameworks/minikin/tests/perftests/ |
D | Hyphenator.cpp | 32 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()
|
D | WordBreaker.cpp | 32 std::vector<uint16_t> text = utf8ToUtf16(kLoremIpsum); in BM_WordBreaker_English()
|
/frameworks/av/media/mtp/ |
D | MtpStringBuffer.cpp | 45 static std::u16string utf8ToUtf16(std::string input_str) { in utf8ToUtf16() function 106 std::u16string src16 = utf8ToUtf16(mString); in writeToPacket()
|
/frameworks/minikin/tests/util/ |
D | UnicodeUtils.h | 32 std::vector<uint16_t> utf8ToUtf16(const std::string& text);
|
D | UnicodeUtils.cpp | 105 std::vector<uint16_t> utf8ToUtf16(const std::string& text) { in utf8ToUtf16() function
|