summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Keith <javelinanddart@gmail.com>2019-01-18 16:11:54 +0100
committerPaul Keith <javelinanddart@gmail.com>2019-01-18 17:30:48 +0100
commitf703684d7c6efe33f683227db173aed961b99371 (patch)
tree9883fd619b8ecc5cf72c7f52900a601244142867 /src
parent0d0800d5bbf9ccadd9d027932df8c0ebaf248bbd (diff)
downloadandroid_hardware_lineage_lineagehw-f703684d7c6efe33f683227db173aed961b99371.tar.gz
android_hardware_lineage_lineagehw-f703684d7c6efe33f683227db173aed961b99371.tar.bz2
android_hardware_lineage_lineagehw-f703684d7c6efe33f683227db173aed961b99371.zip
lineagehw: Deprecate some features
* DISPLAY_GAMMA_CALIBRATION * LONG_TERM_ORBITS * SERIAL_NUMBER Change-Id: Ieb36eed277861219d05db94e642bd04189b6243b
Diffstat (limited to 'src')
-rw-r--r--src/org/lineageos/hardware/DisplayGammaCalibration.java93
-rw-r--r--src/org/lineageos/hardware/LongTermOrbits.java57
-rw-r--r--src/org/lineageos/hardware/SerialNumber.java38
3 files changed, 0 insertions, 188 deletions
diff --git a/src/org/lineageos/hardware/DisplayGammaCalibration.java b/src/org/lineageos/hardware/DisplayGammaCalibration.java
deleted file mode 100644
index e99335e..0000000
--- a/src/org/lineageos/hardware/DisplayGammaCalibration.java
+++ /dev/null
@@ -1,93 +0,0 @@
-/*
- * 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.lineageos.hardware;
-
-/*
- * Display gamma calibration
- *
- * Exports methods to get the valid value boundaries, the
- * number of available RGB triplets, the current color values (per triplet id)
- * and a method to set new ones (also per triplet).
- *
- * Values exported by min/max can be the direct values required
- * by the hardware, or a local (to DisplayGammaCalibration) abstraction
- * that's internally converted to something else prior to actual use. The
- * Settings user interface will present the raw values
- *
- *
- */
-
-public class DisplayGammaCalibration {
-
- /*
- * All HAF classes should export this boolean.
- * Real implementations must, of course, return true
- */
-
- public static boolean isSupported() { return false; }
-
- /*
- * How many RGB triplets does the device export?
- *
- * The most common case here should be 1, but some hardware
- * has multiplier combos
- */
-
- public static int getNumberOfControls() {
- return 0;
- }
-
- /*
- * Set the RGB values to the given input triplet on this control
- * index. Input is expected to consist of a zero-indexed control
- * id, and a string containing 3 values, space-separated, each of
- * those a value between the boundaries set by get(Max|Min)Value
- * (see below), and it's meant to be locally interpreted/used.
- */
-
- public static boolean setGamma(int controlIdx, String gamma) {
- throw new UnsupportedOperationException();
- }
-
- /*
- * What's the control specific maximum integer value
- * we take for a color
- */
-
- public static int getMaxValue(int controlIdx) {
- return -1;
- }
-
- /*
- * What's the control specific minimum integer value
- * we take for a color
- */
-
- public static int getMinValue(int controlIdx) {
- return -1;
- }
-
- /*
- * What's the current RGB triplet for this control?
- * This should return a space-separated set of integers in
- * a string, same format as the input to setColors()
- */
-
- public static String getCurGamma(int controlIdx) {
- return "0 0 0";
- }
-}
diff --git a/src/org/lineageos/hardware/LongTermOrbits.java b/src/org/lineageos/hardware/LongTermOrbits.java
deleted file mode 100644
index 7d8d416..0000000
--- a/src/org/lineageos/hardware/LongTermOrbits.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * 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.lineageos.hardware;
-
-import java.io.File;
-
-/**
- * Long Term Orbits (LTO) support.
- */
-public class LongTermOrbits {
-
- /**
- * Whether device supports the LTO technology.
- *
- * @return boolean Supported devices must return always true.
- */
- public static boolean isSupported() { return false; }
-
- /**
- * Returns the source location of the LTO data.
- *
- * @return String The LTO source location.
- */
- public static String getSourceLocation() { return null; }
-
- /**
- * Returns the source location of the LTO data.
- *
- * @return File The LTO source location.
- */
- public static File getDestinationLocation() { return null; }
-
- /**
- * Returns the interval in milliseconds to trigger the LTO data download.<br/>
- * <br/>
- * As convenience, implementations should set the download interval to the half of the
- * validity of the downloaded data.
- *
- * @return long The download interval in milliseconds
- */
- public static long getDownloadInterval() { return 0; }
-
-}
diff --git a/src/org/lineageos/hardware/SerialNumber.java b/src/org/lineageos/hardware/SerialNumber.java
deleted file mode 100644
index 177bf66..0000000
--- a/src/org/lineageos/hardware/SerialNumber.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright (C) 2014 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.lineageos.hardware;
-
-/**
- * Support for displaying a different serial number in Settings -> About Phone
- * than ro.serialno, which may be different than the actual serial number
- * sticker on the hardware.
- */
-public class SerialNumber {
-
- /**
- * Whether device requires an alternative serial number.
- *
- * @return boolean Supported devices must return always true
- */
- public static boolean isSupported() { return false; }
-
- /**
- * Returns the alternative serial number to be displayed.
- */
- public static String getSerialNumber() { return null; }
-
-}