aboutsummaryrefslogtreecommitdiff
path: root/doze/res
diff options
context:
space:
mode:
authorBruno Martins <bgcngm@gmail.com>2019-01-01 12:39:38 +0000
committerDavide Garberi <dade.garberi@gmail.com>2019-02-06 13:56:16 +0100
commitebd1b296486cd39491727d771a59b0516fe2d13f (patch)
tree2d240831453c664fdd580528b1065a9e3785e0b0 /doze/res
parentde3f782c0b1fe2a6b85cb848d435ebb126697ca4 (diff)
msm8996-common: doze: Add AOD support to Ambient Display
* This makes the always on display mode feature visible for those devices that explicitly set it as available via AOSP overlay. Should only be enabled on devices where the display has been tuned to be power efficient in DOZE and/or DOZE_SUSPEND states. Change-Id: If543936f9421dd7a6c0be594f7cb76afb227e34b Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
Diffstat (limited to 'doze/res')
-rw-r--r--doze/res/xml/doze_settings.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/doze/res/xml/doze_settings.xml b/doze/res/xml/doze_settings.xml
index 005c6ae..f213a97 100644
--- a/doze/res/xml/doze_settings.xml
+++ b/doze/res/xml/doze_settings.xml
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The CyanogenMod Project
+ 2018-2019 The LineageOS Project
Licensed under the Apache License, Version 2.0 (the "License"
you may not use this file except in compliance with the License.
@@ -16,6 +17,13 @@
-->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
+ <SwitchPreference
+ android:key="always_on_display"
+ android:defaultValue="false"
+ android:disableDependentsState="true"
+ android:title="@string/ambient_display_always_on_title"
+ android:summary="@string/ambient_display_always_on_summary" />
+
<PreferenceCategory
android:key="tilt_sensor"
android:title="@string/tilt_sensor_title">