/external/skqp/src/ports/ |
SkFontMgr_FontConfigInterface.cpp | 105 Result(Request* request, SkTypeface* typeface) 107 , fFace(SkSafeRef(typeface)) {} 286 // Check if a typeface with this FontIdentity is already in the FontIdentity cache.
|
SkFontMgr_custom.cpp | 86 void SkFontStyleSet_Custom::appendTypeface(sk_sp<SkTypeface_Custom> typeface) { 87 fStyles.emplace_back(std::move(typeface));
|
SkFontMgr_fontconfig.cpp | 656 /** Creates a typeface using a typeface cache. 667 // Cannot hold the lock when calling add; an evicted typeface may need to lock. [all...] |
/frameworks/support/compat/src/main/java/androidx/core/graphics/ |
TypefaceCompatApi26Impl.java | 25 import android.graphics.Typeface; 49 * Implementation of the Typeface compat methods for API 26 and above. 165 * Call method Typeface#createFromFamiliesWithDefault( 168 protected Typeface createFromFamiliesWithDefault(Object family) { 172 return (Typeface) mCreateFromFamiliesWithDefault.invoke(null /* static method */, 203 public Typeface createFromFontFamilyFilesResourceEntry(Context context, 225 public Typeface createFromFontInfo(Context context, 233 // public API to create Typeface from file descriptor. 241 return new Typeface.Builder(pfd.getFileDescriptor()) 273 final Typeface typeface = createFromFamiliesWithDefault(fontFamily) local [all...] |
/external/skia/src/core/ |
SkGlyphCache.cpp | 394 msg.printf("cache typeface:%x %25s:(%d,%d,%d)\n %s glyphs:%3d", 478 SkGlyphCache* SkGlyphCache::VisitCache(SkTypeface* typeface, 483 if (!typeface) { 484 typeface = SkTypeface::GetDefaultTypeface(); 488 // Precondition: the typeface id must be the fFontID in the descriptor 495 SkASSERT(typeface->uniqueID() == rec->fFontID); 524 std::unique_ptr<SkScalerContext> ctx = typeface->createScalerContext(effects, desc, true); 527 ctx = typeface->createScalerContext(effects, desc, false);
|
/external/skqp/src/core/ |
SkGlyphCache.cpp | 394 msg.printf("cache typeface:%x %25s:(%d,%d,%d) size:%2g [%g %g %g %g] lum:%02X devG:%d pntG:%d cntr:%d glyphs:%3d", 482 SkGlyphCache* SkGlyphCache::VisitCache(SkTypeface* typeface, 487 if (!typeface) { 488 typeface = SkTypeface::GetDefaultTypeface(); 492 // Precondition: the typeface id must be the fFontID in the descriptor 499 SkASSERT(typeface->uniqueID() == rec->fFontID); 528 std::unique_ptr<SkScalerContext> ctx = typeface->createScalerContext(effects, desc, true); 531 ctx = typeface->createScalerContext(effects, desc, false);
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
Paint_Delegate.java | 128 Typeface_Delegate typeface = mTypeface; local 129 if (typeface == null) { 130 if (Typeface.sDefaultTypeface == null) { 134 typeface = Typeface_Delegate.getDelegate(Typeface.sDefaultTypeface.native_instance); 146 List<FontInfo> infoList = StreamSupport.stream(typeface.getFonts(mFontVariant).spliterator 909 /*package*/ static void nSetTypeface(long native_object, long typeface) { 916 Typeface_Delegate typefaceDelegate = Typeface_Delegate.getDelegate(typeface); [all...] |
/external/skia/src/ports/ |
SkFontMgr_fontconfig.cpp | 656 /** Creates a typeface using a typeface cache. 667 // Cannot hold the lock when calling add; an evicted typeface may need to lock. [all...] |
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
TextViewTest.java | 4 import android.graphics.Typeface; 337 Typeface typeface = Robolectric.newInstanceOf(Typeface.class); local 338 textView.setTypeface(typeface); 339 Assert.assertEquals(typeface, textView.getTypeface());
|
/external/skia/tests/ |
FontMgrTest.cpp | 58 * (e.g. sans -> Arial) then we want to at least get the same typeface back 703 sk_sp<SkTypeface> typeface(test.styleSet.matchStyle(testCase.pattern)); 704 if (typeface) { 705 REPORTER_ASSERT(reporter, typeface->fontStyle() == testCase.expectedResult);
|
/external/skqp/tests/ |
FontMgrTest.cpp | 58 * (e.g. sans -> Arial) then we want to at least get the same typeface back 703 sk_sp<SkTypeface> typeface(test.styleSet.matchStyle(testCase.pattern)); 704 if (typeface) { 705 REPORTER_ASSERT(reporter, typeface->fontStyle() == testCase.expectedResult);
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/cc/ |
CaptionWindowLayout.java | 22 import android.graphics.Typeface; 180 mCharacterStyles.add(new StyleSpan(Typeface.ITALIC)); 369 paint.setTypeface(mCaptionStyleCompat.typeface); 477 paint.setTypeface(mCaptionStyleCompat.typeface); 503 paint.setTypeface(mCaptionStyleCompat.typeface);
|
/external/skia/src/pipe/ |
SkPipeCanvas.cpp | 864 int SkPipeDeduper::findOrDefineTypeface(SkTypeface* typeface) { 865 if (!typeface) { 869 int index = fTypefaces.find(typeface->uniqueID()); 878 sk_sp<SkData> data = encode(fProcs, typeface); 880 index = fTypefaces.add(typeface->uniqueID()); 894 SkDebugf("+++ failed to encode typeface %d\n", typeface->uniqueID()); [all...] |
/external/skqp/src/pipe/ |
SkPipeCanvas.cpp | 864 int SkPipeDeduper::findOrDefineTypeface(SkTypeface* typeface) { 865 if (!typeface) { 869 int index = fTypefaces.find(typeface->uniqueID()); 878 sk_sp<SkData> data = encode(fProcs, typeface); 880 index = fTypefaces.add(typeface->uniqueID()); 894 SkDebugf("+++ failed to encode typeface %d\n", typeface->uniqueID()); [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
FontsContractTest.java | 31 import android.graphics.Typeface; 103 private Typeface mTypeface; 111 public void onTypefaceRetrieved(Typeface typeface) { 113 mTypeface = typeface; 125 public Typeface getTypeface() {
|
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/ |
FitDistanceWatchFaceService.java | 28 import android.graphics.Typeface; 80 private static final Typeface BOLD_TYPEFACE = 81 Typeface.create(Typeface.SANS_SERIF, Typeface.BOLD); 82 private static final Typeface NORMAL_TYPEFACE = 83 Typeface.create(Typeface.SANS_SERIF, Typeface.NORMAL); 235 private Paint createTextPaint(int color, Typeface typeface) [all...] |
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/ |
R.java | 285 public static final int typeface = 0x7f0b0018; field in class:R.attr 348 attr.typeface,
|
/frameworks/minikin/libs/minikin/ |
FontCollection.cpp | 47 FontCollection::FontCollection(std::shared_ptr<FontFamily>&& typeface) : mMaxChar(0) { 49 typefaces.push_back(typeface); 79 MINIKIN_ASSERT(nTypefaces > 0, "Font collection must have at least one valid typeface");
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/ |
RadialTextsView.java | 28 import android.graphics.Typeface; 46 private Typeface mTypefaceLight; 47 private Typeface mTypefaceRegular; 93 mTypefaceLight = Typeface.create(typefaceFamily, Typeface.NORMAL); 95 mTypefaceRegular = Typeface.create(typefaceFamilyRegular, Typeface.NORMAL); 268 private void drawTexts(Canvas canvas, float textSize, Typeface typeface, String[] texts, 271 mPaint.setTypeface(typeface); [all...] |
/frameworks/support/compat/src/androidTest/java/androidx/core/content/res/ |
ResourcesCompatTest.java | 28 import android.graphics.Typeface; 306 Typeface font = ResourcesCompat.getFont(mContext, R.font.samplefont); 309 assertNotSame(Typeface.DEFAULT, font); 314 Typeface mTypeface; 321 public void onFontRetrieved(@NonNull Typeface typeface) { 322 mTypeface = typeface; 343 assertNotSame(Typeface.DEFAULT, callback.mTypeface); 348 Typeface font = ResourcesCompat.getFont(mContext, R.font.samplexmlfont); 351 assertNotSame(Typeface.DEFAULT, font) [all...] |
/packages/apps/Settings/src/com/android/settings/datausage/ |
DataUsageSummaryPreference.java | 22 import android.graphics.Typeface; 55 static final Typeface SANS_SERIF_MEDIUM = 56 Typeface.create("sans-serif-medium", Typeface.NORMAL); 300 carrierInfo, android.R.attr.textColorSecondary, Typeface.SANS_SERIF); 329 TextView carrierInfo, @AttrRes int colorId, Typeface typeface) { 331 carrierInfo.setTypeface(typeface);
|
/external/skia/src/xps/ |
SkXPSDevice.cpp | 2061 TypefaceUse* typeface; local 2119 TypefaceUse* typeface; local [all...] |
/external/skqp/src/xps/ |
SkXPSDevice.cpp | 2061 TypefaceUse* typeface; local 2119 TypefaceUse* typeface; local [all...] |
/external/skia/src/pdf/ |
SkPDFDevice.h | 244 int getFontResourceIndex(SkTypeface* typeface, uint16_t glyphID);
|
/external/skia/tools/debugger/ |
SkJsonWriteBuffer.cpp | 153 void SkJsonWriteBuffer::writeTypeface(SkTypeface* typeface) { 155 this->append("typeface", Json::Value());
|