/frameworks/base/libs/hwui/tests/unit/ |
H A D | GradientCacheTests.cpp | 31 SkColor colors[] = { 0xFF00FF00, 0xFFFF0000, 0xFF0000FF }; local 33 Texture* texture = cache.get(colors, positions, 3);
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
H A D | ListOfFadedTextAnimation.cpp | 46 SkColor colors[2] = {Color::Black, Color::Transparent}; variable 47 sk_sp<SkShader> s(SkGradientShader::MakeLinear(pts, colors, NULL, 2,
|
H A D | HwBitmapInCompositeShader.cpp | 61 SkColor colors[2]; variable 62 colors[0] = Color::Black; 63 colors[1] = Color::White; 64 sk_sp<SkShader> gradientShader = SkGradientShader::MakeRadial(center, 50, colors, nullptr,
|
H A D | SimpleColorMatrixAnimation.cpp | 73 SkColor colors[2] = { Color::DeepPurple_500, Color::DeepOrange_500 }; local 74 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 2,
|
H A D | SimpleGradientAnimation.cpp | 58 SkColor colors[3] = { Color::Transparent, Color::Black, Color::Cyan_500 }; local 59 paint.setShader(SkGradientShader::MakeLinear(pts, colors + (i % 2), pos, 2,
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | SweepGradient.java | 46 * @param colors The colors to be distributed between around the center. 47 * There must be at least 2 colors in the array. 49 * each corresponding color in the colors array, beginning 52 * If positions is NULL, then the colors are automatically 56 @NonNull @ColorInt int colors[], @Nullable float positions[]) { 57 if (colors.length < 2) { 58 throw new IllegalArgumentException("needs >= 2 number of colors"); 60 if (positions != null && colors.length != positions.length) { 67 mColors = colors 55 SweepGradient(float cx, float cy, @NonNull @ColorInt int colors[], @Nullable float positions[]) argument 114 nativeCreate1(long matrix, float x, float y, int colors[], float positions[]) argument [all...] |
H A D | LinearGradient.java | 52 * @param colors The colors to be distributed along the gradient line 54 * each corresponding color in the colors array. If this is null, 55 * the the colors are distributed evenly along the gradient line. 58 public LinearGradient(float x0, float y0, float x1, float y1, @NonNull @ColorInt int colors[], argument 60 if (colors.length < 2) { 61 throw new IllegalArgumentException("needs >= 2 number of colors"); 63 if (positions != null && colors.length != positions.length) { 71 mColors = colors.clone(); 130 int colors[], floa 129 nativeCreate1(long matrix, float x0, float y0, float x1, float y1, int colors[], float positions[], int tileMode) argument [all...] |
H A D | RadialGradient.java | 50 * @param colors The colors to be distributed between the center and edge of the circle 53 * the colors array. If <code>null</code>, colors are distributed evenly 58 @NonNull @ColorInt int colors[], @Nullable float stops[], 63 if (colors.length < 2) { 64 throw new IllegalArgumentException("needs >= 2 number of colors"); 66 if (stops != null && colors.length != stops.length) { 73 mColors = colors.clone(); 130 int colors[], floa 57 RadialGradient(float centerX, float centerY, float radius, @NonNull @ColorInt int colors[], @Nullable float stops[], @NonNull TileMode tileMode) argument 129 nativeCreate1(long matrix, float x, float y, float radius, int colors[], float positions[], int tileMode) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Gradient_Delegate.java | 45 * @param colors The colors to be distributed along the gradient line 47 * corresponding color in the colors array. If this is null, the 48 * the colors are distributed evenly along the gradient line. 50 protected Gradient_Delegate(long nativeMatrix, int colors[], float positions[]) { argument 52 assert colors.length >= 2 : "needs >= 2 number of colors"; 55 float spacing = 1.f / (colors.length - 1); 56 positions = new float[colors.length]; 58 positions[colors 84 GradientPaint(int[] colors, float[] positions, TileMode tileMode) argument [all...] |
H A D | RadialGradient_Delegate.java | 60 int colors[], float positions[], int tileMode) { 62 colors, positions, Shader_Delegate.getTileMode(tileMode)); 83 * @param colors The colors to be distributed between the center and edge of 86 * color in the colors array. If this is NULL, the the colors are 91 int colors[], float positions[], TileMode tile) { 92 super(nativeMatrix, colors, positions); 103 int[] colors, float[] positions, TileMode mode) { 104 super(colors, position 59 nativeCreate1(long matrix, float x, float y, float radius, int colors[], float positions[], int tileMode) argument 90 RadialGradient_Delegate(long nativeMatrix, float x, float y, float radius, int colors[], float positions[], TileMode tile) argument 102 RadialGradientPaint(float x, float y, float radius, int[] colors, float[] positions, TileMode mode) argument [all...] |
H A D | SweepGradient_Delegate.java | 55 /*package*/ static long nativeCreate1(long matrix, float x, float y, int colors[], float argument 57 SweepGradient_Delegate newDelegate = new SweepGradient_Delegate(matrix, x, y, colors, 76 * @param colors The colors to be distributed between around the center. 77 * There must be at least 2 colors in the array. 79 * each corresponding color in the colors array, beginning 82 * If positions is NULL, then the colors are automatically 86 int colors[], float positions[]) { 87 super(nativeMatrix, colors, positions); 96 public SweepGradientPaint(float cx, float cy, int[] colors, argument 85 SweepGradient_Delegate(long nativeMatrix, float cx, float cy, int colors[], float positions[]) argument [all...] |
H A D | LinearGradient_Delegate.java | 61 int colors[], float positions[], int tileMode) { 63 x1, y1, colors, positions, Shader_Delegate.getTileMode(tileMode)); 85 * @param colors The colors to be distributed along the gradient line 87 * corresponding color in the colors array. If this is null, the 88 * the colors are distributed evenly along the gradient line. 92 float y1, int colors[], float positions[], TileMode tile) { 93 super(nativeMatrix, colors, positions); 111 public LinearGradientPaint(float x0, float y0, float x1, float y1, int colors[], argument 113 super(colors, position 59 nativeCreate1(LinearGradient thisGradient, long matrix, float x0, float y0, float x1, float y1, int colors[], float positions[], int tileMode) argument 91 LinearGradient_Delegate(long nativeMatrix, float x0, float y0, float x1, float y1, int colors[], float positions[], TileMode tile) argument [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | SpeechOrbView.java | 53 * @param colors SearchOrbView.Colors. 55 public void setListeningOrbColors(Colors colors) { argument 56 mListeningOrbColors = colors; 62 * @param colors SearchOrbView.Colors. 64 public void setNotListeningOrbColors(Colors colors) { argument 65 mNotListeningOrbColors = colors;
|
H A D | TitleViewAdapter.java | 105 * @param colors Colors used to draw search affordance. 107 public void setSearchAffordanceColors(SearchOrbView.Colors colors) { argument
|
H A D | TitleView.java | 78 public void setSearchAffordanceColors(SearchOrbView.Colors colors) { 79 TitleView.this.setSearchAffordanceColors(colors); 165 public void setSearchAffordanceColors(SearchOrbView.Colors colors) { argument 166 mSearchOrbView.setOrbColors(colors);
|
/frameworks/base/libs/hwui/ |
H A D | GradientCache.h | 39 colors = nullptr; 43 GradientCacheEntry(uint32_t* colors, float* positions, uint32_t count) { argument 44 copy(colors, positions, count); 48 copy(entry.colors.get(), entry.positions.get(), entry.count); 53 copy(entry.colors.get(), entry.positions.get(), entry.count); 71 std::unique_ptr<uint32_t[]> colors; member in struct:android::uirenderer::GradientCacheEntry 76 void copy(uint32_t* colors, float* positions, uint32_t count) { argument 78 this->colors.reset(new uint32_t[count]); 81 memcpy(this->colors.get(), colors, coun [all...] |
H A D | GradientCache.cpp | 45 hash = JenkinsHashMix(hash, android::hash_type(colors[i])); 55 deltaInt = memcmp(lhs.colors.get(), rhs.colors.get(), lhs.count * sizeof(uint32_t)); 109 Texture* GradientCache::get(uint32_t* colors, float* positions, int count) { argument 110 GradientCacheEntry gradient(colors, positions, count); 114 texture = addLinearGradient(gradient, colors, positions, count); 124 void GradientCache::getGradientInfo(const uint32_t* colors, const int count, argument 137 if (((colors[i] >> 24) & 0xff) < 255) { 148 uint32_t* colors, float* positions, int count) { 151 getGradientInfo(colors, coun 147 addLinearGradient(GradientCacheEntry& gradient, uint32_t* colors, float* positions, int count) argument 217 generateTexture(uint32_t* colors, float* positions, const uint32_t width, const uint32_t height, Texture* texture) argument [all...] |
/frameworks/native/cmds/flatland/ |
H A D | Renderers.cpp | 22 static float colors[][4] = { member in namespace:android 33 float* color = colors[g_colorIndex]; 34 g_colorIndex = (g_colorIndex + 1) % NELEMS(colors);
|
/frameworks/opt/colorpicker/src/com/android/colorpicker/ |
H A D | ColorPickerPalette.java | 84 public void drawPalette(int[] colors, int selectedColor) { argument 85 drawPalette(colors, selectedColor, null); 91 public void drawPalette(int[] colors, int selectedColor, String[] colorContentDescriptions) { argument 92 if (colors == null) { 101 // Fills the table with swatches based on the array of colors. 103 for (int color : colors) { 142 * Add a content description to the specified swatch view. Because the colors get added in a 143 * snaking form, every other row will need to compensate for the fact that the colors are added
|
H A D | ColorPickerDialog.java | 31 * A dialog which takes in as input an array of colors and creates a palette allowing the user to 42 protected static final String KEY_COLORS = "colors"; 64 public static ColorPickerDialog newInstance(int titleResId, int[] colors, int selectedColor, argument 67 ret.initialize(titleResId, colors, selectedColor, columns, size); 71 public void initialize(int titleResId, int[] colors, int selectedColor, int columns, int size) { argument 73 setColors(colors, selectedColor); 163 public void setColors(int[] colors, int selectedColor) { argument 164 if (mColors != colors || mSelectedColor != selectedColor) { 165 mColors = colors; 171 public void setColors(int[] colors) { argument [all...] |
/frameworks/opt/setupwizard/library/eclair-mr1/src/com/android/setupwizardlib/view/ |
H A D | NavigationBarButton.java | 78 public void setTextColor(ColorStateList colors) { argument 79 super.setTextColor(colors); 139 public void setTintListCompat(ColorStateList colors) { argument 140 mTintList = colors;
|
/frameworks/base/core/java/android/content/res/ |
H A D | ColorStateList.java | 48 * Lets you map {@link android.view.View} state sets to colors. 151 * states to colors. 153 public ColorStateList(int[][] states, @ColorInt int[] colors) { argument 155 mColors = colors; 280 * Creates a new ColorStateList that has the same states and colors as this 288 final int[] colors = new int[mColors.length]; 289 final int len = colors.length; 291 colors[i] = (mColors[i] & 0xFFFFFF) | (alpha << 24); 294 return new ColorStateList(mStateSpecs, colors); 587 * Return the colors i [all...] |
/frameworks/support/design/src/android/support/design/internal/ |
H A D | NavigationMenuItemView.java | 264 public void setTextColor(ColorStateList colors) { argument 265 mTextView.setTextColor(colors);
|
/frameworks/support/design/src/android/support/design/widget/ |
H A D | Snackbar.java | 269 public Snackbar setActionTextColor(ColorStateList colors) { argument 272 tv.setTextColor(colors);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
H A D | BrandedFragment.java | 258 * @param colors Colors used to draw search affordance. 260 public void setSearchAffordanceColors(SearchOrbView.Colors colors) { argument 261 mSearchAffordanceColors = colors;
|