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
This commit is contained in:
Doris Ling
2016-09-07 11:10:03 -07:00
parent a365d9123c
commit 1ad58d0abf
8 changed files with 265 additions and 60 deletions

View File

@@ -2229,7 +2229,7 @@
<!-- [CHAR LIMIT=30] Display settings screen, setting option name to change whether the ambient display feature is enabled. -->
<string name="doze_title">Ambient display</string>
<!-- [CHAR LIMIT=NONE] Display settings screen, setting description for the ambient display feature. -->
<string name="doze_summary">Wake screen when you double-tap it or get new notifications. See how</string>
<string name="doze_summary">Wake screen when you receive notifications</string>
<!-- [CHAR LIMIT=30] Sound & display settings screen, setting option name to change font size -->
<string name="title_font_size">Font size</string>
<!-- Summary for Font size. Lets the user know that this will make text larger or smaller. Appears in the accessibility portion of setup wizard. [CHAR LIMIT=NONE] -->
@@ -7762,11 +7762,25 @@
<!-- Summary text for double twist for camera mode [CHAR LIMIT=160]-->
<string name="double_twist_for_camera_mode_summary"></string>
<!-- Title text for ambient display [CHAR LIMIT=60]-->
<string name="ambient_display_title">Quick screen check</string>
<!-- Title text for ambient display double tap [CHAR LIMIT=60]-->
<string name="ambient_display_title">Quick screen check - Double Tap</string>
<!-- Summary text for ambient display [CHAR LIMIT=160]-->
<string name="ambient_display_summary">To check your phone without waking it up fully, double-tap it or pick it up</string>
<!-- Summary text for ambient display double tap (phone) [CHAR LIMIT=160]-->
<string name="ambient_display_summary" product="default">To check your phone without waking it up fully, double-tap it</string>
<!-- Summary text for ambient display double tap (tablet) [CHAR LIMIT=160]-->
<string name="ambient_display_summary" product="tablet">To check your tablet without waking it up fully, double-tap it</string>
<!-- Summary text for ambient display double tap (device) [CHAR LIMIT=160]-->
<string name="ambient_display_summary" product="device">To check your device without waking it up fully, double-tap it</string>
<!-- Title text for ambient display pick up [CHAR LIMIT=60]-->
<string name="ambient_display_pickup_title">Quick screen check - Pickup notifications</string>
<!-- Summary text for ambient display (phone) [CHAR LIMIT=160]-->
<string name="ambient_display_pickup_summary" product="default">To check your phone without waking it up fully, pick it up</string>
<!-- Summary text for ambient display (tablet) [CHAR LIMIT=160]-->
<string name="ambient_display_pickup_summary" product="tablet">To check your tablet without waking it up fully, pick it up</string>
<!-- Summary text for ambient display (device) [CHAR LIMIT=160]-->
<string name="ambient_display_pickup_summary" product="device">To check your device without waking it up fully, pick it up</string>
<!-- Title text for fingerprint swipe for notifications [CHAR LIMIT=60]-->
<string name="fingerprint_swipe_for_notifications_title">Swipe for notifications</string>