/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
D | TintManager.java | 336 final int[] colors = new int[7]; 341 colors[i] = getDisabledThemeAttrColor(context, R.attr.colorControlNormal); 345 colors[i] = colorControlActivated; 349 colors[i] = colorControlActivated; 353 colors[i] = colorControlActivated; 357 colors[i] = colorControlActivated; 361 colors[i] = colorControlActivated; 366 colors[i] = colorControlNormal; 369 mDefaultColorStateList = new ColorStateList(states, colors); 376 final int[] colors = new int[3]; [all …]
|
D | ThemeUtils.java | 49 final int[] colors = new int[2]; in createDisabledStateList() local 54 colors[i] = disabledTextColor; in createDisabledStateList() 59 colors[i] = textColor; in createDisabledStateList() 62 return new ColorStateList(states, colors); in createDisabledStateList()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | GradientStopsActivity.java | 45 int[] colors = new int[] { 0xffff0000, 0xff0000ff }; in onDraw() local 48 colors, positions, Shader.TileMode.CLAMP); in onDraw() 55 colors = new int[] { 0xffff0000, 0xff0000ff, 0xff00ff00 }; in onDraw() 58 colors, positions, Shader.TileMode.CLAMP); in onDraw() 65 colors = new int[] { 0xffff0000, 0xff0000ff, 0xff00ff00 }; in onDraw() 68 colors, positions, Shader.TileMode.CLAMP); in onDraw() 75 colors = new int[] { 0xff000000, 0xffffffff }; in onDraw() 77 colors, null, Shader.TileMode.CLAMP); in onDraw() 85 colors, null, Shader.TileMode.REPEAT); in onDraw() 93 colors, null, Shader.TileMode.MIRROR); in onDraw() [all …]
|
/frameworks/base/libs/hwui/ |
D | GradientCache.h | 38 colors = nullptr; in GradientCacheEntry() 42 GradientCacheEntry(uint32_t* colors, float* positions, uint32_t count) { in GradientCacheEntry() 43 copy(colors, positions, count); in GradientCacheEntry() 47 copy(entry.colors.get(), entry.positions.get(), entry.count); in GradientCacheEntry() 52 copy(entry.colors.get(), entry.positions.get(), entry.count); 70 std::unique_ptr<uint32_t[]> colors; member 75 void copy(uint32_t* colors, float* positions, uint32_t count) { in copy() 77 this->colors.reset(new uint32_t[count]); in copy() 80 memcpy(this->colors.get(), colors, count * sizeof(uint32_t)); in copy() 119 Texture* get(uint32_t* colors, float* positions, int count); [all …]
|
D | GradientCache.cpp | 45 hash = JenkinsHashMix(hash, android::hash_type(colors[i])); in hash() 55 deltaInt = memcmp(lhs.colors.get(), rhs.colors.get(), lhs.count * sizeof(uint32_t)); in compare() 125 Texture* GradientCache::get(uint32_t* colors, float* positions, int count) { in get() argument 126 GradientCacheEntry gradient(colors, positions, count); in get() 130 texture = addLinearGradient(gradient, colors, positions, count); in get() 140 void GradientCache::getGradientInfo(const uint32_t* colors, const int count, in getGradientInfo() argument 153 if (((colors[i] >> 24) & 0xff) < 255) { in getGradientInfo() 164 uint32_t* colors, float* positions, int count) { in addLinearGradient() argument 167 getGradientInfo(colors, count, info); in addLinearGradient() 181 generateTexture(colors, positions, texture); in addLinearGradient() [all …]
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
D | BitmapTest.java | 81 int[] colors = new int[100]; in testGetPixelsWithAlpha() local 83 colors[i] = (0xFF << 24) | (i << 16) | (i << 8) | i; in testGetPixelsWithAlpha() 86 Bitmap bm = Bitmap.createBitmap(colors, 10, 10, in testGetPixelsWithAlpha() 98 assertEquals("getPixel", p, colors[i]); in testGetPixelsWithAlpha() 107 int[] colors = new int[100]; in testGetPixelsWithoutAlpha() local 109 colors[i] = (0xFF << 24) | (i << 16) | (i << 8) | i; in testGetPixelsWithoutAlpha() 112 Bitmap bm = Bitmap.createBitmap(colors, 10, 10, Bitmap.Config.RGB_565); in testGetPixelsWithoutAlpha() 124 int[] colors = new int[100]; in testSetPixelsWithAlpha() local 126 colors[i] = (0xFF << 24) | (i << 16) | (i << 8) | i; in testSetPixelsWithAlpha() 130 Bitmap bm1 = Bitmap.createBitmap(colors, 10, 10, config); in testSetPixelsWithAlpha() [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | Gradient_Delegate.java | 49 protected Gradient_Delegate(int colors[], float positions[]) { in Gradient_Delegate() argument 50 if (colors.length < 2) { in Gradient_Delegate() 53 if (positions != null && colors.length != positions.length) { in Gradient_Delegate() 58 float spacing = 1.f / (colors.length - 1); in Gradient_Delegate() 59 positions = new float[colors.length]; in Gradient_Delegate() 61 positions[colors.length-1] = 1.f; in Gradient_Delegate() 62 for (int i = 1; i < colors.length - 1 ; i++) { in Gradient_Delegate() 67 mColors = colors; in Gradient_Delegate() 84 protected GradientPaint(int[] colors, float[] positions, TileMode tileMode) { in GradientPaint() argument 85 mColors = colors; in GradientPaint()
|
D | SweepGradient_Delegate.java | 55 /*package*/ static long nativeCreate1(float x, float y, int colors[], float positions[]) { in nativeCreate1() argument 56 SweepGradient_Delegate newDelegate = new SweepGradient_Delegate(x, y, colors, positions); in nativeCreate1() 82 int colors[], float positions[]) { in SweepGradient_Delegate() argument 83 super(colors, positions); in SweepGradient_Delegate() 92 public SweepGradientPaint(float cx, float cy, int[] colors, in SweepGradientPaint() argument 94 super(colors, positions, null /*tileMode*/); in SweepGradientPaint()
|
D | RadialGradient_Delegate.java | 60 int colors[], float positions[], int tileMode) { in nativeCreate1() argument 62 colors, positions, Shader_Delegate.getTileMode(tileMode)); in nativeCreate1() 89 private RadialGradient_Delegate(float x, float y, float radius, int colors[], float positions[], in RadialGradient_Delegate() argument 91 super(colors, positions); in RadialGradient_Delegate() 102 int[] colors, float[] positions, TileMode mode) { in RadialGradientPaint() argument 103 super(colors, positions, mode); in RadialGradientPaint()
|
D | LinearGradient_Delegate.java | 61 int colors[], float positions[], int tileMode) { in nativeCreate1() argument 63 colors, positions, Shader_Delegate.getTileMode(tileMode)); in nativeCreate1() 92 int colors[], float positions[], TileMode tile) { in LinearGradient_Delegate() argument 93 super(colors, positions); in LinearGradient_Delegate() 111 public LinearGradientPaint(float x0, float y0, float x1, float y1, int colors[], in LinearGradientPaint() argument 113 super(colors, positions, tile); in LinearGradientPaint()
|
/frameworks/base/graphics/java/android/graphics/ |
D | SweepGradient.java | 52 int colors[], float positions[]) { in SweepGradient() argument 53 if (colors.length < 2) { in SweepGradient() 56 if (positions != null && colors.length != positions.length) { in SweepGradient() 63 mColors = colors; in SweepGradient() 65 init(nativeCreate1(cx, cy, colors, positions)); in SweepGradient() 107 private static native long nativeCreate1(float x, float y, int colors[], float positions[]); in nativeCreate1() argument
|
D | LinearGradient.java | 52 public LinearGradient(float x0, float y0, float x1, float y1, int colors[], float positions[], in LinearGradient() argument 54 if (colors.length < 2) { in LinearGradient() 57 if (positions != null && colors.length != positions.length) { in LinearGradient() 65 mColors = colors; in LinearGradient() 68 init(nativeCreate1(x0, y0, x1, y1, colors, positions, tile.nativeInt)); in LinearGradient() 116 int colors[], float positions[], int tileMode); in nativeCreate1() argument
|
D | RadialGradient.java | 55 @NonNull int colors[], @Nullable float stops[], @NonNull TileMode tileMode) { in RadialGradient() argument 59 if (colors.length < 2) { in RadialGradient() 62 if (stops != null && colors.length != stops.length) { in RadialGradient() 69 mColors = colors; in RadialGradient() 72 init(nativeCreate1(centerX, centerY, radius, colors, stops, tileMode.nativeInt)); in RadialGradient() 121 int colors[], float positions[], int tileMode); in nativeCreate1() argument
|
D | Bitmap.java | 863 public static Bitmap createBitmap(int colors[], int offset, int stride, in createBitmap() argument 865 return createBitmap(null, colors, offset, stride, width, height, config); in createBitmap() 888 public static Bitmap createBitmap(DisplayMetrics display, int colors[], in createBitmap() argument 896 int length = colors.length; in createBitmap() 904 Bitmap bm = nativeCreate(colors, offset, stride, width, height, in createBitmap() 927 public static Bitmap createBitmap(int colors[], int width, int height, Config config) { in createBitmap() argument 928 return createBitmap(null, colors, 0, width, width, height, config); in createBitmap() 948 public static Bitmap createBitmap(DisplayMetrics display, int colors[], in createBitmap() argument 950 return createBitmap(display, colors, 0, width, width, height, config); in createBitmap() 1675 private static native Bitmap nativeCreate(int[] colors, int offset, in nativeCreate() argument [all …]
|
/frameworks/opt/colorpicker/src/com/android/colorpicker/ |
D | ColorPickerDialog.java | 64 public static ColorPickerDialog newInstance(int titleResId, int[] colors, int selectedColor, in newInstance() argument 67 ret.initialize(titleResId, colors, selectedColor, columns, size); in newInstance() 71 public void initialize(int titleResId, int[] colors, int selectedColor, int columns, int size) { in initialize() argument 73 setColors(colors, selectedColor); in initialize() 163 public void setColors(int[] colors, int selectedColor) { in setColors() argument 164 if (mColors != colors || mSelectedColor != selectedColor) { in setColors() 165 mColors = colors; in setColors() 171 public void setColors(int[] colors) { in setColors() argument 172 if (mColors != colors) { in setColors() 173 mColors = colors; in setColors()
|
D | ColorPickerPalette.java | 84 public void drawPalette(int[] colors, int selectedColor) { in drawPalette() argument 85 drawPalette(colors, selectedColor, null); in drawPalette() 91 public void drawPalette(int[] colors, int selectedColor, String[] colorContentDescriptions) { in drawPalette() argument 92 if (colors == null) { in drawPalette() 103 for (int color : colors) { in drawPalette()
|
/frameworks/native/opengl/libagl/ |
D | dxt.cpp | 152 uint32_t colors = *d32++; in DXT1HasAlpha() local 155 colors = swap(colors); in DXT1HasAlpha() 158 uint16_t color0 = colors & 0xffff; in DXT1HasAlpha() 159 uint16_t color1 = colors >> 16; in DXT1HasAlpha() 215 uint32_t colors = *d32++; in decodeDXT1() local 219 colors = swap(colors); in decodeDXT1() 224 uint16_t color0 = colors & 0xffff; in decodeDXT1() 225 uint16_t color1 = colors >> 16; in decodeDXT1() 338 uint32_t colors = *d32++; in decodeDXT3() local 342 colors = swap(colors); in decodeDXT3() [all …]
|
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/ |
D | ColorCutQuantizer.java | 106 final int[] colors = mColors = new int[distinctColorCount]; in ColorCutQuantizer() local 110 colors[distinctColorIndex++] = color; in ColorCutQuantizer() 121 for (int color : colors) { in ColorCutQuantizer() 196 ArrayList<Swatch> colors = new ArrayList<>(vboxes.size()); in generateAverageColors() local 202 colors.add(swatch); in generateAverageColors() 205 return colors; in generateAverageColors() 245 final int[] colors = mColors; in fitBox() local 256 final int color = colors[i]; in fitBox() 341 final int[] colors = mColors; in findSplitPoint() local 347 modifySignificantOctet(colors, longestDimension, mLowerIndex, mUpperIndex); in findSplitPoint() [all …]
|
/frameworks/support/design/base/android/support/design/widget/ |
D | CircularBorderDrawable.java | 150 final int[] colors = new int[6]; in createGradientShader() local 151 colors[0] = ColorUtils.compositeColors(mTopOuterStrokeColor, mTintColor); in createGradientShader() 152 colors[1] = ColorUtils.compositeColors(mTopInnerStrokeColor, mTintColor); in createGradientShader() 153 colors[2] = ColorUtils.compositeColors( in createGradientShader() 155 colors[3] = ColorUtils.compositeColors( in createGradientShader() 157 colors[4] = ColorUtils.compositeColors(mBottomInnerStrokeColor, mTintColor); in createGradientShader() 158 colors[5] = ColorUtils.compositeColors(mBottomOuterStrokeColor, mTintColor); in createGradientShader() 171 colors, positions, in createGradientShader()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | NotificationColorUtil.java | 195 int[] colors = colorStateList.getColors(); in processTextAppearanceSpan() local 197 for (int i = 0; i < colors.length; i++) { in processTextAppearanceSpan() 198 if (ImageUtils.isGrayscale(colors[i])) { in processTextAppearanceSpan() 203 colors = Arrays.copyOf(colors, colors.length); in processTextAppearanceSpan() 205 colors[i] = processColor(colors[i]); in processTextAppearanceSpan() 212 new ColorStateList(colorStateList.getStates(), colors), in processTextAppearanceSpan()
|
/frameworks/base/core/jni/android/graphics/ |
D | Shader.cpp | 137 SkColor colors[2]; in LinearGradient_create2() local 138 colors[0] = color0; in LinearGradient_create2() 139 colors[1] = color1; in LinearGradient_create2() 141 … SkShader* s = SkGradientShader::CreateLinear(pts, colors, NULL, 2, (SkShader::TileMode)tileMode); in LinearGradient_create2() 179 SkColor colors[2]; in RadialGradient_create2() local 180 colors[0] = color0; in RadialGradient_create2() 181 colors[1] = color1; in RadialGradient_create2() 183 SkShader* s = SkGradientShader::CreateRadial(center, radius, colors, NULL, 2, in RadialGradient_create2() 194 const jint* colors = env->GetIntArrayElements(jcolors, NULL); in SweepGradient_create1() local 204 reinterpret_cast<const SkColor*>(colors), pos, count); in SweepGradient_create1() [all …]
|
/frameworks/base/core/java/android/content/res/ |
D | ColorStateList.java | 100 public ColorStateList(int[][] states, @ColorInt int[] colors) { in ColorStateList() argument 102 mColors = colors; in ColorStateList() 235 final int[] colors = new int[mColors.length]; in withAlpha() local 236 final int len = colors.length; in withAlpha() 238 colors[i] = (mColors[i] & 0xFFFFFF) | (alpha << 24); in withAlpha() 241 return new ColorStateList(mStateSpecs, colors); in withAlpha() 577 final int[] colors = mColors; in onColorsChanged() local 580 defaultColor = colors[0]; in onColorsChanged() 584 defaultColor = colors[i]; in onColorsChanged() 590 if (Color.alpha(colors[i]) != 0xFF) { in onColorsChanged() [all …]
|
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/presentation/ |
D | Cube.java | 44 int colors[] = { in Cube() local 78 ByteBuffer cbb = ByteBuffer.allocateDirect(colors.length*4); in Cube() 81 mColorBuffer.put(colors); in Cube()
|
/frameworks/support/design/eclair-mr1/android/support/design/widget/ |
D | FloatingActionButtonEclairMr1.java | 251 final int[] colors = new int[3]; in createColorStateList() local 255 colors[i] = selectedColor; in createColorStateList() 259 colors[i] = selectedColor; in createColorStateList() 264 colors[i] = Color.TRANSPARENT; in createColorStateList() 267 return new ColorStateList(states, colors); in createColorStateList()
|
/frameworks/native/cmds/flatland/ |
D | Renderers.cpp | 22 static float colors[][4] = { variable 33 float* color = colors[g_colorIndex]; in genColor() 34 g_colorIndex = (g_colorIndex + 1) % NELEMS(colors); in genColor()
|