/development/samples/ApiDemos/src/com/example/android/apis/app/ |
D | SetWallpaperActivity.java | 27 import android.graphics.Color; 44 {Color.BLUE, Color.GREEN, Color.RED, Color.LTGRAY, Color.MAGENTA, Color.CYAN, 45 Color.YELLOW, Color.WHITE};
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | ColorPickerDialog.java | 131 int a = ave(Color.alpha(c0), Color.alpha(c1), p); in interpColor() 132 int r = ave(Color.red(c0), Color.red(c1), p); in interpColor() 133 int g = ave(Color.green(c0), Color.green(c1), p); in interpColor() 134 int b = ave(Color.blue(c0), Color.blue(c1), p); in interpColor() 136 return Color.argb(a, r, g, b); in interpColor() 141 int r = Color.red(color); in rotateColor() 142 int g = Color.green(color); in rotateColor() 143 int b = Color.blue(color); in rotateColor() 160 return Color.argb(Color.alpha(color), pinToByte(ir), in rotateColor()
|
D | PathEffects.java | 67 mColors = new int[] { Color.BLACK, Color.RED, Color.BLUE, in SampleView() 68 Color.GREEN, Color.MAGENTA, Color.BLACK in SampleView() 73 canvas.drawColor(Color.WHITE); in onDraw()
|
D | Regions.java | 51 mPaint.setColor(Color.RED); in drawOriginalRects() 54 mPaint.setColor(Color.BLUE); in drawOriginalRects() 64 mPaint.setColor(Color.BLACK); in drawRgn() 95 canvas.drawColor(Color.GRAY); in onDraw() 106 drawRgn(canvas, Color.RED, "Union", Region.Op.UNION); in onDraw() 111 drawRgn(canvas, Color.BLUE, "Xor", Region.Op.XOR); in onDraw() 116 drawRgn(canvas, Color.GREEN, "Difference", Region.Op.DIFFERENCE); in onDraw() 121 drawRgn(canvas, Color.WHITE, "Intersect", Region.Op.INTERSECT); in onDraw()
|
D | Clipping.java | 52 canvas.drawColor(Color.WHITE); in drawScene() 54 mPaint.setColor(Color.RED); in drawScene() 57 mPaint.setColor(Color.GREEN); in drawScene() 60 mPaint.setColor(Color.BLUE); in drawScene() 65 canvas.drawColor(Color.GRAY); in onDraw()
|
D | Sweep.java | 47 mShader = new SweepGradient(x, y, new int[] { Color.GREEN, in SampleView() 48 Color.RED, in SampleView() 49 Color.BLUE, in SampleView() 50 Color.GREEN }, null); in SampleView() 59 canvas.drawColor(Color.WHITE); in onDraw()
|
D | Layers.java | 44 canvas.drawColor(Color.WHITE); in onDraw() 50 mPaint.setColor(Color.RED); in onDraw() 52 mPaint.setColor(Color.BLUE); in onDraw()
|
D | AlphaBitmap.java | 71 Color.RED, Color.GREEN, Color.BLUE }, in SampleView() 76 canvas.drawColor(Color.WHITE); in onDraw() 81 p.setColor(Color.RED); in onDraw()
|
D | ScaleToFit.java | 52 80, 40, Color.RED, 53 40, 80, Color.GREEN, 54 30, 30, Color.BLUE, 55 80, 80, Color.BLACK 96 canvas.drawColor(Color.WHITE); in onDraw()
|
D | DrawPoints.java | 67 canvas.drawColor(Color.WHITE); in onDraw() 69 paint.setColor(Color.RED); in onDraw() 73 paint.setColor(Color.BLUE); in onDraw()
|
/development/samples/browseable/SlidingTabsColors/src/com.example.android.slidingtabscolors/ |
D | SlidingTabsColorsFragment.java | 21 import android.graphics.Color; 115 Color.BLUE, // Indicator color in onCreate() 116 Color.GRAY // Divider color in onCreate() 121 Color.RED, // Indicator color in onCreate() 122 Color.GRAY // Divider color in onCreate() 127 Color.YELLOW, // Indicator color in onCreate() 128 Color.GRAY // Divider color in onCreate() 133 Color.GREEN, // Indicator color in onCreate() 134 Color.GRAY // Divider color in onCreate()
|
/development/samples/browseable/BasicTransition/src/com.example.android.common/view/ |
D | SlidingTabStrip.java | 22 import android.graphics.Color; 169 return Color.argb(alpha, Color.red(color), Color.green(color), Color.blue(color)); in setColorAlpha() 180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation); in blendColors() 181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); in blendColors() 182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation); in blendColors() 183 return Color.rgb((int) r, (int) g, (int) b); in blendColors()
|
/development/samples/browseable/SlidingTabsBasic/src/com.example.android.common/view/ |
D | SlidingTabStrip.java | 22 import android.graphics.Color; 169 return Color.argb(alpha, Color.red(color), Color.green(color), Color.blue(color)); in setColorAlpha() 180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation); in blendColors() 181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); in blendColors() 182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation); in blendColors() 183 return Color.rgb((int) r, (int) g, (int) b); in blendColors()
|
/development/samples/browseable/SwipeRefreshMultipleViews/src/com.example.android.common/view/ |
D | SlidingTabStrip.java | 22 import android.graphics.Color; 169 return Color.argb(alpha, Color.red(color), Color.green(color), Color.blue(color)); in setColorAlpha() 180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation); in blendColors() 181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); in blendColors() 182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation); in blendColors() 183 return Color.rgb((int) r, (int) g, (int) b); in blendColors()
|
/development/samples/browseable/SwipeRefreshListFragment/src/com.example.android.common/view/ |
D | SlidingTabStrip.java | 22 import android.graphics.Color; 169 return Color.argb(alpha, Color.red(color), Color.green(color), Color.blue(color)); in setColorAlpha() 180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation); in blendColors() 181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); in blendColors() 182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation); in blendColors() 183 return Color.rgb((int) r, (int) g, (int) b); in blendColors()
|
/development/samples/browseable/SwipeRefreshLayoutBasic/src/com.example.android.common/view/ |
D | SlidingTabStrip.java | 22 import android.graphics.Color; 169 return Color.argb(alpha, Color.red(color), Color.green(color), Color.blue(color)); in setColorAlpha() 180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation); in blendColors() 181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); in blendColors() 182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation); in blendColors() 183 return Color.rgb((int) r, (int) g, (int) b); in blendColors()
|
/development/samples/browseable/SlidingTabsColors/src/com.example.android.common/view/ |
D | SlidingTabStrip.java | 22 import android.graphics.Color; 169 return Color.argb(alpha, Color.red(color), Color.green(color), Color.blue(color)); in setColorAlpha() 180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation); in blendColors() 181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); in blendColors() 182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation); in blendColors() 183 return Color.rgb((int) r, (int) g, (int) b); in blendColors()
|
/development/samples/browseable/Flashlight/src/com.example.android.wearable.flashlight/ |
D | PartyLightView.java | 22 import android.graphics.Color; 34 Color.RED, 35 Color.GREEN, 36 Color.BLUE, 37 Color.CYAN, 38 Color.MAGENTA
|
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/ |
D | CardBoundsWatchFaceService.java | 20 import android.graphics.Color; 87 canvas.drawColor(isInAmbientMode() ? Color.BLACK : Color.BLUE); in onDraw() 91 mPaint.setColor(Color.MAGENTA); in onDraw() 99 mPaint.setColor(isInAmbientMode() ? Color.RED : Color.GREEN); in onDraw()
|
D | SweepWatchFaceService.java | 26 import android.graphics.Color; 121 mBackgroundPaint.setColor(Color.BLACK); in onCreate() 125 mWatchHandColor = Color.WHITE; in onCreate() 126 mWatchHandHighlightColor = Color.RED; in onCreate() 127 mWatchHandShadowColor = Color.BLACK; in onCreate() 168 mWatchHandHighlightColor = palette.getVibrantColor(Color.RED); in onCreate() 169 mWatchHandColor = palette.getLightVibrantColor(Color.WHITE); in onCreate() 170 mWatchHandShadowColor = palette.getDarkMutedColor(Color.BLACK); in onCreate() 211 mHourPaint.setColor(Color.WHITE); in updateWatchHandStyle() 212 mMinutePaint.setColor(Color.WHITE); in updateWatchHandStyle() [all …]
|
D | AnalogWatchFaceService.java | 26 import android.graphics.Color; 149 mBackgroundPaint.setColor(Color.BLACK); in onCreate() 153 mWatchHandColor = Color.WHITE; in onCreate() 154 mWatchHandHighlightColor = Color.RED; in onCreate() 155 mWatchHandShadowColor = Color.BLACK; in onCreate() 196 mWatchHandHighlightColor = palette.getVibrantColor(Color.RED); in onCreate() 197 mWatchHandColor = palette.getLightVibrantColor(Color.WHITE); in onCreate() 198 mWatchHandShadowColor = palette.getDarkMutedColor(Color.BLACK); in onCreate() 246 mHourPaint.setColor(Color.WHITE); in updateWatchHandStyle() 247 mMinutePaint.setColor(Color.WHITE); in updateWatchHandStyle() [all …]
|
/development/samples/Snake/src/com/example/android/snake/ |
D | BackgroundView.java | 22 import android.graphics.Color; 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()
|
/development/samples/ThemedNavBarKeyboard/src/com/example/android/themednavbarkeyboard/ |
D | ThemedNavBarKeyboard.java | 22 import android.graphics.Color; 189 switchToSeparateNavBarMode(Color.DKGRAY, false /* lightNavBar */); in KeyboardLayoutView() 194 setBackgroundColor(Color.TRANSPARENT); in KeyboardLayoutView() 200 new int[] {MINT_COLOR, Color.DKGRAY}); in KeyboardLayoutView() 207 new int[] {MINT_COLOR, Color.WHITE}); in KeyboardLayoutView() 211 switchToSeparateNavBarMode(Color.DKGRAY, false /* lightNavBar */); in KeyboardLayoutView() 215 switchToSeparateNavBarMode(Color.GRAY, true /* lightNavBar */); in KeyboardLayoutView() 303 mWindow.setNavigationBarColor(Color.TRANSPARENT); in switchToExtendedNavBarMode()
|
/development/samples/browseable/DrawableTinting/src/com.example.android.drawabletinting/ |
D | DrawableTintingFragment.java | 19 import android.graphics.Color; 236 return Color.argb(alpha, red, green, blue); in getColor() 265 Color.alpha(color), Color.red(color), Color.green(color), Color.blue(color), in updateTint() 272 mAlphaText.setText(getString(R.string.value_alpha, Color.alpha(color))); in updateTint() 273 mRedText.setText(getString(R.string.value_red, Color.red(color))); in updateTint() 274 mGreenText.setText(getString(R.string.value_green, Color.green(color))); in updateTint() 275 mBlueText.setText(getString(R.string.value_blue, Color.blue(color))); in updateTint()
|
/development/samples/devbytes/animation/CrossFading/src/com/example/android/crossfading/ |
D | CrossFading.java | 22 import android.graphics.Color; 51 canvas.drawColor(Color.RED); in onCreate() 53 canvas.drawColor(Color.GREEN); in onCreate()
|