OSDN Git Service

Split Ambient Display settings.
authorDoris Ling <dling@google.com>
Wed, 7 Sep 2016 18:10:03 +0000 (11:10 -0700)
committerDoris Ling <dling@google.com>
Fri, 23 Sep 2016 22:33:37 +0000 (15:33 -0700)
commit1ad58d0abf63a2b1675a93f908367b8a2ed56a08
tree2c0da46abc4003cbca12224c29cf546cb65692c7
parenta365d9123c44ac49fa1bbd33853f3dd2db918592
Split Ambient Display settings.

1. Reverting the changes for Display->Ambient Display; this setting
   will control incoming notification pulse.
2. Added 2 separate entries in gestures settings to control pick up
   and double tap gestures-triggered pulsing for Ambient Display.
3. Added automated tests to verify the preference initializes to the
   correct default value, and also verify that toggling the preference
   updates the corresponding settings correctly.

Test: make SettingsTests

Bug: 30595437
Change-Id: I125bf75fc4ccfea126a00ffae4207fcb789f487a
res/raw/gesture_ambient_lift.mp4 [new file with mode: 0644]
res/values/strings.xml
res/xml/display_settings.xml
res/xml/gesture_settings.xml
src/com/android/settings/DisplaySettings.java
src/com/android/settings/gestures/GestureSettings.java
tests/app/Android.mk
tests/app/src/com/android/settings/gesture/GestureSettingsTest.java [new file with mode: 0644]