Home
last modified time | relevance | path

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

/frameworks/layoutlib/bridge/src/android/graphics/
DGradient_Delegate.java88 private int[] mGradient; field in Gradient_Delegate.GradientPaint
106 if (mGradient == null) { in precomputeGradientColors()
109 mGradient = new int[GRADIENT_SIZE+1]; in precomputeGradientColors()
118 mGradient[i] = mColors[0]; in precomputeGradientColors()
127 mGradient[i] = mColors[prevPos]; in precomputeGradientColors()
132 mGradient[i] = computeColor(mColors[prevPos], mColors[nextPos], percent); in precomputeGradientColors()
205 return mGradient[index]; in getGradientColor()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DGradientsActivity.java195 private final LinearGradient mGradient; field in GradientsActivity.ShadersView
205 mGradient = new LinearGradient(0, 0, 0, 1, 0xFF000000, 0, Shader.TileMode.CLAMP); in ShadersView()
229 mGradient.setLocalMatrix(mMatrix); in onDraw()
230 mPaint.setShader(mGradient); in onDraw()
238 mGradient.setLocalMatrix(mMatrix); in onDraw()
239 mPaint.setShader(mGradient); in onDraw()
250 mGradient.setLocalMatrix(mMatrix); in onDraw()
251 mPaint.setShader(mGradient); in onDraw()
260 mGradient.setLocalMatrix(mMatrix); in onDraw()
261 mPaint.setShader(mGradient); in onDraw()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DBarTransitions.java160 private final Drawable mGradient; field in BarTransitions.BarBackgroundDrawable
191 mGradient = context.getDrawable(gradientResourceId); in BarBackgroundDrawable()
230 mGradient.setBounds(bounds); in onBoundsChange()
296 mGradient.setAlpha(mGradientAlpha); in draw()
297 mGradient.draw(canvas); in draw()
/frameworks/base/graphics/java/android/graphics/drawable/
DGradientDrawable.java485 return mGradientState.mGradient; in getGradientType()
562 if (mGradientState.mGradient != RADIAL_GRADIENT) { in getGradientRadius()
1271 if (st.mGradient == LINEAR_GRADIENT) {
1310 } else if (st.mGradient == RADIAL_GRADIENT) {
1339 } else if (st.mGradient == SWEEP_GRADIENT) {
1712 st.mGradient = a.getInt(
1713 R.styleable.GradientDrawableGradient_type, st.mGradient);
1919 public @GradientType int mGradient = LINEAR_GRADIENT; field in GradientDrawable.GradientState
1991 mGradient = orig.mGradient; in GradientState()
2179 mGradient = gradient; in setGradientType()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/
DMLand.java1306 GradientDrawable mGradient = new GradientDrawable();
1318 mGradient.setOrientation(GradientDrawable.Orientation.LEFT_RIGHT);
1323 mGradient.setColors(new int[]{0xFFFFFFFF, 0xFFDDDDDD});
1330 mGradient.setColors(new int[]{0xFFBCAAA4, 0xFFA1887F});
1349 mGradient.setGradientCenter(w * 0.75f, 0);
1350 mGradient.setBounds(0, 0, w, h);
1351 mGradient.draw(c);