/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
H A D | ImageRedEye.java | 97 Paint paint = new Paint(); 98 paint.setStyle(Style.STROKE); 99 paint.setColor(Color.RED); 100 paint.setStrokeWidth(2); 102 paint.setColor(Color.RED); 104 canvas.drawRect(drawRect, paint); 110 Matrix originalRotateToScreen, Paint paint) { 117 paint.setColor(Color.BLUE); 118 canvas.drawRect(fullRect, paint); 120 fullRect.centerX(), fullRect.bottom, paint); 109 drawPoint(FilterPoint point, Canvas canvas, Matrix originalToScreen, Matrix originalRotateToScreen, Paint paint) argument [all...] |
H A D | ImagePoint.java | 63 Paint paint = new Paint(); 64 paint.setStyle(Style.STROKE); 65 paint.setColor(Color.RED); 66 paint.setStrokeWidth(2); 73 drawPoint(candidate, canvas, originalToScreen, originalRotateToScreen, paint); 80 Matrix originalRotateToScreen, Paint paint); 78 drawPoint( FilterPoint candidate, Canvas canvas, Matrix originalToScreen, Matrix originalRotateToScreen, Paint paint) argument
|
H A D | EclipseControl.java | 196 Paint paint = new Paint(); 198 paint.setStyle(Paint.Style.FILL); 199 paint.setColor(Color.BLUE); 204 paint.setShader(g); 205 canvas.drawCircle(x, y, mCenterDotSize, paint); 213 Paint paint = new Paint(); 215 paint.setStyle(Paint.Style.FILL); 216 paint.setColor(Color.BLUE); 221 paint.setShader(g); 222 canvas.drawCircle(x, y, mCenterDotSize, paint); 243 paintOvallines( Canvas canvas, RectF rect, Paint paint, float cx, float cy, float rx, float ry) argument [all...] |
H A D | GradControl.java | 188 Paint paint = new Paint(); 189 paint.setStyle(Paint.Style.FILL); 192 paint.setShader(g); 193 canvas.drawCircle(x, y, mCenterDotSize, paint); 201 Paint paint = new Paint(); 202 paint.setStyle(Paint.Style.FILL); 205 paint.setShader(g); 206 canvas.drawCircle(x, y, mCenterDotSize, paint); 229 Canvas canvas, Paint paint, float p1x, float p1y, float p2x, float p2y) { 233 canvas.drawLine(p1x, p1y, p2x, p2y, paint); 228 paintOvallines( Canvas canvas, Paint paint, float p1x, float p1y, float p2x, float p2y) argument [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ui/ |
H A D | SelectionRenderer.java | 25 int stroke, Paint paint) { 26 canvas.drawRect(left, top, right, top + stroke, paint); 27 canvas.drawRect(left, bottom - stroke, right, bottom, paint); 28 canvas.drawRect(left, top, left + stroke, bottom, paint); 29 canvas.drawRect(right - stroke, top, right, bottom, paint); 24 drawSelection(Canvas canvas, int left, int top, int right, int bottom, int stroke, Paint paint) argument
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
H A D | CustomTypefaceSpan.java | 56 public void updateMeasureState(TextPaint paint) { argument 57 applyCustomTypeFace(paint, newType, newSize, newColor); 60 private static void applyCustomTypeFace(Paint paint, Typeface tf, int newSize, int newColor) { argument 62 Typeface old = paint.getTypeface(); 71 paint.setFakeBoldText(true); 75 paint.setTextSkewX(-0.25f); 78 paint.setTextSize(newSize); 79 paint.setColor(newColor); 80 paint.setTypeface(tf);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
H A D | TypefaceUtils.java | 34 public static float getCharHeight(final char[] referenceChar, final Paint paint) { argument 35 final int key = getCharGeometryCacheKey(referenceChar[0], paint); 42 paint.getTextBounds(referenceChar, 0, 1, sTextHeightBounds); 54 public static float getCharWidth(final char[] referenceChar, final Paint paint) { argument 55 final int key = getCharGeometryCacheKey(referenceChar[0], paint); 62 paint.getTextBounds(referenceChar, 0, 1, sTextWidthBounds); 69 public static float getStringWidth(final String string, final Paint paint) { argument 70 paint.getTextBounds(string, 0, string.length(), sTextWidthBounds); 74 private static int getCharGeometryCacheKey(final char referenceChar, final Paint paint) { argument 75 final int labelSize = (int)paint 89 getLabelWidth(final String label, final Paint paint) argument [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
H A D | StringTexture.java | 37 private StringTexture(String text, TextPaint paint, argument 41 mPaint = paint; 46 TextPaint paint = new TextPaint(); 47 paint.setTextSize(textSize); 48 paint.setAntiAlias(true); 49 paint.setColor(color); 50 paint.setShadowLayer(2f, 0f, 0f, Color.BLACK); 51 return paint; 62 TextPaint paint = getDefaultPaint(textSize, color); 64 paint 73 newInstance(String text, TextPaint paint) argument [all...] |
H A D | GLCanvas.java | 83 // Draws a line using the specified paint from (x1, y1) to (x2, y2). 85 public abstract void drawLine(float x1, float y1, float x2, float y2, GLPaint paint); argument 87 // Draws a rectangle using the specified paint from (x1, y1) to (x2, y2). 89 public abstract void drawRect(float x1, float y1, float x2, float y2, GLPaint paint); argument
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
H A D | PercentageBarChart.java | 45 public final Paint paint; field in class:PercentageBarChart.Entry 47 protected Entry(int order, float percentage, Paint paint) { argument 50 this.paint = paint; 97 canvas.drawRect(left, top, nextX, bottom, e.paint); 101 canvas.drawRect(lastX, top, nextX, bottom, e.paint); 121 canvas.drawRect(lastX, top, right, bottom, e.paint); 125 canvas.drawRect(lastX, top, nextX, bottom, e.paint);
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
H A D | FolderSpan.java | 72 public int getSize(Paint paint, CharSequence text, int start, int end, FontMetricsInt fm) { argument 75 paint.getFontMetricsInt(fm); 82 return measureWidth(paint, text, start, end, true); 85 private int measureWidth(Paint paint, CharSequence text, int start, int end, argument 90 int w = (int) paint.measureText(text, start, end) + 2 * paddingW; 103 int y, int bottom, Paint paint) { 110 mWorkPaint.set(paint); 120 // paint a background if present 102 draw(Canvas canvas, CharSequence text, int start, int end, float x, int top, int y, int bottom, Paint paint) argument
|
H A D | PriorityIndicatorSpan.java | 87 public int getSize(Paint paint, CharSequence text, int start, int end, FontMetricsInt fm) { argument 92 paint.getFontMetricsInt(fm); 104 int y, int bottom, Paint paint) { 103 draw(Canvas canvas, CharSequence text, int start, int end, float x, int top, int y, int bottom, Paint paint) argument
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
H A D | ImageFilterDraw.java | 91 public void paint(FilterDrawRepresentation.StrokeData sd, Canvas canvas, Matrix toScrMatrix, method in interface:ImageFilterDraw.DrawStyle 109 public void paint(FilterDrawRepresentation.StrokeData sd, Canvas canvas, Matrix toScrMatrix, method in class:ImageFilterDraw.SimpleDraw 117 Paint paint = new Paint(); 119 paint.setStyle(Style.STROKE); 121 paint.setStrokeCap(Paint.Cap.SQUARE); 123 paint.setStrokeCap(Paint.Cap.ROUND); 125 paint.setAntiAlias(true); 126 paint.setColor(sd.mColor); 127 paint.setStrokeWidth(toScrMatrix.mapRadius(sd.mRadius)); 133 canvas.drawPath(mCacheTransPath, paint); 158 public void paint(FilterDrawRepresentation.StrokeData sd, Canvas canvas, method in class:ImageFilterDraw.Brush 187 draw(Canvas canvas, Paint paint, int color, float size, Path path) argument 218 void paint(FilterDrawRepresentation.StrokeData sd, Canvas canvas, Matrix toScrMatrix, method in class:ImageFilterDraw [all...] |
/packages/apps/Settings/src/com/android/settings/widget/ |
H A D | PieChartView.java | 69 public Paint paint; field in class:PieChartView.Slice 73 this.paint = buildFillPaint(color, getResources()); 99 final Paint paint = new Paint(); 101 paint.setColor(color); 102 paint.setStyle(Style.FILL_AND_STROKE); 103 paint.setAntiAlias(true); 107 paint.setShader(new RadialGradient(0, 0, width, color, darken(color), TileMode.MIRROR)); 110 return paint; 225 canvas.drawPath(slice.pathSide, slice.paint); 230 canvas.drawPath(slice.path, slice.paint); [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | GestureTrail.java | 194 * @param paint The paint object to be used to draw the gesture trail 199 public boolean drawGestureTrail(final Canvas canvas, final Paint paint, argument 202 return drawGestureTrailLocked(canvas, paint, outBoundsRect, params); 206 private boolean drawGestureTrailLocked(final Canvas canvas, final Paint paint, argument 231 paint.setColor(params.mTrailColor); 232 paint.setStyle(Paint.Style.FILL); 252 paint.setShadowLayer(shadow2, 0.0f, 0.0f, params.mTrailColor); 259 paint.setAlpha(alpha); 260 canvas.drawPath(path, paint); 297 debugDrawPoints(final Canvas canvas, final int startIndex, final int endIndex, final Paint paint) argument [all...] |
H A D | GestureTrailsPreview.java | 132 private boolean drawGestureTrails(final Canvas offscreenCanvas, final Paint paint, argument 136 paint.setColor(Color.TRANSPARENT); 137 paint.setStyle(Paint.Style.FILL); 138 offscreenCanvas.drawRect(dirtyRect, paint); 148 needsUpdatingGestureTrail |= trail.drawGestureTrail(offscreenCanvas, paint,
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/ |
H A D | MoreSuggestions.java | 64 final int maxWidth, final int minWidth, final int maxRow, final Paint paint, 78 mWidths[index] = (int)(TypefaceUtils.getLabelWidth(word, paint) + padding); 63 layout(final SuggestedWords suggestedWords, final int fromIndex, final int maxWidth, final int minWidth, final int maxRow, final Paint paint, final Resources res) argument
|
H A D | SuggestionStripLayoutHelper.java | 186 final Paint paint = new Paint(); 187 paint.setAntiAlias(true); 188 paint.setTextAlign(Align.CENTER); 189 paint.setTextSize(textSize); 190 paint.setColor(color); 192 paint.getTextBounds(MORE_SUGGESTIONS_HINT, 0, MORE_SUGGESTIONS_HINT.length(), bounds); 197 canvas.drawText(MORE_SUGGESTIONS_HINT, width / 2, height, paint); 527 final TextPaint paint) { 528 paint.setTextScaleX(1.0f); 529 final int width = getTextWidth(text, paint); 526 getTextScaleX(final CharSequence text, final int maxWidth, final TextPaint paint) argument 536 getEllipsizedText(final CharSequence text, final int maxWidth, final TextPaint paint) argument 571 getTextWidth(final CharSequence text, final TextPaint paint) argument [all...] |
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/glrenderer/ |
H A D | GLCanvas.java | 81 // Draws a line using the specified paint from (x1, y1) to (x2, y2). 83 public abstract void drawLine(float x1, float y1, float x2, float y2, GLPaint paint); argument 85 // Draws a rectangle using the specified paint from (x1, y1) to (x2, y2). 87 public abstract void drawRect(float x1, float y1, float x2, float y2, GLPaint paint); argument
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
H A D | KeyboardView.java | 152 private static void blendAlpha(final Paint paint, final int alpha) { argument 153 final int color = paint.getColor(); 154 paint.setARGB((paint.getAlpha() * alpha) / Constants.Color.ALPHA_OPAQUE, 259 final Paint paint = mPaint; 292 onDrawKey(key, canvas, paint); 298 onDrawKey(key, canvas, paint); 307 ResearchLogger.getInstance().paintIndicator(this, paint, canvas, width, height); 314 private void onDrawKey(final Key key, final Canvas canvas, final Paint paint) { argument 327 onDrawKeyTopVisuals(key, canvas, paint, param 355 onDrawKeyTopVisuals(final Key key, final Canvas canvas, final Paint paint, final KeyDrawParams params) argument 523 drawKeyPopupHint(final Key key, final Canvas canvas, final Paint paint, final KeyDrawParams params) argument 552 drawHorizontalLine(final Canvas canvas, final float y, final float w, final int color, final Paint paint) argument 560 drawVerticalLine(final Canvas canvas, final float x, final float h, final int color, final Paint paint) argument 568 drawRectangle(final Canvas canvas, final float x, final float y, final float w, final float h, final int color, final Paint paint) argument [all...] |
H A D | MoreKeysKeyboard.java | 323 final float padding, final Paint paint) { 330 (int)(TypefaceUtils.getLabelWidth(label, paint) + padding)); 322 getMaxKeyWidth(final Key parentKey, final int minKeyWidth, final float padding, final Paint paint) argument
|
/packages/apps/Browser/src/com/android/browser/ |
H A D | TabBar.java | 390 Paint paint = mSelected ? mActiveShaderPaint : mInactiveShaderPaint; 391 drawClipped(canvas, paint, mPath, mWindowPos[0]); 397 private void drawClipped(Canvas canvas, Paint paint, Path clipPath, int left) { argument 402 canvas.drawPath(clipPath, paint);
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
H A D | CountingTimerView.java | 108 public UnsignedTime(Paint paint, float spacingRatio, String allDigits) { argument 109 mPaint = paint; 199 public Hundredths(Paint paint, float spacingRatio, final String allDigits) { argument 200 super(paint, spacingRatio, allDigits); 447 // If the hypotenuse of the bounding box is too large, reduce all the paint text sizes
|
/packages/apps/Music/src/com/android/music/ |
H A D | VerticalTextSpinner.java | 310 * paint 470 private void drawText(Canvas canvas, String text, int y, TextPaint paint) { argument 471 int width = (int) paint.measureText(text); 473 canvas.drawText(text, x, y, paint);
|
/packages/apps/Gallery/src/com/android/camera/ |
H A D | GalleryPicker.java | 620 private static void placeImage(Bitmap image, Canvas c, Paint paint, argument 630 c.drawBitmap(image, xPos, yPos, paint);
|