Searched defs:colors (Results 1 - 25 of 72) sorted by relevance

123

/frameworks/base/libs/hwui/tests/unit/
H A DGradientCacheTests.cpp31 SkColor colors[] = {0xFF00FF00, 0xFFFF0000, 0xFF0000FF}; local
33 Texture* texture = cache.get(colors, positions, 3);
/frameworks/base/libs/hwui/tests/common/scenes/
H A DListOfFadedTextAnimation.cpp45 SkColor colors[2] = {Color::Black, Color::Transparent}; variable
47 SkGradientShader::MakeLinear(pts, colors, NULL, 2, SkShader::kClamp_TileMode));
H A DHwBitmapInCompositeShader.cpp58 SkColor colors[2]; variable
59 colors[0] = Color::Black;
60 colors[1] = Color::White;
62 center, 50, colors, nullptr, 2, SkShader::TileMode::kRepeat_TileMode);
H A DSimpleColorMatrixAnimation.cpp76 SkColor colors[2] = {Color::DeepPurple_500, Color::DeepOrange_500}; local
77 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 2,
H A DSimpleGradientAnimation.cpp58 SkColor colors[3] = {Color::Transparent, Color::Black, Color::Cyan_500}; local
59 paint.setShader(SkGradientShader::MakeLinear(pts, colors + (i % 2), pos, 2,
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
H A DTonalCompat.java32 public ExtractionInfo extractDarkColors(WallpaperColors colors) { argument
34 mTonal.extractInto(colors, new GradientColors(), darkColors, new GradientColors());
40 if (colors != null) {
42 (colors.getColorHints() & WallpaperColors.HINT_SUPPORTS_DARK_THEME) != 0;
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/colorextraction/
H A DSysuiColorExtractorTests.java51 ColorExtractor.GradientColors colors = new ColorExtractor.GradientColors();
52 colors.setMainColor(Color.RED);
53 colors.setSecondaryColor(Color.RED);
55 SysuiColorExtractor extractor = getTestableExtractor(colors);
71 ColorExtractor.GradientColors colors = new ColorExtractor.GradientColors();
72 colors.setMainColor(Color.RED);
73 colors.setSecondaryColor(Color.RED);
75 SysuiColorExtractor extractor = getTestableExtractor(colors);
81 assertEquals("Not using extracted colors!",
82 extractor.getColors(which, type), colors);
108 getTestableExtractor(ColorExtractor.GradientColors colors) argument
[all...]
/frameworks/base/libs/hwui/
H A DNinePatchUtils.h58 SkColor* colors) {
60 lattice->fColors = colors;
62 sk_bzero(colors, numFlags * sizeof(SkColor));
71 colors += lattice->fXCount + 1;
82 colors++;
92 *colors = currentColor;
97 colors++;
56 SetLatticeFlags(SkCanvas::Lattice* lattice, SkCanvas::Lattice::RectType* flags, int numFlags, const Res_png_9patch& chunk, SkColor* colors) argument
H A DGradientCache.h39 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);
67 std::unique_ptr<uint32_t[]> colors; member in struct:android::uirenderer::GradientCacheEntry
72 void copy(uint32_t* colors, float* positions, uint32_t count) { argument
74 this->colors.reset(new uint32_t[count]);
77 memcpy(this->colors.get(), colors, coun
[all...]
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
H A DSpeechOrbView.java54 * @param colors SearchOrbView.Colors.
56 public void setListeningOrbColors(Colors colors) { argument
57 mListeningOrbColors = colors;
63 * @param colors SearchOrbView.Colors.
65 public void setNotListeningOrbColors(Colors colors) { argument
66 mNotListeningOrbColors = colors;
H A DTitleViewAdapter.java105 * @param colors Colors used to draw search affordance.
107 public void setSearchAffordanceColors(SearchOrbView.Colors colors) { argument
H A DTitleView.java79 public void setSearchAffordanceColors(SearchOrbView.Colors colors) {
80 TitleView.this.setSearchAffordanceColors(colors);
166 public void setSearchAffordanceColors(SearchOrbView.Colors colors) { argument
167 mSearchOrbView.setOrbColors(colors);
/frameworks/base/graphics/java/android/graphics/
H A DSweepGradient.java46 * @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 DLinearGradient.java52 * @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 DRadialGradient.java50 * @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/packages/SystemUI/src/com/android/systemui/colorextraction/
H A DSysuiColorExtractor.java92 private void updateDefaultGradients(WallpaperColors colors) { argument
93 Tonal.applyFallback(colors, mWpHiddenColors);
97 public void onColorsChanged(WallpaperColors colors, int which, int userId) { argument
103 super.onColorsChanged(colors, which);
106 updateDefaultGradients(colors);
116 * Get TYPE_NORMAL colors when wallpaper is visible, or fallback otherwise.
119 * @return colors
127 * Wallpaper colors when the wallpaper is visible, fallback otherwise.
131 * @return colors
139 * Get TYPE_NORMAL colors, possibl
[all...]
/frameworks/layoutlib/bridge/src/android/graphics/
H A DGradient_Delegate.java45 * @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 DRadialGradient_Delegate.java63 int colors[], float positions[], int tileMode) {
65 colors, positions, Shader_Delegate.getTileMode(tileMode));
86 * @param colors The colors to be distributed between the center and edge of
89 * color in the colors array. If this is NULL, the the colors are
94 int colors[], float positions[], TileMode tile) {
95 super(nativeMatrix, colors, positions);
106 int[] colors, float[] positions, TileMode mode) {
107 super(colors, position
62 nativeCreate1(long matrix, float x, float y, float radius, int colors[], float positions[], int tileMode) argument
93 RadialGradient_Delegate(long nativeMatrix, float x, float y, float radius, int colors[], float positions[], TileMode tile) argument
105 RadialGradientPaint(float x, float y, float radius, int[] colors, float[] positions, TileMode mode) argument
[all...]
H A DSweepGradient_Delegate.java59 /*package*/ static long nativeCreate1(long matrix, float x, float y, int colors[], float argument
61 SweepGradient_Delegate newDelegate = new SweepGradient_Delegate(matrix, x, y, colors,
80 * @param colors The colors to be distributed between around the center.
81 * There must be at least 2 colors in the array.
83 * each corresponding color in the colors array, beginning
86 * If positions is NULL, then the colors are automatically
90 int colors[], float positions[]) {
91 super(nativeMatrix, colors, positions);
100 public SweepGradientPaint(float cx, float cy, int[] colors, argument
89 SweepGradient_Delegate(long nativeMatrix, float cx, float cy, int colors[], float positions[]) argument
[all...]
/frameworks/native/cmds/flatland/
H A DRenderers.cpp22 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 DColorPickerPalette.java84 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
/frameworks/opt/setupwizard/library/gingerbread/src/com/android/setupwizardlib/view/
H A DNavigationBarButton.java84 public void setTextColor(ColorStateList colors) { argument
85 super.setTextColor(colors);
145 public void setTintListCompat(ColorStateList colors) { argument
146 mTintList = colors;
/frameworks/base/core/java/android/content/res/
H A DColorStateList.java48 * 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/base/core/java/com/android/internal/colorextraction/
H A DColorExtractor.java38 * Class to process wallpaper colors and generate a tonal palette based on them.
68 GradientColors[] colors = new GradientColors[sGradientTypes.length];
69 mGradientColors.append(which, colors);
71 colors[type] = new GradientColors();
85 // Initialize all gradients with the current colors
92 // Initialize all gradients with the current colors
104 * Retrieve gradient colors for a specific wallpaper.
107 * @return colors
115 * Get current gradient colors for one of the possible gradient types
119 * @return colors
151 onColorsChanged(WallpaperColors colors, int which) argument
[all...]
/frameworks/base/core/java/com/android/internal/colorextraction/drawable/
H A DGradientDrawable.java72 public void setColors(@NonNull ColorExtractor.GradientColors colors) { argument
73 setColors(colors.getMainColor(), colors.getSecondaryColor(), true);
76 public void setColors(@NonNull ColorExtractor.GradientColors colors, boolean animated) { argument
77 setColors(colors.getMainColor(), colors.getSecondaryColor(), animated);

Completed in 1476 milliseconds

123