Home
last modified time | relevance | path

Searched refs:setShader (Results 1 – 25 of 58) 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()
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/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/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/support/v4/donut/android/support/v4/graphics/drawable/
DRoundedBitmapDrawable.java246 mPaint.setShader(mBitmapShader); in updateDstRect()
300 mPaint.setShader(mBitmapShader); in setCircular()
327 mPaint.setShader(mBitmapShader); in setCornerRadius()
329 mPaint.setShader(null); in setCornerRadius()
/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/base/tools/layoutlib/bridge/src/android/view/
DRectShadowPainter.java61 cornerPaint.setShader(new RadialGradient(0, 0, outerArcRadius, colors, in paintShadow()
63 edgePaint.setShader(new LinearGradient(0, 0, -shadowSize, 0, START_COLOR, END_COLOR, in paintShadow()
89 edgePaint.setShader(new LinearGradient(edgeShadowRect.right, 0, edgeShadowRect.left, 0, in paintShadow()
/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()
DFullscreenBlur.java163 fb.setShader(res, resID); in getShader()
177 vb.setShader(res, R.raw.blur_vertex); in initShaders()
/frameworks/base/graphics/java/android/graphics/drawable/
DBitmapDrawable.java482 mBitmapState.mPaint.setShader(shader); in onBoundsChange()
487 mBitmapState.mPaint.setShader(shader); in onBoundsChange()
506 paint.setShader(null); in draw()
508 paint.setShader(new BitmapShader(bitmap, in draw()
554 paint.setShader(shader); in draw()
559 paint.setShader(shader); in draw()
/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/
DBitmapHelper.java44 paint.setShader(new BitmapShader(input, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP)); in createCircularClip()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DTaskViewThumbnail.java129 mDrawPaint.setShader(mBitmapShader); in setThumbnail()
134 mDrawPaint.setShader(null); in setThumbnail()
/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