/frameworks/base/core/java/android/text/style/ |
D | TextAppearanceSpan.java | 75 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 …]
|
D | StyleSpan.java | 103 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()
|
D | TypefaceSpan.java | 93 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/ |
D | SwitchCompat.java | 327 Typeface tf = null; in setSwitchTypefaceByIndex() local 330 tf = Typeface.SANS_SERIF; in setSwitchTypefaceByIndex() 334 tf = Typeface.SERIF; in setSwitchTypefaceByIndex() 338 tf = Typeface.MONOSPACE; in setSwitchTypefaceByIndex() 342 setSwitchTypeface(tf, styleIndex); in setSwitchTypefaceByIndex() 351 public void setSwitchTypeface(Typeface tf, int style) { in setSwitchTypeface() argument 353 if (tf == null) { in setSwitchTypeface() 354 tf = Typeface.defaultFromStyle(style); in setSwitchTypeface() 356 tf = Typeface.create(tf, style); in setSwitchTypeface() 359 setSwitchTypeface(tf); in setSwitchTypeface() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | Switch.java | 348 Typeface tf = null; in setSwitchTypefaceByIndex() local 351 tf = Typeface.SANS_SERIF; in setSwitchTypefaceByIndex() 355 tf = Typeface.SERIF; in setSwitchTypefaceByIndex() 359 tf = Typeface.MONOSPACE; in setSwitchTypefaceByIndex() 363 setSwitchTypeface(tf, styleIndex); in setSwitchTypefaceByIndex() 372 public void setSwitchTypeface(Typeface tf, int style) { in setSwitchTypeface() argument 374 if (tf == null) { in setSwitchTypeface() 375 tf = Typeface.defaultFromStyle(style); in setSwitchTypeface() 377 tf = Typeface.create(tf, style); in setSwitchTypeface() 380 setSwitchTypeface(tf); in setSwitchTypeface() [all …]
|
D | TextView.java | 1529 Typeface tf = null; in setTypefaceFromAttrs() local 1531 tf = Typeface.create(familyName, styleIndex); in setTypefaceFromAttrs() 1532 if (tf != null) { in setTypefaceFromAttrs() 1533 setTypeface(tf); in setTypefaceFromAttrs() 1539 tf = Typeface.SANS_SERIF; in setTypefaceFromAttrs() 1543 tf = Typeface.SERIF; in setTypefaceFromAttrs() 1547 tf = Typeface.MONOSPACE; in setTypefaceFromAttrs() 1551 setTypeface(tf, styleIndex); in setTypefaceFromAttrs() 1636 public void setTypeface(Typeface tf, int style) { in setTypeface() argument 1638 if (tf == null) { 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/packages/SystemUI/src/com/android/systemui/qs/ |
D | QSDualTileLabel.java | 141 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/ |
D | AmPmCirclesView.java | 82 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/ |
D | BackupManagerService.java | 1289 RandomAccessFile tf = new RandomAccessFile(mTokenFile, "r"); in initPackageTracking() local 1290 int version = tf.readInt(); in initPackageTracking() 1292 mAncestralToken = tf.readLong(); in initPackageTracking() 1293 mCurrentToken = tf.readLong(); in initPackageTracking() 1295 int numPackages = tf.readInt(); in initPackageTracking() 1299 String pkgName = tf.readUTF(); in initPackageTracking() 1304 tf.close(); in initPackageTracking()
|