Searched refs:gradient (Results 1 - 8 of 8) 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/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/libs/hwui/
H A DGradientCache.cpp70 INIT_LOGD(" Setting gradient cache size to %sMB", property);
73 INIT_LOGD(" Using default gradient cache size of %.2fMB", DEFAULT_GRADIENT_CACHE_SIZE);
133 GradientCacheEntry gradient(colors, positions, count);
134 Texture* texture = mCache.get(gradient);
137 texture = addLinearGradient(gradient, colors, positions, count);
170 Texture* GradientCache::addLinearGradient(GradientCacheEntry& gradient, argument
191 mCache.put(gradient, texture);
H A DGradientCache.h107 * A simple LRU gradient cache. The cache has a maximum size expressed in bytes.
148 * Adds a new linear gradient to the cache. The generated texture is
151 Texture* addLinearGradient(GradientCacheEntry& gradient,
/frameworks/base/docs/html/reference/renderscript/
H A Ddoxygen.css168 background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#000),color-stop(0.3, #444));
169 background-image: -moz-linear-gradient(center top, #eee 0%, #444 40%, #000);
456 background-image: -moz-linear-gradient(center top, #FFFFFF 0%, #FFFFFF 60%, #F7F8FB 95%, #EEF1F7);
461 background-image: -webkit-gradient(linear,center top,center bottom,from(#FFFFFF), color-stop(0.6,#FFFFFF), color-stop(0.60,#FFFFFF), color-stop(0.95,#F7F8FB), to(#EEF1F7));
/frameworks/base/graphics/java/android/graphics/drawable/
H A DGradientDrawable.java51 * A Drawable with a color gradient for buttons, backgrounds, etc.
151 /** Current gradient radius, valid when {@link #mGradientIsDirty} is false. */
155 * Controls how the gradient is oriented relative to the drawable's bounds
158 /** draw the gradient from the top to the bottom */
160 /** draw the gradient from the top-right to the bottom-left */
162 /** draw the gradient from the right to the left */
164 /** draw the gradient from the bottom-right to the top-left */
166 /** draw the gradient from the bottom to the top */
168 /** draw the gradient from the bottom-left to the top-right */
170 /** draw the gradient fro
387 setGradientType(int gradient) argument
1662 setGradientType(int gradient) argument
[all...]

Completed in 223 milliseconds