Home
last modified time | relevance | path

Searched refs:mRect (Results 1 – 3 of 3) sorted by relevance

/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DRoundRects.java36 private Rect mRect; field in RoundRects.SampleView
45 mRect = new Rect(0, 0, 120, 120); in SampleView()
62 mDrawable.setBounds(mRect); in onDraw()
74 canvas.translate(10 + mRect.width() + 10, 10); in onDraw()
80 canvas.translate(0, mRect.height() + 10); in onDraw()
90 canvas.translate(10 + mRect.width() + 10, 10); in onDraw()
96 canvas.translate(0, mRect.height() + 10); in onDraw()
106 canvas.translate(10 + mRect.width() + 10, 10); in onDraw()
/development/samples/ApiDemos/src/com/example/android/apis/media/
DAudioFxDemo.java205 private Rect mRect = new Rect(); field in VisualizerView
239 mRect.set(0, 0, getWidth(), getHeight()); in onDraw()
242 mPoints[i * 4] = mRect.width() * i / (mBytes.length - 1); in onDraw()
243 mPoints[i * 4 + 1] = mRect.height() / 2 in onDraw()
244 + ((byte) (mBytes[i] + 128)) * (mRect.height() / 2) / 128; in onDraw()
245 mPoints[i * 4 + 2] = mRect.width() * (i + 1) / (mBytes.length - 1); in onDraw()
246 mPoints[i * 4 + 3] = mRect.height() / 2 in onDraw()
247 + ((byte) (mBytes[i + 1] + 128)) * (mRect.height() / 2) / 128; in onDraw()
/development/samples/NotePad/src/com/example/android/notepad/
DNoteEditor.java85 private Rect mRect; field in NoteEditor.LinedEditText
93 mRect = new Rect(); in LinedEditText()
110 Rect r = mRect; in onDraw()