Searched refs:tf (Results 1 – 9 of 9) sorted by relevance
/frameworks/base/core/java/android/text/style/ |
D | TextAppearanceSpan.java | 71 int tf = a.getInt(com.android.internal.R.styleable.TextAppearance_typeface, 0); in TextAppearanceSpan() local 73 switch (tf) { in TextAppearanceSpan() 215 Typeface tf = ds.getTypeface(); in updateMeasureState() local 218 if (tf != null) { in updateMeasureState() 219 style = tf.getStyle(); in updateMeasureState() 225 tf = Typeface.create(mTypeface, style); in updateMeasureState() 226 } else if (tf == null) { in updateMeasureState() 227 tf = Typeface.defaultFromStyle(style); in updateMeasureState() 229 tf = Typeface.create(tf, style); in updateMeasureState() 232 int fake = style & ~tf.getStyle(); in updateMeasureState() [all …]
|
D | StyleSpan.java | 93 Typeface tf; in apply() local 95 tf = Typeface.defaultFromStyle(want); in apply() 97 tf = Typeface.create(old, want); in apply() 100 int fake = want & ~tf.getStyle(); in apply() 110 paint.setTypeface(tf); in apply()
|
D | TypefaceSpan.java | 83 Typeface tf = Typeface.create(family, oldStyle); in apply() local 84 int fake = oldStyle & ~tf.getStyle(); in apply() 94 paint.setTypeface(tf); in apply()
|
/frameworks/base/core/java/android/widget/ |
D | Switch.java | 211 Typeface tf = null; in setSwitchTypefaceByIndex() local 214 tf = Typeface.SANS_SERIF; in setSwitchTypefaceByIndex() 218 tf = Typeface.SERIF; in setSwitchTypefaceByIndex() 222 tf = Typeface.MONOSPACE; in setSwitchTypefaceByIndex() 226 setSwitchTypeface(tf, styleIndex); in setSwitchTypefaceByIndex() 235 public void setSwitchTypeface(Typeface tf, int style) { in setSwitchTypeface() argument 237 if (tf == null) { in setSwitchTypeface() 238 tf = Typeface.defaultFromStyle(style); in setSwitchTypeface() 240 tf = Typeface.create(tf, style); in setSwitchTypeface() 243 setSwitchTypeface(tf); in setSwitchTypeface() [all …]
|
D | TextView.java | 1127 Typeface tf = null; in setTypefaceByIndex() local 1130 tf = Typeface.SANS_SERIF; in setTypefaceByIndex() 1134 tf = Typeface.SERIF; in setTypefaceByIndex() 1138 tf = Typeface.MONOSPACE; in setTypefaceByIndex() 1142 setTypeface(tf, styleIndex); in setTypefaceByIndex() 1212 public void setTypeface(Typeface tf, int style) { in setTypeface() argument 1214 if (tf == null) { in setTypeface() 1215 tf = Typeface.defaultFromStyle(style); in setTypeface() 1217 tf = Typeface.create(tf, style); in setTypeface() 1220 setTypeface(tf); in setTypeface() [all …]
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | SpannedTest.java | 99 TypefaceSpan[] tf = s2.getSpans(8, 9, TypefaceSpan.class); in testWrapParcel() local 100 assertEquals(1, tf.length); in testWrapParcel() 101 assertEquals(8, s2.getSpanStart(tf[0])); in testWrapParcel() 102 assertEquals(9, s2.getSpanEnd(tf[0])); in testWrapParcel()
|
/frameworks/base/tests/BrowserTestPlugin/jni/event/ |
D | EventPlugin.cpp | 89 ANPTypeface* tf = gTypefaceI.createFromName("serif", kItalic_ANPTypefaceStyle); in drawPlugin() local 90 gPaintI.setTypeface(paint, tf); in drawPlugin() 91 gTypefaceI.unref(tf); in drawPlugin()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | DigitalClock.java | 108 AmPm(View parent, Typeface tf) { in AmPm() argument 110 if (mAmPmTextView != null && tf != null) { in AmPm() 111 mAmPmTextView.setTypeface(tf); in AmPm()
|
/frameworks/base/services/java/com/android/server/ |
D | BackupManagerService.java | 862 RandomAccessFile tf = new RandomAccessFile(mTokenFile, "r"); in initPackageTracking() local 863 int version = tf.readInt(); in initPackageTracking() 865 mAncestralToken = tf.readLong(); in initPackageTracking() 866 mCurrentToken = tf.readLong(); in initPackageTracking() 868 int numPackages = tf.readInt(); in initPackageTracking() 872 String pkgName = tf.readUTF(); in initPackageTracking() 877 tf.close(); in initPackageTracking()
|