Home
last modified time | relevance | path

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

/frameworks/minikin/include/minikin/
DSystemFonts.h34 static std::shared_ptr<FontCollection> findFontCollection(const std::string& familyName) { in findFontCollection() argument
35 return getInstance().findFontCollectionInternal(familyName); in findFontCollection()
38 static void registerFallback(const std::string& familyName, in registerFallback() argument
40 return getInstance().registerFallbackInternal(familyName, fc); in registerFallback()
63 std::shared_ptr<FontCollection> findFontCollectionInternal(const std::string& familyName);
64 void registerFallbackInternal(const std::string& familyName, in registerFallbackInternal() argument
67 mSystemFallbacks[familyName] = fc; in registerFallbackInternal()
/frameworks/layoutlib/bridge/src/android/graphics/
DTypeface_Delegate.java102 /*package*/ static Typeface create(String familyName, int style) { in create() argument
103 if (familyName != null && Files.exists(Paths.get(familyName))) { in create()
106 return Typeface_Delegate.createFromDisk(RenderAction.getCurrentContext(), familyName, in create()
109 return Typeface.create_Original(familyName, style); in create()
/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/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/minikin/libs/minikin/
DSystemFonts.cpp29 const std::string& familyName) { in findFontCollectionInternal() argument
31 auto it = mSystemFallbacks.find(familyName); in findFontCollectionInternal()
/frameworks/base/graphics/java/android/graphics/
DTypeface.java292 private static boolean hasFontFamily(@NonNull String familyName) { in hasFontFamily() argument
293 Objects.requireNonNull(familyName, "familyName cannot be null"); in hasFontFamily()
295 return sSystemFontMap.containsKey(familyName); in hasFontFamily()
616 public Builder setFallback(@Nullable String familyName) { in setFallback() argument
617 mFallbackFamilyName = familyName; in setFallback()
829 public @NonNull CustomFallbackBuilder setSystemFallback(@NonNull String familyName) { in setSystemFallback() argument
830 Preconditions.checkNotNull(familyName); in setSystemFallback()
831 mFallbackName = familyName; in setSystemFallback()
898 public static Typeface create(String familyName, @Style int style) {
899 return create(getSystemDefaultTypeface(familyName), style);
[all …]
/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/core/java/android/graphics/fonts/
DFontUpdateRequest.java237 String familyName = source.readString8();
240 return new Family(familyName, fonts);
363 public FontUpdateRequest(@NonNull String familyName, in FontUpdateRequest() argument
365 this(createFontFamily(familyName, variations)); in FontUpdateRequest()
368 private static Family createFontFamily(@NonNull String familyName, in createFontFamily() argument
378 return new Family(familyName, updateFonts); in createFontFamily()
/frameworks/native/include/android/
Dfont_matcher.h215 const char* _Nonnull familyName,
/frameworks/base/graphics/java/android/graphics/fonts/
DSystemFonts.java107 @Nullable String familyName) { in resolveVarFamilyType() argument
117 if (familyName == null) { // for default family in resolveVarFamilyType()
122 if (!familyName.equals(font.getFontFamilyName())) { in resolveVarFamilyType()
277 final String familyName = namedFamilyList.getName(); in appendNamedFamilyList() local
295 fallbackListMap.put(familyName, familyListSet); in appendNamedFamilyList()
/frameworks/base/tests/UpdatableSystemFontTest/src/com/android/updatablesystemfont/
DUpdatableSystemFontTest.java395 private int updateNotoSerifAs(String familyName) throws IOException { in updateNotoSerifAs() argument
402 new FontFamilyUpdateRequest.FontFamily.Builder(familyName, fonts).build(); in updateNotoSerifAs()
442 private FontConfig.NamedFamilyList findFontFamilyOrThrow(String familyName) {
446 .filter(family -> familyName.equals(family.getName()))
450 .orElseThrow(() -> new AssertionError("Family not found: " + familyName));
/frameworks/base/packages/CredentialManager/wear/src/com/android/credentialmanager/ui/theme/
DWearCredentialSelectorTheme.kt78 val font = Font(familyName = DeviceFontFamilyName(typefaceName)) in fontFamily()
/frameworks/base/libs/hwui/jni/
DTypeface.cpp144 static void Typeface_registerGenericFamily(JNIEnv *env, jobject, jstring familyName, jlong ptr) { in Typeface_registerGenericFamily() argument
145 ScopedUtfChars familyNameChars(env, familyName); in Typeface_registerGenericFamily()
/frameworks/base/native/android/
Dsystem_fonts.cpp307 const char* _Nonnull familyName, in AFontMatcher_match() argument
312 minikin::SystemFonts::findFontCollection(familyName); in AFontMatcher_match()
/frameworks/base/services/tests/servicestests/src/com/android/server/graphics/fonts/
DUpdatableFontDirTest.java1639 private static FontConfig.FontFamily getLastFamily(FontConfig fontConfig, String familyName) { in getLastFamily() argument
1642 if (familyName.equals(namedFamilyLists.get(i).getName())) { in getLastFamily()
1649 private static void assertNamedFamilyExists(FontConfig fontConfig, String familyName) { in assertNamedFamilyExists() argument
1652 .collect(Collectors.toSet())).contains(familyName); in assertNamedFamilyExists()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...