/frameworks/base/graphics/java/android/graphics/ |
H A D | FontFamily.java | 104 public boolean addFont(String path, int ttcIndex, FontVariationAxis[] axes, int weight, argument 118 return nAddFont(mBuilderPtr, fontBuffer, ttcIndex, weight, italic); 125 public boolean addFontFromBuffer(ByteBuffer font, int ttcIndex, FontVariationAxis[] axes, argument 135 return nAddFontWeightStyle(mBuilderPtr, font, ttcIndex, weight, italic); 151 boolean isAsset, int ttcIndex, int weight, int isItalic, 161 return nAddFontFromAssetManager(mBuilderPtr, mgr, path, cookie, isAsset, ttcIndex, weight, 166 private static boolean nAddFont(long builderPtr, ByteBuffer font, int ttcIndex) { argument 167 return nAddFont(builderPtr, font, ttcIndex, -1, -1); 182 private static native boolean nAddFont(long builderPtr, ByteBuffer font, int ttcIndex, argument 185 int ttcIndex, in 150 addFontFromAssetManager(AssetManager mgr, String path, int cookie, boolean isAsset, int ttcIndex, int weight, int isItalic, FontVariationAxis[] axes) argument 184 nAddFontWeightStyle(long builderPtr, ByteBuffer font, int ttcIndex, int weight, int isItalic) argument 186 nAddFontFromAssetManager(long builderPtr, AssetManager mgr, String path, int cookie, boolean isAsset, int ttcIndex, int weight, int isItalic) argument [all...] |
H A D | Typeface.java | 198 mgr, path, 0 /* ttcIndex */, null /* axes */, 207 0 /* ttcIndex */, RESOLVE_BY_FONT_TABLE /* weight */, 274 final String key = Builder.createAssetUid(mgr, path, 0 /* ttcIndex */, 288 final String key = Builder.createAssetUid(mgr, path, 0 /* ttcIndex */, null /* axes */, 439 * Sets an index of the font collection. See {@link android.R.attr#ttcIndex}. 442 * @param ttcIndex An index of the font collection. If the font source is not font 445 public Builder setTtcIndex(@IntRange(from = 0) int ttcIndex) { argument 450 mTtcIndex = ttcIndex; 522 * @param ttcIndex The TTC index for the font. 526 private static String createAssetUid(final AssetManager mgr, String path, int ttcIndex, argument [all...] |
/frameworks/minikin/tests/stresstest/ |
H A D | FontFamilyTest.cpp | 36 int ttcIndex = GetParam().second; local 61 << "Inconsistent Result: " << fontPath << "#" << ttcIndex << ": U+" << std::hex
|
/frameworks/base/core/jni/android/graphics/ |
H A D | FontFamily.cpp | 109 static bool addSkTypeface(NativeFamilyBuilder* builder, sk_sp<SkData>&& data, int ttcIndex, argument 121 params.setCollectionIndex(ttcIndex); 132 std::make_shared<MinikinFontSkia>(std::move(face), fontPtr, fontSize, ttcIndex, 171 jint ttcIndex, jint weight, jint isItalic) { 189 return addSkTypeface(builder, std::move(data), ttcIndex, weight, isItalic); 193 jobject font, jint ttcIndex, jint weight, jint isItalic) { 211 return addSkTypeface(builder, std::move(data), ttcIndex, weight, isItalic); 219 jobject jassetMgr, jstring jpath, jint cookie, jboolean isAsset, jint ttcIndex, 264 return addSkTypeface(builder, std::move(data), ttcIndex, weight, isItalic); 170 FontFamily_addFont(JNIEnv* env, jobject clazz, jlong builderPtr, jobject bytebuf, jint ttcIndex, jint weight, jint isItalic) argument 192 FontFamily_addFontWeightStyle(JNIEnv* env, jobject clazz, jlong builderPtr, jobject font, jint ttcIndex, jint weight, jint isItalic) argument 218 FontFamily_addFontFromAssetManager(JNIEnv* env, jobject, jlong builderPtr, jobject jassetMgr, jstring jpath, jint cookie, jboolean isAsset, jint ttcIndex, jint weight, jint isItalic) argument
|
/frameworks/base/libs/hwui/hwui/ |
H A D | MinikinSkia.cpp | 28 int ttcIndex, const std::vector<minikin::FontVariation>& axes) 33 , mTtcIndex(ttcIndex) 115 int ttcIndex; local 116 std::unique_ptr<SkStreamAsset> stream(mTypeface->openStream(&ttcIndex)); 119 params.setCollectionIndex(ttcIndex); 130 return std::make_shared<MinikinFontSkia>(std::move(face), mFontData, mFontSize, ttcIndex, 27 MinikinFontSkia(sk_sp<SkTypeface> typeface, const void* fontData, size_t fontSize, int ttcIndex, const std::vector<minikin::FontVariation>& axes) argument
|
H A D | MinikinSkia.h | 32 int ttcIndex, const std::vector<minikin::FontVariation>& axes);
|
/frameworks/base/core/java/android/text/ |
H A D | FontConfig.java | 72 public Font(@NonNull String fontName, int ttcIndex, @NonNull FontVariationAxis[] axes, argument 75 mTtcIndex = ttcIndex;
|
/frameworks/base/core/java/android/content/res/ |
H A D | FontResourcesParser.java | 87 @Nullable String variationSettings, int ttcIndex) { 92 mTtcIndex = ttcIndex; 222 int ttcIndex = array.getInt(R.styleable.FontFamilyFont_ttcIndex, 0); 231 return new FontFileResourceEntry(filename, weight, italic, variationSettings, ttcIndex); 86 FontFileResourceEntry(@onNull String fileName, int weight, int italic, @Nullable String variationSettings, int ttcIndex) argument
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
H A D | FontFamily_Delegate.java | 293 /*package*/ static boolean addFont(FontFamily thisFontFamily, String path, int ttcIndex, argument 300 return delegate != null && delegate.addFont(path, ttcIndex, weight, italic); 333 /*package*/ static boolean nAddFont(long builderPtr, ByteBuffer font, int ttcIndex, argument 341 int ttcIndex, int weight, int isItalic) { 367 int cookie, boolean isAsset, int ttcIndex, int weight, int isItalic) { 463 private boolean addFont(final String path, int ttcIndex, int weight, int italic) { argument 340 nAddFontWeightStyle(long builderPtr, ByteBuffer font, int ttcIndex, int weight, int isItalic) argument 366 nAddFontFromAssetManager(long builderPtr, AssetManager mgr, String path, int cookie, boolean isAsset, int ttcIndex, int weight, int isItalic) argument
|
/frameworks/support/compat/src/main/java/androidx/core/content/res/ |
H A D | FontResourcesParserCompat.java | 111 @Nullable String variationSettings, int ttcIndex, int resourceId) { 116 mTtcIndex = ttcIndex; 284 int ttcIndex = array.getInt(ttcIndexAttr, 0); 294 return new FontFileResourceEntry(filename, weight, isItalic, variationSettings, ttcIndex, 110 FontFileResourceEntry(@onNull String fileName, int weight, boolean italic, @Nullable String variationSettings, int ttcIndex, int resourceId) argument
|
/frameworks/support/compat/src/main/java/androidx/core/graphics/ |
H A D | TypefaceCompatApi26Impl.java | 135 * boolean isAsset, int ttcIndex, int weight, int isItalic, FontVariationAxis[] axes) 138 int ttcIndex, int weight, int style, @Nullable FontVariationAxis[] axes) { 141 context.getAssets(), fileName, 0 /* cookie */, false /* isAsset */, ttcIndex, 150 * Call FontFamily#addFontFromBuffer(ByteBuffer font, int ttcIndex, FontVariationAxis[] axes, 154 int ttcIndex, int weight, int style) { 157 buffer, ttcIndex, null /* axes */, weight, style); 289 0 /* ttcIndex */, RESOLVE_BY_FONT_TABLE /* weight */, 137 addFontFromAssetManager(Context context, Object family, String fileName, int ttcIndex, int weight, int style, @Nullable FontVariationAxis[] axes) argument 153 addFontFromBuffer(Object family, ByteBuffer buffer, int ttcIndex, int weight, int style) argument
|
H A D | TypefaceCompatApi24Impl.java | 109 private static boolean addFontWeightStyle(Object family, ByteBuffer buffer, int ttcIndex, argument 113 family, buffer, ttcIndex, null /* variation axis */, weight, style);
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
H A D | MockFontProvider.java | 101 public Font(int id, int fileId, int ttcIndex, String varSettings, int weight, int italic, argument 105 mTtcIndex = ttcIndex;
|
/frameworks/minikin/libs/minikin/ |
H A D | FontFamily.cpp | 61 uint32_t ttcIndex = typeface->GetFontIndex(); local 64 HbFaceUniquePtr face(hb_face_create(blob.get(), ttcIndex));
|
/frameworks/base/core/java/android/provider/ |
H A D | FontsContract.java | 192 * @param ttcIndex If providing a TTC_INDEX file, the index to point to. Otherwise, 0. 199 public FontInfo(@NonNull Uri uri, @IntRange(from = 0) int ttcIndex, argument 203 mTtcIndex = ttcIndex; 792 final int ttcIndex = ttcIndexColumnIndex != -1 816 result.add(new FontInfo(fileUri, ttcIndex, axes, weight, italic, resultCode));
|
/frameworks/support/compat/src/main/java/androidx/core/provider/ |
H A D | FontsContractCompat.java | 337 * @param ttcIndex If providing a TTC_INDEX file, the index to point to. Otherwise, 0. 345 public FontInfo(@NonNull Uri uri, @IntRange(from = 0) int ttcIndex, argument 349 mTtcIndex = ttcIndex; 851 final int ttcIndex = ttcIndexColumnIndex != -1 865 result.add(new FontInfo(fileUri, ttcIndex, weight, italic, resultCode));
|
/frameworks/support/compat/src/androidTest/java/androidx/core/provider/ |
H A D | MockFontProvider.java | 69 Font(int id, int fileId, int ttcIndex, String varSettings, int weight, int italic, argument 73 mTtcIndex = ttcIndex;
|