/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
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 | MultiLineTexture.java | 40 TextPaint paint = StringTexture.getDefaultPaint(textSize, color); 41 Layout layout = new StaticLayout(text, 0, text.length(), paint,
|
H A D | GLCanvas.java | 72 // Draws a line using the specified paint from (x1, y1) to (x2, y2). 74 public void drawLine(float x1, float y1, float x2, float y2, GLPaint paint); argument 76 // Draws a rectangle using the specified paint from (x1, y1) to (x2, y2). 78 public void drawRect(float x1, float y1, float x2, float y2, GLPaint paint); argument
|
H A D | AlbumLabelMaker.java | 82 TextPaint paint = new TextPaint(); 83 paint.setTextSize(textSize); 84 paint.setAntiAlias(true); 85 paint.setColor(color); 86 //paint.setShadowLayer(2f, 0f, 0f, Color.LTGRAY); 88 paint.setTypeface(Typeface.defaultFromStyle(Typeface.BOLD)); 90 return paint;
|
/packages/apps/Email/tests/src/com/android/email/ |
H A D | ResourceHelperTest.java | 38 Paint paint = mResourceHelper.getAccountColorPaint(accountId); 42 assertNotNull(paint); 44 assertFalse(paint.equals(lastPaint)); 47 lastPaint = paint;
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
H A D | KeyboardView.java | 287 private static void blendAlpha(final Paint paint, final int alpha) { argument 288 final int color = paint.getColor(); 289 paint.setARGB((paint.getAlpha() * alpha) / Constants.Color.ALPHA_OPAQUE, 404 final Paint paint = mPaint; 437 onDrawKey(key, canvas, paint); 443 onDrawKey(key, canvas, paint); 450 paint.setColor(Color.BLACK); 451 paint.setAlpha(mBackgroundDimAlpha); 453 canvas.drawRect(0, 0, width, height, paint); 475 onDrawKey(final Key key, final Canvas canvas, final Paint paint) argument 516 onDrawKeyTopVisuals(final Key key, final Canvas canvas, final Paint paint, final KeyDrawParams params) argument 673 drawKeyPopupHint(final Key key, final Canvas canvas, final Paint paint, final KeyDrawParams params) argument 694 getCharGeometryCacheKey(final char referenceChar, final Paint paint) argument 712 getCharHeight(final char[] referenceChar, final Paint paint) argument 724 getCharWidth(final char[] referenceChar, final Paint paint) argument 737 getLabelWidth(final String label, final Paint paint) argument 750 drawHorizontalLine(final Canvas canvas, final float y, final float w, final int color, final Paint paint) argument 758 drawVerticalLine(final Canvas canvas, final float x, final float h, final int color, final Paint paint) argument 766 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 | MainKeyboardView.java | 918 protected void onDrawKeyTopVisuals(final Key key, final Canvas canvas, final Paint paint, argument 924 drawSpacebar(key, canvas, paint); 927 drawKeyPopupHint(key, canvas, paint, params); 930 super.onDrawKeyTopVisuals(key, canvas, paint, params); 931 drawKeyPopupHint(key, canvas, paint, params); 933 super.onDrawKeyTopVisuals(key, canvas, paint, params); 937 private boolean fitsTextIntoWidth(final int width, final String text, final Paint paint) { argument 938 paint.setTextScaleX(1.0f); 939 final float textWidth = getLabelWidth(text, paint); 945 paint 950 layoutLanguageOnSpacebar(final Paint paint, final InputMethodSubtype subtype, final int width) argument 971 drawSpacebar(final Key key, final Canvas canvas, final Paint paint) argument [all...] |
/packages/apps/Calculator/src/com/android/calculator2/ |
H A D | ColorButton.java | 56 Paint paint = getPaint(); 57 mTextX = (getWidth() - paint.measureText(getText().toString())) / 2; 58 mTextY = (getHeight() - paint.ascent() - paint.descent()) / 2;
|
/packages/apps/VideoEditor/src/com/android/videoeditor/ |
H A D | ProjectPickerAdapter.java | 169 final Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG); 170 paint.setColor(Color.BLACK); 171 paint.setAlpha(128); 174 canvas.drawRect(left, top, right, bottom, paint); 176 paint.setColor(Color.WHITE); 177 paint.setTextSize((int) mResources.getDimension(R.dimen.project_picker_item_font_size)); 181 final int availableTitleWidth = bitmap.getWidth() - (int) paint.measureText(duration); 182 title = TextUtils.ellipsize(title, new TextPaint(paint), availableTitleWidth, 186 paint); 190 bitmap.getWidth() - paint [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/ |
H A D | AndroidClockTextView.java | 55 Paint paint = getPaint(); 56 paint.setTypeface(mUseClockTypeface ? sClockTypeface : sStandardTypeface);
|
/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/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
H A D | ImageFilterParametricBorder.java | 94 Paint paint = new Paint(); 95 paint.setAntiAlias(true); 96 paint.setColor(mBorderColor); 97 canvas.drawPath(border, paint);
|
H A D | ImageFilterGeometry.java | 89 Paint paint = new Paint(); 90 paint.setAntiAlias(true); 91 paint.setFilterBitmap(true); 92 paint.setDither(true); 93 canvas.drawBitmap(bitmap, m1, paint);
|
/packages/apps/Settings/src/com/android/settings/widget/ |
H A D | ChartGridView.java | 141 final TextPaint paint = new TextPaint(Paint.ANTI_ALIAS_FLAG); 142 paint.density = res.getDisplayMetrics().density; 143 paint.setCompatibilityScaling(res.getCompatibilityInfo().applicationScale); 144 paint.setColor(mLabelColor); 145 paint.setTextSize( 148 return new StaticLayout(text, paint, 149 (int) Math.ceil(Layout.getDesiredWidth(text, paint)),
|
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/apps/Gallery2/src/com/android/gallery3d/filtershow/ui/ |
H A D | Spline.java | 269 Paint paint = new Paint(); 270 paint.setAntiAlias(true); 271 paint.setFilterBitmap(true); 272 paint.setDither(true); 273 paint.setStyle(Paint.Style.STROKE); 278 paint.setStrokeWidth(curveWidth + 2); 279 paint.setColor(Color.BLACK); 280 canvas.drawPath(path, paint); 285 paint.setStrokeWidth(3); 286 paint [all...] |
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis1/ |
H A D | Visualization1.java | 80 final Paint paint = mPaint; 81 paint.setColor(0xffffffff); 82 paint.setAntiAlias(true); 83 paint.setStrokeWidth(2); 84 paint.setStrokeCap(Paint.Cap.ROUND); 85 paint.setStyle(Paint.Style.STROKE);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
H A D | ImageGeometry.java | 246 protected static Path drawClosedPath(Canvas canvas, Paint paint, float[] points) { argument 253 canvas.drawPath(crop, paint); 419 protected void drawImageBitmap(Canvas canvas, Bitmap bitmap, Paint paint, Matrix m) { argument 421 canvas.drawBitmap(bitmap, m, paint); 425 protected void drawImageBitmap(Canvas canvas, Bitmap bitmap, Paint paint) { argument 430 drawImageBitmap(canvas, bitmap, paint, m); 441 protected void drawStraighten(Canvas canvas, Paint paint) { argument 444 canvas.drawRect(bounds, paint); 468 protected void drawCrop(Canvas canvas, Paint paint) { argument 471 canvas.drawRect(bounds, paint); 475 drawCropSafe(Canvas canvas, Paint paint) argument 490 drawTransformedBitmap(Canvas canvas, Bitmap bitmap, Paint paint, boolean clip) argument [all...] |
H A D | ImageShow.java | 336 Paint paint = new Paint(); 337 paint.setTextSize(128); 338 float textWidth = paint.measureText(mToast); 342 paint.setARGB(255, 0, 0, 0); 343 canvas.drawText(mToast, toastX - 2, toastY - 2, paint); 344 canvas.drawText(mToast, toastX - 2, toastY, paint); 345 canvas.drawText(mToast, toastX, toastY - 2, paint); 346 canvas.drawText(mToast, toastX + 2, toastY + 2, paint); 347 canvas.drawText(mToast, toastX + 2, toastY, paint); 348 canvas.drawText(mToast, toastX, toastY + 2, paint); [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | PreviewPlacerView.java | 267 private boolean drawGestureTrails(final Canvas offscreenCanvas, final Paint paint, argument 271 paint.setColor(Color.TRANSPARENT); 272 paint.setStyle(Paint.Style.FILL); 273 offscreenCanvas.drawRect(dirtyRect, paint); 286 trail.drawGestureTrail(offscreenCanvas, paint, 322 final Paint paint = mTextPaint; 329 final float textWidth = paint.measureText(gestureFloatingPreviewText); 340 paint.setColor(mGestureFloatingPreviewColor); 341 canvas.drawRoundRect(rectangle, round, round, paint); 343 paint [all...] |
/packages/wallpapers/Basic/src/com/android/wallpaper/polarclock/ |
H A D | PolarClockWallpaper.java | 362 final Paint paint = mPaint; 363 paint.setAntiAlias(true); 364 paint.setStrokeWidth(DEFAULT_RING_THICKNESS); 365 paint.setStrokeCap(Paint.Cap.ROUND); 366 paint.setStyle(Paint.Style.STROKE); 475 final Paint paint = mPaint; 503 paint.setColor(mPalette.getSecondColor(angle)); 507 paint.setStrokeWidth(lastRingThickness); 509 c.drawArc(rect, 0.0f, angle * 360.0f, false, paint); 517 paint [all...] |
/packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/ |
H A D | LiveWallpaperListAdapter.java | 158 Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG | Paint.DITHER_FLAG); 159 paint.setTextAlign(Paint.Align.CENTER); 202 paint.setColor(res.getColor(R.color.live_wallpaper_thumbnail_background)); 204 canvas.drawPaint(paint); 212 paint.setColor(res.getColor(R.color.live_wallpaper_thumbnail_text_color)); 213 paint.setTextSize( 218 R.dimen.live_wallpaper_thumbnail_text_offset), paint);
|
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
H A D | WidgetUtils.java | 76 Paint paint = new Paint(Paint.FILTER_BITMAP_FLAG | Paint.DITHER_FLAG); 77 canvas.drawBitmap(bitmap, -w / 2, -h / 2, paint);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/ |
H A D | SuggestionStripView.java | 266 final Paint paint = new Paint(); 267 paint.setAntiAlias(true); 268 paint.setTextAlign(Align.CENTER); 269 paint.setTextSize(textSize); 270 paint.setColor(color); 272 paint.getTextBounds(MORE_SUGGESTIONS_HINT, 0, MORE_SUGGESTIONS_HINT.length(), bounds); 278 canvas.drawText(MORE_SUGGESTIONS_HINT, width / 2, height, paint); 528 private static float getTextScaleX(CharSequence text, int maxWidth, TextPaint paint) { argument 529 paint.setTextScaleX(1.0f); 530 final int width = getTextWidth(text, paint); 537 getEllipsizedText(CharSequence text, int maxWidth, TextPaint paint) argument 559 getTextWidth(CharSequence text, TextPaint paint) argument [all...] |
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
H A D | CandidateTextView.java | 119 TextPaint paint = getPaint(); 120 int width = (int)paint.measureText(word.candidate, 0, word.candidate.length()); 131 width = (int)paint.measureText(word.candidate, 0, word.candidate.length());
|