Commit Graph

720 Commits

Author SHA1 Message Date
Lucas Dupin
b0e503f96d Merge "AOD group notification style" into pi-dev 2018-05-10 06:49:42 +00:00
Lucas Dupin
4c797d6a61 AOD group notification style
Change-Id: Ibcabb20f6d4eb48bf36204f8068f48176844f88d
Fixes: 76110106
Test: visual
2018-05-09 11:12:01 -07:00
android-build-team Robot
478e0805a0 Merge "a11y edits to dnd dialog and volume ring toggle" into pi-dev 2018-05-07 18:05:28 +00:00
android-build-team Robot
dd0f6709f8 Merge "Added toggle overview custom action over home button for a11y" into pi-dev 2018-05-07 17:17:10 +00:00
Julia Reynolds
15db7cdf8d Don't be clever with strings
The app ops strings were not translating well, leading to
crashes in some languages

Test: atest SystemUITests
Change-Id: Iee18504217c5c13543ad130f502695e3919d7ddf
Fixes: 77640411
2018-05-07 11:09:20 -04:00
Matthew Ng
44b14508de Added toggle overview custom action over home button for a11y
The toggle overview custom action only appears when swipe up ui is shown
(2 buttons).

Change-Id: I8b3790c98b663dd04bec921a9f7372733c73ea4e
Fixes: 78177915
Test: use talkback, enable swipe up ui and toggle overview via home btn
2018-05-04 17:54:07 -07:00
Beverly
f138ba29de a11y edits to dnd dialog and volume ring toggle
- don't use announce in the dnd enable dialog - instead make the radio
button content a live region
- add hints to volume dialog ring button and edit content descriptions

Change-Id: I4b0db5e9d8dc6df3f48a4eccad1045d7baca4031
Fixes: 78914992
Fixes: 76385188
Test: manual
2018-05-04 20:59:13 +00:00
android-build-team Robot
aeaefe91bc Merge "Revert "Update 'dnd is hiding notifications' view"" into pi-dev 2018-05-03 13:46:56 +00:00
Julia Reynolds
34f14968b6 Revert "Update 'dnd is hiding notifications' view"
This reverts commit 85bad9b5bb.

Change-Id: Ic68475a8df0ae377c4fc357017b7d2a6b5311433
Fixes: 79155510
Fixes: 79156480
2018-05-03 12:40:20 +00:00
Dan Sandler
4d90d1ede7 SystemUI heap monitor & hprof dump tile.
Adding the tile to your active set will start a continuous memory tracker,
updating the tile every minute with the latest pss value. Tapping the tile
will pull a full heap dump, zip it, and share it via ACTION_SEND.

Additionally, @integer/watch_heap_limit can be set to the heap size (in KB)
at which ActivityManager will automatically generate a heap dump and notify
the user when it's ready.

Available only on IS_DEBUGGABLE builds. Supplies limited. Order now!

Bug: 76208386
Test: atest com.android.systemui.util.leak.GarbageMonitorTest
Test: runtest systemui
Change-Id: I0434dd7dc330784c750469b013e40b31ef92638d
2018-05-01 21:51:15 +00:00
Bingyu Zhang
3e169cac13 Merge "Accessibility change when Trusted Face icon shows." into pi-dev 2018-05-01 18:14:31 +00:00
Julia Reynolds
85bad9b5bb Update 'dnd is hiding notifications' view
Add an icon and alawys show the view if DND is on and suppressing
notifications from the shade. 'Manage notifications',
'no notifications', and 'clear all'are hidden when this view is visible.

Bug: 78586809
Test: atest SystemUITests
Change-Id: I9d68fda8a3bc3213c20f9e57ca64d75eebdc1d94
2018-05-01 09:04:38 -04:00
Bingyu Zhang
bfe6dcf3fc Accessibility change when Trusted Face icon shows.
When unlocking device, if Trusted Face is on, "Scanning face" should be
automatically announced.
Also change the contentDescription for face icon, then when clicking the face icon,
instead of "unlock button", "Scanning face" will be talked back.

Test: manual
Bug:74328543
Change-Id: I94f9faa45bf5f6f7ceaf7df5acab0a970f651395
2018-04-25 10:20:36 -07:00
Makoto Onuki
778ce66697 DO NOT MERGE Make "Want to start battery saver?" dialog better.
- Don't line-break in "Battery" (only in English)
- Add "Learn more" link.

Bug: 78261259

Test: Manual test with:
- adb shell dumpsys battery unplug
- adb shell settings delete secure low_power_warning_acknowledged
- Enable battery saver
- Make sure the link is clickable if a link is set.
- Make sure there's no "learn more" link if the link is not set in strings.xml

Change-Id: I83364f628dd596a4d50bf2aca4db7cbfe7cf4909
2018-04-25 15:27:47 +00:00
Salvador Martinez
2cdc5281e1 Update title for SysUI battery warning
We're changing the text from "battery is low" to talk about the
battery running out soon instead so users are not confused if the
time based trigger occurs at higher battery percentages.

Test: robotests pass
Bug: 77587724
Change-Id: Ib7b2c507e150e06e307f810f89c6da407c77990a
2018-04-23 16:13:19 -07:00
TreeHugger Robot
df173b59f6 Merge "Rely on tile state for on/off a11y announcement." into pi-dev 2018-04-18 23:53:11 +00:00
Amin Shaikh
3468e5a016 Rely on tile state for on/off a11y announcement.
Do not include on/off in QS tile content descriptions.

Change-Id: I10ddeb6c56f99fe4dad3eaaa98a56cafba68be9f
Fixes: 78171152
Test: manual
2018-04-18 12:58:01 -04:00
Julia Reynolds
6013e5cc96 Color and text changes
Change-Id: I2b1837ffd16911be20b5d5f9a7007ff3071265ab
Fixes: 78191129
Fixes: 77810424
Fixes: 78196346
Test: manual inspection
2018-04-18 08:45:12 -04:00
Milo Sredkov
66da07bf81 Set accessibility action label for smart replies.
Currently the TalkBack reads something like "I am here, button,
double-tap to activate". Set an accessiblity delegate that changes
the click action label to "send", so the TalkBack message becomes
"I am here, button, double-tap to send".

Bug: 72216277
Test: In Notify post a notification with choices. Read it via TalkBack.
Change-Id: Ib50f6ff6f698196d905aea2e303b6bd2e5531587
2018-04-17 16:16:15 +01:00
Tracy Zhou
0ad27632ca Move QuickStep onboarding strings from Launcher to SysUI
Test: N/A
Bug: 70180942
Change-Id: Ic3bd63899017f23c011a41a7a5a9e73a87b9eec1
2018-04-12 11:23:17 -07:00
TreeHugger Robot
497bc2cbe9 Merge "[QS] Update mobile tile secondary text" into pi-dev 2018-04-11 21:29:20 +00:00
Rohan Shah
7bc3744ccd [QS] Update mobile tile secondary text
Since the mobile data string is required for the content description,
adding a new string for the short version and updating the footer impl
and icon setup logic to reference the content description instead.

Test: Manually, via string check in QS
Bug: 77693344
Change-Id: I794500bcd445f98d69c096f6bf2f3b7d147c2780
2018-04-11 12:41:23 -04:00
Amin Shaikh
e97cb81c91 Update mobile data QS tile subtext.
Display 1X, H, and H+ as mobile data subtext when their respective
mobile signal icons are displayed in the status bar.

Change-Id: I6b34700f6935d0f676d251459e405b629f68213f
Fixes: 77597792
Test: visual
2018-04-10 11:44:36 -04:00
Amin Shaikh
e4d25a955f Fix strings for QS header status.
Rearrange alarm/mute text to maintain the same ordering as the status
bar. Update mute/vibrate strings to make it clear that the status
corresponds to the phone volume.

Change-Id: I66f35f681e15a91e6238aeaaa086856872d3876a
Fixes: 76208830
Test: visual
2018-03-30 15:56:50 -04:00
Rohan Shah
2d2f598d69 Merge "[QS] Override/add long click accessibility action" into pi-dev 2018-03-30 15:45:53 +00:00
Rohan Shah
185f661663 [QS] Override/add long click accessibility action
Overrides the long click action for QS tiles. Tiles are always
long-clickable so this can always be present as an action for that node.

Test: Via talkback selection + node printing/debug
Bug: 72408442
Change-Id: Idacf79cd4a91e6091c6f9f0a8fa24a286cd3a262
2018-03-29 17:54:01 -07:00
Julia Reynolds
ac55e01e1c Volume UI updates
- Reorder streams
- constrain ripples
- Show an introductory ripple on the ringer toggle
- Add sound/vibration feedback for the ringer toggle
- resize some elements

Test: manual
Bug: 76438403
Fixes: 73892482
Change-Id: I92dd6f5681f1822ae493a5a2b218b15970293e80
2018-03-29 16:42:28 -04:00
Julia Reynolds
d9c571c6f7 Fix capitalization
Test: make
Change-Id: I173355801e3e46044029ac5f5779c3ebd34d7f09
Fixes: 76143429
2018-03-28 13:44:27 -04:00
Makoto Onuki
452ae34af5 Merge "Add auto battery saver suggestion notification/dialog" into pi-dev 2018-03-27 21:20:13 +00:00
Makoto Onuki
52c6295e22 Add auto battery saver suggestion notification/dialog
Spec: go/ebs-low-battery-mode-flow

- Basically when the user manually enables battery saver 4 times,
we show this notification to suggest turning on "scheduled"
(i.e. auto) battery saver.

- We show it through 8th time. If the user hits "no thanks",
or if auto-saver is enabled already, we will not show it.

- Introduced a new notification channel "HINTS" with
IMPORTANCE_DEFAULT.

Bug: 74120126
Test: Manual test with ll development/scripts/battery_simulator.py

Change-Id: I713abc59dc7caee6882ba848c3e3aabaf778c2bd
2018-03-27 10:42:05 -07:00
TreeHugger Robot
b429012907 Merge "Add link to notification app listing in shade" into pi-dev 2018-03-27 14:09:18 +00:00
TreeHugger Robot
644ded01dd Merge "Update screenshot saving strings." into pi-dev 2018-03-27 13:03:33 +00:00
Alison Cichowlas
2b840257be Update screenshot saving strings.
Bug: 76418893
Test: String changes; manually verified.
Change-Id: Ic28b9d637918abe7b21206966c4a36016b87b253
2018-03-26 18:53:29 -04:00
TreeHugger Robot
2ed9bf437e Merge "Fix string description" into pi-dev 2018-03-26 22:24:26 +00:00
Julia Reynolds
ed1c9af653 Add link to notification app listing in shade
Test: atest SystemUITests
Bug: 74318867
Change-Id: Ic309dfb08be0d41b7d524adc1b5910ab61b2d9fb
2018-03-26 17:14:48 -04:00
TreeHugger Robot
a5a9827328 Merge "[QS] Update string name in prep for freeze" into pi-dev 2018-03-24 02:01:17 +00:00
Mady Mellor
1cea5f7de8 Fix string description
Test: make
Bug: 34840333
Change-Id: Iea11f92e143f5fe84444d86c865eec54518ccc00
2018-03-23 16:19:02 -07:00
TreeHugger Robot
3aa86b427f Merge "Add string for 'snooze' action to use in local context menu" into pi-dev 2018-03-23 23:11:30 +00:00
TreeHugger Robot
d784f16950 Merge "Revert the low battery warning title to previous version." into pi-dev 2018-03-23 22:57:34 +00:00
Salvador Martinez
43f5cd7534 Revert the low battery warning title to previous version.
This CL removes the "Turn on Battery Saver" text from the title
since this is already added as an action to the notification.

Test: SysUI tests pass
Bug: 76205767
Change-Id: I7b7f612101c67df994e51dfa824c5af057e02f18
2018-03-23 13:53:27 -07:00
Rohan Shah
98cd691d8f [QS] Update string name in prep for freeze
Renaming the night light's "until <time>" string in case the translation
pipeline would re-register it after the freeze.

This is prepping for a change for the DnD secondary label.

Test: Visually/compiles
Bug: 70799372
Change-Id: I83608ce4dbf96c558b05191fc79f69325281e5b9
2018-03-23 13:17:55 -07:00
Mady Mellor
fb62a1cbd9 Add string for 'snooze' action to use in local context menu
Just getting string in for translation; work to add to
local context menu will come in follow up

Test: make
Bug: 34840333
Change-Id: Id23c0f5cc708bb8847601f792f12f1365bca674b
2018-03-23 11:14:17 -07:00
Mike Digman
5527286e08 Add vol up + power ringer toggle gesture
It only runs when the screen is on.

Test: manual, invoking gesture with different system settings
Bug: 75252670
Change-Id: I934d0bbb0a9fffecf34ebaadf77f3e1241d4faf7
2018-03-22 10:55:24 -04:00
Rohan Shah
1fbe7081ea Merge "[QS] Update long-press tooltip text" into pi-dev 2018-03-21 23:11:32 +00:00
TreeHugger Robot
323e41c6ae Merge "Update QS customizer add tiles string." into pi-dev 2018-03-21 15:33:49 +00:00
Amin Shaikh
845dd804d3 Update QS customizer add tiles string.
Change-Id: Iddea2dd8bd48b980e083fac447e905616031b365
Fixes: 27961533
Test: visual
2018-03-21 07:39:24 -04:00
TreeHugger Robot
fc45001103 Merge "Ensure QS contains at least 6 tiles." into pi-dev 2018-03-20 22:40:53 +00:00
Amin Shaikh
ae0c58be70 Ensure QS contains at least 6 tiles.
Do not allow users to remove QS tiles in the customizer if they
currently have 6 or fewer tiles.

Bug: 72511412
Test: visual
Change-Id: I02be1ee330a81db3d3af6a371187294d71f4db65
2018-03-20 16:50:55 -04:00
Amin Shaikh
f6821a29dd Remove unused string.
Bug: 74486080
Test: make
Change-Id: Ibe21b9b5c8c9a19b6bd3b73faa65f572159347d0
2018-03-20 19:05:38 +00:00
Amin Shaikh
329c828f18 Update mobile data off dialog.
Show the mobile data turn off dialog until the user taps the turn off
button. All subsequent toggles will immediately toggle data on/off. Also
update the message copy.

Fixes: 74072757
Test: runtest systemui && manual
Change-Id: I489d5c3c19d52a6f531b1b925b3210019412243b
2018-03-19 10:53:21 -04:00