diff options
| author | Steve Kondik <steve@cyngn.com> | 2015-07-15 11:16:44 -0700 |
|---|---|---|
| committer | Steve Kondik <steve@cyngn.com> | 2015-07-15 11:16:44 -0700 |
| commit | 0a583f1738d2fa21ba4019fdc4425d4ea16d5486 (patch) | |
| tree | 609e388eacc2bbbdd4d63c05cad85e8e640b3429 | |
| parent | 7ebe1cc3d24c2384a5e398eaf4f8be3593672823 (diff) | |
| download | android_hardware_lineage_lineagehw-0a583f1738d2fa21ba4019fdc4425d4ea16d5486.tar.gz android_hardware_lineage_lineagehw-0a583f1738d2fa21ba4019fdc4425d4ea16d5486.tar.bz2 android_hardware_lineage_lineagehw-0a583f1738d2fa21ba4019fdc4425d4ea16d5486.zip | |
cmhw: Add auto contrast support
* LiveDisplay will use this soon.
Change-Id: I2fe48edc648726607e7f1b9831c57582d4f42b11
| -rw-r--r-- | src/org/cyanogenmod/hardware/AutoContrast.java | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/org/cyanogenmod/hardware/AutoContrast.java b/src/org/cyanogenmod/hardware/AutoContrast.java new file mode 100644 index 0000000..48330c5 --- /dev/null +++ b/src/org/cyanogenmod/hardware/AutoContrast.java @@ -0,0 +1,48 @@ +/* + * Copyright (C) 2015 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; + +/** + * Auto contrast optimization support + */ +public class AutoContrast { + + /** + * Whether device supports auto contrast optimization. + * + * @return boolean Supported devices must return always true + */ + public static boolean isSupported() { return false; } + + /** + * This method return the current activation status of the auto contrast optimization. + * + * @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 auto contrast optimization. + * + * @param status The new auto contrast status + * @return boolean Must be false if auto contrast is not supported or the operation + * failed; true in any other case. + */ + public static boolean setEnabled(boolean status) { return false; } + +} |
