summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorM1cha <sigmaepsilon92@gmail.com>2014-02-09 17:10:44 +0100
committerM1cha <sigmaepsilon92@gmail.com>2014-02-09 17:10:44 +0100
commitef4e3048e3b705e845c3824143e00f35ec46ba99 (patch)
tree479cac43a8ccbcd3c8ca62ee84777bd7d0b73437
parentb240ab8e7c1918202c8c98118aab2d34b0be6461 (diff)
downloadandroid_hardware_lineage_lineagehw-ef4e3048e3b705e845c3824143e00f35ec46ba99.tar.gz
android_hardware_lineage_lineagehw-ef4e3048e3b705e845c3824143e00f35ec46ba99.tar.bz2
android_hardware_lineage_lineagehw-ef4e3048e3b705e845c3824143e00f35ec46ba99.zip
Hardware: add ColorEnhancement support
Change-Id: I32e52c0e11dff2ce9d30d17e028190637ad2b1ff
-rw-r--r--src/org/cyanogenmod/hardware/ColorEnhancement.java48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/org/cyanogenmod/hardware/ColorEnhancement.java b/src/org/cyanogenmod/hardware/ColorEnhancement.java
new file mode 100644
index 0000000..8d8ff5e
--- /dev/null
+++ b/src/org/cyanogenmod/hardware/ColorEnhancement.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright (C) 2013 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 enhancement support
+ */
+public class ColorEnhancement {
+
+ /**
+ * Whether device supports an color enhancement technology.
+ *
+ * @return boolean Supported devices must return always true
+ */
+ public static boolean isSupported() { return false; }
+
+ /**
+ * This method return the current activation status of the color enhancement technology.
+ *
+ * @return boolean Must be false when color enhancement is not supported or not activated, or
+ * the operation failed while reading the status; true in any other case.
+ */
+ public static boolean isEnabled() { return false; }
+
+ /**
+ * This method allows to setup color enhancement technology status.
+ *
+ * @param status The new color enhancement status
+ * @return boolean Must be false if adaptive backlight is not supported or the operation
+ * failed; true in any other case.
+ */
+ public static boolean setEnabled(boolean status) { return false; }
+
+}