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

12

/frameworks/base/graphics/java/android/graphics/
H A DLinearGradient.java46 @param colors The colors to be distributed along the gradient line
48 each corresponding color in the colors array. If this is null,
49 the the colors are distributed evenly along the gradient line.
52 public LinearGradient(float x0, float y0, float x1, float y1, int colors[], float positions[], argument
54 if (colors.length < 2) {
55 throw new IllegalArgumentException("needs >= 2 number of colors");
57 if (positions != null && colors.length != positions.length) {
65 mColors = colors;
68 init(nativeCreate1(x0, y0, x1, y1, colors, position
115 nativeCreate1(float x0, float y0, float x1, float y1, int colors[], float positions[], int tileMode) argument
[all...]
H A DSweepGradient.java42 * @param colors The colors to be distributed between around the center.
43 * There must be at least 2 colors in the array.
45 * each corresponding color in the colors array, beginning
48 * If positions is NULL, then the colors are automatically
52 int colors[], float positions[]) {
53 if (colors.length < 2) {
54 throw new IllegalArgumentException("needs >= 2 number of colors");
56 if (positions != null && colors.length != positions.length) {
63 mColors = colors;
51 SweepGradient(float cx, float cy, int colors[], float positions[]) argument
107 nativeCreate1(float x, float y, int colors[], float positions[]) argument
[all...]
H A DRadialGradient.java47 @param colors The colors to be distributed between the center and edge of the circle
50 the colors array. If <code>null</code>, colors are distributed evenly
55 @NonNull int colors[], @Nullable float stops[], @NonNull TileMode tileMode) {
59 if (colors.length < 2) {
60 throw new IllegalArgumentException("needs >= 2 number of colors");
62 if (stops != null && colors.length != stops.length) {
69 mColors = colors;
72 init(nativeCreate1(centerX, centerY, radius, colors, stop
54 RadialGradient(float centerX, float centerY, float radius, @NonNull int colors[], @Nullable float stops[], @NonNull TileMode tileMode) argument
120 nativeCreate1(float x, float y, float radius, int colors[], float positions[], int tileMode) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DGradient_Delegate.java44 * @param colors The colors to be distributed along the gradient line
46 * corresponding color in the colors array. If this is null, the
47 * the colors are distributed evenly along the gradient line.
49 protected Gradient_Delegate(int colors[], float positions[]) { argument
50 if (colors.length < 2) {
51 throw new IllegalArgumentException("needs >= 2 number of colors");
53 if (positions != null && colors.length != positions.length) {
58 float spacing = 1.f / (colors.length - 1);
59 positions = new float[colors
84 GradientPaint(int[] colors, float[] positions, TileMode tileMode) argument
[all...]
H A DRadialGradient_Delegate.java58 int colors[], float positions[], int tileMode) {
60 colors, positions, Shader_Delegate.getTileMode(tileMode));
80 * @param colors The colors to be distributed between the center and edge of
83 * color in the colors array. If this is NULL, the the colors are
87 private RadialGradient_Delegate(float x, float y, float radius, int colors[], float positions[], argument
89 super(colors, positions);
100 int[] colors, float[] positions, TileMode mode) {
101 super(colors, position
57 nativeCreate1(float x, float y, float radius, int colors[], float positions[], int tileMode) argument
99 RadialGradientPaint(float x, float y, float radius, int[] colors, float[] positions, TileMode mode) argument
[all...]
H A DSweepGradient_Delegate.java55 /*package*/ static long nativeCreate1(float x, float y, int colors[], float positions[]) { argument
56 SweepGradient_Delegate newDelegate = new SweepGradient_Delegate(x, y, colors, positions);
72 * @param colors The colors to be distributed between around the center.
73 * There must be at least 2 colors in the array.
75 * each corresponding color in the colors array, beginning
78 * If positions is NULL, then the colors are automatically
82 int colors[], float positions[]) {
83 super(colors, positions);
92 public SweepGradientPaint(float cx, float cy, int[] colors, argument
81 SweepGradient_Delegate(float cx, float cy, int colors[], float positions[]) argument
[all...]
H A DLinearGradient_Delegate.java59 int colors[], float positions[], int tileMode) {
61 colors, positions, Shader_Delegate.getTileMode(tileMode));
83 * @param colors The colors to be distributed along the gradient line
85 * corresponding color in the colors array. If this is null, the
86 * the colors are distributed evenly along the gradient line.
90 int colors[], float positions[], TileMode tile) {
91 super(colors, positions);
109 public LinearGradientPaint(float x0, float y0, float x1, float y1, int colors[], argument
111 super(colors, position
57 nativeCreate1(LinearGradient thisGradient, float x0, float y0, float x1, float y1, int colors[], float positions[], int tileMode) argument
89 LinearGradient_Delegate(float x0, float y0, float x1, float y1, int colors[], float positions[], TileMode tile) argument
[all...]
H A DBitmap_Delegate.java260 /*package*/ static Bitmap nativeCreate(int[] colors, int offset, int stride, int width, argument
267 if (colors != null) {
268 image.setRGB(0, 0, width, height, colors, offset, stride);
431 /*package*/ static void nativeSetPixels(long nativeBitmap, int[] colors, int offset, argument
438 delegate.getImage().setRGB(x, y, width, height, colors, offset, stride);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DTitleView.java111 public void setSearchAffordanceColors(SearchOrbView.Colors colors) { argument
112 mSearchOrbView.setOrbColors(colors);
H A DSearchOrbView.java55 * A set of colors used to display the search orb.
62 * Other colors are provided by the framework.
71 * Constructs a color set using the given colors for the search orb.
72 * Other colors are provided by the framework.
82 * Constructs a color set using the given colors.
283 * Other colors will be provided by the framework.
292 * Sets the search orb colors.
293 * Other colors are provided by the framework.
312 public void setOrbColors(Colors colors) { argument
313 mColors = colors;
[all...]
/frameworks/base/core/java/android/content/res/
H A DColorStateList.java41 * Lets you map {@link android.view.View} state sets to colors.
79 * states to colors.
81 public ColorStateList(int[][] states, int[] colors) { argument
83 mColors = colors;
86 mDefaultColor = colors[0];
90 mDefaultColor = colors[i];
158 * colors as this one but where each color has the specified alpha value
162 final int[] colors = new int[mColors.length];
163 final int len = colors.length;
165 colors[
[all...]
/frameworks/base/core/java/android/widget/
H A DSimpleMonthAdapter.java58 void setCalendarTextColor(ColorStateList colors) { argument
59 mCalendarTextColors = colors;
H A DDayPickerView.java272 void setCalendarTextColor(ColorStateList colors) { argument
273 mAdapter.setCalendarTextColor(colors);
H A DSimpleMonthView.java197 void setTextColor(ColorStateList colors) { argument
200 mNormalTextColor = colors.getColorForState(ENABLED_STATE_SET,
205 mDisabledTextColor = colors.getColorForState(EMPTY_STATE_SET,
209 mSelectedDayColor = colors.getColorForState(ENABLED_SELECTED_STATE_SET,
/frameworks/base/libs/hwui/
H A DGradientCache.h36 colors = NULL;
40 GradientCacheEntry(uint32_t* colors, float* positions, uint32_t count) { argument
41 copy(colors, positions, count);
45 copy(entry.colors, entry.positions, entry.count);
49 delete[] colors;
55 delete[] colors;
58 copy(entry.colors, entry.positions, entry.count);
76 uint32_t* colors; member in struct:android::uirenderer::GradientCacheEntry
81 void copy(uint32_t* colors, float* positions, uint32_t count) { argument
83 this->colors
[all...]
H A DGradientCache.cpp45 hash = JenkinsHashMix(hash, android::hash_type(colors[i]));
55 deltaInt = memcmp(lhs.colors, rhs.colors, lhs.count * sizeof(uint32_t));
132 Texture* GradientCache::get(uint32_t* colors, float* positions, int count) { argument
133 GradientCacheEntry gradient(colors, positions, count);
137 texture = addLinearGradient(gradient, colors, positions, count);
147 void GradientCache::getGradientInfo(const uint32_t* colors, const int count, argument
160 if (((colors[i] >> 24) & 0xff) < 255) {
171 uint32_t* colors, float* positions, int count) {
174 getGradientInfo(colors, coun
170 addLinearGradient(GradientCacheEntry& gradient, uint32_t* colors, float* positions, int count) argument
241 generateTexture(uint32_t* colors, float* positions, Texture* texture) argument
[all...]
H A DDisplayListRenderer.cpp237 const float* vertices, const int* colors, const SkPaint* paint) {
242 colors = refBuffer<int>(colors, vertexCount); // 1 color per vertex
245 vertices, colors, paint));
236 drawBitmapMesh(const SkBitmap* bitmap, int meshWidth, int meshHeight, const float* vertices, const int* colors, const SkPaint* paint) argument
/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 if (colors == null) {
94 // Fills the table with swatches based on the array of colors.
96 for (int color : colors) {
136 * Add a content description to the specified swatch view. Because the colors get added in a
137 * snaking form, every other row will need to compensate for the fact that the colors are added
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";
62 public static ColorPickerDialog newInstance(int titleResId, int[] colors, int selectedColor, argument
65 ret.initialize(titleResId, colors, selectedColor, columns, size);
69 public void initialize(int titleResId, int[] colors, int selectedColor, int columns, int size) { argument
71 setColors(colors, selectedColor);
159 public void setColors(int[] colors, int selectedColor) { argument
160 if (mColors != colors || mSelectedColor != selectedColor) {
161 mColors = colors;
167 public void setColors(int[] colors) { argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DNinePatchImpl.cpp257 const uint32_t* colors = chunk.getColors(); local
261 color = colors[colorIndex++];
H A DShader.cpp124 SkColor colors[2]; local
125 colors[0] = color0;
126 colors[1] = color1;
128 SkShader* s = SkGradientShader::CreateLinear(pts, colors, NULL, 2, (SkShader::TileMode)tileMode);
166 SkColor colors[2]; local
167 colors[0] = color0;
168 colors[1] = color1;
170 SkShader* s = SkGradientShader::CreateRadial(center, radius, colors, NULL, 2,
181 const jint* colors = env->GetIntArrayElements(jcolors, NULL); local
191 reinterpret_cast<const SkColor*>(colors), po
200 SkColor colors[2]; local
[all...]
H A DBitmap.cpp228 const SkPMColor* colors = ctable->lockColors(); local
230 *dst++ = SkUnPreMultiply::PMColorToColor(colors[*s++]);
239 const SkPMColor* colors = ctable->lockColors(); local
241 SkPMColor c = colors[*s++];
252 const SkPMColor* colors = ctable->lockColors(); local
254 SkPMColor c = colors[*s++];
838 if (memcmp(alc0.colors(), alc1.colors(), size) != 0) {
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
H A DVerticalGridFragment.java258 public void setSearchAffordanceColors(SearchOrbView.Colors colors) { argument
259 mSearchAffordanceColors = 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...]

Completed in 411 milliseconds

12