Home
last modified time | relevance | path

Searched refs:tf (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/core/java/android/text/style/
DTextAppearanceSpan.java75 int tf = a.getInt(com.android.internal.R.styleable.TextAppearance_typeface, 0); in TextAppearanceSpan() local
77 switch (tf) { in TextAppearanceSpan()
230 Typeface tf = ds.getTypeface(); in updateMeasureState() local
233 if (tf != null) { in updateMeasureState()
234 style = tf.getStyle(); in updateMeasureState()
240 tf = Typeface.create(mTypeface, style); in updateMeasureState()
241 } else if (tf == null) { in updateMeasureState()
242 tf = Typeface.defaultFromStyle(style); in updateMeasureState()
244 tf = Typeface.create(tf, style); in updateMeasureState()
247 int fake = style & ~tf.getStyle(); in updateMeasureState()
[all …]
DStyleSpan.java103 Typeface tf; in apply() local
105 tf = Typeface.defaultFromStyle(want); in apply()
107 tf = Typeface.create(old, want); in apply()
110 int fake = want & ~tf.getStyle(); in apply()
120 paint.setTypeface(tf); in apply()
DTypefaceSpan.java93 Typeface tf = Typeface.create(family, oldStyle); in apply() local
94 int fake = oldStyle & ~tf.getStyle(); in apply()
104 paint.setTypeface(tf); in apply()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DSwitchCompat.java275 Typeface tf = null; in setSwitchTypefaceByIndex() local
278 tf = Typeface.SANS_SERIF; in setSwitchTypefaceByIndex()
282 tf = Typeface.SERIF; in setSwitchTypefaceByIndex()
286 tf = Typeface.MONOSPACE; in setSwitchTypefaceByIndex()
290 setSwitchTypeface(tf, styleIndex); in setSwitchTypefaceByIndex()
299 public void setSwitchTypeface(Typeface tf, int style) { in setSwitchTypeface() argument
301 if (tf == null) { in setSwitchTypeface()
302 tf = Typeface.defaultFromStyle(style); in setSwitchTypeface()
304 tf = Typeface.create(tf, style); in setSwitchTypeface()
307 setSwitchTypeface(tf); in setSwitchTypeface()
[all …]
/frameworks/base/core/java/android/widget/
DSwitch.java347 Typeface tf = null; in setSwitchTypefaceByIndex() local
350 tf = Typeface.SANS_SERIF; in setSwitchTypefaceByIndex()
354 tf = Typeface.SERIF; in setSwitchTypefaceByIndex()
358 tf = Typeface.MONOSPACE; in setSwitchTypefaceByIndex()
362 setSwitchTypeface(tf, styleIndex); in setSwitchTypefaceByIndex()
371 public void setSwitchTypeface(Typeface tf, int style) { in setSwitchTypeface() argument
373 if (tf == null) { in setSwitchTypeface()
374 tf = Typeface.defaultFromStyle(style); in setSwitchTypeface()
376 tf = Typeface.create(tf, style); in setSwitchTypeface()
379 setSwitchTypeface(tf); in setSwitchTypeface()
[all …]
DTextView.java1485 Typeface tf = null; in setTypefaceFromAttrs() local
1487 tf = Typeface.create(familyName, styleIndex); in setTypefaceFromAttrs()
1488 if (tf != null) { in setTypefaceFromAttrs()
1489 setTypeface(tf); in setTypefaceFromAttrs()
1495 tf = Typeface.SANS_SERIF; in setTypefaceFromAttrs()
1499 tf = Typeface.SERIF; in setTypefaceFromAttrs()
1503 tf = Typeface.MONOSPACE; in setTypefaceFromAttrs()
1507 setTypeface(tf, styleIndex); in setTypefaceFromAttrs()
1591 public void setTypeface(Typeface tf, int style) { in setTypeface() argument
1593 if (tf == null) { in setTypeface()
[all …]
/frameworks/base/core/tests/coretests/src/android/text/
DSpannedTest.java99 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/packages/SystemUI/src/com/android/systemui/qs/
DQSDualTileLabel.java141 public void setTypeface(Typeface tf) { in setTypeface() argument
142 mFirstLine.setTypeface(tf); in setTypeface()
143 mSecondLine.setTypeface(tf); in setTypeface()
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/
DAmPmCirclesView.java82 Typeface tf = Typeface.create(typefaceFamily, Typeface.NORMAL); in initialize() local
83 mPaint.setTypeface(tf); in initialize()
/frameworks/base/services/backup/java/com/android/server/backup/
DBackupManagerService.java1182 RandomAccessFile tf = new RandomAccessFile(mTokenFile, "r"); in initPackageTracking() local
1183 int version = tf.readInt(); in initPackageTracking()
1185 mAncestralToken = tf.readLong(); in initPackageTracking()
1186 mCurrentToken = tf.readLong(); in initPackageTracking()
1188 int numPackages = tf.readInt(); in initPackageTracking()
1192 String pkgName = tf.readUTF(); in initPackageTracking()
1197 tf.close(); in initPackageTracking()