/packages/apps/Launcher3/src/com/android/launcher3/ |
ClickShadowView.java | 35 private final Paint mPaint; 46 mPaint = new Paint(Paint.FILTER_BITMAP_FLAG); 47 mPaint.setColor(Color.BLACK); 76 mPaint.setAlpha(SHADOW_LOW_ALPHA); 77 canvas.drawBitmap(mBitmap, 0, 0, mPaint); 78 mPaint.setAlpha(SHADOW_HIGH_ALPHA); 79 canvas.drawBitmap(mBitmap, 0, mShadowOffset, mPaint);
|
PreloadIconDrawable.java | 32 private final Paint mPaint; 52 mPaint = new Paint(Paint.ANTI_ALIAS_FLAG); 53 mPaint.setStyle(Paint.Style.STROKE); 54 mPaint.setStrokeCap(Paint.Cap.ROUND); 65 mPaint.setStrokeWidth(ta.getDimension(R.styleable.PreloadIconDrawable_indicatorSize, 0)); 105 float inset = mPaint.getStrokeWidth() / 2; 124 mPaint.setAlpha((int) ((1 - mAnimationProgress) * 255)); 125 mBgDrawable.setAlpha(mPaint.getAlpha()); 127 canvas.drawOval(mIndicatorRect, mPaint); 131 mPaint.setAlpha(255) [all...] |
/packages/services/Car/car-support-lib/src/android/support/car/ui/ |
DrawerArrowDrawable.java | 36 private final Paint mPaint = new Paint(); 73 mPaint.setAntiAlias(true); 74 mPaint.setColor(typedArray.getColor(R.styleable.DrawerArrowDrawable_carArrowColor, 0)); 93 mPaint.setStyle(Paint.Style.STROKE); 94 mPaint.setStrokeJoin(Paint.Join.MITER); 95 mPaint.setStrokeCap(Paint.Cap.BUTT); 96 mPaint.setStrokeWidth(mBarThickness); 158 canvas.drawPath(mPath, mPaint); 165 mPaint.setAlpha(i); 176 mPaint.setColorFilter(colorFilter) [all...] |
/developers/build/prebuilts/gradle/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/ |
CardBoundsWatchFaceService.java | 46 final Paint mPaint = new Paint(); 91 mPaint.setColor(Color.MAGENTA); 95 mCardBounds.bottom + BORDER_WIDTH_PX, mPaint); 99 mPaint.setColor(isInAmbientMode() ? Color.RED : Color.GREEN); 100 canvas.drawRect(mCardBounds, mPaint);
|
/developers/samples/android/wearable/wear/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/ |
CardBoundsWatchFaceService.java | 46 final Paint mPaint = new Paint(); 91 mPaint.setColor(Color.MAGENTA); 95 mCardBounds.bottom + BORDER_WIDTH_PX, mPaint); 99 mPaint.setColor(isInAmbientMode() ? Color.RED : Color.GREEN); 100 canvas.drawRect(mCardBounds, mPaint);
|
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/ |
CardBoundsWatchFaceService.java | 46 final Paint mPaint = new Paint(); 91 mPaint.setColor(Color.MAGENTA); 95 mCardBounds.bottom + BORDER_WIDTH_PX, mPaint); 99 mPaint.setColor(isInAmbientMode() ? Color.RED : Color.GREEN); 100 canvas.drawRect(mCardBounds, mPaint);
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
OpPropAnimation.cpp | 30 sp<CanvasPropertyPaint> mPaint = new CanvasPropertyPaint(SkPaint()); 47 mPaint->value.setAntiAlias(true); 48 mPaint->value.setColor(Color::Blue_500); 59 mRoundRectRx.get(), mRoundRectRy.get(), mPaint.get()); 60 canvas.drawCircle(mCircleX.get(), mCircleY.get(), mCircleRadius.get(), mPaint.get());
|
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/ |
HitRectBug.java | 43 private Paint mPaint; 51 mPaint = new Paint(); 52 mPaint.setColor(Color.RED); 53 mPaint.setStyle(Paint.Style.STROKE); 88 canvas.drawRect(mRect, mPaint);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawable/ |
CircleFramedDrawable.java | 44 private final Paint mPaint; 78 mPaint = new Paint(); 79 mPaint.setAntiAlias(true); 80 mPaint.setColor(Color.BLACK); 81 mPaint.setStyle(Paint.Style.FILL); 82 canvas.drawPath(fillPath, mPaint); 85 mPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN)); 86 canvas.drawBitmap(icon, cropRect, circleRect, mPaint); 89 mPaint.setXfermode(null);
|
/frameworks/support/design/base/android/support/design/widget/ |
CircularBorderDrawable.java | 43 final Paint mPaint; 62 mPaint = new Paint(Paint.ANTI_ALIAS_FLAG); 63 mPaint.setStyle(Paint.Style.STROKE); 80 mPaint.setStrokeWidth(width * DRAW_STROKE_WIDTH_MULTIPLE); 89 mPaint.setShader(createGradientShader()); 93 final float halfBorderWidth = mPaint.getStrokeWidth() / 2f; 108 canvas.drawOval(rectF, mPaint); 121 mPaint.setAlpha(alpha); 136 mPaint.setColorFilter(colorFilter);
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
AlphaLayersActivity.java | 72 private final Paint mPaint; 76 mPaint = new Paint(); 83 mPaint.setColor(0xffff0000); 84 canvas.drawRect(200.0f, 0.0f, 220.0f, 20.0f, mPaint); 119 mPaint.setColor(0xff00ff00); 120 canvas.drawRect(0.0f, 0.0f, 20.0f, 20.0f, mPaint); 122 mPaint.setColor(0xff0000ff); 123 canvas.drawRect(20.0f, 0.0f, 40.0f, 20.0f, mPaint); 130 mPaint.setColor(0xff0000ff); 131 canvas.drawRect(0.0f, 100.0f, 40.0f, 150.0f, mPaint); [all...] |
MultiLayersActivity.java | 60 private final Paint mPaint; 64 mPaint = new Paint(); 65 mPaint.setColor(color); 71 canvas.drawRect(0.0f, 0.0f, getWidth(), getHeight(), mPaint);
|
ProjectionActivity.java | 24 private final Paint mPaint = new Paint(); 69 mPaint.setAntiAlias(true); 70 mPaint.setColor(0x5f00ff00); 71 canvas.drawOval(mRectF, mPaint);
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
Patterns.java | 56 private final Paint mPaint; 83 mPaint = new Paint(Paint.FILTER_BITMAP_FLAG); 89 mPaint.setShader(mShader1); 90 canvas.drawPaint(mPaint); 95 mPaint.setShader(mShader2); 96 canvas.drawPaint(mPaint);
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/ |
CircleView.java | 34 private final Paint mPaint = new Paint(); 53 mPaint.setAntiAlias(true); 115 mPaint.setColor(mCircleColor); 116 canvas.drawCircle(mXCenter, mYCenter, mCircleRadius, mPaint); 119 mPaint.setColor(mDotColor); 120 canvas.drawCircle(mXCenter, mYCenter, 2, mPaint);
|
RadialTextsView.java | 41 private final Paint mPaint = new Paint(); 91 mPaint.setColor(numbersTextColor); 96 mPaint.setAntiAlias(true); 97 mPaint.setTextAlign(Align.CENTER); 154 mPaint.setColor(textColor); 245 mPaint.setTextSize(textSize); 247 yCenter -= (mPaint.descent() + mPaint.ascent()) / 2; 270 mPaint.setTextSize(textSize); 271 mPaint.setTypeface(typeface) [all...] |
/packages/apps/DevCamera/src/com/android/devcamera/ |
PreviewOverlay.java | 35 private Paint mPaint; 55 mPaint = new Paint(); 56 mPaint.setColor(mColor); 57 mPaint.setAntiAlias(true); 58 mPaint.setStyle(Paint.Style.STROKE); 59 mPaint.setStrokeWidth(res.getDimension(R.dimen.face_circle_stroke)); 202 mPaint.setColor(0xFFFFFFFF); 203 mPaint.setTextSize(36f); 204 canvas.drawText(text, x2, y2 - mLens * 0.25f * previewW - 7f, mPaint); 216 canvas.drawRoundRect(newR1, dP, dP, mPaint); [all...] |
/packages/apps/Gallery2/src/com/android/photos/shims/ |
BitmapJobDrawable.java | 41 private Paint mPaint = new Paint(); 91 canvas.drawBitmap(mBitmap, 0, 0, mPaint); 94 mPaint.setColor(0xFFCCCCCC); 95 canvas.drawRect(bounds, mPaint); 141 return (bm == null || bm.hasAlpha() || mPaint.getAlpha() < 255) ? 147 int oldAlpha = mPaint.getAlpha(); 149 mPaint.setAlpha(alpha); 156 mPaint.setColorFilter(cf);
|
/packages/apps/UnifiedEmail/src/com/android/mail/photomanager/ |
LetterTileProvider.java | 54 private final TextPaint mPaint = new TextPaint(); 71 mPaint.setTypeface(mSansSerifLight); 72 mPaint.setColor(mTileFontColor); 73 mPaint.setTextAlign(Align.CENTER); 74 mPaint.setAntiAlias(true); 104 mPaint.setTextSize( 106 mPaint.getTextBounds(mFirstChar, 0, 1, mBounds); 108 0 + dimensions.height / 2 + (mBounds.bottom - mBounds.top) / 2, mPaint);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
GestureFloatingTextDrawingPreview.java | 58 private final Paint mPaint = new Paint(); 86 mPaint.setAntiAlias(true); 87 mPaint.setTextAlign(Align.CENTER); 88 mPaint.setTextSize(mGesturePreviewTextSize); 89 mPaint.setColor(mGesturePreviewTextColor); 90 return mPaint; 94 mPaint.setColor(mGesturePreviewColor); 95 return mPaint;
|
SlidingKeyInputDrawingPreview.java | 45 private final Paint mPaint = new Paint(); 62 mPaint.setShadowLayer(shadowRadius, 0.0f, 0.0f, previewColor); 64 mPaint.setColor(previewColor); 92 canvas.drawPath(path, mPaint);
|
/cts/tests/tests/animation/src/android/animation/cts/ |
ShapeHolder.java | 34 private Paint mPaint; 37 mPaint = value; 41 return mPaint;
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
BatteryActiveView.java | 27 private final Paint mPaint = new Paint(); 65 mPaint.setColor(color); 67 mPaint);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/ |
EmojiCategoryPageIndicatorView.java | 27 private final Paint mPaint = new Paint(); 42 mPaint.setColor(foregroundColor); 68 canvas.drawRect(left, top, right, bottom, mPaint);
|
/packages/apps/PackageInstaller/src/android/support/wearable/view/ |
CircledImageView.java | 55 private final Paint mPaint; 179 mPaint = new Paint(); 180 mPaint.setAntiAlias(true); 220 mPaint.setColor(Color.BLACK); 221 mPaint.setAlpha(Math.round(mPaint.getAlpha() * getAlpha())); 222 mPaint.setStyle(Style.FILL); 224 mPaint.setShader(new RadialGradient(mOval.centerX(), mOval.centerY(), radius, 227 canvas.drawCircle(mOval.centerX(), mOval.centerY(), radius, mPaint); 228 mPaint.setShader(null) [all...] |