Home
last modified time | relevance | path

Searched refs:family (Results 1 – 25 of 40) sorted by relevance

12

/frameworks/minikin/libs/minikin/
DFontCollection.cpp63 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/
DTypefaceCompatApi24Impl.java109 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()
DTypefaceCompatApi26Impl.java137 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()
DTypefaceCompatApi28Impl.java49 protected Typeface createFromFamiliesWithDefault(Object family) { in createFromFamiliesWithDefault() argument
52 Array.set(familyArray, 0, family); in createFromFamiliesWithDefault()
/frameworks/base/rs/java/android/renderscript/
DFont.java95 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/
DTypefaceSpan.java68 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()
DTextAppearanceSpan.java81 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/
DNetlinkConstants.java50 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()
DStructNfGenMsg.java40 public StructNfGenMsg(byte family) { in StructNfGenMsg() argument
41 nfgen_family = family; in StructNfGenMsg()
/frameworks/minikin/tests/stresstest/
DFontFamilyTest.cpp41 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/
DFontUtils.h30 FontFamilyWrapper(std::shared_ptr<minikin::FontFamily>&& family) : family(family) {} in FontFamilyWrapper()
31 std::shared_ptr<minikin::FontFamily> family; member
DTypeface.cpp40 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()
DFontFamily.cpp85 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/
Dbuild_font_single.py42 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
Dbuild_font.py44 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/
DFontFamilyTest.cpp490 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/
DTypeface.java703 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/
DSplitDescription.cpp42 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()
DAbi.cpp62 const Vector<Variant>& getVariants(Family family) { in getVariants() argument
63 switch (family) { in getVariants()
DAbi.h44 const android::Vector<Variant>& getVariants(Family family);
/frameworks/minikin/tests/util/
DFontTestUtils.cpp107 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/
Dfontchain_linter.py224 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/
DVpnService.java627 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/
DUiccController.java326 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/
DTypeface_Delegate.java318 /*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()

12