Home
last modified time | relevance | path

Searched refs:mDrawWidth (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DShadersActivity.java49 private float mDrawWidth; field in ShadersActivity.ShadersView
65 mDrawWidth = mTexWidth * 2.2f; in ShadersView()
92 mDiagGradient = new LinearGradient(0.0f, 0.0f, mDrawWidth / 1.5f, mDrawHeight, in ShadersView()
112 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw()
116 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw()
120 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw()
126 canvas.translate(40.0f + mDrawWidth + 40.0f, 40.0f); in onDraw()
129 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw()
133 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw()
137 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw()
DAdvancedBlendActivity.java49 private float mDrawWidth; field in AdvancedBlendActivity.ShadersView
66 mDrawWidth = mTexWidth * 2.2f; in ShadersView()
81 mHorGradient = new LinearGradient(0.0f, 0.0f, mDrawWidth, 0.0f, in ShadersView()
109 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw()
113 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw()
117 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw()
122 canvas.translate(40.0f + mDrawWidth + 40.0f, 40.0f); in onDraw()
125 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw()
129 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw()
133 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw()
DGradientsActivity.java193 private final float mDrawWidth; field in GradientsActivity.ShadersView
202 mDrawWidth = 200; in ShadersView()
222 float right = 40.0f + mDrawWidth; in onDraw()
226 mMatrix.setScale(1, mDrawWidth); in onDraw()
231 canvas.drawRect(right - mDrawWidth, top, right, top + mDrawHeight, mPaint); in onDraw()
242 left += 40.0f + mDrawWidth; in onDraw()
243 right += 40.0f + mDrawWidth; in onDraw()
257 mMatrix.setScale(1, mDrawWidth); in onDraw()
262 canvas.drawRect(left, top, left + mDrawWidth, bottom, mPaint); in onDraw()
264 right = left + mDrawWidth; in onDraw()
[all …]
DMoreShadersActivity.java51 private float mDrawWidth; field in MoreShadersActivity.ShadersView
68 mDrawWidth = mTexWidth * 2.2f; in ShadersView()
83 mHorGradient = new LinearGradient(0.0f, 0.0f, mDrawWidth, 0.0f, in ShadersView()
122 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw()
126 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw()
131 canvas.translate(40.0f + mDrawWidth + 40.0f, 40.0f); in onDraw()
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
DResourceModifiers.java40 private final float mDrawWidth; field in ResourceModifiers
69 mDrawWidth = resources.getDimensionPixelSize(R.dimen.layer_width); in ResourceModifiers()
96 mDiagGradient = new LinearGradient(0.0f, 0.0f, mDrawWidth / 2.0f, mDrawHeight / 2.0f, in ResourceModifiers()
102 mSweepGradient = new SweepGradient(mDrawWidth / 2.0f, mDrawHeight / 2.0f, in ResourceModifiers()
126 mRadGradient = new RadialGradient(mDrawWidth / 4.0f, mDrawHeight / 4.0f, 4.0f, in ResourceModifiers()