Searched refs:family (Results 1 - 25 of 31) sorted by relevance

12

/frameworks/base/core/jni/android/graphics/
H A DFontUtils.h30 FontFamilyWrapper(std::shared_ptr<minikin::FontFamily>&& family) : family(family) {} argument
31 std::shared_ptr<minikin::FontFamily> family; member in struct:android::FontFamilyWrapper
H A DTypeface.cpp32 Typeface* family = reinterpret_cast<Typeface*>(familyHandle); local
33 Typeface* face = Typeface::createRelative(family, (SkTypeface::Style)style);
37 face = Typeface::createRelative(family, (SkTypeface::Style)(style ^ SkTypeface::kItalic));
40 face = Typeface::createRelative(family, (SkTypeface::Style)i);
69 Typeface* family = reinterpret_cast<Typeface*>(familyHandle); local
70 Typeface* face = Typeface::createWithDifferentBaseWeight(family, weight);
95 FontFamilyWrapper* family = reinterpret_cast<FontFamilyWrapper*>(families[i]); local
96 familyVec.emplace_back(family->family);
H A DFontFamily.cpp72 std::shared_ptr<minikin::FontFamily> family = std::make_shared<minikin::FontFamily>( local
74 if (family->getCoverage().length() == 0 && !builder->allowUnsupportedFont) {
77 return reinterpret_cast<jlong>(new FontFamilyWrapper(std::move(family)));
94 FontFamilyWrapper* family = reinterpret_cast<FontFamilyWrapper*>(familyPtr); local
95 delete family;
/frameworks/base/services/net/java/android/net/netlink/
H A DNetlinkConstants.java50 public static String stringForAddressFamily(int family) { argument
51 if (family == OsConstants.AF_INET) { return "AF_INET"; }
52 if (family == OsConstants.AF_INET6) { return "AF_INET6"; }
53 if (family == OsConstants.AF_NETLINK) { return "AF_NETLINK"; }
54 return String.valueOf(family);
/frameworks/base/core/java/android/text/style/
H A DTypefaceSpan.java27 * Changes the typeface family of the text to which the span is attached.
33 * @param family The font family for this typeface. Examples include
36 public TypefaceSpan(String family) { argument
37 mFamily = family;
67 * Returns the font family name.
83 private static void apply(Paint paint, String family) { argument
93 Typeface tf = Typeface.create(family, oldStyle);
H A DTextAppearanceSpan.java71 String family = a.getString(com.android.internal.R.styleable.TextAppearance_fontFamily);
72 if (family != null) {
73 mTypeface = family;
113 public TextAppearanceSpan(String family, int style, int size, argument
115 mTypeface = family;
175 * Returns the typeface family specified by this span, or <code>null</code>
/frameworks/minikin/tests/stresstest/
H A DFontFamilyTest.cpp37 std::shared_ptr<FontFamily> family = local
45 EXPECT_EQ(family->hasGlyph(codePoint, 0 /* variation selector */),
57 ASSERT_EQ(family->hasGlyph(codePoint, vs),
61 << " Minikin: " << family->hasGlyph(codePoint, vs)
/frameworks/base/rs/java/android/renderscript/
H A DFont.java49 //These help us create a font by family name
95 private static void addFamilyToMap(FontFamily family) { argument
96 for(int i = 0; i < family.mNames.length; i ++) {
97 sFontFamilyMap.put(family.mNames[i], family);
134 FontFamily family = sFontFamilyMap.get(familyName);
135 if(family != null) {
138 return family.mNormalFileName;
140 return family.mBoldFileName;
142 return family
[all...]
/frameworks/support/compat/java/android/support/v4/graphics/
H A DTypefaceCompatApi24Impl.java102 private static boolean addFontWeightStyle(Object family, ByteBuffer buffer, int ttcIndex, argument
106 family, buffer, ttcIndex, null /* variation axis */, weight, style);
113 private static Typeface createFromFamiliesWithDefault(Object family) { argument
116 Array.set(familyArray, 0, family);
127 Object family = newFamily();
129 if (!addFontWeightStyle(family, uriBuffer.get(font.getUri()), font.getTtcIndex(),
134 return createFromFamiliesWithDefault(family);
140 Object family = newFamily();
145 if (!addFontWeightStyle(family, buffer, 0, e.getWeight(), e.isItalic())) {
149 return createFromFamiliesWithDefault(family);
[all...]
/frameworks/base/tools/layoutlib/rename_font/
H A Dbuild_font_single.py42 family = None variable in class:FontInfo
137 font.family = namerecord.text.strip()
162 namerecord.text = font.family
168 """ Compute the new font family name and font fullname. If the font has a
169 valid version, it's sanitized and appended to the font family name. The
170 font fullname is then created by joining the new family name and the
173 if font.family is None or font.style is None:
174 raise InvalidFontException('Font doesn\'t have proper family name or style')
176 new_family = font.family + font.version
178 new_family = font.family
[all...]
H A Dbuild_font.py44 family = None variable in class:FontInfo
153 font.family = namerecord.text.strip()
178 namerecord.text = font.family
184 """ Compute the new font family name and font fullname. If the font has a
185 valid version, it's sanitized and appended to the font family name. The
186 font fullname is then created by joining the new family name and the
189 if font.family is None or font.style is None:
190 raise InvalidFontException('Font doesn\'t have proper family name or style')
192 new_family = font.family + font.version
194 new_family = font.family
[all...]
H A Dtest.py39 self.assertEqual(fonts[0].family, "Roboto1200310")
/frameworks/base/tools/split-select/
H A DAbi.h44 const android::Vector<Variant>& getVariants(Family family);
H A DAbi.cpp62 const Vector<Variant>& getVariants(Family family) { argument
63 switch (family) {
H A DSplitDescription.cpp42 abi::Family family = abi::getFamily(abi); local
44 if (family != oFamily) {
45 return family != abi::Family_none;
57 abi::Family family = abi::getFamily(abi); local
59 if (family != oFamily) {
/frameworks/minikin/tests/perftests/
H A DFontFamily.cpp28 std::shared_ptr<FontFamily> family = std::make_shared<FontFamily>( local
/frameworks/minikin/libs/minikin/
H A DFontCollection.cpp68 const std::shared_ptr<FontFamily>& family = typefaces[i]; local
69 if (family->getClosestMatch(defaultStyle).font == nullptr) {
72 const SparseBitSet& coverage = family->getCoverage();
73 mFamilies.push_back(family); // emplace_back would be better
74 if (family->hasVSTable()) {
75 mVSFamilyVec.push_back(family);
80 const std::unordered_set<AxisTag>& supportedAxes = family->supportedAxes();
91 // the base code point without variation selector. The family won't be listed in the range in
103 const std::shared_ptr<FontFamily>& family = mFamilies[j]; local
105 uint32_t nextChar = family
269 const std::shared_ptr<FontFamily>& family = local
399 const std::shared_ptr<FontFamily>& family = getFamilyForChar( local
[all...]
/frameworks/minikin/tests/util/
H A DFontTestUtils.cpp37 if (xmlStrcmp(familyNode->name, (const xmlChar*)"family") != 0) {
83 std::shared_ptr<FontFamily> family; local
85 family = std::make_shared<FontFamily>(variant, std::move(fonts));
89 family = std::make_shared<FontFamily>(langId, variant, std::move(fonts));
91 families.push_back(family);
/frameworks/minikin/tests/unittest/
H A DFontFamilyTest.cpp518 // Asserts that the font family has glyphs for and only for specified codepoint
520 void expectVSGlyphs(FontFamily* family, uint32_t codepoint, const std::set<uint32_t>& vs) { argument
527 EXPECT_FALSE(family->hasGlyph(codepoint, i))
530 EXPECT_TRUE(family->hasGlyph(codepoint, i))
539 std::shared_ptr<FontFamily> family(
551 EXPECT_TRUE(family->getCoverage().get(kSupportedChar1));
552 expectVSGlyphs(family.get(), kSupportedChar1, std::set<uint32_t>({kVS1, kVS17, kVS18, kVS19}));
555 EXPECT_TRUE(family->getCoverage().get(kSupportedChar2));
556 expectVSGlyphs(family.get(), kSupportedChar2, std::set<uint32_t>({kVS2, kVS18, kVS19, kVS20}));
559 EXPECT_TRUE(family
[all...]
H A DFontCollectionTest.cpp61 std::shared_ptr<FontFamily> family(new FontFamily(
63 std::vector<std::shared_ptr<FontFamily>> families({ family });
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
H A DUiccController.java173 public IccRecords getIccRecords(int phoneId, int family) { argument
175 UiccCardApplication app = getUiccCardApplication(phoneId, family);
184 public IccFileHandler getIccFileHandler(int phoneId, int family) { argument
186 UiccCardApplication app = getUiccCardApplication(phoneId, family);
273 public UiccCardApplication getUiccCardApplication(int phoneId, int family) { argument
278 return mUiccCards[phoneId].getApplication(family);
/frameworks/base/graphics/java/android/graphics/
H A DTypeface.java227 // family is FontFamilyFilesResourceEntry
465 * Sets a fallback family name.
467 * By specifying a fallback family name, a fallback Typeface will be returned if the
469 * family will be resolved with the provided weight and italic information specified by
472 * If {@link #setWeight} is not called, the fallback family keeps the default weight.
473 * Similary, if {@link #setItalic} is not called, the fallback family keeps the default
481 * @param familyName A family name to be used for fallback if the provided font can not be
665 * Create a typeface object given a family name, and option style information.
670 * @param familyName May be null. The name of the font family.
685 * style from the same family o
693 create(Typeface family, int style) argument
728 createFromTypefaceWithVariation(@ullable Typeface family, @NonNull List<FontVariationAxis> axes) argument
888 makeFamilyFromParsed(FontConfig.Family family, Map<String, ByteBuffer> bufferForPath) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DTypeface_Delegate.java233 /*package*/ static FontFamily makeFamilyFromParsed(FontConfig.Family family, argument
235 FontFamily fontFamily = new FontFamily(family.getLanguage(), family.getVariant());
236 for (FontConfig.Font font : family.getFonts()) {
/frameworks/base/core/java/android/net/
H A DVpnService.java242 * Adding an address implicitly allows traffic from that address family (i.e., IPv4 or IPv6) to
272 * address family (i.e., IPv4 or IPv6) configured on the VPN, that <b>DOES NOT</b> block that
273 * family from being routed. In other words, once an address family has been allowed, it stays
395 throw new IllegalArgumentException("Unsupported family");
455 * Adding an address implicitly allows traffic from that address family
476 * Adding an address implicitly allows traffic from that address family
490 * Adding a route implicitly allows traffic from that address family
517 * Adding a route implicitly allows traffic from that address family
532 * Adding a server implicitly allows traffic from that address family
592 allowFamily(int family) argument
[all...]
/frameworks/base/libs/hwui/hwui/
H A DTypeface.cpp193 std::shared_ptr<minikin::FontFamily> family = std::make_shared<minikin::FontFamily>( local
196 std::make_shared<minikin::FontCollection>(std::move(family));

Completed in 1249 milliseconds

12