/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() 150 canvas.drawBitmap(mDstB, 0, 0, paint); in onDraw() 151 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 72 canvas.drawCircle(x, y, 80, paint); in onDraw() 78 canvas.drawCircle(x, y, 80, paint); in onDraw()
|
D | TouchPaint.java | 332 paint(PaintMode.Draw, mCurX, mCurY); in moveTrackball() 375 paint(getPaintModeForTool(event.getToolType(j), mode), in onTouchOrHoverEvent() 387 paint(getPaintModeForTool(event.getToolType(j), mode), in onTouchOrHoverEvent() 414 private void paint(PaintMode mode, float x, float y) { in paint() method in TouchPaint.PaintView 415 paint(mode, x, y, 1.0f, 0, 0, 0, 0, 0); in paint() 418 private void paint(PaintMode mode, float x, float y, float pressure, in paint() method in TouchPaint.PaintView 459 float orientation, Paint paint) { in drawOval() argument 466 canvas.drawOval(mReusableOvalRect, paint); in drawOval() 481 float distance, float tilt, Paint paint) { in drawSplat() argument 524 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/os/ |
D | Sensors.java | 109 final Paint paint = mPaint; in onDraw() local 120 paint.setColor(0xFFAAAAAA); in onDraw() 122 cavas.drawLine(0, yoffset, maxx, yoffset, paint); in onDraw() 123 cavas.drawLine(0, yoffset+oneG, maxx, yoffset+oneG, paint); in onDraw() 124 cavas.drawLine(0, yoffset-oneG, maxx, yoffset-oneG, paint); in onDraw() 137 paint.setColor(outer); in onDraw() 139 canvas.drawOval(mRect, paint); in onDraw() 142 paint.setColor(inner); in onDraw() 144 canvas.drawPath(path, paint); in onDraw() 156 paint.setColor(outer); in onDraw() [all …]
|
/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/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/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 | 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()
|
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()
|
/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/BrowserPlugin/jni/ |
D | Android.mk | 40 paint/PaintPlugin.cpp \ 54 $(LOCAL_PATH)/paint \
|
/development/samples/BrowserPlugin/jni/background/ |
D | BackgroundPlugin.cpp | 160 ANPPaint* paint = gPaintI.newPaint(); in drawPlugin() local 161 gPaintI.setFlags(paint, gPaintI.getFlags(paint) | kAntiAlias_ANPPaintFlag); in drawPlugin() 162 gPaintI.setColor(paint, 0xFFFF0000); in drawPlugin() 163 gPaintI.setTextSize(paint, fontSize); in drawPlugin() 166 gPaintI.setTypeface(paint, tf); in drawPlugin() 170 gPaintI.getFontMetrics(paint, &fm); in drawPlugin() 172 gPaintI.setColor(paint, 0xFF0000FF); in drawPlugin() 174 gCanvasI.drawText(canvas, c, sizeof(c)-1, leftMargin, -fm.fTop, paint); in drawPlugin() 177 gPaintI.deletePaint(paint); in drawPlugin()
|
/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/devbytes/animation/Bouncer/src/com/example/android/bouncer/ |
D | Bouncer.java | 55 Paint paint = new Paint(); field in Bouncer.MyView 121 canvas.drawBitmap(mBitmap, mShapeX, mShapeY, paint); in onDraw()
|
D | Bouncer3.java | 47 Paint paint = new Paint(); field in Bouncer3.MyView 104 canvas.drawBitmap(mBitmap, mShapeX, mShapeY, paint); in onDraw()
|
D | Bouncer1.java | 46 Paint paint = new Paint(); field in Bouncer1.MyView 103 canvas.drawBitmap(mBitmap, mShapeX, mShapeY, paint); in onDraw()
|