/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | PathFillTypes.java | 51 Paint paint) { in showPath() argument 57 canvas.drawPath(mPath, paint); in showPath() 62 Paint paint = mPaint; in onDraw() local 68 paint.setAntiAlias(true); in onDraw() 70 showPath(canvas, 0, 0, Path.FillType.WINDING, paint); in onDraw() 71 showPath(canvas, 160, 0, Path.FillType.EVEN_ODD, paint); in onDraw() 72 showPath(canvas, 0, 160, Path.FillType.INVERSE_WINDING, paint); in onDraw() 73 showPath(canvas, 160, 160, Path.FillType.INVERSE_EVEN_ODD, paint); in onDraw()
|
D | DrawPoints.java | 63 Paint paint = mPaint; in onDraw() local 69 paint.setColor(Color.RED); in onDraw() 70 paint.setStrokeWidth(0); in onDraw() 71 canvas.drawLines(mPts, paint); in onDraw() 73 paint.setColor(Color.BLUE); in onDraw() 74 paint.setStrokeWidth(3); in onDraw() 75 canvas.drawPoints(mPts, paint); in onDraw()
|
D | ColorMatrixSample.java | 86 Paint paint = mPaint; in onDraw() local 92 paint.setColorFilter(null); in onDraw() 93 canvas.drawBitmap(mBitmap, x, y, paint); in onDraw() 106 paint.setColorFilter(new ColorMatrixColorFilter(cm)); in onDraw() 107 canvas.drawBitmap(mBitmap, x + mBitmap.getWidth() + 10, y, paint); in onDraw() 110 paint.setColorFilter(new ColorMatrixColorFilter(cm)); in onDraw() 111 canvas.drawBitmap(mBitmap, x, y + mBitmap.getHeight() + 10, paint); in onDraw() 114 paint.setColorFilter(new ColorMatrixColorFilter(cm)); in onDraw() 116 paint); in onDraw()
|
D | Xfermodes.java | 123 Paint paint = new Paint(); in onDraw() local 124 paint.setFilterBitmap(false); in onDraw() 132 paint.setStyle(Paint.Style.STROKE); in onDraw() 133 paint.setShader(null); in onDraw() 135 x + W + 0.5f, y + H + 0.5f, paint); in onDraw() 138 paint.setStyle(Paint.Style.FILL); in onDraw() 139 paint.setShader(mBG); in onDraw() 140 canvas.drawRect(x, y, x + W, y + H, paint); in onDraw() 145 canvas.drawBitmap(mDstB, 0, 0, paint); in onDraw() 146 paint.setXfermode(sModes[i]); in onDraw() [all …]
|
D | Compass.java | 96 Paint paint = mPaint; in onDraw() local 100 paint.setAntiAlias(true); in onDraw() 101 paint.setColor(Color.BLACK); in onDraw() 102 paint.setStyle(Paint.Style.FILL); in onDraw()
|
D | Sweep.java | 55 Paint paint = mPaint; in onDraw() local 73 canvas.drawCircle(x, y, 80, paint); in onDraw() 79 canvas.drawCircle(x, y, 80, paint); in onDraw()
|
D | TouchPaint.java | 365 paint(PaintMode.Draw, mCurX, mCurY); in moveTrackball() 408 paint(getPaintModeForTool(event.getToolType(j), mode), in onTouchOrHoverEvent() 420 paint(getPaintModeForTool(event.getToolType(j), mode), in onTouchOrHoverEvent() 447 private void paint(PaintMode mode, float x, float y) { in paint() method in TouchPaint.PaintView 448 paint(mode, x, y, 1.0f, 0, 0, 0, 0, 0); in paint() 451 private void paint(PaintMode mode, float x, float y, float pressure, in paint() method in TouchPaint.PaintView 492 float orientation, Paint paint) { in drawOval() argument 499 canvas.drawOval(mReusableOvalRect, paint); in drawOval() 514 float distance, float tilt, Paint paint) { in drawSplat() argument 557 mCanvas.drawCircle(x + px - cx, y + py - cy, 1.0f, paint); in drawSplat()
|
D | SensorTest.java | 179 Paint paint = mPaint; in onDraw() local 183 paint.setAntiAlias(true); in onDraw() 184 paint.setColor(Color.BLACK); in onDraw() 185 paint.setStyle(Paint.Style.FILL); in onDraw()
|
D | Arcs.java | 90 Paint paint) { in drawArcs() argument 92 canvas.drawArc(oval, mStart, mSweep, useCenter, paint); in drawArcs()
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
D | LivePointerIconButton.java | 54 Paint paint = new Paint(); in onResolvePointerIcon() local 55 paint.setARGB(255, 255, 255, 255); in onResolvePointerIcon() 56 paint.setStyle(Paint.Style.STROKE); in onResolvePointerIcon() 58 paint.setStrokeWidth(strokeWidth); in onResolvePointerIcon() 64 canvas.drawCircle(outerCenterX, outerCenterY, outerRadius, paint); in onResolvePointerIcon() 77 paint.setStyle(Paint.Style.FILL); in onResolvePointerIcon() 79 canvas.drawCircle(innerCenterX, innerCenterY, innerRadius, paint); in onResolvePointerIcon()
|
/development/samples/devbytes/animation/KeyframeAnimation/src/com/example/android/keyframeanimation/ |
D | KeyframeAnimation.java | 78 Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG); in getDrawableForFrameNumber() local 79 paint.setTextSize(80); in getDrawableForFrameNumber() 80 paint.setColor(Color.BLACK); in getDrawableForFrameNumber() 81 canvas.drawText("Frame " + frameNumber, 40, 220, paint); in getDrawableForFrameNumber()
|
/development/samples/SoftKeyboard/src/com/example/android/softkeyboard/ |
D | CandidateView.java | 174 final Paint paint = mPaint; in onDraw() local 183 float textWidth = paint.measureText(suggestion); in onDraw() 188 paint.setColor(mColorNormal); in onDraw() 201 paint.setFakeBoldText(true); in onDraw() 202 paint.setColor(mColorRecommended); in onDraw() 204 paint.setColor(mColorOther); in onDraw() 206 canvas.drawText(suggestion, x + X_GAP, y, paint); in onDraw() 207 paint.setColor(mColorOther); in onDraw() 209 x + wordWidth + 0.5f, height + 1, paint); in onDraw() 210 paint.setFakeBoldText(false); in onDraw()
|
/development/samples/browseable/RenderScriptIntrinsic/src/com.example.android.renderscriptintrinsic/ |
D | ThumbnailRadioButton.java | 99 Paint paint = new Paint(); in setThumbnail() local 100 paint.setAntiAlias(true); in setThumbnail() 101 paint.setTextSize(getTextSize()); in setThumbnail() 102 paint.setTypeface(getTypeface()); in setThumbnail() 103 float w = paint.measureText(getText(), 0, getText().length()); in setThumbnail()
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/ |
D | NumericSprite.java | 29 public void initialize(GL10 gl, Paint paint) { in initialize() argument 30 int height = roundUpPower2((int) paint.getFontSpacing()); in initialize() 32 int width = roundUpPower2((int) (interDigitGaps + paint.measureText(sStrike))); in initialize() 38 mLabelId[i] = mLabelMaker.add(gl, digit, paint); in initialize()
|
/development/samples/devbytes/animation/ListViewCellInsertion/src/com/example/android/insertingcells/ |
D | CustomArrayAdapter.java | 124 final Paint paint = new Paint(); in getCroppedBitmap() local 125 paint.setAntiAlias(true); in getCroppedBitmap() 130 canvas.drawCircle(halfWidth, halfHeight, Math.max(halfWidth, halfHeight), paint); in getCroppedBitmap() 132 paint.setXfermode(new PorterDuffXfermode(Mode.SRC_IN)); in getCroppedBitmap() 134 canvas.drawBitmap(bitmap, rect, rect, paint); in getCroppedBitmap()
|
/development/samples/ApiDemos/src/com/example/android/apis/animation/ |
D | ShapeHolder.java | 35 private Paint paint; field in ShapeHolder 38 paint = value; in setPaint() 41 return paint; in getPaint()
|
D | ReversingAnimation.java | 113 Paint paint = drawable.getPaint(); //new Paint(Paint.ANTI_ALIAS_FLAG); in createBall() local 117 paint.setShader(gradient); in createBall() 118 shapeHolder.setPaint(paint); in createBall()
|
D | AnimationSeeking.java | 137 Paint paint = drawable.getPaint(); in addBall() local 141 paint.setShader(gradient); in addBall() 142 shapeHolder.setPaint(paint); in addBall()
|
D | AnimationCloning.java | 117 Paint paint = drawable.getPaint(); //new Paint(Paint.ANTI_ALIAS_FLAG); in addBall() local 121 paint.setShader(gradient); in addBall() 122 shapeHolder.setPaint(paint); in addBall()
|
D | CustomEvaluator.java | 152 Paint paint = drawable.getPaint(); //new Paint(Paint.ANTI_ALIAS_FLAG); in createBall() local 156 paint.setShader(gradient); in createBall() 157 shapeHolder.setPaint(paint); in createBall()
|
/development/samples/devbytes/animation/ListViewExpandingCells/src/com/example/android/expandingcells/ |
D | CustomArrayAdapter.java | 117 final Paint paint = new Paint(); in getCroppedBitmap() local 118 paint.setAntiAlias(true); in getCroppedBitmap() 123 canvas.drawCircle(halfWidth, halfHeight, Math.max(halfWidth, halfHeight), paint); in getCroppedBitmap() 125 paint.setXfermode(new PorterDuffXfermode(Mode.SRC_IN)); in getCroppedBitmap() 127 canvas.drawBitmap(bitmap, rect, rect, paint); in getCroppedBitmap()
|
/development/samples/CubeLiveWallpaper/src/com/example/android/livecubes/cube1/ |
D | CubeWallpaper1.java | 70 final Paint paint = mPaint; in CubeEngine() local 71 paint.setColor(0xffffffff); in CubeEngine() 72 paint.setAntiAlias(true); in CubeEngine() 73 paint.setStrokeWidth(2); in CubeEngine() 74 paint.setStrokeCap(Paint.Cap.ROUND); in CubeEngine() 75 paint.setStyle(Paint.Style.STROKE); in CubeEngine()
|
/development/samples/CubeLiveWallpaper/src/com/example/android/livecubes/cube2/ |
D | CubeWallpaper2.java | 91 final Paint paint = mPaint; in CubeEngine() local 92 paint.setColor(0xffffffff); in CubeEngine() 93 paint.setAntiAlias(true); in CubeEngine() 94 paint.setStrokeWidth(2); in CubeEngine() 95 paint.setStrokeCap(Paint.Cap.ROUND); in CubeEngine() 96 paint.setStyle(Paint.Style.STROKE); in CubeEngine()
|
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/ |
D | DigitalWatchFaceService.java | 230 Paint paint = new Paint(); in createTextPaint() local 231 paint.setColor(defaultInteractiveColor); in createTextPaint() 232 paint.setTypeface(typeface); in createTextPaint() 233 paint.setAntiAlias(true); in createTextPaint() 234 return paint; in createTextPaint() 375 private void adjustPaintColorToCurrentMode(Paint paint, int interactiveColor, in adjustPaintColorToCurrentMode() argument 377 paint.setColor(isInAmbientMode() ? ambientColor : interactiveColor); in adjustPaintColorToCurrentMode() 415 private void updatePaintIfInteractive(Paint paint, int interactiveColor) { in updatePaintIfInteractive() argument 416 if (!isInAmbientMode() && paint != null) { in updatePaintIfInteractive() 417 paint.setColor(interactiveColor); in updatePaintIfInteractive()
|
/development/samples/devbytes/animation/Bouncer/src/com/example/android/bouncer/ |
D | Bouncer1.java | 46 Paint paint = new Paint(); field in Bouncer1.MyView 103 canvas.drawBitmap(mBitmap, mShapeX, mShapeY, paint); in onDraw()
|