summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJoe LaPenna <jlapenna@google.com>2015-08-27 15:12:11 -0700
committerJoe LaPenna <jlapenna@google.com>2015-09-02 11:37:48 -0700
commit23d681bb90a4c70d47da895c883b1fdc0854d49a (patch)
tree153026285b38054f7afa8675cb897fd35d7a7a9c /core
parent38ae119688f94d68c42d8d29958038e37bb74915 (diff)
downloadframeworks_base-23d681bb90a4c70d47da895c883b1fdc0854d49a.zip
frameworks_base-23d681bb90a4c70d47da895c883b1fdc0854d49a.tar.gz
frameworks_base-23d681bb90a4c70d47da895c883b1fdc0854d49a.tar.bz2
Device Idle: Android wear support
- Provide config param: autoPowerModeThresholdAngle allowing us to adjust the tilt threshold on a per-device basis. - Provide config param: autoPowerModePrefetchLocation allowing us to skip location prefectching on a per-device basis. - Provide config param: autoPowerModeAnyMotionSensor allowing us to use a device-specific sensor on to detect additional types of movement that would trigger exiting device idle. - PRovide config param: autoPowerModePreferWristTilt allows us to use the wrist tilt detector in lieu of the SMD if an anymotion sensor isn't specified. - Allow DeviceIdleController to use wrist tilt sensors if the device provides one. - Use wrist tilt or SMD when an "any motion" sensor isn't available. - Fix bugs where DeviceIdleController would crash on devices that did not have a location and/or gps provider (some android wear devices). BUG: 22661021 Change-Id: Ib9f7cdf8f16483ba8f466b7b5c97bdf0494ba228
Diffstat (limited to 'core')
-rwxr-xr-xcore/res/res/values/config.xml15
-rwxr-xr-xcore/res/res/values/symbols.xml4
2 files changed, 19 insertions, 0 deletions
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
index 694d263..77d79ad 100755
--- a/core/res/res/values/config.xml
+++ b/core/res/res/values/config.xml
@@ -166,6 +166,21 @@
so that applications can still use their own mechanisms. -->
<bool name="config_enableAutoPowerModes">false</bool>
+ <!-- The threshold angle for any motion detection in auto-power save modes.
+ In hundreths of a degree. -->
+ <integer name="config_autoPowerModeThresholdAngle">200</integer>
+
+ <!-- The sensor id of an "any motion" sensor used in auto-power save modes.
+ 0 indicates this sensor is not available. -->
+ <integer name="config_autoPowerModeAnyMotionSensor">0</integer>
+
+ <!-- If an any motion sensor is not available, prefer the wrist tilt detector over the
+ SMD. -->
+ <bool name="config_autoPowerModePreferWristTilt">false</bool>
+
+ <!-- If a location should be pre-fetched when going into device idle. -->
+ <bool name="config_autoPowerModePrefetchLocation">true</bool>
+
<!-- The duration (in milliseconds) that the radio will scan for a signal
when there's no network connection. If the scan doesn't timeout, use zero -->
<integer name="config_radioScanningTimeout">0</integer>
diff --git a/core/res/res/values/symbols.xml b/core/res/res/values/symbols.xml
index 4e94a64..35443fe 100755
--- a/core/res/res/values/symbols.xml
+++ b/core/res/res/values/symbols.xml
@@ -253,6 +253,10 @@
<java-symbol type="bool" name="config_cellBroadcastAppLinks" />
<java-symbol type="bool" name="config_duplicate_port_omadm_wappush" />
<java-symbol type="bool" name="config_enableAutoPowerModes" />
+ <java-symbol type="integer" name="config_autoPowerModeThresholdAngle" />
+ <java-symbol type="integer" name="config_autoPowerModeAnyMotionSensor" />
+ <java-symbol type="bool" name="config_autoPowerModePreferWristTilt" />
+ <java-symbol type="bool" name="config_autoPowerModePrefetchLocation" />
<java-symbol type="bool" name="config_enable_emergency_call_while_sim_locked" />
<java-symbol type="bool" name="config_enable_puk_unlock_screen" />
<java-symbol type="bool" name="config_enableBurnInProtection" />