/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | Themes.java | 22 import android.graphics.Color; 135 target.setScale(Color.red(color) / 255f, Color.green(color) / 255f, in setColorScaleOnMatrix() 136 Color.blue(color) / 255f, Color.alpha(color) / 255f); in setColorScaleOnMatrix() 152 target.getArray()[4] = Color.red(dstColor) - Color.red(srcColor); in setColorChangeOnMatrix() 153 target.getArray()[9] = Color.green(dstColor) - Color.green(srcColor); in setColorChangeOnMatrix() 154 target.getArray()[14] = Color.blue(dstColor) - Color.blue(srcColor); in setColorChangeOnMatrix() 155 target.getArray()[19] = Color.alpha(dstColor) - Color.alpha(srcColor); in setColorChangeOnMatrix()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/controller/ |
D | ParameterColor.java | 19 import android.graphics.Color; 32 Color.RED & 0x80FFFFFF, 33 Color.GREEN & 0x80FFFFFF, 34 Color.BLUE & 0x80FFFFFF, 35 Color.BLACK & 0x80FFFFFF, 36 Color.WHITE & 0x80FFFFFF 41 Color.colorToHSV(defaultColor, mHSVO); in ParameterColor() 52 mValue = Color.HSVToColor((int) (hsvo[3] * 255), mHSVO); in setColor() 90 Color.colorToHSV(mValue, mHSVO); in setValue()
|
D | ColorChooser.java | 6 import android.graphics.Color; 68 Color.colorToHSV(palette[i], hsvo); in setUp() 99 Color.colorToHSV(palette[i], hsvo); in setColorSet() 125 mParameter.setValue(Color.HSVToColor((int) (hsvo[OPACITY_OFFSET] * 255), hsvo)); in selectColor() 150 int c = Color.HSVToColor((int) (hsvo[3] * 255), hsvo); in changeSelectedColor() 155 mParameter.setValue(Color.HSVToColor((int) (hsvo[OPACITY_OFFSET] * 255), hsvo)); in changeSelectedColor()
|
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/ |
D | ColorChecker.java | 20 import android.graphics.Color; 68 double blackContrastRatio = getContrastRatio(bgColor, Color.BLACK); in getTintColor() 69 double whiteContrastRatio = getContrastRatio(bgColor, Color.WHITE); in getTintColor() 72 return Color.WHITE; in getTintColor() 75 return Color.BLACK; in getTintColor() 104 double r = convert8BitToLuminanceComponent(Color.red(color)); in getLuminance() 105 double g = convert8BitToLuminanceComponent(Color.green(color)); in getLuminance() 106 double b = convert8BitToLuminanceComponent(Color.blue(color)); in getLuminance()
|
/packages/services/Car/tests/MultiDisplayTest/src/com/google/android/car/multidisplaytest/touch/ |
D | TouchPointView.java | 21 import android.graphics.Color; 41 Color.RED, 42 Color.GREEN, 43 Color.BLUE, 44 Color.YELLOW, 45 Color.MAGENTA, 46 Color.BLACK, 47 Color.DKGRAY
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/touch/ |
D | TouchPointView.java | 21 import android.graphics.Color; 39 Color.RED, 40 Color.GREEN, 41 Color.BLUE, 42 Color.YELLOW, 43 Color.MAGENTA, 44 Color.BLACK, 45 Color.DKGRAY
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accessibility/ |
D | ColorPreference.java | 20 import android.graphics.Color; 65 return Color.alpha(getValue()) == 0 || super.shouldDisableDependents(); in shouldDisableDependents() 77 final int r = Color.red(value); in getTitleAt() 78 final int g = Color.green(value); in getTitleAt() 79 final int b = Color.blue(value); in getTitleAt() 90 if (Color.alpha(argb) < 255) { in onBindViewHolder() 117 final int alpha = Color.alpha(argb); in onBindListItem()
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | ColorPreference.java | 20 import android.graphics.Color; 65 return Color.alpha(getValue()) == 0 || super.shouldDisableDependents(); in shouldDisableDependents() 77 final int r = Color.red(value); in getTitleAt() 78 final int g = Color.green(value); in getTitleAt() 79 final int b = Color.blue(value); in getTitleAt() 90 if (Color.alpha(argb) < 255) { in onBindViewHolder() 117 final int alpha = Color.alpha(argb); in onBindListItem()
|
/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | RenameMobileNetworkDialogFragment.java | 68 private Color[] mColors; 172 private class ColorAdapter extends ArrayAdapter<Color> { 177 public ColorAdapter(Context context, int resource, Color[] colors) { in ColorAdapter() 205 private Color[] getColors() { in getColors() 211 final Color[] colors = new Color[colorInts.length]; in getColors() 213 colors[i] = new Color(colorStrings[i], colorInts[i], iconSize, strokeWidth); in getColors() 218 private static class Color { class in RenameMobileNetworkDialogFragment 224 private Color(String label, int color, int iconSize, int strokeWidth) { in Color() method in RenameMobileNetworkDialogFragment.Color
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/info/ |
D | HistogramView.java | 22 import android.graphics.Color; 52 int r = Color.red(pixels[index]); in doInBackground() 53 int g = Color.green(pixels[index]); in doInBackground() 54 int b = Color.blue(pixels[index]); in doInBackground() 140 drawHistogram(canvas, redHistogram, Color.RED, PorterDuff.Mode.SCREEN); in onDraw() 141 drawHistogram(canvas, greenHistogram, Color.GREEN, PorterDuff.Mode.SCREEN); in onDraw() 142 drawHistogram(canvas, blueHistogram, Color.BLUE, PorterDuff.Mode.SCREEN); in onDraw()
|
/packages/apps/Gallery2/src/com/android/photos/views/ |
D | TiledImageView.java | 24 import android.graphics.Color; 328 Color.RED, 329 Color.BLUE, 330 Color.YELLOW, 331 Color.GREEN, 332 Color.CYAN, 333 Color.MAGENTA, 334 Color.WHITE, 369 mPaint.setColor(Color.BLACK); in getTile()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/anim/ |
D | ColorMatcher.java | 18 import android.graphics.Color; 25 int r = bucketize(Color.red(targetColor)); in findClosestColor() 26 int g = bucketize(Color.green(targetColor)); in findClosestColor() 27 int b = bucketize(Color.blue(targetColor)); in findClosestColor() 29 return Color.argb(MAX_VALUE, r, g, b); in findClosestColor()
|
D | SwiperThemeMatcher.java | 19 import android.graphics.Color; 39 int r = Color.red(closestColor); in findTheme() 40 int g = Color.green(closestColor); in findTheme() 41 int b = Color.blue(closestColor); in findTheme()
|
/packages/apps/ManagedProvisioning/tools/java/com/android/managedprovisioning/tools/anim/ |
D | SwiperThemeGenerator.java | 18 import android.graphics.Color; 43 int color = Color.argb(0xff, r, g, b); in main() 46 String colorHex = String.format("%02x%02x%02x", Color.red(candidate), in main() 47 Color.green(candidate), Color.blue(candidate)); in main()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/ |
D | FadeBackground.java | 23 import android.graphics.Color; 60 Color.argb(0, Color.red(color), Color.green(color), Color.blue(color)); in createAnimator()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ui/ |
D | ThemeUiTest.java | 20 import android.graphics.Color; 48 Color.WHITE); in themeNightModeDisable_actionBarColorShouldBeLight() 66 Color.WHITE); in themeNightModeDisable_navigationBarColorShouldBeLight() 72 Color.WHITE); in themeNightModeDisable_windowBackgroundColorShouldBeLight() 78 Color.WHITE); in themeNightModeDisable_statusBarColorShouldBeLight()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | EclipseControl.java | 21 import android.graphics.Color; 64 mSliderColor = Color.WHITE; in EclipseControl() 199 paint.setColor(Color.BLUE); in paintGrayPoint() 201 Color.GRAY, Color.LTGRAY, 0x66000000, 0}; in paintGrayPoint() 216 paint.setColor(Color.BLUE); in paintPoint() 235 paint.setColor(Color.BLACK); in paintRadius() 239 paint.setColor(Color.WHITE); in paintRadius()
|
D | ImageRedEye.java | 21 import android.graphics.Color; 99 paint.setColor(Color.RED); in onDraw() 102 paint.setColor(Color.RED); in onDraw() 117 paint.setColor(Color.BLUE); in drawPoint() 123 paint.setColor(Color.GREEN); in drawPoint()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
D | SetupLayoutActivity.java | 30 import android.graphics.Color; 110 return Color.argb(255, Color.red(color), Color.green(color), Color.blue(color)); in toSolidColor()
|
/packages/apps/Launcher3/src/com/android/launcher3/views/ |
D | DoubleShadowBubbleTextView.java | 24 import android.graphics.Color; 59 int alpha = Color.alpha(getCurrentTextColor()); in onDraw() 102 int textAlpha = Color.alpha(textView.getCurrentTextColor()); in skipDoubleShadow() 103 int keyShadowAlpha = Color.alpha(keyShadowColor); in skipDoubleShadow() 104 int ambientShadowAlpha = Color.alpha(ambientShadowColor); in skipDoubleShadow()
|
/packages/services/Car/tests/MultiDisplayTest/src/com/google/android/car/multidisplaytest/present/ |
D | PresentTestFragment.java | 25 import android.graphics.Color; 346 Color.RED, 347 Color.GREEN, 348 Color.BLUE, 349 Color.YELLOW, 350 Color.MAGENTA, 351 Color.BLACK, 352 Color.DKGRAY
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | GestureTrailDrawingPoints.java | 20 import android.graphics.Color; 124 return Constants.Color.ALPHA_OPAQUE; in getAlpha() 126 final int decreasingAlpha = Constants.Color.ALPHA_OPAQUE in getAlpha() 129 return Constants.Color.ALPHA_OPAQUE - decreasingAlpha; in getAlpha() 266 paint.setColor(Color.RED); in debugDrawPoints() 270 paint.setColor(Color.GREEN); in debugDrawPoints()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | KeyboardView.java | 23 import android.graphics.Color; 175 paint.setARGB((paint.getAlpha() * alpha) / Constants.Color.ALPHA_OPAQUE, in blendAlpha() 176 Color.red(color), Color.green(color), Color.blue(color)); in blendAlpha() 296 canvas.drawColor(Color.BLACK, PorterDuff.Mode.CLEAR); in onDrawKeyboard() 315 canvas.drawColor(Color.BLACK, PorterDuff.Mode.CLEAR); in onDrawKeyboard() 335 params.mAnimAlpha = Constants.Color.ALPHA_OPAQUE; in onDrawKey() 436 paint.setColor(Color.TRANSPARENT); in onDrawKeyTopVisuals()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | ThemeUtils.java | 22 import android.graphics.Color; 66 return a.getColor(0, Color.RED); in resolveColor() 71 return colorStateList.getColorForState(stateSet, Color.RED); in resolveColor() 73 return Color.RED; in resolveColor()
|
/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/icons/ |
D | ShadowGenerator.java | 26 import android.graphics.Color; 149 setColorAlphaBound(Color.BLACK, keyShadowAlpha)); in drawShadow() 154 setColorAlphaBound(Color.BLACK, ambientShadowAlpha)); in drawShadow() 157 if (Color.alpha(color) < 255) { in drawShadow() 161 p.setColor(Color.BLACK); in drawShadow()
|