Home
last modified time | relevance | path

Searched refs:familyName (Results 1 – 15 of 15) sorted by relevance

/frameworks/minikin/include/minikin/
DSystemFonts.h33 static std::shared_ptr<FontCollection> findFontCollection(const std::string& familyName) { in findFontCollection() argument
34 return getInstance().findFontCollectionInternal(familyName); in findFontCollection()
37 static void registerFallback(const std::string& familyName, in registerFallback() argument
39 return getInstance().registerFallbackInternal(familyName, fc); in registerFallback()
67 std::shared_ptr<FontCollection> findFontCollectionInternal(const std::string& familyName);
68 void registerFallbackInternal(const std::string& familyName, in registerFallbackInternal() argument
71 mSystemFallbacks[familyName] = fc; in registerFallbackInternal()
/frameworks/base/graphics/java/android/graphics/fonts/
DSystemFonts.java128 String familyName = xmlFamily.getName(); in pushFamilyToFallback() local
131 && (familyName == null || !familyName.equals(name))) { in pushFamilyToFallback()
148 private static @Nullable FontFamily createFontFamily(@NonNull String familyName, in createFontFamily() argument
197 final String familyName = xmlFamily.getName(); in appendNamedFamily() local
199 familyName, xmlFamily.getFontList(), in appendNamedFamily()
207 fallbackListMap.put(familyName, fallback); in appendNamedFamily()
274 final String familyName = xmlFamily.getName(); in buildSystemFallback() local
275 if (familyName == null) { in buildSystemFallback()
/frameworks/minikin/tests/unittest/
DSystemFontsTest.cpp34 std::shared_ptr<FontCollection> findFontCollection(const std::string& familyName) { in findFontCollection() argument
35 return findFontCollectionInternal(familyName); in findFontCollection()
46 void registerFallback(const std::string& familyName, in registerFallback() argument
48 registerFallbackInternal(familyName, fc); in registerFallback()
/frameworks/minikin/libs/minikin/
DSystemFonts.cpp29 const std::string& familyName) { in findFontCollectionInternal() argument
31 auto it = mSystemFallbacks.find(familyName); in findFontCollectionInternal()
/frameworks/base/rs/java/android/renderscript/
DFont.java136 static String getFontFileName(String familyName, Style style) { in getFontFileName() argument
137 FontFamily family = sFontFamilyMap.get(familyName); in getFontFileName()
243 …static public Font create(RenderScript rs, Resources res, String familyName, Style fontStyle, floa… in create() argument
244 String fileName = getFontFileName(familyName, fontStyle); in create()
/frameworks/base/core/java/android/graphics/fonts/
DFontUpdateRequest.java236 String familyName = source.readString8();
239 return new Family(familyName, fonts);
362 public FontUpdateRequest(@NonNull String familyName, in FontUpdateRequest() argument
364 this(createFontFamily(familyName, variations)); in FontUpdateRequest()
367 private static Family createFontFamily(@NonNull String familyName, in createFontFamily() argument
377 return new Family(familyName, updateFonts); in createFontFamily()
/frameworks/opt/vcard/java/com/android/vcard/
DVCardUtils.java293 final String familyName, final String middleName, final String givenName) { in sortNameElements() argument
298 if (containsOnlyPrintableAscii(familyName) && in sortNameElements()
302 list[2] = familyName; in sortNameElements()
304 list[0] = familyName; in sortNameElements()
313 list[2] = familyName; in sortNameElements()
319 list[2] = familyName; in sortNameElements()
335 final String familyName, final String middleName, final String givenName) { in constructNameFromElements() argument
336 return constructNameFromElements(nameOrder, familyName, middleName, givenName, in constructNameFromElements()
341 final String familyName, final String middleName, final String givenName, in constructNameFromElements() argument
344 final String[] nameList = sortNameElements(nameOrder, familyName, middleName, givenName); in constructNameFromElements()
DVCardBuilder.java206 final String familyName = contentValues.getAsString(StructuredName.FAMILY_NAME); in containsNonEmptyName() local
218 return !(TextUtils.isEmpty(familyName) && TextUtils.isEmpty(middleName) && in containsNonEmptyName()
292 String familyName = contentValues.getAsString(StructuredName.FAMILY_NAME); in appendNamePropertiesV40() local
298 if (TextUtils.isEmpty(familyName) in appendNamePropertiesV40()
307 familyName = formattedName; in appendNamePropertiesV40()
316 final String escapedFamily = escapeCharacters(familyName); in appendNamePropertiesV40()
356 familyName, middleName, givenName, prefix, suffix)); in appendNamePropertiesV40()
396 final String familyName = contentValues.getAsString(StructuredName.FAMILY_NAME); in appendNameProperties() local
403 if (!TextUtils.isEmpty(familyName) || !TextUtils.isEmpty(givenName)) { in appendNameProperties()
405 shouldAppendCharsetParam(familyName, givenName, middleName, prefix, suffix); in appendNameProperties()
[all …]
/frameworks/base/graphics/java/android/graphics/
DTypeface.java280 private static boolean hasFontFamily(@NonNull String familyName) { in hasFontFamily() argument
281 Objects.requireNonNull(familyName, "familyName cannot be null"); in hasFontFamily()
283 return sSystemFontMap.containsKey(familyName); in hasFontFamily()
604 public Builder setFallback(@Nullable String familyName) { in setFallback() argument
605 mFallbackFamilyName = familyName; in setFallback()
817 public @NonNull CustomFallbackBuilder setSystemFallback(@NonNull String familyName) { in setSystemFallback() argument
818 Preconditions.checkNotNull(familyName); in setSystemFallback()
819 mFallbackName = familyName; in setSystemFallback()
886 public static Typeface create(String familyName, @Style int style) {
887 return create(getSystemDefaultTypeface(familyName), style);
[all …]
/frameworks/layoutlib/bridge/src/android/graphics/
DTypeface_Delegate.java287 /*package*/ static Typeface create(String familyName, int style) { in create() argument
288 if (familyName != null && Files.exists(Paths.get(familyName))) { in create()
291 return Typeface_Delegate.createFromDisk(RenderAction.getCurrentContext(), familyName, in create()
294 return Typeface.create_Original(familyName, style); in create()
/frameworks/native/include/android/
Dfont_matcher.h213 const char* _Nonnull familyName,
/frameworks/base/services/tests/servicestests/src/com/android/server/graphics/fonts/
DUpdatableFontDirTest.java1012 private static FontConfig.FontFamily getLastFamily(FontConfig fontConfig, String familyName) { in getLastFamily() argument
1015 if (familyName.equals(fontFamilies.get(i).getName())) { in getLastFamily()
1022 private static void assertNamedFamilyExists(FontConfig fontConfig, String familyName) { in assertNamedFamilyExists() argument
1025 .collect(Collectors.toSet())).contains(familyName); in assertNamedFamilyExists()
/frameworks/base/libs/hwui/jni/
DTypeface.cpp156 static void Typeface_registerGenericFamily(JNIEnv *env, jobject, jstring familyName, jlong ptr) { in Typeface_registerGenericFamily() argument
157 ScopedUtfChars familyNameChars(env, familyName); in Typeface_registerGenericFamily()
/frameworks/base/native/android/
Dsystem_fonts.cpp319 const char* _Nonnull familyName, in AFontMatcher_match() argument
324 minikin::SystemFonts::findFontCollection(familyName); in AFontMatcher_match()
/frameworks/base/core/java/android/widget/
DTextView.java2204 private void setTypefaceFromAttrs(@Nullable Typeface typeface, @Nullable String familyName, in setTypefaceFromAttrs() argument
2207 if (typeface == null && familyName != null) { in setTypefaceFromAttrs()
2209 final Typeface normalTypeface = Typeface.create(familyName, Typeface.NORMAL); in setTypefaceFromAttrs()