aboutsummaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorJoey <joey@lineageos.org>2018-01-19 20:58:23 +0100
committerJoey <joey@lineageos.org>2018-02-11 20:22:13 +0100
commit6b4410555a8452ca877d4dadcf073dafcf753a33 (patch)
tree9657d5277d918ac6ec91680e955758d11a8a80c7 /api
parent157a7c1cde03fe13ee0446404406e3651969c479 (diff)
downloadlineage-sdk-6b4410555a8452ca877d4dadcf073dafcf753a33.tar.gz
lineage-sdk-6b4410555a8452ca877d4dadcf073dafcf753a33.tar.bz2
lineage-sdk-6b4410555a8452ca877d4dadcf073dafcf753a33.zip
sdk: livedisplay: add a method to determine whether night mode is enabled
LiveDisplayManager.getMode() returns MODE_AUTO when night mode is enabled automatically, so there's no way to determine if night is on when livedisplay changes automatically Change-Id: Ia47fc127232c2bb3b6634b55712060a919f8c9c1 Signed-off-by: Joey <joey@lineageos.org>
Diffstat (limited to 'api')
-rw-r--r--api/lineage_current.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/lineage_current.txt b/api/lineage_current.txt
index 41aa62fb..35620dbe 100644
--- a/api/lineage_current.txt
+++ b/api/lineage_current.txt
@@ -279,6 +279,7 @@ package lineageos.hardware {
method public boolean setMode(int);
method public boolean setNightColorTemperature(int);
method public boolean setPictureAdjustment(lineageos.hardware.HSIC);
+ method public boolean isNightModeEnabled();
field public static final int ADJUSTMENT_CONTRAST = 3; // 0x3
field public static final int ADJUSTMENT_HUE = 0; // 0x0
field public static final int ADJUSTMENT_INTENSITY = 2; // 0x2