/frameworks/base/graphics/java/android/graphics/ |
H A D | LinearGradient.java | 46 @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 D | SweepGradient.java | 42 * @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 D | RadialGradient.java | 47 @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 D | Gradient_Delegate.java | 44 * @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 D | RadialGradient_Delegate.java | 58 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 D | SweepGradient_Delegate.java | 55 /*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 D | LinearGradient_Delegate.java | 59 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 D | Bitmap_Delegate.java | 257 /*package*/ static Bitmap nativeCreate(int[] colors, int offset, int stride, int width, argument 264 if (colors != null) { 265 image.setRGB(0, 0, width, height, colors, offset, stride); 428 /*package*/ static void nativeSetPixels(long nativeBitmap, int[] colors, int offset, argument 435 delegate.getImage().setRGB(x, y, width, height, colors, offset, stride);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | TitleView.java | 111 public void setSearchAffordanceColors(SearchOrbView.Colors colors) { argument 112 mSearchOrbView.setOrbColors(colors);
|
H A D | SearchOrbView.java | 55 * 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 D | ColorStateList.java | 41 * 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/libs/hwui/ |
H A D | GradientCache.h | 36 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 D | GradientCache.cpp | 45 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...] |
/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 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 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"; 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/java/android/widget/ |
H A D | SimpleMonthAdapter.java | 87 void setCalendarTextColor(ColorStateList colors) { argument 88 mCalendarTextColors = colors;
|
H A D | DayPickerView.java | 304 void setCalendarTextColor(ColorStateList colors) { argument 305 mAdapter.setCalendarTextColor(colors);
|
H A D | SimpleMonthView.java | 196 void setTextColor(ColorStateList colors) { argument 199 mNormalTextColor = colors.getColorForState(ENABLED_STATE_SET, 204 mDisabledTextColor = colors.getColorForState(EMPTY_STATE_SET, 208 mSelectedDayColor = colors.getColorForState(ENABLED_SELECTED_STATE_SET,
|
/frameworks/base/core/jni/android/graphics/ |
H A D | NinePatchImpl.cpp | 257 const uint32_t* colors = chunk.getColors(); local 261 color = colors[colorIndex++];
|
H A D | Shader.cpp | 124 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 D | Bitmap.cpp | 228 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 D | VerticalGridFragment.java | 261 public void setSearchAffordanceColors(SearchOrbView.Colors colors) { argument 262 mSearchAffordanceColors = colors;
|
H A D | VerticalGridSupportFragment.java | 263 public void setSearchAffordanceColors(SearchOrbView.Colors colors) { argument 264 mSearchAffordanceColors = colors;
|
/frameworks/native/opengl/libagl/ |
H A D | dxt.cpp | 152 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...] |