Home
last modified time | relevance | path

Searched refs:FontLanguage (Results 1 – 8 of 8) sorted by relevance

/frameworks/minikin/libs/minikin/
DFontLanguage.h35 struct FontLanguage { struct
38 FontLanguage() : mScript(0ul), mLanguage(0ul), mSubScriptBits(0ul) {} in FontLanguage() argument
41 FontLanguage(const char* buf, size_t length);
43 bool operator==(const FontLanguage other) const {
47 bool operator!=(const FontLanguage other) const {
54 bool isEqualScript(const FontLanguage& other) const; argument
101 FontLanguages(std::vector<FontLanguage>&& languages); argument
107 const FontLanguage& operator[] (size_t n) const { return mLanguages[n]; }
110 friend struct FontLanguage; // for calcScoreFor
112 std::vector<FontLanguage> mLanguages;
DFontLanguage.cpp31 FontLanguage::FontLanguage(const char* buf, size_t length) : FontLanguage() { in FontLanguage() function in android::FontLanguage
61 uint8_t FontLanguage::scriptToSubScriptBits(uint32_t script) { in scriptToSubScriptBits()
105 std::string FontLanguage::getString() const { in getString()
125 bool FontLanguage::isEqualScript(const FontLanguage& other) const { in isEqualScript()
130 bool FontLanguage::supportsScript(uint8_t providedBits, uint8_t requestedBits) { in supportsScript()
134 bool FontLanguage::supportsHbScript(hb_script_t script) const { in supportsHbScript()
141 int FontLanguage::calcScoreFor(const FontLanguages& supported) const { in calcScoreFor()
167 FontLanguages::FontLanguages(std::vector<FontLanguage>&& languages) in FontLanguages()
173 const FontLanguage& lang = mLanguages[0]; in FontLanguages()
DFontLanguageListCache.cpp79 static std::vector<FontLanguage> parseLanguageList(const std::string& input) { in parseLanguageList()
80 std::vector<FontLanguage> result; in parseLanguageList()
91 FontLanguage lang(langTag, length); in parseLanguageList()
104 FontLanguage lang(langTag, length); in parseLanguageList()
DAndroid.mk37 FontLanguage.cpp \
DLayout.cpp780 const FontLanguage* hbLanguage = &langList[0]; in doLayoutRun()
/frameworks/minikin/tests/
DFontFamilyTest.cpp39 static FontLanguage createFontLanguage(const std::string& input) { in createFontLanguage()
46 FontLanguage defaultLang; in TEST_F()
47 FontLanguage emptyLang("", 0); in TEST_F()
48 FontLanguage english = createFontLanguage("en"); in TEST_F()
49 FontLanguage french = createFontLanguage("fr"); in TEST_F()
50 FontLanguage und = createFontLanguage("und"); in TEST_F()
51 FontLanguage undZsye = createFontLanguage("und-Zsye"); in TEST_F()
219 FontLanguage english = createFontLanguage("en"); in TEST_F()
224 FontLanguage french = createFontLanguage("fr"); in TEST_F()
238 FontLanguage english = createFontLanguage("en"); in TEST_F()
[all …]
DFontLanguageListCacheTest.cpp56 FontLanguage english = FontLanguageListCache::getById(enLangId)[0]; in TEST_F()
57 FontLanguage japanese = FontLanguageListCache::getById(jpLangId)[0]; in TEST_F()
DFontCollectionItemizeTest.cpp31 using android::FontLanguage;