summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLorenzo M <djmesias@yahoo.es>2014-02-16 13:25:57 +0100
committerfuzz <fuzzzzzzzzzzzzzzzzzz@gmail.com>2014-05-01 21:42:43 +0900
commit0c16e77e4258b97b3ac783a3e69c498f724a1e05 (patch)
tree2716c0c8d78a321b6e9c1338394fb430be90d189
parent01627f7f48e31df4f519fa2d846397b168cf1d00 (diff)
downloadandroid_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
-rw-r--r--src/org/cyanogenmod/hardware/DisplayColorCalibration.java22
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()