Home
last modified time | relevance | path

Searched refs:mPath (Results 1 – 13 of 13) sorted by relevance

/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DPathFillTypes.java38 private Path mPath; field in PathFillTypes.SampleView
45 mPath = new Path(); in SampleView()
46 mPath.addCircle(40, 40, 45, Path.Direction.CCW); in SampleView()
47 mPath.addCircle(80, 80, 45, Path.Direction.CCW); in SampleView()
56 mPath.setFillType(ft); in showPath()
57 canvas.drawPath(mPath, paint); in showPath()
DCompass.java81 private Path mPath = new Path(); field in Compass.SampleView
88 mPath.moveTo(0, -50); in SampleView()
89 mPath.lineTo(-20, 60); in SampleView()
90 mPath.lineTo(0, 50); in SampleView()
91 mPath.lineTo(20, 60); in SampleView()
92 mPath.close(); in SampleView()
113 canvas.drawPath(mPath, mPaint); in onDraw()
DTextAlign.java37 private Path mPath; field in TextAlign.SampleView
78 mPath = new Path(); in SampleView()
79 makePath(mPath); in SampleView()
139 canvas.drawPath(mPath, mPathPaint); in onDraw()
141 canvas.drawTextOnPath(TEXTONPATH, mPath, 0, 0, p); in onDraw()
144 canvas.drawPath(mPath, mPathPaint); in onDraw()
146 canvas.drawTextOnPath(TEXTONPATH, mPath, 0, 0, p); in onDraw()
149 canvas.drawPath(mPath, mPathPaint); in onDraw()
151 canvas.drawTextOnPath(TEXTONPATH, mPath, 0, 0, p); in onDraw()
DFingerPaint.java65 private Path mPath; field in FingerPaint.MyView
71 mPath = new Path(); in MyView()
88 canvas.drawPath(mPath, mPaint); in onDraw()
95 mPath.reset(); in touch_start()
96 mPath.moveTo(x, y); in touch_start()
104 mPath.quadTo(mX, mY, (x + mX)/2, (y + mY)/2); in touch_move()
110 mPath.lineTo(mX, mY); in touch_up()
112 mCanvas.drawPath(mPath, mPaint); in touch_up()
114 mPath.reset(); in touch_up()
DClipping.java34 private Path mPath; field in Clipping.SampleView
46 mPath = new Path(); in SampleView()
81 mPath.reset(); in onDraw()
82 canvas.clipPath(mPath); // makes the clip empty in onDraw()
83 mPath.addCircle(50, 50, 50, Path.Direction.CCW); in onDraw()
84 canvas.clipPath(mPath); in onDraw()
DShadowCardDrag.java117 private final Path mPath = new Path(); field in ShadowCardDrag.TriangleShape
121 mPath.reset(); in onResize()
122 mPath.moveTo(0, 0); in onResize()
123 mPath.lineTo(width, 0); in onResize()
124 mPath.lineTo(width / 2, height); in onResize()
125 mPath.lineTo(0, 0); in onResize()
126 mPath.close(); in onResize()
131 canvas.drawPath(mPath, paint); in draw()
136 outline.setConvexPath(mPath); in getOutline()
DSensorTest.java163 private Path mPath = new Path(); field in SensorTest.SampleView
170 mPath.moveTo(0, -50); in SampleView()
171 mPath.lineTo(-20, 60); in SampleView()
172 mPath.lineTo(0, 50); in SampleView()
173 mPath.lineTo(20, 60); in SampleView()
174 mPath.close(); in SampleView()
196 canvas.drawPath(mPath, mPaint); in onDraw()
DPathEffects.java35 private Path mPath; field in PathEffects.SampleView
63 mPath = makeFollowPath(); in SampleView()
76 mPath.computeBounds(bounds, false); in onDraw()
86 canvas.drawPath(mPath, mPaint); in onDraw()
94 mPath = makeFollowPath(); in onKeyDown()
DRoundRects.java34 private Path mPath; field in RoundRects.SampleView
43 mPath = new Path(); in SampleView()
/development/samples/Obb/src/com/example/android/obbapp/
DObbMountActivity.java44 private TextView mPath; field in ObbMountActivity
62 mPath = (TextView) findViewById(R.id.path); in onCreate()
69 mPath.setText(state.path); in onCreate()
84 mPath.setText(mSM.getMountedObbPath(mObbPath));
86 mPath.setText("");
133 ObbState state = new ObbState(mSM, mStatus.getText(), mPath.getText()); in onRetainNonConfigurationInstance()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DGameView.java598 private final Path mPath;
609 mPath = new Path();
610 mPath.moveTo(0, 0);
611 mPath.lineTo((float)Math.cos(-CORNER_ANGLE) * mSize,
613 mPath.lineTo(mSize, 0);
614 mPath.lineTo((float)Math.cos(CORNER_ANGLE) * mSize,
616 mPath.lineTo(0, 0);
696 canvas.drawPath(mPath, mPaint);
/development/samples/ApiDemos/src/com/example/android/apis/animation/
DPathAnimations.java194 Path mPath = new Path(); field in PathAnimations.CanvasView
228 sTraversalPath.transform(scale, mPath); in onLayout()
233 return mPath; in getPath()
238 canvas.drawPath(mPath, mPathPaint); in draw()
/development/samples/ControllerSample/src/com/example/controllersample/
DGameView.java651 private final Path mPath; field in GameView.Ship
679 mPath = new Path(); in Ship()
680 mPath.moveTo(0, 0); in Ship()
681 mPath.lineTo((float) Math.cos(-CORNER_ANGLE) * mSize, in Ship()
683 mPath.lineTo(mSize, 0); in Ship()
684 mPath.lineTo((float) Math.cos(CORNER_ANGLE) * mSize, in Ship()
686 mPath.lineTo(0, 0); in Ship()
1021 canvas.drawPath(mPath, mPaint); in draw()