Home
last modified time | relevance | path

Searched refs:mColors (Results 1 – 10 of 10) sorted by relevance

/development/samples/Snake/src/com/example/android/snake/
DBackgroundView.java34 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/IntentPlayground/src/com/example/android/intentplayground/
DColorManager.java30 private static int[] mColors = new int[] { field in ColorManager
84 return mColors[++mLastTaskColor % mColors.length]; in nextTaskColor()
88 return mColors[++mLastActivityColor % mColors.length]; in nextActivityColor()
/development/samples/browseable/Flashlight/src/com.example.android.wearable.flashlight/
DPartyLightView.java33 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/
DCreateBitmap.java56 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()
DPathEffects.java37 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()
DColorPickerDialog.java38 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()
DColorFilters.java44 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/
DSetWallpaperActivity.java43 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/
DMainActivity.java72 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/
DDigitalWatchFaceWearableConfigActivity.java159 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()