From 319a34ae87def49d503c19b24d3e00a8f7442809 Mon Sep 17 00:00:00 2001 From: Tyler Freeman Date: Thu, 4 May 2017 17:23:35 -0700 Subject: Vibrator: Allow priority vibrations in low-power mode for accessibility. This is mainly for Wear devices that don't have speakers. Bug: 37543478 Test: Manual: 1. Activate low power mode `adb shell dumpsys battery unplug && adb shell settings put global low_power 1` 2. Then see if Alarm/Timer will vibrate. 3. Send a Hangout Test notification, make sure it does NOT vibrate. On phones there should be no change. Alarms will not vibrate. Change-Id: Ia6dffa7e528886e7c84390dbb33b44f298c7afa4 --- core/res/res/values/config.xml | 4 ++++ core/res/res/values/symbols.xml | 1 + .../java/com/android/server/VibratorService.java | 26 +++++++++++++++++++++- 3 files changed, 30 insertions(+), 1 deletion(-) diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index 8e6c40294e2c..6710f43285f9 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -2531,6 +2531,10 @@ 255 + + false +