/frameworks/minikin/libs/minikin/ |
D | FontCollection.cpp | 63 const std::shared_ptr<FontFamily>& family = typefaces[i]; in init() local 64 if (family->getClosestMatch(defaultStyle).font == nullptr) { in init() 67 const SparseBitSet& coverage = family->getCoverage(); in init() 68 mFamilies.push_back(family); // emplace_back would be better in init() 69 if (family->hasVSTable()) { in init() 70 mVSFamilyVec.push_back(family); in init() 75 const std::unordered_set<AxisTag>& supportedAxes = family->supportedAxes(); in init() 94 const std::shared_ptr<FontFamily>& family = mFamilies[j]; in init() local 96 uint32_t nextChar = family->getCoverage().nextSetBit((i + 1) << kLogCharsPerPage); in init() 268 const std::shared_ptr<FontFamily>& family = in getFamilyForChar() local [all …]
|
/frameworks/support/compat/src/main/java/androidx/core/graphics/ |
D | TypefaceCompatApi24Impl.java | 109 private static boolean addFontWeightStyle(Object family, ByteBuffer buffer, int ttcIndex, in addFontWeightStyle() argument 113 family, buffer, ttcIndex, null /* variation axis */, weight, style); in addFontWeightStyle() 120 private static Typeface createFromFamiliesWithDefault(Object family) { in createFromFamiliesWithDefault() argument 123 Array.set(familyArray, 0, family); in createFromFamiliesWithDefault() 134 Object family = newFamily(); in createFromFontInfo() local 144 if (!addFontWeightStyle(family, buffer, font.getTtcIndex(), font.getWeight(), in createFromFontInfo() 149 final Typeface typeface = createFromFamiliesWithDefault(family); in createFromFontInfo() 156 Object family = newFamily(); in createFromFontFamilyFilesResourceEntry() local 163 if (!addFontWeightStyle(family, buffer, e.getTtcIndex(), e.getWeight(), e.isItalic())) { in createFromFontFamilyFilesResourceEntry() 167 return createFromFamiliesWithDefault(family); in createFromFontFamilyFilesResourceEntry()
|
D | TypefaceCompatApi26Impl.java | 137 private boolean addFontFromAssetManager(Context context, Object family, String fileName, in addFontFromAssetManager() argument 140 final Boolean result = (Boolean) mAddFontFromAssetManager.invoke(family, in addFontFromAssetManager() 153 private boolean addFontFromBuffer(Object family, ByteBuffer buffer, in addFontFromBuffer() argument 156 final Boolean result = (Boolean) mAddFontFromBuffer.invoke(family, in addFontFromBuffer() 168 protected Typeface createFromFamiliesWithDefault(Object family) { in createFromFamiliesWithDefault() argument 171 Array.set(familyArray, 0, family); in createFromFamiliesWithDefault() 182 private boolean freeze(Object family) { in freeze() argument 184 Boolean result = (Boolean) mFreeze.invoke(family); in freeze() 194 private void abortCreation(Object family) { in abortCreation() argument 196 mAbortCreation.invoke(family); in abortCreation()
|
D | TypefaceCompatApi28Impl.java | 49 protected Typeface createFromFamiliesWithDefault(Object family) { in createFromFamiliesWithDefault() argument 52 Array.set(familyArray, 0, family); in createFromFamiliesWithDefault()
|
/frameworks/base/rs/java/android/renderscript/ |
D | Font.java | 95 private static void addFamilyToMap(FontFamily family) { in addFamilyToMap() argument 96 for(int i = 0; i < family.mNames.length; i ++) { in addFamilyToMap() 97 sFontFamilyMap.put(family.mNames[i], family); in addFamilyToMap() 134 FontFamily family = sFontFamilyMap.get(familyName); in getFontFileName() local 135 if(family != null) { in getFontFileName() 138 return family.mNormalFileName; in getFontFileName() 140 return family.mBoldFileName; in getFontFileName() 142 return family.mItalicFileName; in getFontFileName() 144 return family.mBoldItalicFileName; in getFontFileName()
|
/frameworks/base/core/java/android/text/style/ |
D | TypefaceSpan.java | 68 public TypefaceSpan(@Nullable String family) { in TypefaceSpan() argument 69 this(family, null); in TypefaceSpan() 90 private TypefaceSpan(@Nullable String family, @Nullable Typeface typeface) { in TypefaceSpan() argument 91 mFamily = family; in TypefaceSpan() 163 private void applyFontFamily(@NonNull Paint paint, @NonNull String family) { in applyFontFamily() argument 171 final Typeface styledTypeface = Typeface.create(family, style); in applyFontFamily()
|
D | TextAppearanceSpan.java | 81 String family = a.getString(com.android.internal.R.styleable.TextAppearance_fontFamily); in TextAppearanceSpan() local 82 if (family != null) { in TextAppearanceSpan() 83 mFamilyName = family; in TextAppearanceSpan() 124 public TextAppearanceSpan(String family, int style, int size, in TextAppearanceSpan() argument 126 mFamilyName = family; in TextAppearanceSpan()
|
/frameworks/base/services/net/java/android/net/netlink/ |
D | NetlinkConstants.java | 50 public static String stringForAddressFamily(int family) { in stringForAddressFamily() argument 51 if (family == OsConstants.AF_INET) { return "AF_INET"; } in stringForAddressFamily() 52 if (family == OsConstants.AF_INET6) { return "AF_INET6"; } in stringForAddressFamily() 53 if (family == OsConstants.AF_NETLINK) { return "AF_NETLINK"; } in stringForAddressFamily() 54 return String.valueOf(family); in stringForAddressFamily()
|
D | StructNfGenMsg.java | 40 public StructNfGenMsg(byte family) { in StructNfGenMsg() argument 41 nfgen_family = family; in StructNfGenMsg()
|
/frameworks/minikin/tests/stresstest/ |
D | FontFamilyTest.cpp | 41 std::shared_ptr<FontFamily> family = std::make_shared<FontFamily>(std::move(fonts)); in TEST_P() local 43 hb_font_t* hbFont = family->getFont(0)->baseFont().get(); in TEST_P() 47 EXPECT_EQ(family->hasGlyph(codePoint, 0 /* variation selector */), in TEST_P() 59 ASSERT_EQ(family->hasGlyph(codePoint, vs), in TEST_P() 63 << " Minikin: " << family->hasGlyph(codePoint, vs) << " HarfBuzz: " in TEST_P()
|
/frameworks/base/core/jni/android/graphics/ |
D | FontUtils.h | 30 FontFamilyWrapper(std::shared_ptr<minikin::FontFamily>&& family) : family(family) {} in FontFamilyWrapper() 31 std::shared_ptr<minikin::FontFamily> family; member
|
D | Typeface.cpp | 40 Typeface* family = toTypeface(familyHandle); in Typeface_createFromTypeface() local 41 Typeface* face = Typeface::createRelative(family, (Typeface::Style)style); in Typeface_createFromTypeface() 45 face = Typeface::createRelative(family, (Typeface::Style)(style ^ Typeface::kItalic)); in Typeface_createFromTypeface() 48 face = Typeface::createRelative(family, (Typeface::Style)i); in Typeface_createFromTypeface() 102 FontFamilyWrapper* family = reinterpret_cast<FontFamilyWrapper*>(families[i]); in Typeface_createFromArray() local 103 familyVec.emplace_back(family->family); in Typeface_createFromArray()
|
D | FontFamily.cpp | 85 std::shared_ptr<minikin::FontFamily> family = std::make_shared<minikin::FontFamily>( in FontFamily_create() local 87 if (family->getCoverage().length() == 0) { in FontFamily_create() 90 return toJLong(new FontFamilyWrapper(std::move(family))); in FontFamily_create()
|
/frameworks/layoutlib/rename_font/ |
D | build_font_single.py | 42 family = None variable in FontInfo 137 font.family = namerecord.text.strip() 162 namerecord.text = font.family 173 if font.family is None or font.style is None: 176 new_family = font.family + font.version 178 new_family = font.family 183 font.family = new_family
|
D | build_font.py | 44 family = None variable in FontInfo 153 font.family = namerecord.text.strip() 178 namerecord.text = font.family 189 if font.family is None or font.style is None: 192 new_family = font.family + font.version 194 new_family = font.family 199 font.family = new_family
|
/frameworks/minikin/tests/unittest/ |
D | FontFamilyTest.cpp | 490 void expectVSGlyphs(FontFamily* family, uint32_t codepoint, const std::set<uint32_t>& vs) { in expectVSGlyphs() argument 497 EXPECT_FALSE(family->hasGlyph(codepoint, i)) in expectVSGlyphs() 500 EXPECT_TRUE(family->hasGlyph(codepoint, i)) in expectVSGlyphs() 507 std::shared_ptr<FontFamily> family = buildFontFamily(kVsTestFont); in TEST_F() local 518 EXPECT_TRUE(family->getCoverage().get(kSupportedChar1)); in TEST_F() 519 expectVSGlyphs(family.get(), kSupportedChar1, std::set<uint32_t>({kVS1, kVS17, kVS18, kVS19})); in TEST_F() 522 EXPECT_TRUE(family->getCoverage().get(kSupportedChar2)); in TEST_F() 523 expectVSGlyphs(family.get(), kSupportedChar2, std::set<uint32_t>({kVS2, kVS18, kVS19, kVS20})); in TEST_F() 526 EXPECT_TRUE(family->getCoverage().get(kNoVsSupportedChar)); in TEST_F() 527 expectVSGlyphs(family.get(), kNoVsSupportedChar, std::set<uint32_t>()); in TEST_F() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | Typeface.java | 703 public static Typeface create(Typeface family, @Style int style) { in create() argument 707 if (family == null) { in create() 708 family = sDefaultTypeface; in create() 712 if (family.mStyle == style) { in create() 713 return family; in create() 716 final long ni = family.native_instance; in create() 773 public static @NonNull Typeface create(@Nullable Typeface family, in create() argument 776 if (family == null) { in create() 777 family = sDefaultTypeface; in create() 779 return createWeightStyle(family, weight, italic); in create() [all …]
|
/frameworks/base/tools/split-select/ |
D | SplitDescription.cpp | 42 abi::Family family = abi::getFamily(abi); in isBetterThan() local 44 if (family != oFamily) { in isBetterThan() 45 return family != abi::Family_none; in isBetterThan() 57 abi::Family family = abi::getFamily(abi); in match() local 59 if (family != oFamily) { in match()
|
D | Abi.cpp | 62 const Vector<Variant>& getVariants(Family family) { in getVariants() argument 63 switch (family) { in getVariants()
|
D | Abi.h | 44 const android::Vector<Variant>& getVariants(Family family);
|
/frameworks/minikin/tests/util/ |
D | FontTestUtils.cpp | 107 std::shared_ptr<FontFamily> family; in getFontFamilies() local 109 family = std::make_shared<FontFamily>(variant, std::move(fonts)); in getFontFamilies() 112 family = std::make_shared<FontFamily>(langId, variant, std::move(fonts)); in getFontFamilies() 114 families.push_back(family); in getFontFamilies()
|
/frameworks/base/tools/fonts/ |
D | fontchain_linter.py | 224 for family in families: 225 name = family.get('name') 226 variant = family.get('variant') 227 langs = family.get('lang') 239 for family in families: 240 name = family.get('name') 241 variant = family.get('variant') 242 langs = family.get('lang') 250 for child in family:
|
/frameworks/base/core/java/android/net/ |
D | VpnService.java | 627 public Builder allowFamily(int family) { in allowFamily() argument 628 if (family == AF_INET) { in allowFamily() 630 } else if (family == AF_INET6) { in allowFamily() 633 throw new IllegalArgumentException(family + " is neither " + AF_INET + " nor " + in allowFamily()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | UiccController.java | 326 public IccRecords getIccRecords(int phoneId, int family) { in getIccRecords() argument 328 UiccCardApplication app = getUiccCardApplication(phoneId, family); in getIccRecords() 337 public IccFileHandler getIccFileHandler(int phoneId, int family) { in getIccFileHandler() argument 339 UiccCardApplication app = getUiccCardApplication(phoneId, family); in getIccFileHandler() 456 public UiccCardApplication getUiccCardApplication(int phoneId, int family) { in getUiccCardApplication() argument 460 return uiccCard.getApplication(family); in getUiccCardApplication()
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
D | Typeface_Delegate.java | 318 /*package*/ static Typeface create(Typeface family, int style) { in create() argument 319 return Typeface.create_Original(family, style); in create() 323 /*package*/ static Typeface create(Typeface family, int style, boolean isItalic) { in create() argument 324 return Typeface.create_Original(family, style, isItalic); in create()
|