Home
last modified time | relevance | path

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

/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DShadersActivity.java50 private float mDrawHeight; field in ShadersActivity.ShadersView
66 mDrawHeight = mTexHeight * 1.2f; in ShadersView()
87 mMtx3.setScale(mDrawHeight, 1.0f); in ShadersView()
89 mMtx3.postTranslate(0.0f, mDrawHeight); in ShadersView()
92 mDiagGradient = new LinearGradient(0.0f, 0.0f, mDrawWidth / 1.5f, mDrawHeight, in ShadersView()
95 mVertGradient = new LinearGradient(0.0f, 0.0f, 0.0f, mDrawHeight / 2.0f, in ShadersView()
112 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw()
114 canvas.translate(0.0f, 40.0f + mDrawHeight); in onDraw()
116 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw()
118 canvas.translate(0.0f, 40.0f + mDrawHeight); in onDraw()
[all …]
DAdvancedBlendActivity.java50 private float mDrawHeight; field in AdvancedBlendActivity.ShadersView
67 mDrawHeight = mTexHeight * 1.2f; in ShadersView()
109 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw()
111 canvas.translate(0.0f, 40.0f + mDrawHeight); in onDraw()
113 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw()
115 canvas.translate(0.0f, 40.0f + mDrawHeight); in onDraw()
117 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw()
125 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw()
127 canvas.translate(0.0f, 40.0f + mDrawHeight); in onDraw()
129 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw()
[all …]
DGradientsActivity.java194 private final float mDrawHeight; field in GradientsActivity.ShadersView
203 mDrawHeight = 200; in ShadersView()
224 float bottom = 40.0f + mDrawHeight; in onDraw()
231 canvas.drawRect(right - mDrawWidth, top, right, top + mDrawHeight, mPaint); in onDraw()
233 top += 40.0f + mDrawHeight; in onDraw()
234 bottom += 40.0f + mDrawHeight; in onDraw()
236 mMatrix.setScale(1, mDrawHeight); in onDraw()
240 canvas.drawRect(left, top, right, top + mDrawHeight, mPaint); in onDraw()
244 top -= 40.0f + mDrawHeight; in onDraw()
245 bottom -= 40.0f + mDrawHeight; in onDraw()
[all …]
DMoreShadersActivity.java52 private float mDrawHeight; field in MoreShadersActivity.ShadersView
69 mDrawHeight = mTexHeight * 1.2f; in ShadersView()
89 mVertGradient = new LinearGradient(0.0f, 0.0f, 0.0f, mDrawHeight / 2.0f, in ShadersView()
122 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw()
124 canvas.translate(0.0f, 40.0f + mDrawHeight); in onDraw()
126 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); in onDraw()
144 canvas.translate(0.0f, 40.0f + mDrawHeight); in onDraw()
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
DResourceModifiers.java41 private final float mDrawHeight; field in ResourceModifiers
70 mDrawHeight = resources.getDimensionPixelSize(R.dimen.layer_height); in ResourceModifiers()
91 mMtx3.setScale(mDrawHeight, 1.0f); in ResourceModifiers()
93 mMtx3.postTranslate(0.0f, mDrawHeight); in ResourceModifiers()
96 mDiagGradient = new LinearGradient(0.0f, 0.0f, mDrawWidth / 2.0f, mDrawHeight / 2.0f, in ResourceModifiers()
99 mVertGradient = new LinearGradient(0.0f, 0.0f, 0.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()