History log of /frameworks/base/graphics/java/android/graphics/Color.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
d4012d6505c8b5368ee4607d54fb98d0a96ec136 01-Sep-2017 Romain Guy <romainguy@google.com> Fix documentation typo

Test: compiles
Bug: 65213121
Change-Id: I5bfc7074a42ec0ef5cd624b0bb72234e072684d3
/frameworks/base/graphics/java/android/graphics/Color.java
910e081216ac530432ac9d0aab10d5e5e4c73ab8 22-Apr-2017 Jeff Sharkey <jsharkey@android.com> More auto-doc work.

Add support for AnyThread, CallSuper, and UiThread.

Another related CL started documenting @RequiresPermission, so remove
duplicated information in existing APIs.

Suppress auto-doc on a handful of classes that are already
well-documented.

Test: make -j32 offline-sdk-docs
Bug: 37526420
Change-Id: I791437dccec0f11d5349a23b982ba098cb551af8
/frameworks/base/graphics/java/android/graphics/Color.java
26ca96ecb82cdbc058a39cebbfb16b402bf0fe03 14-Apr-2017 Romain Guy <romainguy@google.com> Fix API feedback on Color

Bug: 37323188
Test: Color_ColorLongTest and ColorSpaceTest in CtsGraphicsTestCases
Change-Id: I1e52d3f63f95b9bdb4410938b727a87c45429aac
/frameworks/base/graphics/java/android/graphics/Color.java
bae8b52c71766ea1a6e59382f8b76e2013f358f9 03-Apr-2017 Romain Guy <romainguy@google.com> Make Color non-final because apps break...

Bug: 36858735
Test: Manual run of crashing app
Change-Id: I3eb06260074ee6950bc91731e7093a26d7e32b49
/frameworks/base/graphics/java/android/graphics/Color.java
026a558ab0d9e710f385ea658687f385312b970e 22-Mar-2017 Romain Guy <romainguy@google.com> Update Color API

Make the class final because its instances are immutable and
it contained only static methods prior to O. Fix a couple of
typos/issues reported by external developers. Add a new variant
of getComponents() to avoid allocations, as requested by
external dev.

Test: Color_ColorLongTest
Bug: 32984164
Change-Id: I3c22e124c9fdf66142d530afa4beb05fe0669359
(cherry picked from commit 48f38f18385e8aed0df48524d8ea3d20eba9199f)
/frameworks/base/graphics/java/android/graphics/Color.java
95b52fd187564cabceb3309daa4ee6ddf697de58 25-Feb-2017 Romain Guy <romainguy@google.com> Make Half look like and behave like a boxed instance

Bug: 35765416
Test: HalfTest
Change-Id: I7ef52428f8b4e2c05b91d7eb37cc4cb5ecc5c6b9
/frameworks/base/graphics/java/android/graphics/Color.java
77b161e0b14372e3eb124ed19321a9639aeb4271 10-Jan-2017 Romain Guy <romainguy@google.com> Color API to create/store wide-gamut colors in a long

This change also includes the ability to create instances of
the Color class to represent more complex colors (any number
of components, etc.).

Test: CtsGraphicsTestCase
Bug: 32984164

Change-Id: I59399547c4aa2580901c93dd16e626fe07f8f23a
/frameworks/base/graphics/java/android/graphics/Color.java
68bd5fdd1ad3cf0b74c225b31adf1f68393bfbb6 15-Nov-2016 Romain Guy <romainguy@google.com> Introduce android.graphics.ColorSpace

This class can be used to define color spaces. A color space has a color model
and a profile connection space (CIE XYZ D50). This implementation can be used
to query various properties of RGB color spaces or perform conversions between
various color spaces (RGB, XYZ and Lab).

Refer to the documentation for more details.

Test: cts-tradefed run singleCommand cts-dev --module CtsGraphicsTestCases --test android.graphics.cts.ColorSpaceTest
Bug: 32984164
Change-Id: Ie2117c1212c1375a7d403d3c1afaf73d7c2e0b47
/frameworks/base/graphics/java/android/graphics/Color.java
dc12e1531ff9c4f9cc77289cbc7a0cd838ffcb8b 14-Aug-2015 Alan Viverette <alanv@google.com> Merge "Remove framework-private HSV APIs, replace with luminance"
81590a48a4bb0b6700e5535c5bce720ddfc76fa2 12-Aug-2015 Alan Viverette <alanv@google.com> Remove framework-private HSV APIs, replace with luminance

Luminance is the measure used by W3C to compute contrast ratios, so
we should be preferring that for "brightness" comparisons.

Bug: 22815971
Change-Id: I84a971d3cc6b12acebe8e455c0c0440c1c8bce06
/frameworks/base/graphics/java/android/graphics/Color.java
58204be5e66b8e687ea7dfda60279fd1a959d0e2 12-Aug-2015 Alan Viverette <alanv@google.com> Remove incorrect ColorInt annotations

These methods return [0,255], not a packed color.

Change-Id: I5bad2948a6bc7188d9521098fc030c8905714c48
/frameworks/base/graphics/java/android/graphics/Color.java
7873b6da5afada5d962b233feb6cc613b526ffb1 12-Aug-2015 Alan Viverette <alanv@google.com> Remove framework-private Color.HSBtoColor API

Bug: 22815971
Change-Id: Ic4cb43e78e0a7a6fc234865759754d106cef11dc
/frameworks/base/graphics/java/android/graphics/Color.java
b3ec733bb830f2d4425825d93f9ed95f284e9145 04-Mar-2015 Tor Norbye <tnorbye@google.com> Annotate methods with size and range annotations

Change-Id: I666861f0dfae31402b1280e9a966a583b88e2e1a
/frameworks/base/graphics/java/android/graphics/Color.java
80756e38882720860db52f1fcc21fa1505a02abf 02-Mar-2015 Tor Norbye <tnorbye@google.com> Annotate ARGB integer parameters with @ColorInt

Change-Id: I307f72a382272cf18ddb6b07d9fcb81228568d9a
/frameworks/base/graphics/java/android/graphics/Color.java
fd9bc7bb36c68a104c739e378086ac82ace29c4b 21-Feb-2015 Elliott Hughes <enh@google.com> Fix 'fuchsia' typo.

Bug: https://code.google.com/p/android/issues/detail?id=152142
Change-Id: Ib45f2d19d52fe9d95d560d37296d50cba190cb83
/frameworks/base/graphics/java/android/graphics/Color.java
f2ce9f994a0dba5e3d97b5d4ae97eddb0008b7b5 05-Aug-2013 Elliott Hughes <enh@google.com> am eab8e18d: am 8a736129: Merge "If graphics wants ASCII lowercasing, it needs to ask for it."

* commit 'eab8e18d8f6f34a9d35fbb120148956789ad48a2':
If graphics wants ASCII lowercasing, it needs to ask for it.
aeb60fb86fc572500239c6f6684d1eb71e3ae35b 02-Aug-2013 Elliott Hughes <enh@google.com> If graphics wants ASCII lowercasing, it needs to ask for it.

http://elliotth.blogspot.com/2012/01/beware-convenience-methods.html

Bug: https://code.google.com/p/android/issues/detail?id=58359
Change-Id: I13c106985302335dbb15bb9176d35ec6b4546d4e
/frameworks/base/graphics/java/android/graphics/Color.java
86d3e03d381bff8c107e3def31cf37f4851f827c 01-Aug-2013 Romain Guy <romainguy@google.com> Add missing alpha channel to built-in colors

Change-Id: I911c17b623513b2715668d0f91604b28c32a969a
/frameworks/base/graphics/java/android/graphics/Color.java
a8f6d5f0720f400b6f59b0809aaefea83c5f51d4 27-Nov-2012 Romain Guy <romainguy@google.com> Add support for face attribute to HTML string resources
Bug #7480719

This change also adds the alias "color" for the attribute "fgcolor".
This change also unifies HTML colors parsing between the Html class
and StringBlock for consistency.

Change-Id: I696a6e080387901d88e9baf7cb989b892f14b9db
/frameworks/base/graphics/java/android/graphics/Color.java
5f3445dc609fb3dd64b023c1ba9c1ee3ba95b868 28-Mar-2010 David Hoover <karma@deadmoose.com> Fix typos in comment.

Change-Id: Ia2a9ea0802bcc5773bb4fd52d7e07f9492242bfd
/frameworks/base/graphics/java/android/graphics/Color.java
a32d100b34d048cf0c765d8f31d87b81ab88d1eb 01-Aug-2009 Romain Guy <romainguy@android.com> Add new utility methods to rsScriptC_Lib, android.util.MathUtil and android.graphics.Color.
Fixes RS compilation.
/frameworks/base/graphics/java/android/graphics/Color.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/graphics/java/android/graphics/Color.java
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/graphics/java/android/graphics/Color.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/frameworks/base/graphics/java/android/graphics/Color.java