/development/samples/Snake/src/com/example/android/snake/ |
BackgroundView.java | 34 private int[] mColors = new int[4]; 48 mColors[0] = a.getColor(R.styleable.BackgroundView_colorSegmentOne, Color.RED); 49 mColors[1] = a.getColor(R.styleable.BackgroundView_colorSegmentTwo, Color.YELLOW); 50 mColors[2] = a.getColor(R.styleable.BackgroundView_colorSegmentThree, Color.BLUE); 51 mColors[3] = a.getColor(R.styleable.BackgroundView_colorSegmentFour, Color.GREEN); 63 for (int triangle = 0; triangle < mColors.length; triangle++) { 65 Arrays.fill(mFillColors, mColors[triangle]);
|
/frameworks/opt/colorpicker/src/com/android/colorpicker/ |
ColorPickerDialog.java | 48 protected int[] mColors = null; 97 mColors = savedInstanceState.getIntArray(KEY_COLORS); 111 if (mColors != null) { 138 mPalette.drawPalette(mColors, mSelectedColor); 160 if (mColors != colors || mSelectedColor != selectedColor) { 161 mColors = colors; 168 if (mColors != colors) { 169 mColors = colors; 182 if (mPalette != null && mColors != null) { 183 mPalette.drawPalette(mColors, mSelectedColor) [all...] |
/packages/apps/Calendar/src/com/android/calendar/ |
CalendarColorPickerDialog.java | 130 mColors = new int[colorsToSort.length]; 131 for (int i = 0; i < mColors.length; i++) { 132 mColors[i] = colorsToSort[i]; 176 int[] colorKeys = new int[mColors.length]; 177 for (int i = 0; i < mColors.length; i++) { 178 colorKeys[i] = mColorKeyMap.get(mColors[i]); 195 if (mColors != null && colorKeys != null) { 196 for (int i = 0; i < mColors.length; i++) { 197 mColorKeyMap.put(mColors[i], colorKeys[i]); 223 if (mColors == null) [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
Gradient_Delegate.java | 26 protected final int[] mColors; 67 mColors = colors; 79 private final int[] mColors; 85 mColors = colors; 117 mGradient[i] = computeColor(mColors[prevPos], mColors[nextPos], percent);
|
LinearGradient_Delegate.java | 108 mJavaPaint = new LinearGradientPaint(x0, y0, x1, y1, mColors, mPositions, tile);
|
RadialGradient_Delegate.java | 104 mJavaPaint = new RadialGradientPaint(x, y, radius, mColors, mPositions, tile);
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
SetWallpaperActivity.java | 43 final static private int[] mColors = 69 int mColor = (int) Math.floor(Math.random() * mColors.length); 70 wallpaperDrawable.setColorFilter(mColors[mColor], PorterDuff.Mode.MULTIPLY);
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
BitmapMeshActivity.java | 41 private int[] mColors; 58 mColors = new int[] { 82 canvas.drawBitmapMesh(mBitmap1, 3, 3, mVertices, 0, mColors, 0, null);
|
BitmapMeshLayerActivity.java | 42 private int[] mColors; 59 mColors = new int[] { 75 canvas.drawBitmapMesh(mBitmap1, 3, 3, mVertices, 0, mColors, 0, null);
|
/frameworks/wilhelm/src/itf/ |
ILEDArray.c | 73 thiz->mColors[index] = color; 92 SLHSL color = thiz->mColors[index]; 114 SLHSL *color = thiz->mColors;
|
/frameworks/base/core/java/android/content/res/ |
ColorStateList.java | 64 private int[][] mStateSpecs; // must be parallel to mColors 65 private int[] mColors; // must be parallel to mStateSpecs 80 mColors = colors; 160 int[] colors = new int[mColors.length]; 164 colors[i] = (mColors[i] & 0xFFFFFF) | (alpha << 24); 253 mColors = new int[listSize]; 255 System.arraycopy(colorList, 0, mColors, 0, listSize); 277 return mColors[i]; 295 "mColors=" + Arrays.toString(mColors) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/os/ |
Sensors.java | 63 private int mColors[] = new int[3*2]; 74 mColors[0] = Color.argb(192, 255, 64, 64); 75 mColors[1] = Color.argb(192, 64, 128, 64); 76 mColors[2] = Color.argb(192, 64, 64, 255); 77 mColors[3] = Color.argb(192, 64, 255, 255); 78 mColors[4] = Color.argb(192, 128, 64, 128); 79 mColors[5] = Color.argb(192, 255, 255, 64); 191 paint.setColor(mColors[k]);
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
CreateBitmap.java | 56 private int[] mColors; 72 mColors = createColors(); 73 int[] colors = mColors; 118 canvas.drawBitmap(mColors, 0, STRIDE, 0, 0, WIDTH, HEIGHT, 121 canvas.drawBitmap(mColors, 0, STRIDE, 0, 0, WIDTH, HEIGHT,
|
PathEffects.java | 37 private int[] mColors; 67 mColors = new int[] { Color.BLACK, Color.RED, Color.BLUE, 85 mPaint.setColor(mColors[i]);
|
ColorFilters.java | 44 private int[] mColors; 93 mColors = new int[] { 147 for (int color : mColors) {
|
ColorPickerDialog.java | 38 private final int[] mColors; 44 mColors = new int[] { 48 Shader s = new SweepGradient(0, 0, mColors, null); 193 mCenterPaint.setColor(interpColor(mColors, unit));
|
/frameworks/base/libs/hwui/ |
SkiaShader.cpp | 185 mBounds(bounds), mColors(colors), mPositions(positions), mCount(count) { 201 delete[] mColors; 210 copy->mColors = new uint32_t[mCount]; 211 memcpy(copy->mColors, mColors, sizeof(uint32_t) * mCount); 232 Texture* texture = mGradientCache->get(mColors, mPositions, mCount); 238 bindUniformColor(program->getUniform("startColor"), mColors[0]); 239 bindUniformColor(program->getUniform("endColor"), mColors[1]); 275 copy->mColors = new uint32_t[mCount]; 276 memcpy(copy->mColors, mColors, sizeof(uint32_t) * mCount) [all...] |
SkiaShader.h | 177 uint32_t* mColors; 202 uint32_t* mColors;
|
DisplayListOp.h | 879 mVertices(vertices), mColors(colors) {} 883 mVertices, mColors, getPaint(renderer)); 902 int* mColors; 913 mColors(colors), mxDivsCount(width), myDivsCount(height), 918 return renderer.drawPatch(mBitmap, mxDivs, myDivs, mColors, 940 const uint32_t* mColors; [all...] |
/frameworks/native/opengl/tests/testLatency/src/com/android/testlatency/ |
TestLatencyView.java | 126 mTriangleVerticesData2[i+2] = mColors[cbase]; 127 mTriangleVerticesData2[i+3] = mColors[cbase+1]; 128 mTriangleVerticesData2[i+4] = mColors[cbase+2]; 129 mTriangleVerticesData2[i+5] = mColors[cbase+3]; 232 private final float[] mColors = {
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
GradientDrawable.java | 701 final int[] colors = st.mColors; [all...] |
/device/google/accessory/demokit/app/src/com/google/android/DemoKit/ |
ColorWheel.java | 46 private final int[] mColors; 57 mColors = new int[] { 61 Shader s = new SweepGradient(0, 0, mColors, null); 210 mCenterPaint.setColor(interpColor(mColors, unit));
|
/sdk/apps/SdkController/src/com/android/tools/sdkcontroller/activities/ |
MultiTouchActivity.java | 61 private int[] mColors; 309 // Make sure that mColors is large enough to contain the 311 if (mColors == null || mColors.length < pixel_num) { 312 mColors = new int[pixel_num]; 323 mColors[n] = Color.rgb(r, g, b); 331 mColors[n] = Color.rgb(r, g, b); 337 mImageView.drawBitmap(x, y, w, h, mColors);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/ |
ColorRectView.java | 53 private int[] mColors = new int[] { 137 int[] wheelColor = new int[mColors.length]; 140 Color.colorToHSV(mColors[i], hsv);
|
/packages/wallpapers/Basic/src/com/android/wallpaper/polarclock/ |
PolarClockWallpaper.java | 177 private final int[] mColors = new int[COLORS_CACHE_COUNT]; 196 final int[] colors = mColors; 229 return mColors[((int) (forAngle * COLORS_CACHE_COUNT))]; 235 return mColors[((int) (forAngle * COLORS_CACHE_COUNT))]; 241 return mColors[((int) (forAngle * COLORS_CACHE_COUNT))]; 247 return mColors[((int) (forAngle * COLORS_CACHE_COUNT))]; 253 return mColors[((int) (forAngle * COLORS_CACHE_COUNT))];
|