summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2013-09-11 20:45:25 -0700
committerJeff Brown <jeffbrown@google.com>2013-09-12 14:37:21 -0700
commitec0832133a2115e065eed6e330da95b5c518003b (patch)
treedc8f46262e3ca519ea5af0ff80728cd68e104ff9 /graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
parent6eade79f90b5a592c16a6a5fb0a4b409dc3848e6 (diff)
Allow phone to enter suspend with positive proximity.
As part of the power manager rewrite in JB MR1, we removed the ability for the phone to suspend with positive proximity because it was not clear that the proximity sensor was always correctly registered as a wake-up source. The sensor service itself does not contain any code to manage wake-ups. Therefore proximity sensor based wake-up relies on the sensor driver acquiring a timed wake lock when the sensor reports a negative result. This behavior is not very well defined in the sensor HAL so there is a chance that it will not work reliably on all devices. This change adds a new config.xml resource to specify whether the device should be allowed to suspend when the screen is off due to positive proximity. Devices that support this feature should set the "config_suspendWhenScreenOffDueToProximity" resource to "true" in their resource overlays. The feature is disabled by default. Bug: 9760828 Change-Id: Ic65ab7df0357271b133e2e44f5e35e7756e1e9e0
Diffstat (limited to 'graphics/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions