/frameworks/minikin/include/minikin/ |
D | SystemFonts.h | 32 static std::shared_ptr<FontCollection> findFontCollection(const std::string& familyName) { in findFontCollection() 38 const std::shared_ptr<FontCollection>& fc) { in registerFallback() 43 static void registerDefault(const std::shared_ptr<FontCollection>& fc) { in registerDefault() 52 std::shared_ptr<FontCollection> findFontCollectionInternal(const std::string& familyName) const; 54 const std::shared_ptr<FontCollection>& fc) { in registerFallbackInternal() 58 void registerDefaultInternal(const std::shared_ptr<FontCollection>& fc) { in registerDefaultInternal() 67 std::map<std::string, std::shared_ptr<FontCollection>> mSystemFallbacks; 68 std::shared_ptr<FontCollection> mDefaultFallback;
|
D | FontCollection.h | 33 class FontCollection { 35 explicit FontCollection(const std::vector<std::shared_ptr<FontFamily>>& typefaces); 36 explicit FontCollection(std::shared_ptr<FontFamily>&& typeface); 64 std::shared_ptr<FontCollection> createCollectionWithVariation(
|
D | MinikinPaint.h | 30 class FontCollection; variable 50 MinikinPaint(const std::shared_ptr<FontCollection>& font) in MinikinPaint() 74 std::shared_ptr<FontCollection> font;
|
/frameworks/minikin/libs/minikin/ |
D | FontCollection.cpp | 46 FontCollection::FontCollection(std::shared_ptr<FontFamily>&& typeface) : mMaxChar(0) { in FontCollection() function in minikin::FontCollection 52 FontCollection::FontCollection(const vector<std::shared_ptr<FontFamily>>& typefaces) : mMaxChar(0) { in FontCollection() function in minikin::FontCollection 56 void FontCollection::init(const vector<std::shared_ptr<FontFamily>>& typefaces) { in init() 126 uint32_t FontCollection::calcFamilyScore(uint32_t ch, uint32_t vs, FamilyVariant variant, in calcFamilyScore() 154 uint32_t FontCollection::calcCoverageScore(uint32_t ch, uint32_t vs, uint32_t localeListId, in calcCoverageScore() 215 uint32_t FontCollection::calcLocaleMatchingScore(uint32_t userLocaleListId, in calcLocaleMatchingScore() 231 uint32_t FontCollection::calcVariantMatchingScore(FamilyVariant variant, in calcVariantMatchingScore() 252 const std::shared_ptr<FontFamily>& FontCollection::getFamilyForChar(uint32_t ch, uint32_t vs, in getFamilyForChar() 337 bool FontCollection::hasVariationSelector(uint32_t baseCodepoint, in hasVariationSelector() 371 std::vector<FontCollection::Run> FontCollection::itemize(U16StringPiece text, FontStyle style, in itemize() [all …]
|
D | SystemFonts.cpp | 28 std::shared_ptr<FontCollection> SystemFonts::findFontCollectionInternal( in findFontCollectionInternal()
|
D | Android.bp | 29 "FontCollection.cpp",
|
D | LayoutCore.cpp | 358 std::vector<FontCollection::Run> items = paint.font->itemize( in LayoutPiece() 386 FontCollection::Run& run = items[run_ix]; in LayoutPiece()
|
/frameworks/minikin/tests/unittest/ |
D | FontCollectionTest.cpp | 43 void expectVSGlyphs(const FontCollection* fc, uint32_t codepoint, const std::set<uint32_t>& vsSet) { in expectVSGlyphs() 129 std::shared_ptr<FontCollection> multiAxisFc = buildFontCollection(kMultiAxisFont); in TEST() 130 std::shared_ptr<FontCollection> noAxisFc = buildFontCollection(kNoAxisFont); in TEST() 141 std::shared_ptr<FontCollection> newFc( in TEST() 152 std::shared_ptr<FontCollection> newFc( in TEST() 169 std::shared_ptr<FontCollection> newFc( in TEST()
|
D | SystemFontsTest.cpp | 33 std::shared_ptr<FontCollection> findFontCollection(const std::string& familyName) const { in findFontCollection() 38 const std::shared_ptr<FontCollection>& fc) { in registerFallback() 42 void registerDefault(const std::shared_ptr<FontCollection>& fc) { registerDefaultInternal(fc); } in registerDefault()
|
D | FontCollectionItemizeTest.cpp | 59 std::vector<FontCollection::Run> itemize(const std::shared_ptr<FontCollection>& collection, in itemize() 86 std::vector<FontCollection::Run> itemize(const std::shared_ptr<FontCollection>& collection, in itemize() 92 std::vector<FontCollection::Run> itemize(const std::shared_ptr<FontCollection>& collection, in itemize() 98 std::vector<FontCollection::Run> itemize(const std::shared_ptr<FontCollection>& collection, in itemize() 104 std::string getFontName(const FontCollection::Run& run) { in getFontName() 735 std::shared_ptr<FontCollection> collection(new FontCollection(families)); in TEST() 952 std::shared_ptr<FontCollection> collection(new FontCollection(families)); in TEST() 1518 std::shared_ptr<FontCollection> collection(new FontCollection(families)); in TEST() 1519 std::shared_ptr<FontCollection> reversedCollection(new FontCollection(reversedFamilies)); in TEST() 1541 std::shared_ptr<FontCollection> collection(new FontCollection(families)); in TEST() [all …]
|
D | LayoutCoreTest.cpp | 41 auto fc = std::make_shared<FontCollection>(families); in buildLayout() 53 auto fc = std::make_shared<FontCollection>(families); in buildLayout()
|
D | LayoutTest.cpp | 48 std::shared_ptr<FontCollection> mCollection;
|
D | GreedyLineBreakerTest.cpp | 78 auto fc = std::make_shared<FontCollection>(families); in doLineBreak()
|
D | OptimalLineBreakerTest.cpp | 79 auto fc = std::make_shared<FontCollection>(families); in doLineBreak()
|
/frameworks/minikin/tests/perftests/ |
D | FontCollection.cpp | 39 std::make_shared<FontCollection>(families); in BM_FontCollection_construct() 47 std::make_shared<FontCollection>(getFontFamilies(SYSTEM_FONT_PATH, SYSTEM_FONT_XML)); in BM_FontCollection_hasVariationSelector() 84 std::make_shared<FontCollection>(getFontFamilies(SYSTEM_FONT_PATH, SYSTEM_FONT_XML)); in BM_FontCollection_itemize() 93 std::vector<FontCollection::Run> result; in BM_FontCollection_itemize()
|
D | Android.bp | 26 "FontCollection.cpp",
|
/frameworks/minikin/tests/util/ |
D | FontTestUtils.h | 42 inline std::shared_ptr<FontCollection> buildFontCollectionFromXml(const std::string& xmlPath) { in buildFontCollectionFromXml() 43 return std::make_shared<FontCollection>( in buildFontCollectionFromXml() 51 std::shared_ptr<FontCollection> buildFontCollection(const std::string& filePath);
|
D | FontTestUtils.cpp | 121 std::shared_ptr<FontCollection> buildFontCollection(const std::string& filePath) { in buildFontCollection() 122 return std::make_shared<FontCollection>(buildFontFamily(filePath)); in buildFontCollection()
|
/frameworks/base/libs/hwui/hwui/ |
D | Typeface.cpp | 128 result->fFontCollection.reset(new minikin::FontCollection(families)); in createFromFamilies() 191 std::shared_ptr<minikin::FontCollection> collection = std::make_shared<minikin::FontCollection>( in setRobotoTypefaceForTest()
|
D | Typeface.h | 35 std::shared_ptr<minikin::FontCollection> fFontCollection;
|
/frameworks/base/native/android/ |
D | system_fonts.cpp | 247 std::shared_ptr<minikin::FontCollection> fc = in AFontMatcher_match() 249 std::vector<minikin::FontCollection::Run> runs = fc->itemize( in AFontMatcher_match()
|