/development/samples/Snake/src/com/example/android/snake/ |
D | BackgroundView.java | 34 private int[] mColors = new int[4]; field in BackgroundView 48 mColors[0] = a.getColor(R.styleable.BackgroundView_colorSegmentOne, Color.RED); in BackgroundView() 49 mColors[1] = a.getColor(R.styleable.BackgroundView_colorSegmentTwo, Color.YELLOW); in BackgroundView() 50 mColors[2] = a.getColor(R.styleable.BackgroundView_colorSegmentThree, Color.BLUE); in BackgroundView() 51 mColors[3] = a.getColor(R.styleable.BackgroundView_colorSegmentFour, Color.GREEN); in BackgroundView() 63 for (int triangle = 0; triangle < mColors.length; triangle++) { in onDraw() 65 Arrays.fill(mFillColors, mColors[triangle]); in onDraw()
|
/development/samples/browseable/Flashlight/src/com.example.android.wearable.flashlight/ |
D | PartyLightView.java | 33 private int[] mColors = new int[] { field in PartyLightView 85 mCurrentColor = getColor(mProgress, mColors[mFromColorIndex], in init() 86 mColors[mToColorIndex]); in init() 93 if (mToColorIndex >= mColors.length) { in init()
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | CreateBitmap.java | 56 private int[] mColors; field in CreateBitmap.SampleView 72 mColors = createColors(); in SampleView() 73 int[] colors = mColors; in SampleView() 118 canvas.drawBitmap(mColors, 0, STRIDE, 0, 0, WIDTH, HEIGHT, in onDraw() 121 canvas.drawBitmap(mColors, 0, STRIDE, 0, 0, WIDTH, HEIGHT, in onDraw()
|
D | PathEffects.java | 37 private int[] mColors; field in PathEffects.SampleView 67 mColors = new int[] { Color.BLACK, Color.RED, Color.BLUE, in SampleView() 85 mPaint.setColor(mColors[i]); in onDraw()
|
D | ColorPickerDialog.java | 38 private final int[] mColors; field in ColorPickerDialog.ColorPickerView 44 mColors = new int[] { in ColorPickerView() 48 Shader s = new SweepGradient(0, 0, mColors, null); in ColorPickerView() 193 mCenterPaint.setColor(interpColor(mColors, unit)); in onTouchEvent()
|
D | ColorFilters.java | 44 private int[] mColors; field in ColorFilters.SampleView 93 mColors = new int[] { in SampleView() 147 for (int color : mColors) { in onDraw()
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
D | SetWallpaperActivity.java | 43 final static private int[] mColors = field in SetWallpaperActivity 69 int mColor = (int) Math.floor(Math.random() * mColors.length); in onCreate() 70 wallpaperDrawable.setColorFilter(mColors[mColor], PorterDuff.Mode.MULTIPLY); in onCreate()
|
/development/samples/browseable/BasicMediaRouter/src/com.example.android.basicmediarouter/ |
D | MainActivity.java | 72 mColors = getResources().getIntArray(R.array.androidcolors); in onCreate() 287 public int[] mColors; field in MainActivity 295 mPresentation.setColor(mColors[mColor]); in showNextColor() 296 mColor = (mColor + 1) % mColors.length; in showNextColor()
|
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/ |
D | DigitalWatchFaceWearableConfigActivity.java | 159 private final String[] mColors; field in DigitalWatchFaceWearableConfigActivity.ColorListAdapter 162 mColors = colors; in ColorListAdapter() 173 String colorName = mColors[position]; in onBindViewHolder() 184 } else if (position == mColors.length - 1) { in onBindViewHolder() 194 return mColors.length; in getItemCount()
|