From cb7a24539bc5c0595ee554f982c2e6233d232b7a Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Thu, 13 Apr 2017 10:10:20 -0700 Subject: Add more doc to ColorSpace.getName() Bug: 37084802 Test: make offline SDK docs Change-Id: Ia2c3406951d615dcee1eafad8035c5c8aea4305b --- graphics/java/android/graphics/ColorSpace.java | 28 ++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/graphics/java/android/graphics/ColorSpace.java b/graphics/java/android/graphics/ColorSpace.java index 4fc63eacc4f1..da3aaf15aae6 100644 --- a/graphics/java/android/graphics/ColorSpace.java +++ b/graphics/java/android/graphics/ColorSpace.java @@ -885,8 +885,32 @@ public abstract class ColorSpace { } /** - * Returns the name of this color space. The name is never null - * and contains always at least 1 character. + *

Returns the name of this color space. The name is never null + * and contains always at least 1 character.

+ * + *

Color space names are recommended to be unique but are not + * guaranteed to be. There is no defined format but the name usually + * falls in one of the following categories:

+ * + * + *

Because the format of color space names is not defined, it is + * not recommended to programmatically identify a color space by its + * name alone. Names can be used as a first approximation.

+ * + *

It is however perfectly acceptable to display color space names to + * users in a UI, or in debuggers and logs. When displaying a color space + * name to the user, it is recommended to add extra information to avoid + * ambiguities: color model, a representation of the color space's gamut, + * white point, etc.

* * @return A non-null String of length >= 1 */ -- cgit v1.2.3-59-g8ed1b