aboutsummaryrefslogtreecommitdiff
path: root/doze/res/xml
diff options
context:
space:
mode:
authorAltaf-Mahdi <altaf.mahdi@gmail.com>2016-04-24 23:01:57 +0100
committerDavide Garberi <dade.garberi@gmail.com>2017-12-04 09:01:03 +0100
commit2c64eacd1e9e119f7c8f37fd0fd25c287f3985f2 (patch)
tree29fe4cbbdacd1ce4ebe63c390f81e20d6f0c722e /doze/res/xml
parent62ffd3f42de27f07bd45ef350c873b4d91332ace (diff)
msm8996-common: doze improvements
* restructure the app * add a tilt sensor from hammerhead-caf with an option to enable/disable * add a one time dialog on first start to help users understand how the app works * remove proximity wake up option and add an option to enable the sensors as soon as the screen turns off * adjust and add new doze configs * squashed translations Change-Id: Ia9d9a807d6c4f1a80a2ba8780e7486560f9a1d87 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
Diffstat (limited to 'doze/res/xml')
-rw-r--r--doze/res/xml/doze_settings.xml72
-rw-r--r--doze/res/xml/gesture_panel.xml53
2 files changed, 72 insertions, 53 deletions
diff --git a/doze/res/xml/doze_settings.xml b/doze/res/xml/doze_settings.xml
new file mode 100644
index 0000000..09e27b5
--- /dev/null
+++ b/doze/res/xml/doze_settings.xml
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ 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.
+-->
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <SwitchPreference
+ android:key="ambient_display"
+ android:defaultValue="true"
+ android:title="@string/ambient_display_title"
+ android:summary="@string/ambient_display_summary" />
+
+ <PreferenceCategory
+ android:key="tilt_sensor"
+ android:title="@string/tilt_sensor_title" >
+
+ <SwitchPreference
+ android:key="pick_up"
+ android:defaultValue="false"
+ android:title="@string/pick_up_title"
+ android:summary="@string/pick_up_summary"
+ android:dependency="ambient_display" />
+
+ <SwitchPreference
+ android:key="tilt_always"
+ android:defaultValue="false"
+ android:title="@string/always_enabled_title"
+ android:summary="@string/always_enabled_summary"
+ android:dependency="ambient_display" />
+
+ </PreferenceCategory>
+
+ <PreferenceCategory
+ android:key="priximity_sensor"
+ android:title="@string/priximity_sensor_title" >
+
+ <SwitchPreference
+ android:key="gesture_hand_wave"
+ android:defaultValue="false"
+ android:title="@string/hand_wave_gesture_title"
+ android:summary="@string/hand_wave_gesture_summary"
+ android:dependency="ambient_display" />
+
+ <SwitchPreference
+ android:key="gesture_pocket"
+ android:defaultValue="false"
+ android:title="@string/pocket_gesture_title"
+ android:summary="@string/pocket_gesture_summary"
+ android:dependency="ambient_display" />
+
+ <SwitchPreference
+ android:key="proximity_always"
+ android:defaultValue="false"
+ android:title="@string/always_enabled_title"
+ android:summary="@string/always_enabled_summary"
+ android:dependency="ambient_display" />
+
+ </PreferenceCategory>
+
+</PreferenceScreen>
diff --git a/doze/res/xml/gesture_panel.xml b/doze/res/xml/gesture_panel.xml
deleted file mode 100644
index 40a017c..0000000
--- a/doze/res/xml/gesture_panel.xml
+++ /dev/null
@@ -1,53 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- 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.
--->
-<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
-
- <PreferenceCategory
- android:key="ambient_display_key"
- android:title="@string/ambient_display_title" >
-
- <SwitchPreference
- android:key="ambient_display_enable"
- android:defaultValue="true"
- android:title="@string/ambient_display_enable_title"
- android:summary="@string/ambient_display_enable_summary" />
-
- <SwitchPreference
- android:key="gesture_hand_wave"
- android:defaultValue="false"
- android:title="@string/hand_wave_gesture_title"
- android:summary="@string/hand_wave_gesture_summary" />
-
- <SwitchPreference
- android:key="gesture_pocket"
- android:defaultValue="false"
- android:title="@string/pocket_gesture_title"
- android:summary="@string/pocket_gesture_summary" />
- </PreferenceCategory>
-
- <PreferenceCategory
- android:key="proximity_wake_key"
- android:title="@string/proximity_wake_title" >
-
- <SwitchPreference
- android:key="proximity_wake_enable"
- android:defaultValue="false"
- android:title="@string/proximity_wake_enable_title"
- android:summary="@string/proximity_wake_enable_summary" />
- </PreferenceCategory>
-
-</PreferenceScreen> \ No newline at end of file