Commit Graph

1276 Commits

Author SHA1 Message Date
Anna Zappone
88bac9ca54 Add available description for talkback
Bug: 189908609
Test: PeopleTileViewHelperTest and local
Change-Id: I5b00dfdb8aa04b84aa71d37adfbd06f134bcf5a9
2021-07-08 22:48:12 +01:00
Matt Pietal
b36be4cc0e Change back to Device controls
Revert the string

Fixes: 193041270
Test: manual
Change-Id: I439561457752c705e98fd2481db262cc18c5d50f
2021-07-07 20:01:24 -04:00
Anna Zappone
cb5a8da556 Update a11y content descriptions
Align DND layouts better with status/empty layouts.

Fixes: 187384903, 182920218, 189896324, 189906264
Test: PeopleTileViewHelperTest
Change-Id: Id806de7e2d8e4a55982b8cb2a48de53730bcc04a
2021-07-01 16:30:39 +01:00
Silin Huang
45ec26f7b7 Update the string when no card in wallet tile.
Test: manual
Bug: 190738795
Change-Id: Ib60181086eaacc5fd5f29f250f4752e5bc7d22bd
2021-06-30 18:16:50 +00:00
Silin Huang
3d86d270cb Update wallet tile secondary label when QAW cards fetching in flight.
Also re-create the QAW client if the wallet feature is unavailable; and query the wallet cards only when the wallet feature is available.

Test: atest
Test: manual
Bug: 190036483
Change-Id: Ibad3429a6f77d3f8a474b577759e7b7193ad6f23
2021-06-30 00:07:21 +00:00
Flavio Fiszman
203c4b0e57 Polish Conversations widget Configuration Activity strings
Change-Id: I9ce18a1f928a43f419e699b12c736b98faa14a92
Test: manual
Bug: 183721209
2021-06-25 14:23:51 +00:00
Anna Zappone
6df2318f26 Merge "Update template tile to fit worse-case dimens" into sc-dev 2021-06-25 11:20:19 +00:00
Rajeev Kumar
70eee492eb Merge "Move common strings from System UI to SettingsLib" into sc-dev 2021-06-25 03:15:35 +00:00
Stevie Kideckel
3dd4c6b8f9 Add a people tile state for dnd
Bug: 189459297
Test: verified locally
Change-Id: I21bf30e37f0fd7111f0eb04e1256e9dc186850eb
2021-06-24 16:15:03 +00:00
Peter Kalauskas
7e19525d65 Move common strings from System UI to SettingsLib
Bug: 188542158
Test: With config_guestUserAutoCreated=true, create guest, then reset
      guest. Ensure all dialog strings are correct.
Change-Id: I8ad29c0c7ddc0c672cf8bdd0610db611bb30823e
2021-06-23 17:39:55 -07:00
Anna Zappone
898ccb31ec Update template tile to fit worse-case dimens
Modify layout logic to range between 136dp x 51dp to 176dp x 221dp.

Fixes: 189146880
Test: locally modified dimens
Change-Id: I6544bee5b74afad0d8d845dc26caa37563fc4af9
2021-06-23 20:50:09 +01:00
Peter Kalauskas
3d5d80cab4 Introduce config for auto-created guest users
Create a new frameworks config: config_guestUserAutoCreated.

If true,

 - Device should always have a guest user available.

 - Instead of showing "Add guest", the UI will show "Guest", and instead
   of "Remove guest", there will be an option to "Reset guest"

 - Guest user is always created on boot if it does not already exist

 - New guest user is created any time current guest user is removed

For now, these behaviors will be handled by System UI and Settings.

In addition, a few changes were made to System UI to simplify the code.
These changes may also affect devices running without the new config:

 - Move GuestResumeSessionReceiver.wipeGuestSession() to
   UserSwitcherController

 - New method: UserSwitcherController.createGuest()

 - Introduce dependency from KeyguardViewMediator to
   UserSwitcherController

 - Introduce dependency from GuestResumeSessionReceiver to
   UserSwitcherController

Bug: 188542158
Test: With config_guestUserAutoCreated=true, remove all guest users
      using adb (`adb shell cmd user list -v --all` to find the user
      ids, then remove each guest user with `adb shell pm remove-user
      <id>`), reboot device, check that there is a new guest on boot.
Test: With config_guestUserAutoCreated=true, reboot device when there is
      already a guest user, confirm that guest user was not wiped after
      reboot is completed.
Test: With config_guestUserAutoCreated=true, switch to guest user,
      select "Reset guest" from QS tile, select "Reset". Phone should
      switch back to last active user, and QS tile should now show
      "Guest" instead of "Add guest". Run `adb shell cmd user list -v
      --all` to confirm guest has a new user id.
Test: With config_guestUserAutoCreated=false, confirm that "Add guest"
      and "Remove guest" features remain unchanged
Change-Id: Ib1c8dd0a0796d95681167f51e12e3f4be21345af
Merged-In: Ib1c8dd0a0796d95681167f51e12e3f4be21345af
2021-06-17 14:24:09 -07:00
TreeHugger Robot
100b0929b7 Merge "[DO NOT MERGE] Update power menu info messsage" into sc-dev 2021-06-16 19:57:59 +00:00
Peter_Liang
126cad9c88 Add a new string for a migration tooltip of Accessibility floating menu.
Bug: 190563948
Test: manual test
Change-Id: Ic06e46f7bdde9bdc36bb93e2143d467b52062c50
2021-06-15 17:26:18 +08:00
Beth Thibodeau
be3e2e9228 [DO NOT MERGE] Update power menu info messsage
Allow wallet label to be determined by the service (same as in the
QuickAccessWalletTile)

Bug: 190505997
Test: visual
Change-Id: I4a81d4ca13f1bf828a223a36e492a79e8cfc63e4
2021-06-10 16:12:16 -04:00
cecilia
7ab507a0b6 Add accessibility labels for the media player and the recommendation card.
Bug: 188228742
Test: Local builds
Change-Id: Ifdb86e2ee643a7f2138fbf63925a712d6dfd56a3
2021-06-08 01:13:15 +00:00
Silin Huang
cb639a9e4b Polish Wallet empty state view.
Another change is a bug fix that do not use the cached "mWalletEnabled"
on cards querying, because that param is for the wallet preference only.
We use "cardsRetriever"s to handle querying cards on wallet
feature/service not available.
Also register the wallet service event listener to WalletActivity, this
enables the wallet activity finish after the user makes an NFC payment
tap.

Fixes: 189869634
Fixes: 187970986
Fixes: 188972317
Test: manual- see demo:
https: //drive.google.com/file/d/1I-vwffhRqR2HDHR8wQqitOqzH0tWjMEI/view?usp=sharing&resourcekey=0-3BZsJl_c7jzW7muwNG9hmA
Change-Id: If907cb5d6c89878d2a5a6a282284e3bf77f7188f
2021-06-06 21:18:54 -07:00
Beth Thibodeau
78e42f77f9 [DO NOT MERGE] Add placeholder for info panel in new power menu
Test: manual
Test: atest GlobalActionsInfoProviderTest
Bug: 183032541

Change-Id: I4440cebce458df60270b9133523e853249c281f7
2021-05-27 16:30:58 -04:00
Dave Mankoff
9c72d6ee0a Visual changes to tap-again toast.
Smaller margins.
New text and bg color.
Update colors when switching to dark theme.
Lower elevation.
New text.

Bug: 188895666
Test: manual
Change-Id: I10fae63037994c3e6fcd91f989faee4828df55ed
2021-05-26 16:15:11 -04:00
Beth Thibodeau
43846ddb42 Merge "Screen record UI polish" into sc-dev 2021-05-20 21:34:55 +00:00
Anna Zappone
0c94c3f6a0 Merge "UX polish updates" into sc-dev 2021-05-19 09:46:13 +00:00
Anna Zappone
514ce64531 UX polish updates
Padding, color, and dynamic text resizing. See full details in
b/183084168.

Bug: 185131475, 183084168, 1804014433
Test: PeopleTileViewHelperTest
Change-Id: Ie6a4da771b9735ccce7b0549acfea4c17231d915
2021-05-18 12:29:35 +01:00
TreeHugger Robot
5881d68cd4 Merge "Controls - Remove 'power menu' from strings" into sc-dev 2021-05-17 22:19:13 +00:00
TreeHugger Robot
02a92fb467 Merge "Bring QS TextAppearance up to spec." into sc-dev 2021-05-17 20:10:40 +00:00
Fabian Kozynski
b223a3aeaf Bring QS TextAppearance up to spec.
Test: manual
Fixes: 188046773
Change-Id: Id00fb90459b0280279713aeed4593fdd9eec9fba
2021-05-17 12:02:56 -04:00
Matt Pietal
0b77fde2cf Controls - Remove 'power menu' from strings
Update all strings to reference Quick Settings. When setting up
controls, directly link to the ControlsProviderSelectorActivity
instead of going through an intermediary screen that was only
necessary for the power menu.

Fixes: 187829179
Test: manual
Change-Id: Ida1cce6201f4dc3c16c533879df11ef9fee92c0b
2021-05-17 10:56:07 -04:00
Fabian Kozynski
0a63b4b8e7 Change the strings for work tile.
Secondary label is now handled the same as the other tiles.

Also, removed old unnecessary strings.

Test: manual
Fixes: 187155474
Change-Id: Iab9bbc292bea8b21c5b8fc8adfc079b2079e39a7
2021-05-14 14:18:40 -04:00
Beth Thibodeau
3a6818bb99 Screen record UI polish
- Fix capitalization
- Default to device audio
- Use showBigPictureWhenCollapsed instead of setting largeIcon
separately
- Update styles to inherit device default

Fixes: 185544094
Fixes: 185544175
Fixes: 186427367
Fixes: 185544265
Test: visual

Change-Id: Ic545f8bc0ef77aabaab24a4585c87c3aa29ac7f5
2021-05-13 22:40:24 -04:00
TreeHugger Robot
357a7d7bae Merge changes I255c033f,I4269b194 into sc-dev
* changes:
  Fix udfps auth scrim state
  Lock screen a11y updates
2021-05-13 11:15:39 +00:00
Caitlin Cassidy
28b091c6cc Merge "[Ongoing Call Chip] Improve accessibility." into sc-dev 2021-05-12 20:46:11 +00:00
Caitlin Cassidy
47e53c9ba5 [Ongoing Call Chip] Improve accessibility.
Test: atest and manual
Bug: 183229367
Change-Id: I043f7259989c5431eeedc84488ae27fb08bc79c4
2021-05-12 17:00:55 +00:00
cecilia
488ef439a2 Update "Play" title string describtion for the translation console.
Bug: 187079454
Bug: 187699782
Test: Local builds
Change-Id: Ic385b0c83428ed93a559c511d77834750ab9b740
2021-05-11 22:08:00 +00:00
Beverly
1a21ef3fe1 Lock screen a11y updates
When a11y features are enabled, inform the user
when the state of the lock screen changes.

Remove the window accessibility title on the udfps icon so that it won't
announce its window each time the udfps area receives focus. (ie:
previously was announcing "fingerprint sensor, SystemUI")

Add a label to the wallet affordance on the lock screen.

Test: manual
Fixes: 187139663
Fixes: 187190642
Fixes: 187082618
Fixes: 187080405
Change-Id: I4269b1943ec4d2e82eac9525947bb1903886f4f8
2021-05-11 14:34:27 -04:00
Fabian Kozynski
5217ea9b6b Fix accessibility string
Test: build
Bug: 187530100
Change-Id: I6b2bd8f99a719114b57a43e9f06432ba7e5167f8
2021-05-11 18:06:12 +00:00
YUKAI HUNG
5e024acb23 Merge "Update AOD charging strings" into sc-dev 2021-05-07 02:10:19 +00:00
Fabian Kozynski
1a2a958df0 Merge "Change secondary label for Work mode tile" into sc-dev 2021-05-06 14:33:01 +00:00
Fabian Kozynski
9969241092 Merge changes Ib9407914,I63dbe8fa into sc-dev
* changes:
  Add chevron to tiles that expand instead of toggling.
  Refactor QSTileView hierarchy
2021-05-06 13:24:59 +00:00
Silin Huang
e7d986d294 Merge "Support non-active tokens in QuickAccessWallet." into sc-dev 2021-05-05 19:56:12 +00:00
Wesley.CW Wang
3e839f79e6 Update AOD charging strings
Bug: 183689347
Test: atest SystemUITests
Change-Id: Idb0c564b71fbcdd9543ad07bddf12ff8be47fefb
2021-05-05 21:48:07 +08:00
Silin Huang
8833128a37 Support non-active tokens in QuickAccessWallet.
1. Individual card states (active, pendingActivation, suspended) have
their own header icon and label. When scrolling between cards that have
different states, the icon and label will fade in/out.
2. The pendingActivation cards will have a verification button
underneath the card view; the button text is parsed from cards label.
3. Add an overflow menu for wallet view, it will navigate to Lock Screen
Settings page. (TODO in next CL)
4. Update the way we render header icon: because gmscore now provide new
version of icons, the programmatical tweaks no longer needed on the SysUI side.
5. Add Falsing prevention for the locked state wallet view:
cardImage/actionButton/appButton
6. Other UI polish: change the Wallet Tile secondary label to card last4
digits, etc.

demo:
https://drive.google.com/file/d/1syNnPFdIGh24sHWU2So-wsPxZTIg7xI9/view?usp=sharing&resourcekey=0-Iw3ZotiOJlE8jPImK7QQhQ

Test: manual
Test: atest
Bug: 186496392
Bug: 150332483
Fix: 184057200
Fix: 184905963
Change-Id: I84f487154104ffe1636c98ef1538bf99102c0442
2021-05-04 23:51:53 -07:00
Fabian Kozynski
9c8de7bdf1 Refactor QSTileView hierarchy
This CL collapses the hierarchy QSTileBaseView - QSTileView -
QSTileViewHorizontal into QSTileViewImpl. This can be done because now
there's a single type of view for the tiles. The benefit of this is that
we do not have to hack our way to undo things that are done in parent
classes. As part of this remove a lot of unnecessary files.

As part of this, bring some colors/sizes up to spec and make sure that
the sizes are reloaded in config changes.

Test: manual
Test: atest com.android.systemui.qs
Fixes: 187061459
Bug: 186057842
Change-Id: I63dbe8fa2b44833c11a486e84195e33e170c6f58
2021-05-04 15:28:01 -04:00
Fabian Kozynski
4e8ea21279 Change secondary label for Work mode tile
Test: manual
Fixes: 187155474
Change-Id: I5eade3390fba20ef0002b024a3dbc1eb25a868b5
2021-05-04 12:17:01 -04:00
Julia Reynolds
2d880ae90a Merge "Update the conversation priority flow" into sc-dev 2021-05-04 15:41:59 +00:00
Julia Reynolds
7503b32df3 Update the conversation priority flow
Update the long press text and remove the separate onboarding
screen

Test: atest NotificationConversationInfoTest
Fixes: 186100981
Change-Id: I8a90e99a4eaebf1e5136771856303e830a234d0a
2021-04-30 15:02:49 -04:00
PETER LIANG
42c7ce491e Merge "Fix the GAR issue of all the icons on A11y FM have no meaningful A11y label." into sc-dev 2021-04-30 03:51:13 +00:00
Cecilia Hong
60cdd91176 Merge "Update Smartspace media recommendation card appearance to match the latest mock." into sc-dev 2021-04-30 02:44:43 +00:00
cecilia
3f2e85a9c4 Update Smartspace media recommendation card appearance to match the latest mock.
A contextual card header is added, and also the expanded version of recommendation card.

Screenshots:
[Compact]
- http://screen/U3SPZQHPYLyoU4t
- http://screen/8ccMqUqUmBQUvmd
[Expanded]
- http://screen/9ASnXWGHWoyph2B
- http://screen/A6hzbLDjpfsjVkA

Demo: https://drive.google.com/file/d/1iRZBhC81q-HflRQDUgzMbNeBagkAo9aS/view?usp=sharing

Fixes: 186165627
Test: Studio builds
Change-Id: Ib7f65bdcbe7ede1901c7969d04f3efbbc7c2461d
2021-04-29 19:36:52 -04:00
Peter_Liang
6f90704f49 Fix the GAR issue of all the icons on A11y FM have no meaningful A11y label.
Patch action:
Add the state or content description into the corresponding feature target.

Bug: 178289063
Test: atest AccessibilityTargetAdapterTest AccessibilityTargetAdapterTest
Change-Id: I2f421da027bc95021ab24cadf8b3afdc30fa6d4a
2021-04-29 21:58:35 +08:00
PETER LIANG
cf2da13db3 Merge "Revise the character limit of the string." into sc-dev 2021-04-29 02:51:30 +00:00
Beth Thibodeau
6848213106 Merge "Updated layout for more compact player" into sc-dev 2021-04-28 18:32:01 +00:00