diff options
author | Steve Kondik <steve@cyngn.com> | 2016-02-27 12:04:03 +0100 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-03-04 12:46:48 -0800 |
commit | 567b43017af6f51d67ee05397df665bf136cb177 (patch) | |
tree | 580bd3c5e1ccc2c4a269392d472db67805ef666a /api | |
parent | 8a259437af84e3bd207d4d608c0391996be6410f (diff) | |
download | vendor_cmsdk-567b43017af6f51d67ee05397df665bf136cb177.zip vendor_cmsdk-567b43017af6f51d67ee05397df665bf136cb177.tar.gz vendor_cmsdk-567b43017af6f51d67ee05397df665bf136cb177.tar.bz2 |
cmsdk: Add cyanogenmod.util to stubs and update API
* ColorUtils was recently added here and it's suitable for general
consumption. Add this to the API.
Change-Id: Iff89d5714092d02070f1c6805e0e8f95debd980d
Diffstat (limited to 'api')
-rw-r--r-- | api/cm_current.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/api/cm_current.txt b/api/cm_current.txt index a121bbb..cced235 100644 --- a/api/cm_current.txt +++ b/api/cm_current.txt @@ -880,3 +880,19 @@ package cyanogenmod.providers { } +package cyanogenmod.util { + + public class ColorUtils { + ctor public ColorUtils(); + method public static double calculateDeltaE(double, double, double, double, double, double); + method public static float[] convertRGBtoLAB(int); + method public static int dropAlpha(int); + method public static int findPerceptuallyNearestColor(int, int[]); + method public static int findPerceptuallyNearestSolidColor(int); + method public static int generateAlertColorFromDrawable(android.graphics.drawable.Drawable); + method public static com.android.internal.util.cm.palette.Palette.Swatch getDominantSwatch(com.android.internal.util.cm.palette.Palette); + method public static float[] temperatureToRGB(int); + } + +} + |