Home
last modified time | relevance | path

Searched refs:FontCollection (Results 1 – 22 of 22) sorted by relevance

/aosp12/frameworks/minikin/tests/unittest/
H A DFontCollectionTest.cpp60 void expectVSGlyphsForVsTestFont(const FontCollection* fc) { in expectVSGlyphsForVsTestFont()
143 std::shared_ptr<FontCollection> newFc( in TEST()
154 std::shared_ptr<FontCollection> newFc( in TEST()
171 std::shared_ptr<FontCollection> newFc( in TEST()
207 auto fc1 = std::make_shared<FontCollection>(families); in TEST()
208 auto fc2 = std::make_shared<FontCollection>(families); in TEST()
222 std::vector<std::shared_ptr<FontCollection>> original( in TEST()
238 using Builder = FontCollection::FamilyMatchResult::Builder; in TEST()
250 using Builder = FontCollection::FamilyMatchResult::Builder; in TEST()
269 auto b = FontCollection::FamilyMatchResult::Builder(); in TEST()
[all …]
H A DSystemFontsTest.cpp34 std::shared_ptr<FontCollection> findFontCollection(const std::string& familyName) { in findFontCollection()
38 void addFontMap(std::shared_ptr<FontCollection>&& collections) { in addFontMap()
47 const std::shared_ptr<FontCollection>& fc) { in registerFallback()
51 void registerDefault(const std::shared_ptr<FontCollection>& fc) { registerDefaultInternal(fc); } in registerDefault()
98 auto fc1 = std::make_shared<FontCollection>(std::move(fc1Families)); in TEST()
99 auto fc2 = std::make_shared<FontCollection>(std::move(fc2Families)); in TEST()
H A DFontCollectionItemizeTest.cpp66 std::vector<Run> itemize(const std::shared_ptr<FontCollection>& collection, const char* str, in itemize()
97 std::vector<Run> itemize(const std::shared_ptr<FontCollection>& collection, const char* str, in itemize()
744 std::shared_ptr<FontCollection> collection(new FontCollection(families)); in TEST()
961 std::shared_ptr<FontCollection> collection(new FontCollection(families)); in TEST()
1528 std::shared_ptr<FontCollection> collection(new FontCollection(families)); in TEST()
1529 std::shared_ptr<FontCollection> reversedCollection(new FontCollection(reversedFamilies)); in TEST()
1551 std::shared_ptr<FontCollection> collection(new FontCollection(families)); in TEST()
1552 std::shared_ptr<FontCollection> reversedCollection(new FontCollection(reversedFamilies)); in TEST()
1570 auto collection = std::make_shared<FontCollection>(families); in TEST()
1622 auto collection = std::make_shared<FontCollection>(families); in TEST()
[all …]
H A DLayoutCoreTest.cpp41 auto fc = std::make_shared<FontCollection>(families); in buildLayout()
53 auto fc = std::make_shared<FontCollection>(families); in buildLayout()
H A DLayoutTest.cpp55 std::shared_ptr<FontCollection> mCollection;
H A DGreedyLineBreakerTest.cpp78 auto fc = std::make_shared<FontCollection>(families); in doLineBreak()
100 auto fc = std::make_shared<FontCollection>(families); in TEST_F()
H A DOptimalLineBreakerTest.cpp79 auto fc = std::make_shared<FontCollection>(families); in doLineBreak()
2088 auto fc = std::make_shared<FontCollection>(families); in TEST_F()
/aosp12/frameworks/minikin/include/minikin/
H A DSystemFonts.h33 static std::shared_ptr<FontCollection> findFontCollection(const std::string& familyName) { in findFontCollection()
38 const std::shared_ptr<FontCollection>& fc) { in registerFallback()
42 static void registerDefault(const std::shared_ptr<FontCollection>& fc) { in registerDefault()
48 static void addFontMap(std::shared_ptr<FontCollection>&& collections) { in addFontMap()
54 std::function<void(const std::vector<std::shared_ptr<FontCollection>>&)> func) { in getFontMap()
69 const std::shared_ptr<FontCollection>& fc) { in registerFallbackInternal()
74 void registerDefaultInternal(const std::shared_ptr<FontCollection>& fc) { in registerDefaultInternal()
79 void addFontMapInternal(std::shared_ptr<FontCollection>&& collections) { in addFontMapInternal()
85 std::function<void(const std::vector<std::shared_ptr<FontCollection>>&)> func) { in getFontMapInternal()
104 std::shared_ptr<FontCollection> mDefaultFallback GUARDED_BY(mMutex);
[all …]
H A DFontCollection.h38 class FontCollection {
40 explicit FontCollection(const std::vector<std::shared_ptr<FontFamily>>& typefaces);
41 explicit FontCollection(std::shared_ptr<FontFamily>&& typeface);
44 static std::vector<std::shared_ptr<FontCollection>> readVector(BufferReader* reader) { in readVector()
52 std::vector<std::shared_ptr<FontCollection>> fontCollections; in readVector()
55 fontCollections.emplace_back(new FontCollection(reader, allFontFamilies)); in readVector()
62 const std::vector<std::shared_ptr<FontCollection>>& fontCollections) { in writeVector()
191 std::shared_ptr<FontCollection> createCollectionWithVariation(
203 FontCollection(BufferReader* reader,
211 const std::vector<std::shared_ptr<FontCollection>>& fontCollections,
H A DMinikinPaint.h30 class FontCollection; variable
50 MinikinPaint(const std::shared_ptr<FontCollection>& font) in MinikinPaint()
74 std::shared_ptr<FontCollection> font;
/aosp12/frameworks/minikin/libs/minikin/
H A DFontCollection.cpp64 FontCollection::FontCollection(std::shared_ptr<FontFamily>&& typeface) : mMaxChar(0) { in FontCollection() function in minikin::FontCollection
70 FontCollection::FontCollection(const vector<std::shared_ptr<FontFamily>>& typefaces) : mMaxChar(0) { in FontCollection() function in minikin::FontCollection
127 FontCollection::FontCollection(BufferReader* reader, in FontCollection() function in minikin::FontCollection
176 void FontCollection::collectAllFontFamilies( in collectAllFontFamilies()
337 FontCollection::FamilyMatchResult FontCollection::getFamilyForChar(uint32_t ch, uint32_t vs, in getFamilyForChar()
460 FontCollection::FamilyMatchResult FontCollection::FamilyMatchResult::intersect( in intersect()
461 FontCollection::FamilyMatchResult l, FontCollection::FamilyMatchResult r) { in intersect()
483 std::vector<FontCollection::Run> FontCollection::itemize(U16StringPiece text, FontStyle, in itemize()
653 std::shared_ptr<FontCollection> FontCollection::createCollectionWithVariation( in createCollectionWithVariation()
681 return std::shared_ptr<FontCollection>(new FontCollection(families)); in createCollectionWithVariation()
[all …]
H A DSystemFonts.cpp28 std::shared_ptr<FontCollection> SystemFonts::findFontCollectionInternal( in findFontCollectionInternal()
H A DAndroid.bp35 "FontCollection.cpp",
H A DLayoutCore.cpp359 std::vector<FontCollection::Run> items = in LayoutPiece()
387 FontCollection::Run& run = items[run_ix]; in LayoutPiece()
/aosp12/frameworks/minikin/tests/perftests/
H A DFontCollection.cpp39 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()
H A DAndroid.bp30 "FontCollection.cpp",
/aosp12/frameworks/minikin/tests/util/
H A DFontTestUtils.h42 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);
H A DFontTestUtils.cpp121 std::shared_ptr<FontCollection> buildFontCollection(const std::string& filePath) { in buildFontCollection()
122 return std::make_shared<FontCollection>(buildFontFamily(filePath)); in buildFontCollection()
/aosp12/frameworks/base/libs/hwui/jni/
H A DTypeface.cpp305 std::vector<std::shared_ptr<minikin::FontCollection>> fontCollections; in Typeface_writeTypefaces()
306 std::unordered_map<std::shared_ptr<minikin::FontCollection>, size_t> fcToIndex; in Typeface_writeTypefaces()
313 minikin::FontCollection::writeVector<writeMinikinFontSkia>(&writer, fontCollections); in Typeface_writeTypefaces()
328 std::vector<std::shared_ptr<minikin::FontCollection>> fontCollections = in Typeface_readTypefaces()
329 minikin::FontCollection::readVector<readMinikinFontSkia>(&reader); in Typeface_readTypefaces()
379 std::shared_ptr<minikin::FontCollection> collection = toTypeface(faceHandle)->fFontCollection; in Typeface_addFontCollection()
/aosp12/frameworks/base/libs/hwui/hwui/
H A DTypeface.cpp130 result->fFontCollection.reset(new minikin::FontCollection(families)); in createFromFamilies()
194 std::shared_ptr<minikin::FontCollection> collection = std::make_shared<minikin::FontCollection>( in setRobotoTypefaceForTest()
H A DTypeface.h35 std::shared_ptr<minikin::FontCollection> fFontCollection;
/aosp12/frameworks/base/native/android/
H A Dsystem_fonts.cpp249 [&fonts](const std::vector<std::shared_ptr<minikin::FontCollection>>& collections) { in ASystemFontIterator_open()
323 std::shared_ptr<minikin::FontCollection> fc = in AFontMatcher_match()
325 std::vector<minikin::FontCollection::Run> runs = fc->itemize( in AFontMatcher_match()