OSDN Git Service

Update Color API
authorRomain Guy <romainguy@google.com>
Wed, 22 Mar 2017 18:08:37 +0000 (11:08 -0700)
committerRomain Guy <romainguy@google.com>
Sat, 25 Mar 2017 23:51:38 +0000 (23:51 +0000)
commit48f38f18385e8aed0df48524d8ea3d20eba9199f
treebd7a28d26ef52af3b4cd3e0e7c22558e65932d44
parentb1669bf22bb8d1fc72633c713e7c6236e55c19d8
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
api/current.txt
api/system-current.txt
api/test-current.txt
graphics/java/android/graphics/Color.java