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

/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DGradient_Delegate.java82 private int[] mGradient; field in class:Gradient_Delegate.GradientPaint
100 if (mGradient == null) {
103 mGradient = new int[GRADIENT_SIZE+1];
117 mGradient[i] = computeColor(mColors[prevPos], mColors[nextPos], percent);
189 return mGradient[index];
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DGradientsActivity.java195 private final LinearGradient mGradient; field in class:GradientsActivity.ShadersView
205 mGradient = new LinearGradient(0, 0, 0, 1, 0xFF000000, 0, Shader.TileMode.CLAMP);
229 mGradient.setLocalMatrix(mMatrix);
230 mPaint.setShader(mGradient);
238 mGradient.setLocalMatrix(mMatrix);
239 mPaint.setShader(mGradient);
250 mGradient.setLocalMatrix(mMatrix);
251 mPaint.setShader(mGradient);
260 mGradient.setLocalMatrix(mMatrix);
261 mPaint.setShader(mGradient);
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DBarTransitions.java142 private final Drawable mGradient; field in class:BarTransitions.BarBackgroundDrawable
172 mGradient = context.getDrawable(gradientResourceId);
208 mGradient.setBounds(bounds);
274 mGradient.setAlpha(mGradientAlpha);
275 mGradient.draw(canvas);
/frameworks/base/graphics/java/android/graphics/drawable/
H A DGradientDrawable.java474 return mGradientState.mGradient;
551 if (mGradientState.mGradient != RADIAL_GRADIENT) {
1093 if (st.mGradient == LINEAR_GRADIENT) {
1132 } else if (st.mGradient == RADIAL_GRADIENT) {
1161 } else if (st.mGradient == SWEEP_GRADIENT) {
1537 st.mGradient = a.getInt(
1538 R.styleable.GradientDrawableGradient_type, st.mGradient);
1567 if (st.mGradient == LINEAR_GRADIENT) {
1630 } else if (st.mGradient == RADIAL_GRADIENT) {
1768 public @GradientType int mGradient field in class:GradientDrawable.GradientState
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/
H A DMLand.java1306 GradientDrawable mGradient = new GradientDrawable(); field in class:MLand.Stem
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);

Completed in 399 milliseconds