Home
last modified time | relevance | path

Searched refs:families (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/graphics/java/android/graphics/fonts/
DFontCustomizationParser.java88 private static Map<String, FontFamily> validateAndTransformToMap(List<FontFamily> families) { in validateAndTransformToMap() argument
90 for (int i = 0; i < families.size(); ++i) { in validateAndTransformToMap()
91 final FontFamily family = families.get(i); in validateAndTransformToMap()
109 List<FontFamily> families = new ArrayList<>(); in readFamilies() local
116 readFamily(parser, fontDir, families, updatableFontMap); in readFamilies()
123 return new Result(validateAndTransformToMap(families), aliases); in readFamilies()
/frameworks/base/services/core/java/com/android/server/graphics/fonts/
DFontManagerShellCommand.java159 List<FontConfig.FontFamily> families = fontConfig.getFontFamilies(); in dumpFontConfig() local
163 for (int i = 0; i < families.size(); ++i) { in dumpFontConfig()
164 final FontConfig.FontFamily family = families.get(i); in dumpFontConfig()
183 for (int i = 0; i < families.size(); ++i) { in dumpFontConfig()
184 final FontConfig.FontFamily family = families.get(i); in dumpFontConfig()
232 @NonNull FontFamily[] families) { in dumpFallback() argument
233 for (FontFamily family : families) { in dumpFallback()
315 FontFamily[] families = fallbackMap.get(nextArg); in dump() local
316 if (families == null) { in dump()
319 dumpFallback(writer, families); in dump()
DUpdatableFontDir.java543 List<FontUpdateRequest.Family> families = persistentConfig.fontFamilies; in getSystemFontConfig() local
546 new ArrayList<>(config.getFontFamilies().size() + families.size()); in getSystemFontConfig()
553 for (int i = 0; i < families.size(); ++i) { in getSystemFontConfig()
554 FontConfig.FontFamily family = resolveFontFiles(families.get(i)); in getSystemFontConfig()
/frameworks/minikin/tests/unittest/
DLayoutCoreTest.cpp37 std::vector<std::shared_ptr<FontFamily>> families; in buildLayout() local
39 families.push_back(buildFontFamily(fontPath)); in buildLayout()
41 auto fc = std::make_shared<FontCollection>(families); in buildLayout()
49 std::vector<std::shared_ptr<FontFamily>> families; in buildLayout() local
51 families.push_back(buildFontFamily(fontPath)); in buildLayout()
53 auto fc = std::make_shared<FontCollection>(families); in buildLayout()
DFontCollectionItemizeTest.cpp740 std::vector<std::shared_ptr<FontFamily>> families; in TEST() local
741 families.push_back(buildFontFamily(kLatinFont)); in TEST()
742 families.push_back(buildFontFamily(kVSTestFont)); in TEST()
744 std::shared_ptr<FontCollection> collection(new FontCollection(families)); in TEST()
933 std::vector<std::shared_ptr<FontFamily>> families; in TEST() local
943 families.push_back(firstFamily); in TEST()
958 families.push_back(family); in TEST()
961 std::shared_ptr<FontCollection> collection(new FontCollection(families)); in TEST()
1525 std::vector<std::shared_ptr<FontFamily>> families = {dummyFamily, familyA, familyB}; in TEST() local
1528 std::shared_ptr<FontCollection> collection(new FontCollection(families)); in TEST()
[all …]
DFontCollectionTest.cpp206 std::vector<std::shared_ptr<FontFamily>> families = {buildFontFamily(kVsTestFont)}; in TEST() local
207 auto fc1 = std::make_shared<FontCollection>(families); in TEST()
208 auto fc2 = std::make_shared<FontCollection>(families); in TEST()
DGreedyLineBreakerTest.cpp77 std::vector<std::shared_ptr<FontFamily>> families = {family1, family2}; in doLineBreak() local
78 auto fc = std::make_shared<FontCollection>(families); in doLineBreak()
100 std::vector<std::shared_ptr<FontFamily>> families = {family1}; in TEST_F() local
101 auto fc = std::make_shared<FontCollection>(families); in TEST_F()
DOptimalLineBreakerTest.cpp73 std::vector<std::shared_ptr<FontFamily>> families = {family1, family2}; in doLineBreak() local
74 auto fc = std::make_shared<FontCollection>(families); in doLineBreak()
1849 std::vector<std::shared_ptr<FontFamily>> families = {family1}; in TEST_F() local
1850 auto fc = std::make_shared<FontCollection>(families); in TEST_F()
/frameworks/base/graphics/java/android/graphics/
DTypeface.java1102 private static Typeface createFromFamilies(android.graphics.FontFamily[] families) {
1103 long[] ptrArray = new long[families.length];
1104 for (int i = 0; i < families.length; i++) {
1105 ptrArray[i] = families[i].mNativePtr;
1117 private static Typeface createFromFamilies(@Nullable FontFamily[] families) {
1118 final long[] ptrArray = new long[families.length];
1119 for (int i = 0; i < families.length; ++i) {
1120 ptrArray[i] = families[i].getNativePtr();
1134 android.graphics.FontFamily[] families, int weight, int italic) {
1135 return createFromFamiliesWithDefault(families, DEFAULT_FAMILY, weight, italic);
[all …]
DFontListParser.java150 List<FontConfig.FontFamily> families = new ArrayList<>(); in readFamilies() local
170 families.add(family); in readFamilies()
179 families.addAll(oemNamedFamilies.values()); in readFamilies()
183 for (int i = 0; i < families.size(); ++i) { in readFamilies()
184 String name = families.get(i).getName(); in readFamilies()
197 return new FontConfig(families, filtered, lastModifiedDate, configVersion); in readFamilies()
/frameworks/base/libs/hwui/hwui/
DTypeface.cpp127 Typeface* Typeface::createFromFamilies(std::vector<std::shared_ptr<minikin::FontFamily>>&& families, in createFromFamilies() argument
130 result->fFontCollection.reset(new minikin::FontCollection(families)); in createFromFamilies()
138 families.empty() in createFromFamilies()
140 : families[0]->getClosestMatch(defaultStyle).font->typeface().get(); in createFromFamilies()
DTypeface.h81 std::vector<std::shared_ptr<minikin::FontFamily>>&& families, int weight, int italic);
/frameworks/minikin/tests/perftests/
DFontCollection.cpp36 std::vector<std::shared_ptr<FontFamily>> families = in BM_FontCollection_construct() local
39 std::make_shared<FontCollection>(families); in BM_FontCollection_construct()
/frameworks/minikin/tests/util/
DFontTestUtils.cpp54 std::vector<std::shared_ptr<FontFamily>> families; in getFontFamilies() local
115 families.push_back(family); in getFontFamilies()
118 return families; in getFontFamilies()
/frameworks/minikin/libs/minikin/
DFontCollection.cpp188 const std::vector<std::shared_ptr<FontFamily>>& families) { in FontCollection() argument
195 if (index >= families.size()) { in FontCollection()
198 mFamilies.push_back(families[index]); in FontCollection()
199 if (families[index]->hasVSTable()) { in FontCollection()
200 mVSFamilyVec.push_back(families[index]); in FontCollection()
739 std::vector<std::shared_ptr<FontFamily>> families; in createCollectionWithVariation() local
743 families.push_back(newFamily); in createCollectionWithVariation()
745 families.push_back(family); in createCollectionWithVariation()
749 return std::shared_ptr<FontCollection>(new FontCollection(families)); in createCollectionWithVariation()
/frameworks/base/libs/hwui/jni/
DTypeface.cpp108 ScopedLongArrayRO families(env, familyArray); in Typeface_createFromArray() local
114 familyVec.reserve(families.size() + fallbackFamilies.size()); in Typeface_createFromArray()
115 for (size_t i = 0; i < families.size(); i++) { in Typeface_createFromArray()
116 FontFamilyWrapper* family = reinterpret_cast<FontFamilyWrapper*>(families[i]); in Typeface_createFromArray()
123 familyVec.reserve(families.size()); in Typeface_createFromArray()
124 for (size_t i = 0; i < families.size(); i++) { in Typeface_createFromArray()
125 FontFamilyWrapper* family = reinterpret_cast<FontFamilyWrapper*>(families[i]); in Typeface_createFromArray()
/frameworks/base/core/java/android/text/
DFontConfig.java69 public FontConfig(@NonNull List<FontFamily> families, @NonNull List<Alias> aliases, in FontConfig() argument
71 mFamilies = families; in FontConfig()
145 List<FontFamily> families = source.readParcelableList(new ArrayList<>(),
151 return new FontConfig(families, aliases, lastModifiedDate, configVersion);
/frameworks/base/core/tests/coretests/src/android/graphics/
DFontListParserTest.java373 List<FontConfig.FontFamily> families = config.getFontFamilies(); in ignore() local
374 assertThat(families.size()).isEqualTo(2); // legacy one should be ignored. in ignore()
375 assertThat(families.get(1).getFontList().get(0).getFile().getName()) in ignore()
/frameworks/base/libs/hwui/tests/unit/
DTypefaceTests.cpp424 std::vector<std::shared_ptr<minikin::FontFamily>> families = { in TEST() local
428 std::move(families), RESOLVE_BY_FONT_TABLE, RESOLVE_BY_FONT_TABLE)); in TEST()
434 std::vector<std::shared_ptr<minikin::FontFamily>> families = { in TEST() local
437 std::move(families), RESOLVE_BY_FONT_TABLE, RESOLVE_BY_FONT_TABLE)); in TEST()
/frameworks/base/tools/fonts/
Dfontchain_linter.py236 families = tree.findall('family')
240 assert len(families) < 254, (
242 for family in families:
260 for family in families:
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DPinStorage.java963 int[] families = { in isPinState() local
967 for (int i = 0; i < families.length; i++) { in isPinState()
/frameworks/opt/telephony/proto/src/
Dtelephony.proto373 // Radio access families
/frameworks/proto_logging/stats/
Datoms.proto5539 // families.