/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 | 275 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/ |
D | Switch.java | 347 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 …]
|
D | TextView.java | 1485 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/ |
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 | 1182 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()
|