Home
last modified time | relevance | path

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

/frameworks/base/graphics/java/android/graphics/
DFontFamily.java92 public boolean addFont(String path, int ttcIndex, FontVariationAxis[] axes, int weight, in addFont() argument
106 return nAddFont(mBuilderPtr, fontBuffer, ttcIndex, weight, italic); in addFont()
113 public boolean addFontFromBuffer(ByteBuffer font, int ttcIndex, FontVariationAxis[] axes, in addFontFromBuffer() argument
123 return nAddFontWeightStyle(mBuilderPtr, font, ttcIndex, weight, italic); in addFontFromBuffer()
139 boolean isAsset, int ttcIndex, int weight, int isItalic, in addFontFromAssetManager() argument
149 return nAddFontFromAssetManager(mBuilderPtr, mgr, path, cookie, isAsset, ttcIndex, weight, in addFontFromAssetManager()
173 private static boolean nAddFont(long builderPtr, ByteBuffer font, int ttcIndex) { in nAddFont() argument
174 return nAddFont(builderPtr, font, ttcIndex, -1, -1); in nAddFont()
192 private static native boolean nAddFont(long builderPtr, ByteBuffer font, int ttcIndex, in nAddFont() argument
195 int ttcIndex, int weight, int isItalic); in nAddFontWeightStyle() argument
[all …]
DTypeface.java419 public Builder setTtcIndex(@IntRange(from = 0) int ttcIndex) { in setTtcIndex()
424 mTtcIndex = ttcIndex; in setTtcIndex()
500 private static String createAssetUid(final AssetManager mgr, String path, int ttcIndex, in createAssetUid() argument
511 builder.append(Integer.toString(ttcIndex)); in createAssetUid()
/frameworks/base/core/jni/android/graphics/
DFontFamily.cpp98 static bool addSkTypeface(NativeFamilyBuilder* builder, sk_sp<SkData>&& data, int ttcIndex, in addSkTypeface() argument
110 params.setCollectionIndex(ttcIndex); in addSkTypeface()
121 std::make_shared<MinikinFontSkia>(std::move(face), fontPtr, fontSize, ttcIndex, in addSkTypeface()
171 jint ttcIndex, jint weight, jint isItalic) { in FontFamily_addFont() argument
189 return addSkTypeface(builder, std::move(data), ttcIndex, weight, isItalic); in FontFamily_addFont()
193 jobject font, jint ttcIndex, jint weight, jint isItalic) { in FontFamily_addFontWeightStyle() argument
211 return addSkTypeface(builder, std::move(data), ttcIndex, weight, isItalic); in FontFamily_addFontWeightStyle()
219 jobject jassetMgr, jstring jpath, jint cookie, jboolean isAsset, jint ttcIndex, in FontFamily_addFontFromAssetManager() argument
258 return addSkTypeface(builder, std::move(data), ttcIndex, weight, isItalic); in FontFamily_addFontFromAssetManager()
/frameworks/base/libs/hwui/hwui/
DMinikinSkia.cpp28 int ttcIndex, const std::vector<minikin::FontVariation>& axes) : in MinikinFontSkia() argument
30 mFontSize(fontSize), mTtcIndex(ttcIndex), mAxes(axes) { in MinikinFontSkia()
98 int ttcIndex; in createFontWithVariation() local
99 SkStreamAsset* stream = mTypeface->openStream(&ttcIndex); in createFontWithVariation()
102 params.setCollectionIndex(ttcIndex); in createFontWithVariation()
113 return std::make_shared<MinikinFontSkia>(std::move(face), mFontData, mFontSize, ttcIndex, in createFontWithVariation()
DMinikinSkia.h32 int ttcIndex, const std::vector<minikin::FontVariation>& axes);
/frameworks/minikin/tests/stresstest/
DFontFamilyTest.cpp34 int ttcIndex = GetParam().second; in TEST_P() local
36 std::shared_ptr<MinikinFont> font(new MinikinFontForTest(fontPath, ttcIndex)); in TEST_P()
59 << "Inconsistent Result: " << fontPath << "#" << ttcIndex in TEST_P()
/frameworks/layoutlib/bridge/src/android/graphics/
DFontFamily_Delegate.java253 /*package*/ static boolean addFont(FontFamily thisFontFamily, String path, int ttcIndex, in addFont() argument
260 return delegate != null && delegate.addFont(path, ttcIndex, weight, italic); in addFont()
293 /*package*/ static boolean nAddFont(long builderPtr, ByteBuffer font, int ttcIndex,
301 int ttcIndex, int weight, int isItalic) {
327 int cookie, boolean isAsset, int ttcIndex, int weight, int isItalic) {
431 private boolean addFont(final String path, int ttcIndex, int weight, int italic) {
/frameworks/support/compat/java/android/support/v4/graphics/
DTypefaceCompatApi26Impl.java143 int ttcIndex, int weight, int style) { in addFontFromAssetManager() argument
146 context.getAssets(), fileName, 0 /* cookie */, false /* isAsset */, ttcIndex, in addFontFromAssetManager()
159 int ttcIndex, int weight, int style) { in addFontFromBuffer() argument
162 buffer, ttcIndex, null /* axes */, weight, style); in addFontFromBuffer()
DTypefaceCompatApi24Impl.java108 private static boolean addFontWeightStyle(Object family, ByteBuffer buffer, int ttcIndex, in addFontWeightStyle() argument
112 family, buffer, ttcIndex, null /* variation axis */, weight, style); in addFontWeightStyle()
/frameworks/base/core/java/android/text/
DFontConfig.java71 public Font(@NonNull String fontName, int ttcIndex, @NonNull FontVariationAxis[] axes, in Font() argument
74 mTtcIndex = ttcIndex; in Font()
/frameworks/base/core/java/android/provider/
DFontsContract.java199 public FontInfo(@NonNull Uri uri, @IntRange(from = 0) int ttcIndex, in FontInfo()
203 mTtcIndex = ttcIndex; in FontInfo()
784 final int ttcIndex = ttcIndexColumnIndex != -1 in getFontFromProvider() local
808 result.add(new FontInfo(fileUri, ttcIndex, axes, weight, italic, resultCode)); in getFontFromProvider()
/frameworks/base/core/tests/coretests/src/android/provider/
DMockFontProvider.java101 public Font(int id, int fileId, int ttcIndex, String varSettings, int weight, int italic, in Font() argument
105 mTtcIndex = ttcIndex; in Font()
/frameworks/support/compat/java/android/support/v4/provider/
DFontsContractCompat.java298 public FontInfo(@NonNull Uri uri, @IntRange(from = 0) int ttcIndex, in FontInfo()
302 mTtcIndex = ttcIndex; in FontInfo()
794 final int ttcIndex = ttcIndexColumnIndex != -1 in getFontFromProvider() local
808 result.add(new FontInfo(fileUri, ttcIndex, weight, italic, resultCode)); in getFontFromProvider()
/frameworks/support/compat/tests/java/android/support/v4/provider/
DMockFontProvider.java64 Font(int id, int fileId, int ttcIndex, String varSettings, int weight, int italic, in Font() argument
68 mTtcIndex = ttcIndex; in Font()