/cts/tests/tests/text/src/android/text/cts/ |
TextPaintTest.java | 23 import android.text.TextPaint; 26 * Test {@link TextPaint}. 29 private static final int DEFAULT_PAINT_FLAGS = TextPaint.DEV_KERN_TEXT_FLAG 30 | TextPaint.EMBEDDED_BITMAP_TEXT_FLAG | TextPaint.FILTER_BITMAP_FLAG; 33 TextPaint textPaint; 35 textPaint = new TextPaint(); 36 assertEquals(DEFAULT_PAINT_FLAGS, textPaint.getFlags()) [all...] |
DynamicLayoutTest.java | 34 import android.text.TextPaint; 57 private TextPaint mDefaultPaint; 71 mDefaultPaint = new TextPaint(); 209 final TextPaint textPaint = new TextPaint(); 212 textPaint, 220 Layout expected = createStaticLayout(text.toString(), textPaint, width, spacingAdd, 226 expected = createStaticLayout(text.toString(), textPaint, width, spacingAdd, 232 expected = createStaticLayout(text.toString(), textPaint, width, spacingAdd [all...] |
/developers/samples/android/ui/text/TextStyling-Kotlin/app/src/main/java/com/android/example/text/styling/renderer/spans/ |
FontSpan.kt | 19 import android.text.TextPaint 28 override fun updateMeasureState(textPaint: TextPaint) = update(textPaint) 30 override fun updateDrawState(textPaint: TextPaint) = update(textPaint) 32 private fun update(textPaint: TextPaint) { 33 textPaint.apply [all...] |
CodeBlockSpan.kt | 21 import android.text.TextPaint 37 override fun updateDrawState(textPaint: TextPaint) { 38 super.updateDrawState(textPaint) 39 textPaint.bgColor = backgroundColor
|
/developers/samples/android/ui/text/TextStyling-Java/app/src/main/java/com/android/example/text/styling/renderer/spans/ |
FontSpan.java | 21 import android.text.TextPaint; 38 public void updateMeasureState(TextPaint textPaint) { 39 update(textPaint); 43 public void updateDrawState(TextPaint textPaint) { 44 update(textPaint); 48 private void update(TextPaint textPaint) { 49 Typeface old = textPaint.getTypeface() [all...] |
CodeBlockSpan.java | 21 import android.text.TextPaint; 41 public void updateDrawState(TextPaint textPaint) { 42 super.updateDrawState(textPaint); 43 textPaint.bgColor = backgroundColor;
|
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/xy/ |
ValueMarker.java | 43 private Paint textPaint;
55 textPaint = new Paint();
56 textPaint.setAntiAlias(true);
57 textPaint.setColor(Color.RED);
76 * @param textPaint
78 public ValueMarker(Number value, String text, PositionMetricType textPosition, Paint linePaint, Paint textPaint) {
82 this.textPaint = textPaint;
86 public ValueMarker(Number value, String text, PositionMetricType textPosition, int linePaint, int textPaint) {
89 this.textPaint.setColor(textPaint); [all...] |
PointLabelFormatter.java | 29 private Paint textPaint;
56 return textPaint;
59 public void setTextPaint(Paint textPaint) {
60 this.textPaint = textPaint;
72 //textPaint.setStyle(Paint.Style.STROKE);
|
XValueMarker.java | 40 * @param textPaint
42 public XValueMarker(Number value, String text, YPositionMetric textPosition, Paint linePaint, Paint textPaint) {
43 super(value, text, textPosition, linePaint, textPaint);
53 * @param textPaint
55 public XValueMarker(Number value, String text, YPositionMetric textPosition, int linePaint, int textPaint) {
56 super(value, text, textPosition, linePaint, textPaint);
|
YValueMarker.java | 41 * @param textPaint
43 public YValueMarker(Number value, String text, XPositionMetric textPosition, Paint linePaint, Paint textPaint) {
44 super(value, text, textPosition, linePaint, textPaint);
53 * @param textPaint
55 public YValueMarker(Number value, String text, XPositionMetric textPosition, int linePaint, int textPaint) {
56 super(value, text, textPosition, linePaint, textPaint);
|
XYLegendWidget.java | 49 private Paint textPaint;
60 textPaint = new Paint();
61 textPaint.setColor(Color.LTGRAY);
62 textPaint.setAntiAlias(true);
113 float centeredTextOriginY = getRectCenterY(cellRect) + (FontUtils.getFontHeight(textPaint)/2);
114 canvas.drawText(text, iconRect.right + 2, centeredTextOriginY, textPaint);
209 return textPaint;
212 public void setTextPaint(Paint textPaint) {
213 this.textPaint = textPaint;
[all...] |
/external/skia/gm/ |
bmpfilterqualityrepeat.cpp | 66 SkPaint textPaint; 67 textPaint.setAntiAlias(true); 69 SkPaint bmpPaint(textPaint); 80 canvas->drawString(kQualities[q].fName, 20, 40, font, textPaint);
|
lcdoverlap.cpp | 68 SkPaint textPaint; 69 textPaint.setColor(colors[i]); 70 textPaint.setBlendMode(i % 2 == 0 ? mode : mode2); 71 canvas->drawTextBlob(fBlob, 0, 0, textPaint);
|
imageblur.cpp | 23 SkPaint textPaint; 28 textPaint.setColor(sk_tool_utils::color_to_565(rand.nextBits(24) | 0xFF000000)); 30 canvas->drawString(str, SkIntToScalar(x), SkIntToScalar(y), font, textPaint);
|
imageblur2.cpp | 47 SkPaint textPaint; 48 textPaint.setColor(sk_tool_utils::color_to_565(rand.nextBits(24) | 0xFF000000)); 54 textPaint);
|
/external/skqp/gm/ |
bmpfilterqualityrepeat.cpp | 66 SkPaint textPaint; 67 textPaint.setAntiAlias(true); 69 SkPaint bmpPaint(textPaint); 80 canvas->drawString(kQualities[q].fName, 20, 40, font, textPaint);
|
lcdoverlap.cpp | 68 SkPaint textPaint; 69 textPaint.setColor(colors[i]); 70 textPaint.setBlendMode(i % 2 == 0 ? mode : mode2); 71 canvas->drawTextBlob(fBlob, 0, 0, textPaint);
|
imageblur.cpp | 23 SkPaint textPaint; 28 textPaint.setColor(sk_tool_utils::color_to_565(rand.nextBits(24) | 0xFF000000)); 30 canvas->drawString(str, SkIntToScalar(x), SkIntToScalar(y), font, textPaint);
|
imageblur2.cpp | 47 SkPaint textPaint; 48 textPaint.setColor(sk_tool_utils::color_to_565(rand.nextBits(24) | 0xFF000000)); 54 textPaint);
|
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/ |
GlitchAndCallbackHeatMapView.java | 109 final Paint textPaint = new Paint(Paint.ANTI_ALIAS_FLAG); 110 textPaint.setColor(Color.BLACK); 111 textPaint.setTextSize(LABEL_SIZE); 112 textPaint.setTextAlign(Paint.Align.CENTER); 167 graphArea.top - INNER_MARGIN, textPaint); 173 canvas.drawText("Recorder", labelX, labelY, textPaint); 178 canvas.drawText("Player", labelX, labelY, textPaint); 198 graphArea.bottom, graphArea.left, graphArea.width(), textPaint, linePaint); 208 drawColorLegend(canvas, maxCallbackValue, colorInter, linePaint, textPaint, legendArea); 217 graphArea.top - INNER_MARGIN, textPaint); [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/ |
LabelMaker.java | 139 * @param textPaint the paint of the label 142 public int add(GL10 gl, String text, Paint textPaint) { 143 return add(gl, null, text, textPaint); 151 * @param textPaint the paint of the label 154 public int add(GL10 gl, Drawable background, String text, Paint textPaint) { 155 return add(gl, background, text, textPaint, 0, 0); 171 * @param textPaint the paint of the label 174 public int add(GL10 gl, Drawable background, String text, Paint textPaint, 178 boolean drawText = (text != null) && (textPaint != null); 192 ascent = (int) Math.ceil(-textPaint.ascent()) [all...] |
/external/skia/modules/canvaskit/canvaskit/ |
node.example.js | 58 const textPaint = new CanvasKit.SkPaint(); 59 textPaint.setColor(CanvasKit.Color(40, 0, 0)); 60 textPaint.setAntiAlias(true); 76 canvas.drawText('Try Clicking!', 10, 280, textPaint, textFont); 98 textPaint.delete();
|
/external/skqp/experimental/canvaskit/canvaskit/ |
node.example.js | 58 const textPaint = new CanvasKit.SkPaint(); 59 textPaint.setColor(CanvasKit.Color(40, 0, 0)); 60 textPaint.setAntiAlias(true); 76 canvas.drawText('Try Clicking!', 10, 280, textFont, textPaint); 98 textPaint.delete();
|
/developers/build/prebuilts/gradle/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/app/ |
CustomVirtualView.kt | 55 private val textPaint = Paint().apply { 125 textPaint.color = if (it.fieldTextItem.focused) focusedColor else unfocusedColor 129 canvas.drawText(readOnlyText, x, y, textPaint) 131 val deltaX = textPaint.measureText(readOnlyText) 134 (x + textPaint.measureText(writeText)).toInt(), y.toInt()) 136 canvas.drawText(writeText, x, y, textPaint)
|
/developers/samples/android/input/autofill/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/app/ |
CustomVirtualView.kt | 55 private val textPaint = Paint().apply { 125 textPaint.color = if (it.fieldTextItem.focused) focusedColor else unfocusedColor 129 canvas.drawText(readOnlyText, x, y, textPaint) 131 val deltaX = textPaint.measureText(readOnlyText) 134 (x + textPaint.measureText(writeText)).toInt(), y.toInt()) 136 canvas.drawText(writeText, x, y, textPaint)
|