Searched refs:colors (Results 1 - 25 of 80) sorted by last modified time

1234

/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
H A DBrandedFragment.java257 * @param colors Colors used to draw search affordance.
259 public void setSearchAffordanceColors(SearchOrbView.Colors colors) { argument
260 mSearchAffordanceColors = colors;
H A DBrandedSupportFragment.java259 * @param colors Colors used to draw search affordance.
261 public void setSearchAffordanceColors(SearchOrbView.Colors colors) { argument
262 mSearchAffordanceColors = colors;
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DSearchOrbView.java58 * A set of colors used to display the search orb.
65 * Other colors are provided by the framework.
74 * Constructs a color set using the given colors for the search orb.
75 * Other colors are provided by the framework.
85 * Constructs a color set using the given colors.
284 * Other colors will be provided by the framework.
293 * Sets the search orb colors.
294 * Other colors are provided by the framework.
314 public void setOrbColors(Colors colors) { argument
315 mColors = colors;
[all...]
H A DTitleView.java78 public void setSearchAffordanceColors(SearchOrbView.Colors colors) {
79 TitleView.this.setSearchAffordanceColors(colors);
165 public void setSearchAffordanceColors(SearchOrbView.Colors colors) { argument
166 mSearchOrbView.setOrbColors(colors);
H A DTitleViewAdapter.java105 * @param colors Colors used to draw search affordance.
107 public void setSearchAffordanceColors(SearchOrbView.Colors colors) { argument
/frameworks/support/v4/java/android/support/v4/widget/
H A DMaterialProgressDrawable.java204 * Set the colors used in the progress animation from color resources.
208 * @param colors
210 public void setColorSchemeColors(int... colors) { argument
211 mRing.setColors(colors);
584 * Set the colors the progress spinner alternates between.
586 * @param colors Array of integers describing the colors. Must be non-<code>null</code>.
588 public void setColors(@NonNull int[] colors) { argument
589 mColors = colors;
590 // if colors ar
[all...]
H A DSwipeRefreshLayout.java517 public void setColorScheme(@ColorInt int... colors) { argument
518 setColorSchemeResources(colors);
538 * Set the colors used in the progress animation. The first
542 * @param colors
544 public void setColorSchemeColors(@ColorInt int... colors) { argument
546 mProgress.setColorSchemeColors(colors);
/frameworks/support/v7/appcompat/src/android/support/v7/content/res/
H A DAppCompatColorStateListInflater.java154 int[] colors = new int[listSize];
156 System.arraycopy(colorList, 0, colors, 0, listSize);
159 return new ColorStateList(stateSpecs, colors);
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DAppCompatDrawableManager.java580 final int[] colors = new int[4];
587 colors[i] = getDisabledThemeAttrColor(context, R.attr.colorButtonNormal);
591 colors[i] = ColorUtils.compositeColors(colorControlHighlight, baseColor);
595 colors[i] = ColorUtils.compositeColors(colorControlHighlight, baseColor);
600 colors[i] = baseColor;
603 return new ColorStateList(states, colors);
H A DSwitchCompat.java291 ColorStateList colors;
294 colors = appearance.getColorStateList(R.styleable.TextAppearance_android_textColor);
295 if (colors != null) {
296 mTextColors = colors;
H A DThemeUtils.java45 final int[] colors = new int[2];
50 colors[i] = disabledTextColor;
55 colors[i] = textColor;
58 return new ColorStateList(states, colors);
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/
H A DColorCutQuantizer.java33 * colors rather than representation colors.
37 * requested number of colors. An average color is then generated from each cube.
41 * This means that the color space is divided into distinct colors, rather than representative
42 * colors.
68 * @param maxColors The maximum number of colors that should be in the result palette.
88 // Now let's count the number of distinct colors
102 mTimingLogger.addSplit("Filtered colors and distinct colors counted");
105 // Now lets go through create an array consisting of only distinct colors
[all...]
H A DPalette.java40 * A helper class to extract prominent colors from an image.
42 * A number of colors with different profiles are extracted from the image:
334 // We now clear out the used colors
496 // First check white, as most colors will be dark
616 * Set the maximum number of colors to use in the quantization step when using a
624 public Builder maximumColorCount(int colors) { argument
625 mMaxColors = colors;
680 * Add a filter to be able to have fine grained control over which colors are
763 // We have a Bitmap so we need to use quantization to reduce the number of colors
905 * A Filter provides a mechanism for exercising fine-grained control over which colors
[all...]
/frameworks/support/design/base/android/support/design/widget/
H A DCircularBorderDrawable.java187 final int[] colors = new int[6];
188 colors[0] = ColorUtils.compositeColors(mTopOuterStrokeColor, mCurrentBorderTintColor);
189 colors[1] = ColorUtils.compositeColors(mTopInnerStrokeColor, mCurrentBorderTintColor);
190 colors[2] = ColorUtils.compositeColors(
192 colors[3] = ColorUtils.compositeColors(
194 colors[4] = ColorUtils.compositeColors(mBottomInnerStrokeColor, mCurrentBorderTintColor);
195 colors[5] = ColorUtils.compositeColors(mBottomOuterStrokeColor, mCurrentBorderTintColor);
208 colors, positions,
/frameworks/support/design/eclair-mr1/android/support/design/widget/
H A DFloatingActionButtonEclairMr1.java269 final int[] colors = new int[3];
273 colors[i] = selectedColor;
277 colors[i] = selectedColor;
282 colors[i] = Color.TRANSPARENT;
285 return new ColorStateList(states, colors);
/frameworks/support/design/src/android/support/design/internal/
H A DNavigationMenuItemView.java188 public void setTextColor(ColorStateList colors) { argument
189 mTextView.setTextColor(colors);
/frameworks/support/design/src/android/support/design/widget/
H A DSnackbar.java317 public Snackbar setActionTextColor(ColorStateList colors) { argument
319 tv.setTextColor(colors);
H A DTabLayout.java322 // Text colors/sizes come from the text appearance first
341 // current colors. This is exposed so that developers can use theme attributes to set
709 * Sets the text colors for the different states (normal, selected) used for the tabs.
721 * Gets the text colors for the different states (normal, selected) used for the tabs.
729 * Sets the text colors for the different states (normal, selected) used for the tabs.
2044 final int[] colors = new int[2];
2048 colors[i] = selectedColor;
2053 colors[i] = defaultColor;
2056 return new ColorStateList(states, colors);
/frameworks/opt/setupwizard/library/eclair-mr1/src/com/android/setupwizardlib/view/
H A DNavigationBarButton.java77 public void setTextColor(ColorStateList colors) { argument
78 super.setTextColor(colors);
138 public void setTintListCompat(ColorStateList colors) { argument
139 mTintList = colors;
/frameworks/opt/colorpicker/src/com/android/colorpicker/
H A DColorPickerDialog.java31 * 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...]
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/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/native/opengl/libagl/
H A Ddxt.cpp152 uint32_t colors = *d32++; local
155 colors = swap(colors);
158 uint16_t color0 = colors & 0xffff;
159 uint16_t color1 = colors >> 16;
207 // Specified colors from the previous block
215 uint32_t colors = *d32++; local
219 colors = swap(colors);
223 // Raw colors
338 uint32_t colors = *d32++; local
462 uint32_t colors = *d32++; local
[all...]
H A Dtexture.cpp256 GGLfixed colors[4] = { 0, 0, 0, 0x10000 }; local
263 ggl->color4xv(ggl, colors);
/frameworks/native/opengl/libs/ETC1/
H A Detc1.cpp379 int r1, g1, b1, r2, g2, b2; // 8 bit base colors for sub-blocks
486 etc1_byte colors[6]; local
488 etc_average_colors_subblock(pIn, inMask, colors, false, false);
489 etc_average_colors_subblock(pIn, inMask, colors + 3, false, true);
494 etc_encode_block_helper(pIn, inMask, colors, &a, false);

Completed in 8926 milliseconds

1234