/frameworks/minikin/tests/perftests/ |
H A D | FontFamily.cpp | 28 std::shared_ptr<FontFamily> family = std::make_shared<FontFamily>( local
|
/frameworks/minikin/tests/stresstest/ |
H A D | FontFamilyTest.cpp | 37 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/core/jni/android/graphics/ |
H A D | FontUtils.h | 30 FontFamilyWrapper(std::shared_ptr<minikin::FontFamily>&& family) : family(family) {} argument 31 std::shared_ptr<minikin::FontFamily> family; member in struct:android::FontFamilyWrapper
|
H A D | Typeface.cpp | 32 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 D | FontFamily.cpp | 72 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 D | StructNfGenMsg.java | 40 public StructNfGenMsg(byte family) { argument 41 nfgen_family = family;
|
H A D | NetlinkConstants.java | 50 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/tools/split-select/ |
H A D | Abi.cpp | 62 const Vector<Variant>& getVariants(Family family) { argument 63 switch (family) {
|
H A D | SplitDescription.cpp | 42 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/base/core/java/android/text/style/ |
H A D | TypefaceSpan.java | 27 * 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 D | TextAppearanceSpan.java | 81 String family = a.getString(com.android.internal.R.styleable.TextAppearance_fontFamily); 82 if (family != null) { 83 mFamilyName = family; 124 public TextAppearanceSpan(String family, int style, int size, argument 126 mFamilyName = family; 189 * Returns the typeface family specified by this span, or <code>null</code>
|
/frameworks/layoutlib/rename_font/ |
H A D | build_font.py | 44 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 D | build_font_single.py | 42 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...] |
/frameworks/minikin/tests/util/ |
H A D | FontTestUtils.cpp | 37 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/base/libs/hwui/hwui/ |
H A D | Typeface.cpp | 193 std::shared_ptr<minikin::FontFamily> family = std::make_shared<minikin::FontFamily>( local 196 std::make_shared<minikin::FontCollection>(std::move(family));
|
/frameworks/base/rs/java/android/renderscript/ |
H A D | Font.java | 49 //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/layoutlib/bridge/src/android/graphics/ |
H A D | Typeface_Delegate.java | 270 /*package*/ static FontFamily makeFamilyFromParsed(FontConfig.Family family, argument 272 FontFamily fontFamily = new FontFamily(family.getLanguage(), family.getVariant()); 273 for (FontConfig.Font font : family.getFonts()) {
|
/frameworks/support/compat/java/android/support/v4/graphics/ |
H A D | TypefaceCompatApi24Impl.java | 108 private static boolean addFontWeightStyle(Object family, ByteBuffer buffer, int ttcIndex, argument 112 family, buffer, ttcIndex, null /* variation axis */, weight, style); 119 private static Typeface createFromFamiliesWithDefault(Object family) { argument 122 Array.set(familyArray, 0, family); 133 Object family = newFamily(); 143 if (!addFontWeightStyle(family, buffer, font.getTtcIndex(), font.getWeight(), 148 return createFromFamiliesWithDefault(family); 154 Object family = newFamily(); 162 if (!addFontWeightStyle(family, buffer, 0, e.getWeight(), e.isItalic())) { 166 return createFromFamiliesWithDefault(family); [all...] |
H A D | TypefaceCompatApi26Impl.java | 142 private static boolean addFontFromAssetManager(Context context, Object family, String fileName, argument 145 final Boolean result = (Boolean) sAddFontFromAssetManager.invoke(family, 158 private static boolean addFontFromBuffer(Object family, ByteBuffer buffer, argument 161 final Boolean result = (Boolean) sAddFontFromBuffer.invoke(family, 173 private static Typeface createFromFamiliesWithDefault(Object family) { argument 176 Array.set(familyArray, 0, family); 187 private static boolean freeze(Object family) { argument 189 Boolean result = (Boolean) sFreeze.invoke(family); 199 private static boolean abortCreation(Object family) { argument 201 Boolean result = (Boolean) sAbortCreation.invoke(family); [all...] |
/frameworks/base/core/java/android/net/ |
H A D | VpnService.java | 277 * Adding an address implicitly allows traffic from that address family (i.e., IPv4 or IPv6) to 307 * address family (i.e., IPv4 or IPv6) configured on the VPN, that <b>DOES NOT</b> block that 308 * family from being routed. In other words, once an address family has been allowed, it stays 430 throw new IllegalArgumentException("Unsupported family"); 490 * Adding an address implicitly allows traffic from that address family 511 * Adding an address implicitly allows traffic from that address family 525 * Adding a route implicitly allows traffic from that address family 552 * Adding a route implicitly allows traffic from that address family 567 * Adding a server implicitly allows traffic from that address family 627 allowFamily(int family) argument [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
H A D | UiccController.java | 170 public IccRecords getIccRecords(int phoneId, int family) { argument 172 UiccCardApplication app = getUiccCardApplication(phoneId, family); 181 public IccFileHandler getIccFileHandler(int phoneId, int family) { argument 183 UiccCardApplication app = getUiccCardApplication(phoneId, family); 270 public UiccCardApplication getUiccCardApplication(int phoneId, int family) { argument 275 return mUiccCards[phoneId].getApplication(family);
|
H A D | UiccCard.java | 497 public UiccCardApplication getApplication(int family) { argument 500 switch (family) {
|
/frameworks/minikin/libs/minikin/ |
H A D | FontCollection.cpp | 68 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 426 const std::shared_ptr<FontFamily>& family = getFamilyForChar( local [all...] |
/frameworks/minikin/tests/unittest/ |
H A D | FontFamilyTest.cpp | 518 // 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...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | Typeface.java | 227 // 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...] |