/frameworks/base/graphics/java/android/graphics/ |
D | Typeface.java | 239 Typeface typeface = FontsContract.getFontSync(request); in createFromResources() local 240 return typeface == null ? DEFAULT : typeface; in createFromResources() 243 Typeface typeface = findFromCache(mgr, path); in createFromResources() local 244 if (typeface != null) return typeface; in createFromResources() 286 typeface = new Typeface.CustomFallbackBuilder(family) in createFromResources() 294 typeface = Typeface.DEFAULT; in createFromResources() 300 sDynamicTypefaceCache.put(key, typeface); in createFromResources() 302 return typeface; in createFromResources() 314 Typeface typeface = sDynamicTypefaceCache.get(key); in findFromCache() local 315 if (typeface != null) { in findFromCache() [all …]
|
D | LeakyTypefaceStorage.java | 52 public static void writeTypefaceToParcel(@Nullable Typeface typeface, @NonNull Parcel parcel) { in writeTypefaceToParcel() argument 56 final Integer i = sTypefaceMap.get(typeface); in writeTypefaceToParcel() 61 sStorage.add(typeface); in writeTypefaceToParcel() 62 sTypefaceMap.put(typeface, id); in writeTypefaceToParcel()
|
/frameworks/base/libs/hwui/hwui/ |
D | MinikinUtils.cpp | 31 const Typeface* typeface) { in prepareMinikinPaint() argument 32 const Typeface* resolvedFace = Typeface::resolveDefault(typeface); in prepareMinikinPaint() 52 const Typeface* typeface, const uint16_t* buf, in doLayout() argument 56 minikin::MinikinPaint minikinPaint = prepareMinikinPaint(paint, typeface); in doLayout() 73 const Typeface* typeface, const uint16_t* buf, size_t start, in measureText() argument 75 minikin::MinikinPaint minikinPaint = prepareMinikinPaint(paint, typeface); in measureText() 85 bool MinikinUtils::hasVariationSelector(const Typeface* typeface, uint32_t codepoint, uint32_t vs) { in hasVariationSelector() argument 86 const Typeface* resolvedFace = Typeface::resolveDefault(typeface); in hasVariationSelector()
|
D | MinikinUtils.h | 43 const Typeface* typeface); 46 const Typeface* typeface, const uint16_t* buf, 52 const Typeface* typeface, const uint16_t* buf, 56 ANDROID_API static bool hasVariationSelector(const Typeface* typeface, uint32_t codepoint,
|
D | Typeface.cpp | 138 : families[0]->getClosestMatch(defaultStyle).font->typeface().get(); in createFromFamilies() 182 sk_sp<SkTypeface> typeface = SkTypeface::MakeFromStream(std::move(fontData)); in setRobotoTypefaceForTest() local 183 LOG_ALWAYS_FATAL_IF(typeface == nullptr, "Failed to make typeface from %s", kRobotoFont); in setRobotoTypefaceForTest() 186 std::move(typeface), data, st.st_size, kRobotoFont, 0, in setRobotoTypefaceForTest()
|
D | Canvas.cpp | 153 const Paint& origPaint, const Typeface* typeface, minikin::MeasuredText* mt) { in drawText() argument 157 minikin::Layout layout = MinikinUtils::doLayout(&paint, bidiFlags, typeface, text, textSize, in drawText() 238 const Typeface* typeface) { in drawTextOnPath() argument 241 MinikinUtils::doLayout(&paintCopy, bidiFlags, typeface, text, count, // text buffer in drawTextOnPath()
|
D | Paint.h | 113 void setAndroidTypeface(Typeface* typeface) { mTypeface = typeface; } in setAndroidTypeface() argument
|
D | MinikinSkia.cpp | 33 MinikinFontSkia::MinikinFontSkia(sk_sp<SkTypeface> typeface, const void* fontData, size_t fontSize, in MinikinFontSkia() argument 36 : minikin::MinikinFont(typeface->uniqueID()) in MinikinFontSkia() 37 , mTypeface(std::move(typeface)) in MinikinFontSkia()
|
D | MinikinSkia.h | 31 MinikinFontSkia(sk_sp<SkTypeface> typeface, const void* fontData, size_t fontSize,
|
D | Canvas.h | 288 const Paint& origPaint, const Typeface* typeface, minikin::MeasuredText* mt); 292 const Typeface* typeface);
|
/frameworks/base/core/jni/android/graphics/ |
D | Paint.cpp | 115 static int breakText(JNIEnv* env, const Paint& paint, const Typeface* typeface, in breakText() argument 122 MinikinUtils::measureText(&paint, static_cast<minikin::Bidi>(bidiFlags), typeface, text, in breakText() 152 const Typeface* typeface = paint->getAndroidTypeface(); in breakTextC() local 169 count = breakText(env, *paint, typeface, text + index, count, maxWidth, in breakTextC() 181 const Typeface* typeface = paint->getAndroidTypeface(); in breakTextS() local 185 …count = breakText(env, *paint, typeface, text, count, maxWidth, bidiFlags, jmeasuredWidth, forward… in breakTextS() 190 static jfloat doTextAdvances(JNIEnv *env, Paint *paint, const Typeface* typeface, in doTextAdvances() argument 214 static_cast<minikin::Bidi>(bidiFlags), typeface, text, start, count, contextCount, in doTextAdvances() 226 const Typeface* typeface = paint->getAndroidTypeface(); in getTextAdvances___CIIIII_FI() local 228 jfloat result = doTextAdvances(env, paint, typeface, textArray + contextIndex, in getTextAdvances___CIIIII_FI() [all …]
|
/frameworks/minikin/tests/unittest/ |
D | FontTest.cpp | 32 EXPECT_EQ(font.typeface(), copied.typeface()); in TEST() 38 EXPECT_EQ(font.typeface(), copied.typeface()); in TEST()
|
/frameworks/minikin/include/minikin/ |
D | Font.h | 67 Builder(const std::shared_ptr<MinikinFont>& typeface) : mTypeface(typeface) {} in Builder() argument 112 inline const std::shared_ptr<MinikinFont>& typeface() const { return mTypeface; } in typeface() function 120 Font(std::shared_ptr<MinikinFont>&& typeface, FontStyle style, HbFontUniquePtr&& baseFont) in Font() argument 121 : mTypeface(std::move(typeface)), mStyle(style), mBaseFont(std::move(baseFont)) {} in Font() 123 static HbFontUniquePtr prepareFont(const std::shared_ptr<MinikinFont>& typeface);
|
D | FontCollection.h | 36 explicit FontCollection(std::shared_ptr<FontFamily>&& typeface);
|
/frameworks/minikin/libs/minikin/ |
D | FontFamily.cpp | 58 HbFontUniquePtr Font::prepareFont(const std::shared_ptr<MinikinFont>& typeface) { in prepareFont() argument 59 const char* buf = reinterpret_cast<const char*>(typeface->GetFontData()); in prepareFont() 60 size_t size = typeface->GetFontSize(); in prepareFont() 61 uint32_t ttcIndex = typeface->GetFontIndex(); in prepareFont() 73 variations.reserve(typeface->GetAxes().size()); in prepareFont() 74 for (const FontVariation& variation : typeface->GetAxes()) { in prepareFont() 233 minikinFont = font.typeface()->createFontWithVariation(variations); in createFamilyWithVariation() 236 minikinFont = font.typeface(); in createFamilyWithVariation()
|
/frameworks/base/core/java/android/text/style/ |
D | TypefaceSpan.java | 78 public TypefaceSpan(@NonNull Typeface typeface) { in TypefaceSpan() argument 79 this(null, typeface); in TypefaceSpan() 90 private TypefaceSpan(@Nullable String family, @Nullable Typeface typeface) { in TypefaceSpan() argument 92 mTypeface = typeface; in TypefaceSpan()
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
D | FontsContractE2ETest.java | 92 public void onTypefaceRetrieved(Typeface typeface) { in onTypefaceRetrieved() argument 93 mTypeface = typeface; in onTypefaceRetrieved() 163 Typeface typeface = FontsContract.buildTypeface( in typefaceNotCacheTest() local 173 assertNotSame(typeface, typeface2); in typefaceNotCacheTest()
|
/frameworks/base/core/java/android/provider/ |
D | FontsContract.java | 356 Typeface typeface = buildTypeface(sContext, null, result.getFonts()); in getFontSync() local 357 if (typeface != null) { in getFontSync() 358 sTypefaceCache.put(id, typeface); in getFontSync() 360 holder.set(typeface); in getFontSync() 459 public void onTypefaceRetrieved(Typeface typeface) {} in onTypefaceRetrieved() argument 563 final Typeface typeface = buildTypeface(context, cancellationSignal, fonts); in requestFonts() local 564 if (typeface == null) { in requestFonts() 572 sTypefaceCache.put(request.getIdentifier(), typeface); in requestFonts() local 573 callerThreadHandler.post(() -> callback.onTypefaceRetrieved(typeface)); in requestFonts()
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
D | Typeface_Delegate.java | 242 Typeface typeface = Typeface.findFromCache(context.getAssets(), path); in createFromDisk() local 243 if (typeface != null) { in createFromDisk() 244 return typeface; in createFromDisk() 267 typeface = Typeface.createFromResources(entry, context.getAssets(), path); in createFromDisk() 279 typeface = new Typeface.Builder(context.getAssets(), path).build(); in createFromDisk() 282 return typeface; in createFromDisk()
|
D | Paint_Delegate.java | 130 Typeface_Delegate typeface = mTypeface; in getFonts() local 131 if (typeface == null) { in getFonts() 136 typeface = Typeface_Delegate.getDelegate(Typeface.sDefaultTypeface.native_instance); in getFonts() 148 List<FontInfo> infoList = StreamSupport.stream(typeface.getFonts(mFontVariant).spliterator in getFonts() 899 /*package*/ static void nSetTypeface(long native_object, long typeface) { in nSetTypeface() argument 906 Typeface_Delegate typefaceDelegate = Typeface_Delegate.getDelegate(typeface); in nSetTypeface()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | SubtitleView.java | 196 public void setTypeface(Typeface typeface) { in setTypeface() argument 197 if (mTextPaint.getTypeface() != typeface) { in setTypeface() 198 mTextPaint.setTypeface(typeface); in setTypeface() 287 final Typeface typeface = style.getTypeface(); in setStyle() local 288 setTypeface(typeface); in setStyle()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | TypefaceTests.cpp | 55 sk_sp<SkTypeface> typeface(fm->makeFromStream(std::move(fontData))); in buildFamily() local 56 LOG_ALWAYS_FATAL_IF(typeface == nullptr, "Failed to make typeface from %s", fileName); in buildFamily() 58 std::make_shared<MinikinFontSkia>(std::move(typeface), data, st.st_size, fileName, 0, in buildFamily() 425 std::unique_ptr<Typeface> typeface(Typeface::createFromFamilies( in TEST() local 427 EXPECT_EQ(400, typeface->fStyle.weight()); in TEST() 428 EXPECT_EQ(minikin::FontStyle::Slant::UPRIGHT, typeface->fStyle.slant()); in TEST() 434 std::unique_ptr<Typeface> typeface(Typeface::createFromFamilies( in TEST() local 436 EXPECT_EQ(700, typeface->fStyle.weight()); in TEST() 437 EXPECT_EQ(minikin::FontStyle::Slant::UPRIGHT, typeface->fStyle.slant()); in TEST()
|
/frameworks/base/core/jni/ |
D | android_graphics_Canvas.cpp | 545 const Typeface* typeface = paint->getAndroidTypeface(); in drawTextChars() local 553 static_cast<minikin::Bidi>(bidiFlags), *paint, typeface, nullptr /* measured text */); in drawTextChars() 561 const Typeface* typeface = paint->getAndroidTypeface(); in drawTextString() local 569 static_cast<minikin::Bidi>(bidiFlags), *paint, typeface, nullptr /* measured text */); in drawTextString() 581 const Typeface* typeface = paint->getAndroidTypeface(); in drawTextRunChars() local 587 bidiFlags, *paint, typeface, mt); in drawTextRunChars() 597 const Typeface* typeface = paint->getAndroidTypeface(); in drawTextRunString() local 603 bidiFlags, *paint, typeface, nullptr /* measured text */); in drawTextRunString() 611 const Typeface* typeface = paint->getAndroidTypeface(); in drawTextOnPathChars() local 616 static_cast<minikin::Bidi>(bidiFlags), *path, hOffset, vOffset, *paint, typeface); in drawTextOnPathChars() [all …]
|
/frameworks/base/core/jni/android/graphics/text/ |
D | MeasuredText.cpp | 71 const Typeface* typeface = Typeface::resolveDefault(paint->getAndroidTypeface()); in nAddStyleRun() local 72 minikin::MinikinPaint minikinPaint = MinikinUtils::prepareMinikinPaint(paint, typeface); in nAddStyleRun()
|
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/ |
D | CarSetupWizardLayout.java | 634 Typeface typeface = Typeface.create(fontFamily, Typeface.NORMAL); in setButtonTypeFace() local 635 if (Objects.equals(typeface, Typeface.DEFAULT)) { in setButtonTypeFace() 640 button.setTypeface(typeface); in setButtonTypeFace()
|