summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRicardo Cerqueira <cyanogenmod@cerqueira.org>2013-08-20 21:02:42 +0000
committerGerrit Code Review <gerrit@cyanogenmod.org>2013-08-20 21:02:43 +0000
commitbc5eeedc569436d226526457fc52113e15ad11c9 (patch)
tree9b6b0dae351a74e063150d9bd8799e7a194cbffc /src
parent79a664afd0c65d9cd121dba2d0cc1c4a674c1920 (diff)
parent1a7c6605cfa09c5468e4b8f93329f5b7007ccac0 (diff)
downloadandroid_frameworks_opt_hardware-bc5eeedc569436d226526457fc52113e15ad11c9.tar.gz
android_frameworks_opt_hardware-bc5eeedc569436d226526457fc52113e15ad11c9.tar.bz2
android_frameworks_opt_hardware-bc5eeedc569436d226526457fc52113e15ad11c9.zip
Merge "Hardware: Add AdaptiveBacklight support" into cm-10.2
Diffstat (limited to 'src')
-rw-r--r--src/org/cyanogenmod/hardware/AdaptiveBacklight.java49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/org/cyanogenmod/hardware/AdaptiveBacklight.java b/src/org/cyanogenmod/hardware/AdaptiveBacklight.java
new file mode 100644
index 0000000..fb52566
--- /dev/null
+++ b/src/org/cyanogenmod/hardware/AdaptiveBacklight.java
@@ -0,0 +1,49 @@
+/*
+ * 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;
+
+/**
+ * Adaptive backlight support (this refers to technologies like NVIDIA SmartDimmer,
+ * QCOM CABL or Samsung CABC).
+ */
+public class AdaptiveBacklight {
+
+ /**
+ * Whether device supports an adaptive backlight technology.
+ *
+ * @return boolean Supported devices must return always true
+ */
+ public static boolean isSupported() { return false; }
+
+ /**
+ * This method return the current activation status of the adaptive backlight technology.
+ *
+ * @return boolean Must be false when adaptive backlight 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 adaptive backlight technology status.
+ *
+ * @param status The new adaptive backlight 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; }
+
+}