Searched refs:utf8ToUtf16 (Results 1 – 17 of 17) 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 | GreedyLineBreakerTest.cpp | 245 const std::vector<uint16_t> textBuffer = utf8ToUtf16("8888888888888888888"); in TEST_F() 266 const std::vector<uint16_t> textBuf = utf8ToUtf16("This is an example text."); in TEST_F() 473 const std::vector<uint16_t> textBuf = utf8ToUtf16("Hyphenation is hyphenation."); in TEST_F() 748 const std::vector<uint16_t> textBuf = utf8ToUtf16("czerwono-niebieska"); in TEST_F() 801 const auto textBuf = utf8ToUtf16(""); in TEST_F() 809 const auto textBuf = utf8ToUtf16("A"); in TEST_F() 819 const auto textBuf = utf8ToUtf16("AB"); in TEST_F() 839 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F() 860 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F() 888 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F() [all …]
|
D | LayoutCacheTest.cpp | 54 auto text = utf8ToUtf16("android"); in TEST() 72 auto text1 = utf8ToUtf16("android"); in TEST() 73 auto text2 = utf8ToUtf16("ANDROID"); in TEST() 261 auto text = utf8ToUtf16("android"); in TEST() 272 auto text1 = utf8ToUtf16(std::string(10, c)); in TEST() 285 auto text = utf8ToUtf16(std::string(130, 'a')); in TEST() 299 auto text1 = utf8ToUtf16("android"); in TEST()
|
D | OptimalLineBreakerTest.cpp | 229 const std::vector<uint16_t> textBuf = utf8ToUtf16("This is an example text."); in TEST_F() 777 const std::vector<uint16_t> textBuf = utf8ToUtf16("czerwono-niebieska"); in TEST_F() 822 const auto textBuf = utf8ToUtf16(""); in TEST_F() 827 const auto textBuf = utf8ToUtf16("A"); in TEST_F() 834 const auto textBuf = utf8ToUtf16("AB"); in TEST_F() 852 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F() 871 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F() 899 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F() 949 const auto textBuf = utf8ToUtf16("This is an url: http://a.b"); in TEST_F() 971 const auto textBuf = utf8ToUtf16("This is an email: a@example.com"); in TEST_F() [all …]
|
D | MeasuredTextTest.cpp | 66 auto text = utf8ToUtf16("Hello, World!"); in TEST() 88 auto text = utf8ToUtf16("\u0028"); // U+0028 has 1em in LTR, 3em in RTL. in TEST() 106 auto text = utf8ToUtf16("\u0028"); // U+0028 has 1em in LTR, 3em in RTL. in TEST() 124 auto text = utf8ToUtf16("Hello, World!"); in TEST() 162 auto text = utf8ToUtf16("Hello, World!"); in TEST() 184 auto text = utf8ToUtf16("Hello, World!"); in TEST() 215 auto text = utf8ToUtf16("Hello, World!"); in TEST() 298 auto text = utf8ToUtf16("Hello, World!"); in TEST() 389 auto text = utf8ToUtf16("Hello, World!"); in TEST() 472 auto text = utf8ToUtf16("Hello, World!"); in TEST() [all …]
|
D | LayoutSplitterTest.cpp | 30 auto utf16 = utf8ToUtf16(text); in parseTestString() 49 auto utf16 = utf8ToUtf16(text); in parseExpectString()
|
D | LayoutCoreTest.cpp | 31 auto utf16 = utf8ToUtf16(text); in buildLayout() 38 auto utf16 = utf8ToUtf16(text); in buildLayout() 53 auto utf16 = utf8ToUtf16(text); in buildLayoutAndBounds()
|
D | ScriptUtilsTest.cpp | 54 std::vector<uint16_t> utf16 = utf8ToUtf16(text); in splitByScript()
|
D | LineBreakerTestHelper.h | 135 std::vector<uint16_t> u16Str = utf8ToUtf16(expected[i].mLineContent); in sameLineBreak()
|
D | LayoutLetterSpacingTest.cpp | 50 std::vector<uint16_t> text = utf8ToUtf16(utf8); in LayoutTest()
|
D | WordBreakerTests.cpp | 539 std::vector<uint16_t> buf = utf8ToUtf16("Hello http://abc/d.html World"); in TEST()
|
/frameworks/minikin/tests/perftests/ |
D | Hyphenator.cpp | 33 std::vector<uint16_t> word = utf8ToUtf16("hyphen"); in BM_Hyphenator_short_word() 47 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 | 106 std::vector<uint16_t> utf8ToUtf16(const std::string& text) { in utf8ToUtf16() function
|