Home
last modified time | relevance | path

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

123

/frameworks/base/tests/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()
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()
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()
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()
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()
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/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
DVertexShader.java42 public Builder setShader(Resources resources, int resourceID) { in setShader() method in VertexShader.Builder
43 mBuilder.setShader(resources, resourceID); in setShader()
47 public Builder setShader(String code) { in setShader() method in VertexShader.Builder
48 mBuilder.setShader(code); in setShader()
DFragmentShader.java46 public Builder setShader(Resources resources, int resourceID) { in setShader() method in FragmentShader.Builder
47 mBuilder.setShader(resources, resourceID); in setShader()
51 public Builder setShader(String code) { in setShader() method in FragmentShader.Builder
52 mBuilder.setShader(code); in setShader()
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
DDisplayModifier.java268 paint.setShader(ResourceModifiers.instance().mRepeatShader);
276 paint.setShader(ResourceModifiers.instance().mTranslatedShader);
282 paint.setShader(ResourceModifiers.instance().mScaledShader);
288 paint.setShader(ResourceModifiers.instance().mHorGradient);
294 paint.setShader(ResourceModifiers.instance().mDiagGradient);
302 paint.setShader(ResourceModifiers.instance().mVertGradient);
308 paint.setShader(ResourceModifiers.instance().mRadGradient);
314 paint.setShader(ResourceModifiers.instance().mSweepGradient);
320 paint.setShader(ResourceModifiers.instance().mComposeShader);
326 paint.setShader(ResourceModifiers.instance().mBadComposeShader);
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/
DFadedEdgeDrawHelper.java99 mFadePaint.setShader(mFade); in drawCallback()
145 mFadePaint.setShader(mFade); in drawCallback()
161 mFadePaint.setShader(mFade); in drawCallback()
170 mFadePaint.setShader(mFade); in drawCallback()
179 mFadePaint.setShader(mFade); in drawCallback()
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/
DTorusTest.java165 pvbCustom.setShader(mRes, R.raw.shaderv); in initCustomShaders()
176 pfbCustom.setShader(mRes, R.raw.shaderf); in initCustomShaders()
186 pvbCustom.setShader(mRes, R.raw.shader2v); in initCustomShaders()
193 pvbCustom.setShader(mRes, R.raw.shader2movev); in initCustomShaders()
200 pfbCustom.setShader(mRes, R.raw.shader2f); in initCustomShaders()
207 pfbCustom.setShader(mRes, R.raw.multitexf); in initCustomShaders()
DFillTest.java111 pfbCustom.setShader(mRes, R.raw.multitexf); in initCustomShaders()
118 pfbCustom.setShader(mRes, R.raw.singletexf); in initCustomShaders()
123 pfbCustom.setShader(mRes, R.raw.singletexfm); in initCustomShaders()
/frameworks/base/tests/RenderScriptTests/MiscSamples/src/com/example/android/rs/miscsamples/
DRsRenderStatesRS.java235 pvbCustom.setShader(mRes, R.raw.shaderv); in initCustomShaders()
246 pfbCustom.setShader(mRes, R.raw.shaderf); in initCustomShaders()
256 pvbCustom.setShader(mRes, R.raw.shaderarrayv); in initCustomShaders()
263 pfbCustom.setShader(mRes, R.raw.shaderarrayf); in initCustomShaders()
271 pvbCustom.setShader(mRes, R.raw.shadercubev); in initCustomShaders()
278 pfbCustom.setShader(mRes, R.raw.shadercubef); in initCustomShaders()
283 pfbCustom.setShader(mRes, R.raw.multitexf); in initCustomShaders()
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/
DRoundedBitmapDrawable.java273 mPaint.setShader(mBitmapShader); in setCornerRadius()
275 mPaint.setShader(null); in setCornerRadius()
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/
DTestAppRS.java139 fb.setShader(mRes, id); in createFromResource()
174 fb.setShader(mRes, R.raw.plastic_lights); in initPaintShaders()
179 fb.setShader(mRes, R.raw.diffuse_lights); in initPaintShaders()
/frameworks/base/graphics/java/android/graphics/drawable/
DBitmapDrawable.java475 mBitmapState.mPaint.setShader(shader); in onBoundsChange()
480 mBitmapState.mPaint.setShader(shader); in onBoundsChange()
499 paint.setShader(null); in draw()
501 paint.setShader(new BitmapShader(bitmap, in draw()
547 paint.setShader(shader); in draw()
552 paint.setShader(shader); in draw()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DBitmapHelper.java44 paint.setShader(new BitmapShader(input, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP)); in createCircularClip()
/frameworks/base/rs/java/android/renderscript/
DProgram.java234 public BaseProgramBuilder setShader(String s) { in setShader() method in Program.BaseProgramBuilder
247 public BaseProgramBuilder setShader(Resources resources, int resourceID) { in setShader() method in Program.BaseProgramBuilder
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DTaskViewThumbnail.java171 mDrawPaint.setShader(mBitmapShader);
176 mDrawPaint.setShader(null);
DFakeShadowDrawable.java251 mCornerShadowPaint.setShader(new RadialGradient(0, 0, mCornerRadius + mShadowSize, in buildShadowCorners()
259 mEdgeShadowPaint.setShader(new LinearGradient(0, -mCornerRadius + mShadowSize, 0, in buildShadowCorners()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DUserAvatarView.java98 mBitmapPaint.setShader(new BitmapShader( in setBitmap()
101 mBitmapPaint.setShader(null); in setBitmap()

123