Home
last modified time | relevance | path

Searched refs:LinearGradient (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DGradientStopsActivity.java23 import android.graphics.LinearGradient;
47 LinearGradient gradient = new LinearGradient(0.0f, 0.0f, 256.0f, 0.0f, in onDraw()
57 gradient = new LinearGradient(0.0f, 0.0f, 256.0f, 0.0f, in onDraw()
67 gradient = new LinearGradient(0.0f, 0.0f, 256.0f, 0.0f, in onDraw()
76 gradient = new LinearGradient(0.0f, 0.0f, 256.0f, 0.0f, in onDraw()
84 gradient = new LinearGradient(0.0f, 0.0f, 256.0f, 0.0f, in onDraw()
92 gradient = new LinearGradient(0.0f, 0.0f, 256.0f, 0.0f, in onDraw()
100 gradient = new LinearGradient(0.0f, 0.0f, 256.0f, 0.0f, in onDraw()
108 gradient = new LinearGradient(0.0f, 0.0f, 768.0f, 0.0f, in onDraw()
116 gradient = new LinearGradient(0.0f, 0.0f, 512.0f, 0.0f, in onDraw()
DShadersActivity.java26 import android.graphics.LinearGradient;
51 private LinearGradient mHorGradient;
52 private LinearGradient mDiagGradient;
53 private LinearGradient mVertGradient;
84 mHorGradient = new LinearGradient(0.0f, 0.0f, 1.0f, 0.0f, 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()
DMoreShadersActivity.java29 import android.graphics.LinearGradient;
53 private LinearGradient mHorGradient;
54 private LinearGradient mVertGradient;
83 mHorGradient = new LinearGradient(0.0f, 0.0f, mDrawWidth, 0.0f, in ShadersView()
89 mVertGradient = new LinearGradient(0.0f, 0.0f, 0.0f, mDrawHeight / 2.0f, in ShadersView()
DGradientsActivity.java25 import android.graphics.LinearGradient;
123 LinearGradient gradient = new LinearGradient(0, 0, 200, 0, 0xFF000000, 0, in GradientView()
195 private final LinearGradient mGradient;
196 private final LinearGradient mGradientStops;
205 mGradient = new LinearGradient(0, 0, 0, 1, 0xFF000000, 0, Shader.TileMode.CLAMP); in ShadersView()
206 mGradientStops = new LinearGradient(0, 0, 0, 1, in ShadersView()
DBigGradientActivity.java22 import android.graphics.LinearGradient;
44 p.setShader(new LinearGradient(0.0f, 0.0f, 0.0f, getHeight(), 0xff000000, in onDraw()
DFramebufferBlendActivity.java26 import android.graphics.LinearGradient;
47 private LinearGradient mHorGradient;
57 mHorGradient = new LinearGradient(0.0f, 0.0f, mTexWidth, 0.0f, in BlendView()
DAdvancedBlendActivity.java27 import android.graphics.LinearGradient;
51 private LinearGradient mHorGradient;
81 mHorGradient = new LinearGradient(0.0f, 0.0f, mDrawWidth, 0.0f, in ShadersView()
/frameworks/base/graphics/java/android/graphics/
DLinearGradient.java23 public class LinearGradient extends Shader { class
58 public LinearGradient(float x0, float y0, float x1, float y1, @NonNull @ColorInt int colors[], in LinearGradient() method in LinearGradient
87 public LinearGradient(float x0, float y0, float x1, float y1, in LinearGradient() method in LinearGradient
118 final LinearGradient copy; in copy()
120 copy = new LinearGradient(mX0, mY0, mX1, mY1, mColors.clone(), in copy()
123 copy = new LinearGradient(mX0, mY0, mX1, mY1, mColor0, mColor1, mTileMode); in copy()
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
DResourceModifiers.java27 import android.graphics.LinearGradient;
42 public final LinearGradient mHorGradient;
43 public final LinearGradient mDiagGradient;
44 public final LinearGradient mVertGradient;
88 mHorGradient = new LinearGradient(0.0f, 0.0f, 1.0f, 0.0f, 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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/
DMinimizedDockShadow.java23 import android.graphics.LinearGradient;
64 mShadowPaint.setShader(new LinearGradient( in updatePaint()
69 mShadowPaint.setShader(new LinearGradient( in updatePaint()
74 mShadowPaint.setShader(new LinearGradient( in updatePaint()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DImageGradientColorizer.java25 import android.graphics.LinearGradient;
74 LinearGradient linearGradient = new LinearGradient(0, 0, size, 0, in colorize()
96 linearGradient = new LinearGradient(0, 0, size, 0, in colorize()
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
DHorizontalGridView.java21 import android.graphics.LinearGradient;
58 private LinearGradient mLowFadeShader;
62 private LinearGradient mHighFadeShader;
149 mLowFadeShader = new LinearGradient(0, 0, mLowFadeShaderLength, 0, in setFadingLeftEdgeLength()
215 mHighFadeShader = new LinearGradient(0, 0, mHighFadeShaderLength, 0, in setFadingRightEdgeLength()
/frameworks/support/samples/SupportLeanbackJank/src/main/java/com/google/android/leanbackjank/data/
DVideoProvider.java24 import android.graphics.LinearGradient;
117 Shader shader = new LinearGradient(0, 0, width - 1, height - 1, COLORS.get(0), in makeIcon()
128 shader = new LinearGradient(wOffset, height - hOffset, width - wOffset, hOffset, in makeIcon()
/frameworks/layoutlib/bridge/src/android/view/
DRectShadowPainter.java26 import android.graphics.LinearGradient;
89 edgePaint.setShader(new LinearGradient(0, 0, -shadowSize, 0, colors[0], colors[2], in paintShadow()
115 edgePaint.setShader(new LinearGradient(edgeShadowRect.right, 0, edgeShadowRect.left, 0, in paintShadow()
/frameworks/layoutlib/bridge/src/android/graphics/
DLinearGradient_Delegate.java62 /*package*/ static long nativeCreate1(LinearGradient thisGradient, long matrix, in nativeCreate1()
71 /*package*/ static long nativeCreate2(LinearGradient thisGradient, long matrix, in nativeCreate2()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DFakeShadowDrawable.java21 import android.graphics.LinearGradient;
263 mEdgeShadowPaint.setShader(new LinearGradient(0, -mCornerRadius + mShadowSize, 0, in buildShadowCorners()
/frameworks/support/cardview/src/main/java/androidx/cardview/widget/
DRoundRectDrawableWithShadow.java23 import android.graphics.LinearGradient;
323 mEdgeShadowPaint.setShader(new LinearGradient(0, -mCornerRadius + mShadowSize, 0, in buildShadowCorners()
/frameworks/base/core/java/android/content/res/
DGradientColor.java32 import android.graphics.LinearGradient;
473 mShader = new LinearGradient(mStartX, mStartY, mEndX, mEndY, tempColors, tempOffsets, in onColorsChange()
/frameworks/base/core/java/com/android/internal/policy/
DDecorView.java49 import android.graphics.LinearGradient;
2146 mHorizontalResizeShadowPaint.setShader(new LinearGradient(
2149 mVerticalResizeShadowPaint.setShader(new LinearGradient(
/frameworks/base/graphics/java/android/graphics/drawable/
DGradientDrawable.java33 import android.graphics.LinearGradient;
1159 mFillPaint.setShader(new LinearGradient(x0, y0, x1, y1,
/frameworks/base/config/
Dhiddenapi-light-greylist.txt2306 Landroid/graphics/LinearGradient;->mColor0:I
2307 Landroid/graphics/LinearGradient;->mColor1:I
2308 Landroid/graphics/LinearGradient;->mColors:[I
2309 Landroid/graphics/LinearGradient;->mPositions:[F
2310 Landroid/graphics/LinearGradient;->mTileMode:Landroid/graphics/Shader$TileMode;
2311 Landroid/graphics/LinearGradient;->mX0:F
2312 Landroid/graphics/LinearGradient;->mX1:F
2313 Landroid/graphics/LinearGradient;->mY0:F
2314 Landroid/graphics/LinearGradient;->mY1:F
Dpreloaded-classes1075 android.graphics.LinearGradient
Dboot-image-profile.txt2048 HPLandroid/graphics/LinearGradient;-><init>(FFFFIILandroid/graphics/Shader$TileMode;)V
20033 HSPLandroid/graphics/LinearGradient;-><init>(FFFF[I[FLandroid/graphics/Shader$TileMode;)V
20034 HSPLandroid/graphics/LinearGradient;->createNativeInstance(J)J
54992 Landroid/graphics/LinearGradient;
Dhiddenapi-public-dex.txt11843 Landroid/graphics/LinearGradient;
11844 Landroid/graphics/LinearGradient;-><init>(FFFFIILandroid/graphics/Shader$TileMode;)V
11845 Landroid/graphics/LinearGradient;-><init>(FFFF[I[FLandroid/graphics/Shader$TileMode;)V
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt10832 public class LinearGradient extends android.graphics.Shader {
10833 …ctor public LinearGradient(float, float, float, float, int[], float[], android.graphics.Shader.Til…
10834 …ctor public LinearGradient(float, float, float, float, int, int, android.graphics.Shader.TileMode);

12