/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/support/v7/palette/src/android/support/v7/graphics/ |
ColorHistogram.java | 26 private final int[] mColors; 43 mColors = new int[mNumberColors]; 61 return mColors; 101 mColors[currentColorIndex] = currentColor; 119 mColors[currentColorIndex] = currentColor;
|
ColorCutQuantizer.java | 57 private final int[] mColors; 97 mColors = new int[rawColorCount]; 101 mColors[validColorCount++] = color; 108 for (final int color : mColors) { 218 final int color = mColors[i]; 300 Arrays.sort(mColors, mLowerIndex, mUpperIndex + 1); 308 final int color = mColors[i]; 342 final int color = mColors[i]; 388 final int color = mColors[i]; 389 mColors[i] = Color.rgb((color >> 8) & 0xFF, (color >> 16) & 0xFF, color & 0xFF) [all...] |
/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...] |
/developers/build/prebuilts/gradle/Flashlight/Wearable/src/main/java/com/example/android/wearable/flashlight/ |
PartyLightView.java | 33 private int[] mColors = new int[] { 85 mCurrentColor = getColor(mProgress, mColors[mFromColorIndex], 86 mColors[mToColorIndex]); 93 if (mToColorIndex >= mColors.length) {
|
/developers/samples/android/wearable/wear/Flashlight/Wearable/src/main/java/com/example/android/wearable/flashlight/ |
PartyLightView.java | 33 private int[] mColors = new int[] { 85 mCurrentColor = getColor(mProgress, mColors[mFromColorIndex], 86 mColors[mToColorIndex]); 93 if (mToColorIndex >= mColors.length) {
|
/development/samples/browseable/Flashlight/Wearable/src/com.example.android.wearable.flashlight/ |
PartyLightView.java | 33 private int[] mColors = new int[] { 85 mCurrentColor = getColor(mProgress, mColors[mFromColorIndex], 86 mColors[mToColorIndex]); 93 if (mToColorIndex >= mColors.length) {
|
/frameworks/base/graphics/java/android/graphics/ |
SweepGradient.java | 32 private int[] mColors; 63 mColors = colors; 93 copy = new SweepGradient(mCx, mCy, mColors.clone(),
|
LinearGradient.java | 34 private int[] mColors; 65 mColors = colors; 101 copy = new LinearGradient(mX0, mY0, mX1, mY1, mColors.clone(),
|
RadialGradient.java | 36 private int[] mColors; 69 mColors = colors; 106 copy = new RadialGradient(mX, mY, mRadius, mColors.clone(),
|
/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]; 177 if (mColors == null) { 180 int[] colorKeys = new int[mColors.length]; 181 for (int i = 0; i < mColors.length; i++) { 182 colorKeys[i] = mColorKeyMap.get(mColors[i]); 199 if (mColors != null && colorKeys != null) { 200 for (int i = 0; i < mColors.length; i++) { 201 mColorKeyMap.put(mColors[i], colorKeys[i]) [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);
|
/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/core/java/android/content/res/ |
ColorStateList.java | 67 private int[][] mStateSpecs; // must be parallel to mColors 68 private int[] mColors; // must be parallel to mStateSpecs 83 mColors = colors; 162 final int[] colors = new int[mColors.length]; 165 colors[i] = (mColors[i] & 0xFFFFFF) | (alpha << 24); 252 mColors = new int[listSize]; 254 System.arraycopy(colorList, 0, mColors, 0, listSize); 278 final int n = mColors.length; 280 if (Color.alpha(mColors[i]) != 0xFF) { 301 return mColors[i] [all...] |
/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;
|
/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]);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
SearchOrbView.java | 46 private Colors mColors; 306 return mColors.color; 313 mColors = colors; 314 mIcon.setColorFilter(mColors.iconColor); 317 setOrbViewColor(mColors.color); 327 return mColors; 347 mColors.color, mColors.brightColor, mColors.color);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/touch/ |
TouchPointView.java | 37 private final int[] mColors = { 87 int color = mColors[finger.pointerId % mColors.length];
|
/developers/build/prebuilts/gradle/BasicMediaRouter/Application/src/main/java/com/example/android/basicmediarouter/ |
MainActivity.java | 72 mColors = getResources().getIntArray(R.array.androidcolors); 287 public int[] mColors; 295 mPresentation.setColor(mColors[mColor]); 296 mColor = (mColor + 1) % mColors.length;
|
/developers/samples/android/media/BasicMediaRouter/Application/src/main/java/com/example/android/basicmediarouter/ |
MainActivity.java | 72 mColors = getResources().getIntArray(R.array.androidcolors); 287 public int[] mColors; 295 mPresentation.setColor(mColors[mColor]); 296 mColor = (mColor + 1) % mColors.length;
|
/development/samples/browseable/BasicMediaRouter/src/com.example.android.basicmediarouter/ |
MainActivity.java | 72 mColors = getResources().getIntArray(R.array.androidcolors); 287 public int[] mColors; 295 mPresentation.setColor(mColors[mColor]); 296 mColor = (mColor + 1) % mColors.length;
|
/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 = {
|