/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
GradientsActivity.java | 92 private final Paint mPaint; 100 mPaint = new Paint(); 101 mPaint.setShader(shader); 113 canvas.drawRect(0.0f, 0.0f, getWidth(), getHeight(), mPaint); 118 private final Paint mPaint; 125 mPaint = new Paint(); 126 mPaint.setShader(gradient); 138 canvas.drawRect(0.0f, 0.0f, getWidth(), getHeight(), mPaint); 143 private final Paint mPaint; 150 mPaint = new Paint() [all...] |
SmallCircleActivity.java | 48 private final Paint mPaint; 58 mPaint = new Paint(); 59 mPaint.setAntiAlias(true); 60 mPaint.setColor(0xff00ffff); 67 canvas.drawPath(mPath, mPaint);
|
TextOnPathActivity.java | 71 private final Paint mPaint; 83 mPaint = new Paint(); 84 mPaint.setAntiAlias(true); 85 mPaint.setColor(0xff000000); 114 mPaint.setTextAlign(Paint.Align.LEFT); 115 canvas.drawTextOnPath(mText + mText, mPath, 0.0f, 0.0f, mPaint); 128 canvas.drawTextOnPath(mText + mText, mStraightPath, 0.0f, 0.0f, mPaint); 135 canvas.drawTextOnPath(mText, mPath, 0.0f, 10.0f, mPaint); 142 mPaint.setTextAlign(Paint.Align.CENTER); 143 canvas.drawTextOnPath(mText, mPath, 0.0f, 0.0f, mPaint); [all...] |
PathOpsActivity.java | 39 private final Paint mPaint; 47 mPaint = new Paint(); 48 mPaint.setAntiAlias(true); 49 mPaint.setStyle(Paint.Style.FILL); 50 mPaint.setColor(Color.RED); 82 canvas.drawPath(path, mPaint);
|
/packages/apps/Calendar/src/com/android/calendar/ |
ColorChipView.java | 48 private Paint mPaint; 67 mPaint = new Paint(); 68 mDefStrokeWidth = mPaint.getStrokeWidth(); 69 mPaint.setStyle(Style.FILL_AND_STROKE); 98 mPaint.setColor(mDrawStyle == DRAW_FADED ? 104 mPaint.setStrokeWidth(mDefStrokeWidth); 105 c.drawRect(0, 0, right, bottom, mPaint); 114 mPaint.setStrokeWidth(mBorderWidth); 134 c.drawLines(lines, mPaint);
|
/external/opencv3/modules/java/generator/src/java/ |
android+FpsMeter.java | 21 Paint mPaint; 32 mPaint = new Paint(); 33 mPaint.setColor(Color.BLUE); 34 mPaint.setTextSize(20); 63 canvas.drawText(mStrfps, offsetx, offsety, mPaint);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
MediaRowFocusView.java | 29 private final Paint mPaint; 35 mPaint = createPaint(context); 40 mPaint = createPaint(context); 45 mPaint = createPaint(context); 55 canvas.drawRoundRect(mRoundRectF, mRoundRectRadius, mRoundRectRadius, mPaint);
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
GridLines.java | 36 Paint mPaint = new Paint(); 40 mPaint.setStrokeWidth(getResources().getDimensionPixelSize(R.dimen.grid_line_width)); 41 mPaint.setColor(getResources().getColor(R.color.grid_line)); 54 mDrawBounds.left + x, mDrawBounds.bottom, mPaint); 58 mDrawBounds.right, mDrawBounds.top + y, mPaint);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/ |
IconView.java | 41 private Paint mPaint = new Paint(); 81 mPaint.setTextSize(mTextSize); 85 mPaint.setTypeface(Typeface.DEFAULT_BOLD); 87 mPaint.getTextBounds(text, 0, text.length(), mTextBounds); 101 float textWidth = mPaint.measureText(text); 112 canvas.drawText(text, x, y, mPaint); 116 mPaint.setColor(getBackgroundColor()); 117 mPaint.setStyle(Paint.Style.STROKE); 118 mPaint.setStrokeWidth(3); 120 mPaint.setColor(getTextColor()) [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
FastBitmapDrawable.java | 32 private final Paint mPaint = new Paint(Paint.FILTER_BITMAP_FLAG); 49 canvas.drawBitmap(mBitmap, null, r, mPaint); 54 mPaint.setColorFilter(cf); 65 mPaint.setAlpha(alpha); 69 mPaint.setFilterBitmap(filterBitmap);
|
/frameworks/support/core-utils/gingerbread/android/support/v4/graphics/drawable/ |
RoundedBitmapDrawable.java | 49 private final Paint mPaint = new Paint(DEFAULT_PAINT_FLAGS); 68 return mPaint; 189 mPaint.setAntiAlias(aa); 201 return mPaint.isAntiAlias(); 206 mPaint.setFilterBitmap(filter); 212 mPaint.setDither(dither); 246 mPaint.setShader(mBitmapShader); 261 if (mPaint.getShader() == null) { 262 canvas.drawBitmap(bitmap, null, mDstRect, mPaint); 264 canvas.drawRoundRect(mDstRectF, mCornerRadius, mCornerRadius, mPaint); [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
ColorFilters.java | 41 private Paint mPaint; 82 mPaint = new Paint(); 83 mPaint.setAntiAlias(true); 84 mPaint.setTextSize(16); 85 mPaint.setTextAlign(Paint.Align.CENTER); 87 mPaint2 = new Paint(mPaint); 90 Paint.FontMetrics fm = mPaint.getFontMetrics(); 113 if (mPaint.getColor() == 0xFF000000) { 114 mPaint.setColor(0xFFFFFFFF); 117 mPaint.setColor(0xFF000000) [all...] |
Sweep.java | 34 private Paint mPaint = new Paint(Paint.ANTI_ALIAS_FLAG); 51 mPaint.setShader(mShader); 55 Paint paint = mPaint; 63 mPaint.setShader(mShader); 86 mPaint.setDither(!mPaint.isDither());
|
PathEffects.java | 34 private Paint mPaint; 59 mPaint = new Paint(Paint.ANTI_ALIAS_FLAG); 60 mPaint.setStyle(Paint.Style.STROKE); 61 mPaint.setStrokeWidth(6); 84 mPaint.setPathEffect(mEffects[i]); 85 mPaint.setColor(mColors[i]); 86 canvas.drawPath(mPath, mPaint);
|
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
MainView.java | 26 Paint mPaint = new Paint(); 44 mPaint.reset(); 45 DisplayModifier.apply(mPaint, canvas);
|
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/ |
StopwatchCircleView.java | 62 private final Paint mPaint = new Paint(); 86 mPaint.setAntiAlias(true); 87 mPaint.setStyle(Paint.Style.STROKE); 109 mPaint.setColor(mRemainderColor); 110 mPaint.setStrokeWidth(mStrokeSize); 117 canvas.drawCircle(xCenter, yCenter, radius, mPaint); 140 canvas.drawArc(mArcRect, 270 + (1 - whitePercent) * 360, whitePercent * 360, false, mPaint); 143 mPaint.setColor(mCompletedColor); 144 canvas.drawArc(mArcRect, 270, redPercent * 360 , false, mPaint); 148 mPaint.setColor(mRemainderColor) [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/ |
CheckableContactFlipDrawable.java | 140 private final Paint mPaint; 152 mPaint = new Paint(); 153 mPaint.setAntiAlias(true); 154 mPaint.setFilterBitmap(true); 155 mPaint.setColor(sBackgroundColor); 165 canvas.drawCircle(bounds.centerX(), bounds.centerY(), bounds.width() / 2, mPaint); 175 final int oldAlpha = mPaint.getAlpha(); 177 mPaint.setAlpha((int) (oldAlpha * mAlphaFraction)); 178 canvas.drawBitmap(CHECKMARK, sMatrix, mPaint); 180 mPaint.setAlpha(oldAlpha) [all...] |
/frameworks/base/graphics/java/android/graphics/ |
NinePatch.java | 89 private Paint mPaint; 123 if (patch.mPaint != null) { 124 mPaint = new Paint(patch.mPaint); 160 return mPaint; 173 mPaint = p; 190 canvas.drawPatch(this, location, mPaint); 200 canvas.drawPatch(this, location, mPaint);
|
/frameworks/support/v7/appcompat/src/android/support/v7/graphics/drawable/ |
DrawerArrowDrawable.java | 96 private final Paint mPaint = new Paint(); 128 mPaint.setStyle(Paint.Style.STROKE); 129 mPaint.setStrokeJoin(Paint.Join.MITER); 130 mPaint.setStrokeCap(Paint.Cap.BUTT); 131 mPaint.setAntiAlias(true); 215 if (color != mPaint.getColor()) { 216 mPaint.setColor(color); 226 return mPaint.getColor(); 235 if (mPaint.getStrokeWidth() != width) { 236 mPaint.setStrokeWidth(width) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/info/ |
HistogramView.java | 34 private Paint mPaint = new Paint(); 94 mPaint.reset(); 95 mPaint.setAntiAlias(true); 96 mPaint.setARGB(100, 255, 255, 255); 97 mPaint.setStrokeWidth((int) Math.ceil(wl)); 100 mPaint.setStyle(Paint.Style.STROKE); 101 canvas.drawRect(dx, 0, dx + w, h, mPaint); 102 canvas.drawLine(dx + w / 3, 0, dx + w / 3, h, mPaint); 103 canvas.drawLine(dx + 2 * w / 3, 0, dx + 2 * w / 3, h, mPaint); 105 mPaint.setStyle(Paint.Style.FILL) [all...] |
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
TileDrawable.java | 37 private final Paint mPaint = new Paint(); 94 if (!isVisible() && mPaint.getAlpha() == 0) { 97 final int alpha = mPaint.getAlpha(); 98 mPaint.setColor(mOpts.backgroundColor); 99 mPaint.setAlpha(alpha); 100 canvas.drawRect(getBounds(), mPaint); 106 final int old = mPaint.getAlpha(); 107 mPaint.setAlpha(alpha); 116 mPaint.setColorFilter(cf); 126 return mPaint.getAlpha() [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
TimerCircleView.java | 52 private final Paint mPaint = new Paint(); 76 mPaint.setAntiAlias(true); 77 mPaint.setStyle(Paint.Style.STROKE); 103 mPaint.setColor(mRemainderColor); 104 mPaint.setStrokeWidth(mStrokeSize); 110 canvas.drawCircle(xCenter, yCenter, radius, mPaint); 115 mPaint.setColor(mCompletedColor); 118 canvas.drawCircle(xCenter, yCenter, radius, mPaint); 132 canvas.drawArc(mArcRect, 270, whitePercent * 360, false, mPaint); 135 mPaint.setColor(mCompletedColor) [all...] |
/frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/ |
FakeView.java | 49 final Paint mPaint = new Paint(); 72 mPaint.setTextSize(mRandom.nextInt(40) + 10); 73 mPaint.setColor(0xff000000 + mRandom.nextInt(0x1000000)); 77 x, y, mPaint);
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/ |
AmPmCirclesView.java | 43 private final Paint mPaint = new Paint(); 83 mPaint.setTypeface(tf); 84 mPaint.setAntiAlias(true); 85 mPaint.setTextAlign(Align.CENTER); 164 mPaint.setTextSize(textSize); 198 mPaint.setColor(amColor); 199 mPaint.setAlpha(amAlpha); 200 canvas.drawCircle(mAmXCenter, mAmPmYCenter, mAmPmCircleRadius, mPaint); 201 mPaint.setColor(pmColor); 202 mPaint.setAlpha(pmAlpha) [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
ActionMenuButton.java | 40 private Paint mPaint; 62 mPaint = new Paint(Paint.ANTI_ALIAS_FLAG); 63 mPaint.setColor(getContext().getResources() 85 canvas.drawRoundRect(rect, CORNER_RADIUS, CORNER_RADIUS, mPaint);
|