Searched refs:gradient (Results 1 - 11 of 11) sorted by relevance

/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DGradientStopsActivity.java47 LinearGradient gradient = new LinearGradient(0.0f, 0.0f, 256.0f, 0.0f,
51 paint.setShader(gradient);
57 gradient = new LinearGradient(0.0f, 0.0f, 256.0f, 0.0f,
60 paint.setShader(gradient);
67 gradient = new LinearGradient(0.0f, 0.0f, 256.0f, 0.0f,
70 paint.setShader(gradient);
76 gradient = new LinearGradient(0.0f, 0.0f, 256.0f, 0.0f,
79 paint.setShader(gradient);
84 gradient = new LinearGradient(0.0f, 0.0f, 256.0f, 0.0f,
87 paint.setShader(gradient);
[all...]
H A DGradientsActivity.java123 LinearGradient gradient = new LinearGradient(0, 0, 200, 0, 0xFF000000, 0,
126 mPaint.setShader(gradient);
148 RadialGradient gradient = new RadialGradient(0.0f, 0.0f, 100.0f, 0xff000000, 0xffffffff,
151 mPaint.setShader(gradient);
173 SweepGradient gradient = new SweepGradient(100.0f, 100.0f, 0xff000000, 0xffffffff);
175 mPaint.setShader(gradient);
H A DTransparentListActivity.java82 getWindow().setBackgroundDrawable(getResources().getDrawable(R.drawable.gradient));
/frameworks/base/tools/layoutlib/bridge/tests/res/testApp/MyApplication/build/intermediates/classes/debug/com/android/layoutlib/test/myapplication/
H A DR$color.class ... extends java.lang.Object { public static final int gradient public void " href="/8.0.0_r4/s? ...
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/native/
H A Dstochastic_linear_ranker.cpp32 SparseWeightVector<Key, Hash> gradient; local
34 gradient.AdditiveWeightUpdate(1.0, positive, 0.0);
35 gradient.AdditiveWeightUpdate(-1.0, negative, 0.0);
38 const double gradient_norm = gradient.L2Norm();
50 gradient.AdditiveWeightUpdate(-lambda_, weight_, 0.0);
54 gradient.ReprojectL0(gradient_l0_norm);
57 if (gradient.IsValid())
58 weight_.AdditiveWeightUpdate(final_learning_rate, gradient, 0.0);
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
H A DPipDismissViewController.java76 // Set the gradient background
77 Drawable gradient = mContext.getResources().getDrawable(R.drawable.pip_dismiss_scrim);
78 gradient.setAlpha((int) (255 * 0.85f));
79 mDismissView.setBackground(gradient);
/frameworks/base/libs/hwui/
H A DGradientCache.cpp110 GradientCacheEntry gradient(colors, positions, count);
111 Texture* texture = mCache.get(gradient);
114 texture = addLinearGradient(gradient, colors, positions, count);
147 Texture* GradientCache::addLinearGradient(GradientCacheEntry& gradient, argument
173 mCache.put(gradient, texture);
H A DGradientCache.h102 * A simple LRU gradient cache. The cache has a maximum size expressed in bytes.
138 * Adds a new linear gradient to the cache. The generated texture is
141 Texture* addLinearGradient(GradientCacheEntry& gradient,
H A DVectorDrawable.h234 void setFillGradient(SkShader* gradient) { argument
235 if(UPDATE_SKPROP(fillGradient, gradient)) {
239 void setStrokeGradient(SkShader* gradient) { argument
240 if(UPDATE_SKPROP(strokeGradient, gradient)) {
/frameworks/support/wear/src/android/support/wear/widget/drawer/
H A DPageIndicatorView.java174 Shader gradient =
183 shadowPaint.setShader(gradient);
/frameworks/base/graphics/java/android/graphics/drawable/
H A DGradientDrawable.java60 * A Drawable with a color gradient for buttons, backgrounds, etc.
175 /** Current gradient radius, valid when {@link #mGradientIsDirty} is false. */
179 * Controls how the gradient is oriented relative to the drawable's bounds
182 /** draw the gradient from the top to the bottom */
184 /** draw the gradient from the top-right to the bottom-left */
186 /** draw the gradient from the right to the left */
188 /** draw the gradient from the bottom-right to the top-left */
190 /** draw the gradient from the bottom to the top */
192 /** draw the gradient from the bottom-left to the top-right */
194 /** draw the gradient fro
459 setGradientType(@radientType int gradient) argument
2016 setGradientType(@radientType int gradient) argument
[all...]

Completed in 311 milliseconds