Searched defs:gradient (Results 1 - 3 of 3) sorted by relevance

/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);
/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 202 milliseconds