Home
last modified time | relevance | path

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

/frameworks/base/graphics/java/android/graphics/
DFontFamily.java139 public boolean addFont(String path, int ttcIndex, FontVariationAxis[] axes, int weight, in addFont() argument
153 return nAddFont(mBuilderPtr, fontBuffer, ttcIndex, weight, italic); in addFont()
164 public boolean addFontFromBuffer(ByteBuffer font, int ttcIndex, FontVariationAxis[] axes, in addFontFromBuffer() argument
174 return nAddFontWeightStyle(mBuilderPtr, font, ttcIndex, weight, italic); in addFontFromBuffer()
194 boolean isAsset, int ttcIndex, int weight, int isItalic, in addFontFromAssetManager() argument
202 return addFontFromBuffer(buffer, ttcIndex, axes, weight, isItalic); in addFontFromAssetManager()
220 private static native boolean nAddFont(long builderPtr, ByteBuffer font, int ttcIndex, in nAddFont() argument
223 int ttcIndex, int weight, int isItalic); in nAddFontWeightStyle() argument
DTypeface.java555 public Builder setTtcIndex(@IntRange(from = 0) int ttcIndex) { in setTtcIndex()
556 mFontBuilder.setTtcIndex(ttcIndex); in setTtcIndex()
618 private static String createAssetUid(final AssetManager mgr, String path, int ttcIndex, in createAssetUid() argument
629 builder.append(Integer.toString(ttcIndex)); in createAssetUid()
/frameworks/base/libs/hwui/jni/
DFontFamily.cpp112 static bool addSkTypeface(NativeFamilyBuilder* builder, sk_sp<SkData>&& data, int ttcIndex, in addSkTypeface() argument
124 args.setCollectionIndex(ttcIndex); in addSkTypeface()
136 fontSize, "", ttcIndex, builder->axes); in addSkTypeface()
170 jint ttcIndex, jint weight, jint isItalic) { in FontFamily_addFont() argument
188 return addSkTypeface(builder, std::move(data), ttcIndex, weight, isItalic); in FontFamily_addFont()
192 jobject font, jint ttcIndex, jint weight, jint isItalic) { in FontFamily_addFontWeightStyle() argument
210 return addSkTypeface(builder, std::move(data), ttcIndex, weight, isItalic); in FontFamily_addFontWeightStyle()
/frameworks/base/libs/hwui/hwui/
DMinikinSkia.cpp34 size_t fontSize, std::string_view filePath, int ttcIndex, in MinikinFontSkia() argument
40 , mTtcIndex(ttcIndex) in MinikinFontSkia()
130 int ttcIndex; in createFontWithVariation() local
131 std::unique_ptr<SkStreamAsset> stream(mTypeface->openStream(&ttcIndex)); in createFontWithVariation()
134 args.setCollectionIndex(ttcIndex); in createFontWithVariation()
146 mFilePath, ttcIndex, variations); in createFontWithVariation()
DMinikinSkia.h34 std::string_view filePath, int ttcIndex,
/frameworks/layoutlib/bridge/src/android/graphics/
DTypeface_Builder_Delegate.java38 public static String createAssetUid(final AssetManager mgr, String path, int ttcIndex, in createAssetUid() argument
40 return Builder.createAssetUid_Original(mgr, path, ttcIndex, axes, weight, italic, fallback); in createAssetUid()
DFontFamily_Delegate.java291 /*package*/ static boolean addFont(FontFamily thisFontFamily, String path, int ttcIndex, in addFont() argument
298 return delegate != null && delegate.addFont(path, ttcIndex, weight, italic); in addFont()
335 /*package*/ static boolean nAddFont(long builderPtr, ByteBuffer font, int ttcIndex,
343 int ttcIndex, int weight, int isItalic) {
383 private boolean addFont(final String path, int ttcIndex, int weight, int italic) {
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DFontInterpolator.kt66 font.ttcIndex, in <lambda>()
72 index = font.ttcIndex in <lambda>()
220 start.ttcIndex == end.ttcIndex && start.sourceIdentifier == end.sourceIdentifier in <lambda>()
/frameworks/base/graphics/java/android/graphics/fonts/
DFontFileUtil.java72 @IntRange(from = 0) int ttcIndex, @Nullable FontVariationAxis[] varSettings) { in analyzeStyle()
99 if (ttcIndex >= buffer.getInt(8 /* offset to number of fonts in TTC */)) { in analyzeStyle()
103 12 /* offset to array of offsets of font files */ + 4 * ttcIndex); in analyzeStyle()
DFont.java413 public @NonNull Builder setTtcIndex(@IntRange(from = 0) int ttcIndex) { in setTtcIndex()
414 mTtcIndex = ttcIndex; in setTtcIndex()
499 @NonNull String localeList, int weight, boolean italic, int ttcIndex); in nBuild() argument
505 boolean italic, int ttcIndex); in nClone() argument
/frameworks/base/core/tests/coretests/src/android/graphics/
DFontFileUtilTest.java127 int ttcIndex = FontTestUtil.getTtcIndexFromStyle(weight, italic); in testTtcFont() local
129 int packed = FontFileUtil.analyzeStyle(buffer, ttcIndex, null); in testTtcFont()
130 assertEquals(path + "#" + ttcIndex, weight, FontFileUtil.unpackWeight(packed)); in testTtcFont()
131 assertEquals(path + "#" + ttcIndex, italic, FontFileUtil.unpackItalic(packed)); in testTtcFont()
/frameworks/minikin/tests/stresstest/
DFontFamilyTest.cpp36 int ttcIndex = GetParam().second; in TEST_P() local
61 << "Inconsistent Result: " << fontPath << "#" << ttcIndex << ": U+" << std::hex in TEST_P()
/frameworks/base/core/java/android/content/res/
DFontResourcesParser.java98 @Nullable String variationSettings, int ttcIndex) { in FontFileResourceEntry() argument
103 mTtcIndex = ttcIndex; in FontFileResourceEntry()
241 int ttcIndex = array.getInt(R.styleable.FontFamilyFont_ttcIndex, 0); in readFont() local
250 return new FontFileResourceEntry(filename, weight, italic, variationSettings, ttcIndex); in readFont()
/frameworks/layoutlib/bridge/src/android/graphics/fonts/
DFont_Builder_Delegate.java92 boolean italic, int ttcIndex) { in nBuild() argument
98 font.mTtcIndex = ttcIndex; in nBuild()
/frameworks/base/libs/hwui/jni/fonts/
DFont.cpp85 jint ttcIndex) { in Font_Builder_build() argument
106 fontPtr, fontSize, ttcIndex, builder->axes); in Font_Builder_build()
124 jint weight, jboolean italic, jint ttcIndex) { in Font_Builder_clone() argument
135 args.setCollectionIndex(ttcIndex); in Font_Builder_clone()
449 int ttcIndex, const std::vector<minikin::FontVariation>& axes) { in createMinikinFontSkia() argument
458 args.setCollectionIndex(ttcIndex); in createMinikinFontSkia()
467 fontPath, ttcIndex, axes); in createMinikinFontSkia()
DFont.h34 int ttcIndex, const std::vector<minikin::FontVariation>& axes);
/frameworks/minikin/libs/minikin/
DFont.cpp79 uint32_t ttcIndex = typeface->GetFontIndex(); in prepareFont() local
82 HbFaceUniquePtr face(hb_face_create(blob.get(), ttcIndex)); in prepareFont()
/frameworks/base/core/tests/coretests/src/android/provider/
DMockFontProvider.java97 public Font(int id, int fileId, int ttcIndex, String varSettings, int weight, int italic, in Font() argument
101 mTtcIndex = ttcIndex; in Font()
/frameworks/base/core/java/android/provider/
DFontsContract.java208 public FontInfo(@NonNull Uri uri, @IntRange(from = 0) int ttcIndex, in FontInfo()
212 mTtcIndex = ttcIndex; in FontInfo()
866 final int ttcIndex = ttcIndexColumnIndex != -1 in getFontFromProvider() local
890 result.add(new FontInfo(fileUri, ttcIndex, axes, weight, italic, resultCode)); in getFontFromProvider()
/frameworks/base/core/api/
Dcurrent.txt1578 field public static final int ttcIndex = 16844143; // 0x101056f
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt80010 Lcom/android/internal/R$attr;->ttcIndex:I