/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | ShadersActivity.java | 50 private float mDrawHeight; field in class:ShadersActivity.ShadersView 66 mDrawHeight = mTexHeight * 1.2f; 87 mMtx3.setScale(mDrawHeight, 1.0f); 89 mMtx3.postTranslate(0.0f, mDrawHeight); 92 mDiagGradient = new LinearGradient(0.0f, 0.0f, mDrawWidth / 1.5f, mDrawHeight, 95 mVertGradient = new LinearGradient(0.0f, 0.0f, 0.0f, mDrawHeight / 2.0f, 112 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); 114 canvas.translate(0.0f, 40.0f + mDrawHeight); 116 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); 118 canvas.translate(0.0f, 40.0f + mDrawHeight); [all...] |
H A D | AdvancedBlendActivity.java | 50 private float mDrawHeight; field in class:AdvancedBlendActivity.ShadersView 67 mDrawHeight = mTexHeight * 1.2f; 109 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); 111 canvas.translate(0.0f, 40.0f + mDrawHeight); 113 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); 115 canvas.translate(0.0f, 40.0f + mDrawHeight); 117 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); 125 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); 127 canvas.translate(0.0f, 40.0f + mDrawHeight); 129 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPain [all...] |
H A D | GradientsActivity.java | 194 private final float mDrawHeight; field in class:GradientsActivity.ShadersView 203 mDrawHeight = 200; 224 float bottom = 40.0f + mDrawHeight; 231 canvas.drawRect(right - mDrawWidth, top, right, top + mDrawHeight, mPaint); 233 top += 40.0f + mDrawHeight; 234 bottom += 40.0f + mDrawHeight; 236 mMatrix.setScale(1, mDrawHeight); 240 canvas.drawRect(left, top, right, top + mDrawHeight, mPaint); 244 top -= 40.0f + mDrawHeight; 245 bottom -= 40.0f + mDrawHeight; [all...] |
H A D | MoreShadersActivity.java | 52 private float mDrawHeight; field in class:MoreShadersActivity.ShadersView 69 mDrawHeight = mTexHeight * 1.2f; 89 mVertGradient = new LinearGradient(0.0f, 0.0f, 0.0f, mDrawHeight / 2.0f, 122 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); 124 canvas.translate(0.0f, 40.0f + mDrawHeight); 126 canvas.drawRect(0.0f, 0.0f, mDrawWidth, mDrawHeight, mPaint); 144 canvas.translate(0.0f, 40.0f + mDrawHeight);
|
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
H A D | ResourceModifiers.java | 41 private final float mDrawHeight; field in class:ResourceModifiers 70 mDrawHeight = resources.getDimensionPixelSize(R.dimen.layer_height); 91 mMtx3.setScale(mDrawHeight, 1.0f); 93 mMtx3.postTranslate(0.0f, mDrawHeight); 96 mDiagGradient = new LinearGradient(0.0f, 0.0f, mDrawWidth / 2.0f, mDrawHeight / 2.0f, 99 mVertGradient = new LinearGradient(0.0f, 0.0f, 0.0f, mDrawHeight / 2.0f, 102 mSweepGradient = new SweepGradient(mDrawWidth / 2.0f, mDrawHeight / 2.0f, 126 mRadGradient = new RadialGradient(mDrawWidth / 4.0f, mDrawHeight / 4.0f, 4.0f,
|