diff options
| author | Lorenzo M <djmesias@yahoo.es> | 2014-02-16 13:25:57 +0100 |
|---|---|---|
| committer | fuzz <fuzzzzzzzzzzzzzzzzzz@gmail.com> | 2014-05-01 21:42:43 +0900 |
| commit | 0c16e77e4258b97b3ac783a3e69c498f724a1e05 (patch) | |
| tree | 2716c0c8d78a321b6e9c1338394fb430be90d189 /src | |
| parent | 01627f7f48e31df4f519fa2d846397b168cf1d00 (diff) | |
| download | android_hardware_lineage_lineagehw-0c16e77e4258b97b3ac783a3e69c498f724a1e05.tar.gz android_hardware_lineage_lineagehw-0c16e77e4258b97b3ac783a3e69c498f724a1e05.tar.bz2 android_hardware_lineage_lineagehw-0c16e77e4258b97b3ac783a3e69c498f724a1e05.zip | |
Add default value for display color control (1/2)
Change-Id: Ib7f1256722b8ccc1259d6b47f840ea718a14070b
Diffstat (limited to 'src')
| -rw-r--r-- | src/org/cyanogenmod/hardware/DisplayColorCalibration.java | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/src/org/cyanogenmod/hardware/DisplayColorCalibration.java b/src/org/cyanogenmod/hardware/DisplayColorCalibration.java index 3a6f39b..acb98a4 100644 --- a/src/org/cyanogenmod/hardware/DisplayColorCalibration.java +++ b/src/org/cyanogenmod/hardware/DisplayColorCalibration.java @@ -23,7 +23,7 @@ package org.cyanogenmod.hardware; * current color values, and a method to set new ones. * * Values exported by min/max can be the direct values required - * by the hardware, or a local (to DisplayColorCalibration) abstraction + * by the hardware, or a local (to DisplayColorCalibration) abstraction * that's internally converted to something else prior to actual use. The * Settings user interface will normalize these into a 0-100 (percentage) * scale before showing them to the user, but all values passed to/from @@ -32,9 +32,9 @@ package org.cyanogenmod.hardware; public class DisplayColorCalibration { - /* - * All HAF classes should export this boolean. - * Real implementations must, of course, return true + /* + * All HAF classes should export this boolean. + * Real implementations must, of course, return true */ public static boolean isSupported() { return false; } @@ -50,7 +50,7 @@ public class DisplayColorCalibration { throw new UnsupportedOperationException(); } - /* + /* * What's the maximum integer value we take for a color */ @@ -58,7 +58,7 @@ public class DisplayColorCalibration { return -1; } - /* + /* * What's the minimum integer value we take for a color */ @@ -66,7 +66,15 @@ public class DisplayColorCalibration { return -1; } - /* + /* + * What's the default integer value we take for a color + */ + + public static int getDefValue() { + return -1; + } + + /* * What's the current RGB triplet? * This should return a space-separated set of integers in * a string, same format as the input to setColors() |
