Home
last modified time | relevance | path

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

/frameworks/minikin/include/minikin/
DSystemFonts.h32 static std::shared_ptr<FontCollection> findFontCollection(const std::string& familyName) { in findFontCollection() argument
33 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()
52 std::shared_ptr<FontCollection> findFontCollectionInternal(const std::string& familyName) const;
53 void registerFallbackInternal(const std::string& familyName, in registerFallbackInternal() argument
55 mSystemFallbacks.insert(std::make_pair(familyName, fc)); in registerFallbackInternal()
/frameworks/minikin/tests/unittest/
DSystemFontsTest.cpp33 std::shared_ptr<FontCollection> findFontCollection(const std::string& familyName) const { in findFontCollection()
34 return findFontCollectionInternal(familyName); in findFontCollection()
37 void registerFallback(const std::string& familyName, in registerFallback() argument
39 registerFallbackInternal(familyName, fc); in registerFallback()
/frameworks/minikin/libs/minikin/
DSystemFonts.cpp29 const std::string& familyName) const { in findFontCollectionInternal()
30 auto it = mSystemFallbacks.find(familyName); in findFontCollectionInternal()
/frameworks/base/graphics/java/android/graphics/fonts/
DSystemFonts.java77 public static @NonNull FontFamily[] getSystemFallback(@Nullable String familyName) { in getSystemFallback() argument
78 final FontFamily[] families = sSystemFallbackMap.get(familyName); in getSystemFallback()
165 private static @Nullable FontFamily createFontFamily(@NonNull String familyName, in createFontFamily() argument
218 final String familyName = xmlFamily.getName(); in appendNamedFamily() local
220 familyName, Arrays.asList(xmlFamily.getFonts()), in appendNamedFamily()
227 fallbackListMap.put(familyName, fallback); in appendNamedFamily()
256 final String familyName = xmlFamily.getName(); in buildSystemFallback() local
257 if (familyName == null) { in buildSystemFallback()
/frameworks/base/rs/java/android/renderscript/
DFont.java135 static String getFontFileName(String familyName, Style style) { in getFontFileName() argument
136 FontFamily family = sFontFamilyMap.get(familyName); in getFontFileName()
242 …static public Font create(RenderScript rs, Resources res, String familyName, Style fontStyle, floa… in create() argument
243 String fileName = getFontFileName(familyName, fontStyle); in create()
/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.java525 public Builder setFallback(@Nullable String familyName) { in setFallback() argument
526 mFallbackFamilyName = familyName; in setFallback()
738 public @NonNull CustomFallbackBuilder setSystemFallback(@NonNull String familyName) { in setSystemFallback() argument
739 Preconditions.checkNotNull(familyName); in setSystemFallback()
740 mFallbackName = familyName; in setSystemFallback()
809 public static Typeface create(String familyName, @Style int style) {
810 return create(getSystemDefaultTypeface(familyName), style);
1101 private static Typeface getSystemDefaultTypeface(@NonNull String familyName) {
1102 Typeface tf = sSystemFontMap.get(familyName);
1132 private static void registerGenericFamilyNative(@NonNull String familyName,
[all …]
/frameworks/layoutlib/bridge/src/android/graphics/
DTypeface_Delegate.java286 /*package*/ static Typeface create(String familyName, int style) { in create() argument
287 if (familyName != null && Files.exists(Paths.get(familyName))) { in create()
290 return Typeface_Delegate.createFromDisk(RenderAction.getCurrentContext(), familyName, in create()
293 return Typeface.create_Original(familyName, style); in create()
/frameworks/native/include/android/
Dfont_matcher.h203 const char* _Nonnull familyName,
/frameworks/base/core/jni/android/graphics/
DTypeface.cpp134 static void Typeface_registerGenericFamily(JNIEnv *env, jobject, jstring familyName, jlong ptr) { in Typeface_registerGenericFamily() argument
135 ScopedUtfChars familyNameChars(env, familyName); in Typeface_registerGenericFamily()
/frameworks/base/native/android/
Dsystem_fonts.cpp243 const char* _Nonnull familyName, in AFontMatcher_match() argument
248 minikin::SystemFonts::findFontCollection(familyName); in AFontMatcher_match()
/frameworks/base/core/java/android/widget/
DTextView.java2122 private void setTypefaceFromAttrs(@Nullable Typeface typeface, @Nullable String familyName, in setTypefaceFromAttrs() argument
2125 if (typeface == null && familyName != null) { in setTypefaceFromAttrs()
2127 final Typeface normalTypeface = Typeface.create(familyName, Typeface.NORMAL); in setTypefaceFromAttrs()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...