/frameworks/base/core/tests/coretests/src/android/provider/ |
D | FontsContractTest.java | 36 import android.graphics.fonts.FontVariationAxis; 79 FontInfo[] fonts = FontsContract.getFontFromProvider( in testGetFontFromProvider_resultOK() local 81 assertNotNull(fonts); in testGetFontFromProvider_resultOK() 82 assertEquals(1, fonts.length); in testGetFontFromProvider_resultOK() 83 FontInfo font = fonts[0]; in testGetFontFromProvider_resultOK() 98 FontInfo[] fonts = FontsContract.getFontFromProvider( in testGetFontFromProvider_providerDoesntReturnAllFields() local 100 assertNotNull(fonts); in testGetFontFromProvider_providerDoesntReturnAllFields() 101 assertEquals(1, fonts.length); in testGetFontFromProvider_providerDoesntReturnAllFields() 102 FontInfo font = fonts[0]; in testGetFontFromProvider_providerDoesntReturnAllFields() 114 FontInfo[] fonts = FontsContract.getFontFromProvider( in testGetFontFromProvider_resultFontNotFound() local [all …]
|
/frameworks/base/graphics/java/android/graphics/fonts/ |
D | FontFamily.java | 17 package android.graphics.fonts; 266 ArrayList<Font> fonts) { in analyzeAndResolveVariableType() argument 267 if (fonts.size() > 2) { in analyzeAndResolveVariableType() 271 if (fonts.size() == 1) { in analyzeAndResolveVariableType() 272 Font font = fonts.get(0); in analyzeAndResolveVariableType() 285 for (int i = 0; i < fonts.size(); ++i) { in analyzeAndResolveVariableType() 286 Font font = fonts.get(i); in analyzeAndResolveVariableType() 293 boolean italic1 = fonts.get(0).getStyle().getSlant() == FontStyle.FONT_SLANT_ITALIC; in analyzeAndResolveVariableType() 294 boolean italic2 = fonts.get(1).getStyle().getSlant() == FontStyle.FONT_SLANT_ITALIC; in analyzeAndResolveVariableType() 301 Font firstFont = fonts.get(0); in analyzeAndResolveVariableType() [all …]
|
/frameworks/minikin/tests/util/ |
D | FontTestUtils.cpp | 70 std::vector<std::shared_ptr<Font>> fonts; in getFontFamilies() local 97 fonts.push_back(Font::Builder(minikinFont).setStyle(style).build()); in getFontFamilies() 102 fonts.push_back(Font::Builder(minikinFont).setStyle(style).build()); in getFontFamilies() 109 family = FontFamily::create(variant, std::move(fonts)); in getFontFamilies() 112 family = FontFamily::create(langId, variant, std::move(fonts), in getFontFamilies() 128 std::vector<std::shared_ptr<Font>> fonts; in buildFontFamily() local 129 fonts.push_back(Font::Builder(font).build()); in buildFontFamily() 130 return FontFamily::create(std::move(fonts)); in buildFontFamily() 136 std::vector<std::shared_ptr<Font>> fonts; in buildFontFamily() local 137 fonts.push_back(Font::Builder(font).build()); in buildFontFamily() [all …]
|
/frameworks/minikin/libs/minikin/ |
D | FontFamily.cpp | 46 std::shared_ptr<FontFamily> FontFamily::create(std::vector<std::shared_ptr<Font>>&& fonts) { in create() argument 47 return create(FamilyVariant::DEFAULT, std::move(fonts)); in create() 52 std::vector<std::shared_ptr<Font>>&& fonts) { in create() argument 53 return create(kEmptyLocaleListId, variant, std::move(fonts), false /* isCustomFallback */, in create() 59 std::vector<std::shared_ptr<Font>>&& fonts, in create() argument 63 return std::shared_ptr<FontFamily>(new FontFamily(localeListId, variant, std::move(fonts), in create() 134 std::vector<std::shared_ptr<Font>>&& fonts, bool isCustomFallback, in FontFamily() argument 136 : mFonts(std::make_unique<std::shared_ptr<Font>[]>(fonts.size())), in FontFamily() 144 mFontsCount(static_cast<uint32_t>(fonts.size())), in FontFamily() 153 MINIKIN_ASSERT(!fonts.empty(), "FontFamily must contain at least one font."); in FontFamily() [all …]
|
/frameworks/base/core/java/android/graphics/fonts/ |
D | FontUpdateRequest.java | 17 package android.graphics.fonts; 217 public Family(String name, List<Font> fonts) { in Family() argument 219 mFonts = fonts; in Family() 238 List<Font> fonts = source.readParcelableList( 239 …new ArrayList<>(), Font.class.getClassLoader(), android.graphics.fonts.FontUpdateRequest.Font.clas… 240 return new Family(familyName, fonts); 260 List<Font> fonts = family.getFonts(); in writeFamilyToXml() local 261 for (int i = 0; i < fonts.size(); ++i) { in writeFamilyToXml() 262 Font font = fonts.get(i); in writeFamilyToXml() 279 List<Font> fonts = new ArrayList<>(); in readFromXml() local [all …]
|
D | FontFamilyUpdateRequest.java | 17 package android.graphics.fonts; 88 public Builder(@NonNull String name, @NonNull List<Font> fonts) { in Builder() argument 91 Objects.requireNonNull(fonts); in Builder() 92 Preconditions.checkCollectionElementsNotNull(fonts, "fonts"); in Builder() 93 Preconditions.checkCollectionNotEmpty(fonts, "fonts"); in Builder() 95 mFonts = new ArrayList<>(fonts); in Builder() 134 private FontFamily(@NonNull String name, @NonNull List<Font> fonts) { in FontFamily() argument 136 mFonts = fonts; in FontFamily()
|
/frameworks/minikin/tests/unittest/ |
D | LayoutCoreTest.cpp | 69 std::initializer_list<std::string> fonts) { in makeFontCollection() argument 71 for (const auto& fontPath : fonts) { in makeFontCollection() 97 EXPECT_EQ(1u, layout.fonts().size()); in TEST() 111 EXPECT_EQ(1u, layout.fonts().size()); in TEST() 128 EXPECT_EQ(1u, layout.fonts().size()); in TEST() 156 EXPECT_EQ(2u, layout.fonts().size()); in TEST() 173 EXPECT_EQ(2u, layout.fonts().size()); in TEST() 196 EXPECT_EQ(1u, layout.fonts().size()); in TEST() 210 EXPECT_EQ(1u, layout.fonts().size()); in TEST() 224 EXPECT_EQ(1u, layout.fonts().size()); in TEST() [all …]
|
D | SystemFontsTest.cpp | 104 systemFonts.getFontSet([](const std::vector<std::shared_ptr<Font>>& fonts) { in TEST() argument 105 EXPECT_EQ(3u, fonts.size()); // Ascii, Bold and BoldItalic in TEST() 107 for (const auto& font : fonts) { in TEST()
|
/frameworks/base/core/java/android/provider/ |
D | FontsContract.java | 32 import android.graphics.fonts.Font; 33 import android.graphics.fonts.FontFamily; 34 import android.graphics.fonts.FontStyle; 35 import android.graphics.fonts.FontVariationAxis; 311 public FontFamilyResult(@FontResultStatus int statusCode, @Nullable FontInfo[] fonts) { in FontFamilyResult() argument 313 mFonts = fonts; in FontFamilyResult() 571 final FontInfo[] fonts = result.getFonts(); in requestFonts() local 572 if (fonts == null || fonts.length == 0) { in requestFonts() 577 for (final FontInfo font : fonts) { in requestFonts() 594 final Typeface typeface = buildTypeface(context, cancellationSignal, fonts); in requestFonts() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | OWNERS | 11 per-file FontFamily.java = file:fonts/OWNERS 12 per-file FontListParser.java = file:fonts/OWNERS 13 per-file Typeface.java = file:fonts/OWNERS
|
/frameworks/base/services/core/java/com/android/server/graphics/fonts/ |
D | FontManagerShellCommand.java | 17 package com.android.server.graphics.fonts; 19 import static com.android.server.graphics.fonts.FontManagerService.SystemFontException; 24 import android.graphics.fonts.Font; 25 import android.graphics.fonts.FontFamily; 26 import android.graphics.fonts.FontManager; 27 import android.graphics.fonts.FontUpdateRequest; 28 import android.graphics.fonts.FontVariationAxis; 29 import android.graphics.fonts.SystemFonts; 179 final List<FontConfig.Font> fonts = family.getFontList(); in dumpFontConfig() local 181 for (int k = 0; k < fonts.size(); ++k) { in dumpFontConfig() [all …]
|
D | OtfFontFileParser.java | 17 package com.android.server.graphics.fonts; 22 import android.graphics.fonts.Font; 23 import android.graphics.fonts.FontFamily; 24 import android.graphics.fonts.FontFileUtil;
|
/frameworks/minikin/include/minikin/ |
D | FontFamily.h | 42 static std::shared_ptr<FontFamily> create(std::vector<std::shared_ptr<Font>>&& fonts); 44 std::vector<std::shared_ptr<Font>>&& fonts); 46 std::vector<std::shared_ptr<Font>>&& fonts, 111 std::vector<std::shared_ptr<Font>>&& fonts, bool isCustomFallback, 115 explicit FontFamily(BufferReader* reader, const std::shared_ptr<std::vector<Font>>& fonts);
|
/frameworks/base/data/fonts/ |
D | Android.bp | 48 // Copies the font configuration file into system/etc for the product as fonts.xml. 49 // Additional fonts should be installed to /product/fonts/ alongside a corresponding 65 name: "fonts.xml", 66 src: "fonts.xml",
|
/frameworks/minikin/tests/stresstest/ |
D | FontFamilyTest.cpp | 39 std::vector<std::shared_ptr<Font>> fonts; in TEST_P() local 40 fonts.push_back(Font::Builder(font).build()); in TEST_P() 41 std::shared_ptr<FontFamily> family = FontFamily::create(std::move(fonts)); in TEST_P()
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | OWNERS | 5 per-file Font* = file:/graphics/java/android/graphics/fonts/OWNERS 6 per-file Typeface* = file:/graphics/java/android/graphics/fonts/OWNERS
|
D | FontListParserTest.java | 19 import static android.graphics.fonts.FontStyle.FONT_SLANT_ITALIC; 20 import static android.graphics.fonts.FontStyle.FONT_SLANT_UPRIGHT; 21 import static android.graphics.fonts.FontStyle.FONT_WEIGHT_NORMAL; 25 import static android.graphics.fonts.FontFamily.Builder.VARIABLE_FONT_FAMILY_TYPE_NONE; 26 import static android.graphics.fonts.FontFamily.Builder.VARIABLE_FONT_FAMILY_TYPE_SINGLE_FONT_WGHT_… 27 import static android.graphics.fonts.FontFamily.Builder.VARIABLE_FONT_FAMILY_TYPE_SINGLE_FONT_WGHT_… 28 import static android.graphics.fonts.FontFamily.Builder.VARIABLE_FONT_FAMILY_TYPE_TWO_FONTS_WGHT; 34 import android.graphics.fonts.FontCustomizationParser; 35 import android.graphics.fonts.FontStyle; 36 import android.graphics.fonts.SystemFonts;
|
D | FontFileUtilTest.java | 25 import android.graphics.fonts.Font; 26 import android.graphics.fonts.FontFileUtil; 27 import android.graphics.fonts.FontVariationAxis; 28 import android.graphics.fonts.SystemFonts;
|
/frameworks/base/core/java/com/android/internal/graphics/fonts/ |
D | IFontManager.aidl | 17 package com.android.internal.graphics.fonts; 20 import android.graphics.fonts.FontUpdateRequest;
|
/frameworks/base/native/android/ |
D | system_fonts.cpp | 88 std::vector<AFont> fonts; member 242 std::unordered_set<AFont, FontHasher> fonts; in ASystemFontIterator_open() local 244 [&fonts](const std::vector<std::shared_ptr<minikin::Font>>& fontSet) { in ASystemFontIterator_open() 256 fonts.insert({font->baseTypeface()->GetFontPath(), std::move(locale), in ASystemFontIterator_open() 264 if (fonts.empty()) { in ASystemFontIterator_open() 270 ite->fonts.assign(fonts.begin(), fonts.end()); in ASystemFontIterator_open() 366 if (!ite->fonts.empty()) { in ASystemFontIterator_next() 367 if (ite->index >= ite->fonts.size()) { in ASystemFontIterator_next() 370 return new AFont(ite->fonts[ite->index++]); in ASystemFontIterator_next()
|
/frameworks/base/libs/hwui/jni/ |
D | FontFamily.cpp | 52 std::vector<std::shared_ptr<minikin::Font>> fonts; member 85 if (builder->fonts.empty()) { in FontFamily_create() 89 builder->langId, builder->variant, std::move(builder->fonts), in FontFamily_create() 137 std::make_shared<MinikinFontSkia>(std::move(face), fonts::getNewSourceId(), fontPtr, in addSkTypeface() 147 builder->fonts.push_back(fontBuilder.build()); in addSkTypeface()
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | TextShaperTest.java | 21 import android.graphics.fonts.Font; 22 import android.graphics.fonts.FontFileUtil;
|
/frameworks/base/core/java/android/content/res/ |
D | FontResourcesParser.java | 212 List<FontFileResourceEntry> fonts = new ArrayList<>(); in readFamily() local 219 fonts.add(entry); in readFamily() 225 if (fonts.isEmpty()) { in readFamily() 228 return new FontFamilyFilesResourceEntry(fonts.toArray( in readFamily() 229 new FontFileResourceEntry[fonts.size()])); in readFamily()
|
/frameworks/base/tests/UpdatableSystemFontTest/EmojiRenderingTestApp/src/com/android/emojirenderingtestapp/ |
D | GetAvailableFontsTestActivity.java | 23 import android.graphics.fonts.Font; 24 import android.graphics.fonts.SystemFonts;
|
/frameworks/base/libs/hwui/jni/fonts/ |
D | FontFamily.cpp | 31 std::vector<std::shared_ptr<minikin::Font>> fonts; member 54 toBuilder(builderPtr)->fonts.push_back(toFontWrapper(fontPtr)->font); in FontFamily_Builder_addFont() 70 localeId, static_cast<minikin::FamilyVariant>(variant), std::move(builder->fonts), in FontFamily_Builder_build()
|