summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Kondik <steve@cyngn.com>2016-07-14 06:35:55 -0700
committerSteve Kondik <steve@cyngn.com>2016-07-17 23:21:30 -0700
commit40bc2f399c75c33cdad191f8fdfd66c5babe9abd (patch)
tree528035dd6bad1d7a960c13a582a0f7bb86b28c71
parent43d2a9a903ca94b79a1919c6c5491810dca71e07 (diff)
downloadandroid_hardware_lineage_lineagehw-40bc2f399c75c33cdad191f8fdfd66c5babe9abd.tar.gz
android_hardware_lineage_lineagehw-40bc2f399c75c33cdad191f8fdfd66c5babe9abd.tar.bz2
android_hardware_lineage_lineagehw-40bc2f399c75c33cdad191f8fdfd66c5babe9abd.zip
cmhw: Add ColorBalance stubs
Change-Id: I093a779600e3262e96f2da8f601449bc4f77e7c0
-rw-r--r--src/org/cyanogenmod/hardware/ColorBalance.java65
1 files changed, 65 insertions, 0 deletions
diff --git a/src/org/cyanogenmod/hardware/ColorBalance.java b/src/org/cyanogenmod/hardware/ColorBalance.java
new file mode 100644
index 0000000..efbcdfd
--- /dev/null
+++ b/src/org/cyanogenmod/hardware/ColorBalance.java
@@ -0,0 +1,65 @@
+/*
+ * Copyright (C) 2016 The CyanogenMod Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.cyanogenmod.hardware;
+
+/**
+ * Color balance support
+ *
+ * Color balance controls allow direct adjustment of display color temperature
+ * using a range of values. A zero implies no adjustment, negative values
+ * move towards warmer temperatures, and positive values move towards
+ * cool temperatures.
+ */
+public class ColorBalance {
+
+ /**
+ * Whether device supports color balance control
+ *
+ * @return boolean Supported devices must return always true
+ */
+ public static boolean isSupported() { return false; }
+
+ /**
+ * This method returns the current color balance value
+ *
+ * @return int Zero when no adjustment is made, negative values move
+ * towards warmer temperatures, positive values move towards cooler temperatures.
+ */
+ public static int getValue() { return 0; }
+
+ /**
+ * This method allows to set the display color balance
+ *
+ * @param value
+ * @return boolean Must be false if feature is not supported or the operation
+ * failed; true in any other case.
+ */
+ public static boolean setValue(int value) { return false; }
+
+ /**
+ * Get the minimum allowed color adjustment value
+ * @return int
+ */
+ public static int getMinValue() { return 0; }
+
+ /**
+ * Get the maximum allowed color adjustment value
+ * @return int
+ */
+ public static int getMaxValue() { return 0; }
+
+}