Home
last modified time | relevance | path

Searched refs:setShader (Results 1 – 25 of 67) sorted by relevance

123

/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/
DGradientStopsActivity.java51 paint.setShader(gradient); in onDraw()
60 paint.setShader(gradient); in onDraw()
70 paint.setShader(gradient); in onDraw()
79 paint.setShader(gradient); in onDraw()
87 paint.setShader(gradient); in onDraw()
95 paint.setShader(gradient); in onDraw()
103 paint.setShader(gradient); in onDraw()
111 paint.setShader(gradient); in onDraw()
119 paint.setShader(gradient); in onDraw()
DAdvancedGradientsActivity.java77 mPaint.setShader(mSweepGradient); in onDraw()
83 mPaint.setShader(mSweepGradient); in onDraw()
89 mPaint.setShader(mSweepGradient); in onDraw()
95 mPaint.setShader(mRadialGradient); in onDraw()
101 mPaint.setShader(mRadialGradient); in onDraw()
107 mPaint.setShader(mRadialGradient); in onDraw()
DShadersActivity.java111 mPaint.setShader(mRepeatShader); in onDraw()
115 mPaint.setShader(mTranslatedShader); in onDraw()
119 mPaint.setShader(mScaledShader); in onDraw()
128 mPaint.setShader(mHorGradient); in onDraw()
132 mPaint.setShader(mDiagGradient); in onDraw()
136 mPaint.setShader(mVertGradient); in onDraw()
DAdvancedBlendActivity.java108 mPaint.setShader(mComposeShader); in onDraw()
112 mPaint.setShader(mCompose2Shader); in onDraw()
116 mPaint.setShader(mCompose3Shader); in onDraw()
124 mPaint.setShader(mCompose4Shader); in onDraw()
128 mPaint.setShader(mCompose5Shader); in onDraw()
132 mPaint.setShader(mCompose6Shader); in onDraw()
DGradientsActivity.java101 mPaint.setShader(shader); in BitmapView()
126 mPaint.setShader(gradient); in GradientView()
151 mPaint.setShader(gradient); in RadialGradientView()
175 mPaint.setShader(gradient); in SweepGradientView()
230 mPaint.setShader(mGradient); in onDraw()
239 mPaint.setShader(mGradient); in onDraw()
251 mPaint.setShader(mGradient); in onDraw()
261 mPaint.setShader(mGradient); in onDraw()
273 mPaint.setShader(mGradientStops); in onDraw()
DMoreShadersActivity.java121 mPaint.setShader(mComposeShader); in onDraw()
125 mPaint.setShader(mCompose2Shader); in onDraw()
133 mLargePaint.setShader(mHorGradient); in onDraw()
136 mLargePaint.setShader(mScaled2Shader); in onDraw()
139 mLargePaint.setShader(mCompose2Shader); in onDraw()
145 mLargePaint.setShader(mVertGradient); in onDraw()
DFramebufferBlendActivity.java88 mPaint.setShader(null); in drawBlendedBitmap()
92 mPaint.setShader(mHorGradient); in drawBlendedBitmap()
101 mPaint.setShader(mHorGradient); in drawBlendedBitmapInverse()
105 mPaint.setShader(null); in drawBlendedBitmapInverse()
DLinesActivity.java125 mLargePaint.setShader(mShader); in onDraw()
133 mLargePaint.setShader(null); in onDraw()
144 mAlphaPaint.setShader(mShader); in onDraw()
146 mAlphaPaint.setShader(null); in onDraw()
DPathsActivity.java120 mLargePaint.setShader(mShader); in onDraw()
123 mLargePaint.setShader(null); in onDraw()
137 mLargePaint.setShader(mShader); in onDraw()
141 mLargePaint.setShader(null); in onDraw()
DBigGradientActivity.java44 p.setShader(new LinearGradient(0.0f, 0.0f, 0.0f, getHeight(), 0xff000000, in onDraw()
/frameworks/base/libs/hwui/tests/unit/
DShaderCacheTests.cpp184 void setShader(sk_sp<SkData>& shader, const char* program) { in setShader() function
188 void setShader(sk_sp<SkData>& shader, const std::string& program) { in setShader() function
189 setShader(shader, program.c_str()); in setShader()
193 void setShader(sk_sp<SkData>& shader, std::vector<T>& buffer) { in setShader() function
230 setShader(inVS, "sassas"); in TEST()
232 setShader(inVS, "someVS"); in TEST()
256 setShader(inVS, "ewData1"); in TEST()
267 setShader(inVS, dataBuffer); in TEST()
313 setShader(key, keyBuffer); in TEST()
314 setShader(data, dataBuffer); in TEST()
[all …]
/frameworks/base/libs/hwui/tests/common/scenes/
DBitmapShaders.cpp62 paint.setShader(std::move(repeatShader)); in createContent()
67 paint.setShader(std::move(mirrorShader)); in createContent()
DListOfFadedTextAnimation.cpp54 fadingPaint.setShader(s->makeWithLocalMatrix(matrix)); in createListItem()
DSimpleGradientAnimation.cpp60 paint.setShader(SkGradientShader::MakeLinear(pts, colors + (i % 2), pos, 2, in createCard()
DHwBitmapInCompositeShader.cpp71 paint.setShader(std::move(compositeShader)); in createContent()
DSimpleColorMatrixAnimation.cpp71 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 2, in createCard()
/frameworks/native/libs/renderengine/skia/filters/
DBlurFilter.cpp107 paint.setShader(blurBuilder.makeShader()); in drawBlurRegion()
109 paint.setShader(blurShader); in drawBlurRegion()
/frameworks/base/core/java/com/android/internal/widget/remotecompose/player/platform/
DAndroidPaintContext.java416 public void setShader(int shaderId) { in applyPaint() method
419 mPaint.setShader(null); in applyPaint()
441 mPaint.setShader(shader); in applyPaint()
511 mPaint.setShader(new LinearGradient(startX, in applyPaint()
525 mPaint.setShader(new RadialGradient(centerX, centerY, radius, in applyPaint()
534 mPaint.setShader(new SweepGradient(centerX, centerY, colors, stops)); in applyPaint()
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/paint/
DPaintChangeAdapter.java51 public void setShader(int shader) { in setShader() method in PaintChangeAdapter
DPaintChanges.java74 void setShader(int shader); in setShader() method
/frameworks/base/libs/hwui/pipeline/skia/
DStretchMask.cpp66 maskPaint.setShader(maskStretchShader); in draw()
/frameworks/base/rs/java/android/renderscript/
DProgram.java251 public BaseProgramBuilder setShader(String s) { in setShader() method in Program.BaseProgramBuilder
264 public BaseProgramBuilder setShader(Resources resources, int resourceID) { in setShader() method in Program.BaseProgramBuilder
/frameworks/base/graphics/java/android/graphics/drawable/
DRippleShader.java131 public void setShader(Shader shader) { in setShader() method in RippleShader
DRippleDrawable.java1010 shader.setShader(null); in createAnimationProperties()
1012 shader.setShader(mMaskShader); in createAnimationProperties()
1014 p.setShader(shader); in createAnimationProperties()
1228 mRunningAnimations.get(i).getProperties().getShader().setShader(mMaskShader); in updateRipplePaint()
1250 p.setShader(mMaskShader); in updateRipplePaint()
1254 p.setShader(null); in updateRipplePaint()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyguardUserSwitcherScrim.java100 mRadialGradientPaint.setShader( in updatePaint()

123