Commit Graph

988 Commits

Author SHA1 Message Date
Joshua Tsuji
6855cabd98 Add the Manage menu!
Now you can dismiss, un-bubble :(, or manage the settings of your bubbles.

Test: manual
Bug: 143173197
Change-Id: I4c90bdab3f3f61646153ce615fa257bc64ed8a17
2020-04-21 10:58:53 -04:00
Evan Laird
31ca547400 DO NOT MERGE: Show an onboarding screen for priority conversations
Test: atest SystemUITests
Bug: 151843296
Change-Id: I5280cff71591f8551016b6ba00d3a579507367cb
2020-04-16 11:59:43 -04:00
Julia Reynolds
8d25709048 Update conversation inline controls text
- Support 'all conversations bubble'
- Only the selected button text should be colorful

Test: atest
Bug: 153471239
Fixes: 153885391
Change-Id: Ideb7cf6c853095cc6c55fa1b7f651aa7a0259f4e
2020-04-15 21:25:28 +00:00
Miranda Kephart
ddb33e9daf Merge "Fix screenshot preview accessibility label" into rvc-dev 2020-04-14 14:59:14 +00:00
Miranda Kephart
caf82becec Fix screenshot preview accessibility label
Changes label to match the "Edit" button. Also makes the description
more correct when the preview is /not/ tappable (i.e. when the
screenshot was taken, but we haven't successfully saved it to disk
yet).

Test: manual
Fixes: 152834239
Change-Id: Iae406bcc672e56445e620349851e94cfaf97859a
2020-04-14 14:29:26 +00:00
Fabian Kozynski
8765d35779 Add controls rearrange activity
This activity is accesses from the overflow menu in the Controls UI. It
does the following:

* Shows all favorites for current structure
* Allows for rearranging current favorites in that structure
* Allows for removing current favorites in that structure
* Links to ControlsFavoritingActivity with just that structure

Test: manual
Test: atest ControlsControllerImplTest
Test: atest FavoritesModelTest
Test: atest AllModelTest
Fixes: 149138395

Change-Id: I8a57d4f835467247b7cc360fee4e382cd5553481
2020-04-10 10:18:57 -04:00
Matt Pietal
54170e0757 Controls UI - Rename 'quick controls'
Per feedback, changing name to 'device controls' from 'quick controls'

Bug: 153200907
Test: manual
Change-Id: I0b570469979dbe10d08d803c9f45b6b547611115
2020-04-06 09:23:09 -04:00
Ben Murdoch
66041721d7 Merge "Add user switcher related strings to SettingsLib." into rvc-dev 2020-03-30 15:01:46 +00:00
Fabian Kozynski
6745b6c78b Merge "Increase string char limits" into rvc-dev 2020-03-27 19:25:12 +00:00
Fabian Kozynski
2de4180f45 Increase string char limits
Test: no test
Fixes: 151082675
Change-Id: I9d7c9359c6fe0fdc03c2b96aaae54bd0faabc5f1
2020-03-27 13:05:12 -04:00
Andras Kloczl
ababfcd4cf Add user switcher related strings to SettingsLib.
- Move guest related strings from sysui to settingslib
- Add a new string to settingslib

Test: Build, flash and check if the texts are appearing properly in keyguard and quicksettings user switcher.
Bug: 142798722
Change-Id: I5b3e13581efa274ce8ed899b8a949e5ef69c173c
2020-03-27 15:51:48 +00:00
Curtis Belmonte
1e6a356911 Fix display of BiometricPrompt wipe warning dialogs
Ensure that both local wipe dialogs are shown by the BiometricPrompt
credential view as appropriate:
- A "last attempt" warning dialog when the user is one failure from a wipe
- The "now wiping" dialog shows before the prompt is dismissed

Test: Manual:
1. Create a work profile via TestDPC (go/testdpc)
2. Set a work profile lock pattern/PIN/password via Settings > Security
3. Launch the work profile instance of TestDPC
4. Scroll down to "Lock screen"
5. Tap "Lock screen restrictions"
6. Select the "Work profile" tab
7. Set "Max password failures for local wipe" to 3
8. Lock & unlock the screen
9. Launch work profile app
10. Enter the wrong pattern/PIN/password three times

Fixes: 152016710
Change-Id: I3771d222aaaacef5fa70c1246432a6fd1afdcd42
2020-03-25 13:32:49 -07:00
TreeHugger Robot
294823f0cb Merge "Controls Ui - More string adjustments" into rvc-dev 2020-03-24 20:45:29 +00:00
Matt Pietal
9e3d40d265 Controls Ui - More string adjustments
More adjustments based on feedback

Bug: 151322044
Test: manual
Change-Id: I682f51ecafa8c8d800e89842f51f013a4d2bc883
2020-03-24 14:48:43 -04:00
Matt Pietal
6cdba1f435 Controls UI - Up string limit
Requested by translation team

Test: none
Bug: 152054587
Change-Id: I4e204bd7235dad2dfc0c53813a947e4a2b71097c
2020-03-23 11:16:13 -04:00
TreeHugger Robot
bb725ba49e Merge "Controls UI - Update strings to match latest guidance" into rvc-dev 2020-03-21 03:14:16 +00:00
TreeHugger Robot
0fb3776287 Merge "Conversation inline controls redesign" into rvc-dev 2020-03-20 22:40:34 +00:00
Matt Pietal
e80c7812d4 Controls UI - Update strings to match latest guidance
Update existing strings, and add strings that we will need to complete
the implementation

Bug: 151322044
Test: visual
Change-Id: Iee922e8f6db6c3058dc9c5ce77eef63c9b6bd2db
2020-03-20 17:38:06 -04:00
Julia Reynolds
a856e49c18 Conversation inline controls redesign
Test: atest
Bug: 151761824
Change-Id: I62da11c44df3cb3f83450a2547df4490e9d3e127
2020-03-20 19:25:51 +00:00
Curtis Belmonte
b51645d6fa Merge "Make BiometricPrompt honor max attempts before wipe" into rvc-dev 2020-03-20 00:10:28 +00:00
TreeHugger Robot
73b2a34e8d Merge "Update strings for bubbles" into rvc-dev 2020-03-19 22:48:02 +00:00
Curtis Belmonte
becc0a758a Make BiometricPrompt honor max attempts before wipe
Test: Manual:
1. Create a work profile via TestDPC (go/testdpc)
2. Set a work profile lock pattern/PIN/password via Settings > Security
3. Launch the work profile instance of TestDPC
4. Scroll down to "Lock screen"
5. Tap "Lock screen restrictions"
6. Select the "Work profile" tab
7. Set "Max password failures for local wipe" to 3
8. Lock & unlock the screen
9. Launch work profile app
10. Enter the wrong pattern/PIN/password >3 times

Before: Work profile is not deleted

After: Work profile is deleted and appropriate dialog is shown

Fixes: 148374841
Change-Id: I45a0aa7ac83f67603c6cf0a06337f8a34c38586f
2020-03-19 14:57:39 -07:00
Mady Mellor
71869175cd Update strings for bubbles
- Adds some user education strings that aren't used yet, that'll
  be fixed in a follow up
- Removes some strings that aren't ever used

Test: treehugger
Bug: 151965589
Change-Id: I31a4dcb518b37505ed07fc2d454ddfec7598fb01
2020-03-19 13:19:02 -07:00
Beth Thibodeau
8ebf6ad928 Add long press menu to remove media player
Screenshots: https://drive.google.com/drive/folders/1oaE6oFqShIhmcnG6P7CJFhgVenFgYNgm?usp=sharing

Fixes: 150742919
Test: manual
Change-Id: I36b61c62443bfee3ce6f13cccea9564460563918
2020-03-19 17:26:43 +00:00
TreeHugger Robot
653604d01b Merge "Controls UI - Suggested controls" into rvc-dev 2020-03-18 22:28:19 +00:00
Matt Pietal
6126644083 Controls UI - Suggested controls
When no controls have been loaded, and a preferred package has been
set, bind to the preferred service and ask it for suggested controls
to seed the stored favorites.

Bug: 151817620
Test: atest StatefulControlSubscriberTest ControlsBindingControllerImplTest ControlsControllerImplTest ControlsProviderLifecycleManagerTest ServiceWrapperTest

Change-Id: I1e51b8998b8379f08c2b995b7cbe23d1037bd840
2020-03-18 14:19:28 -04:00
Miranda Kephart
c28520ad97 Merge "Add content descriptions for dismiss and preview" into rvc-dev 2020-03-17 20:32:19 +00:00
Miranda Kephart
16a1a0f982 Add content descriptions for dismiss and preview
Currently the dismiss button and the screenshot preview are read as
"Unlabeled" when in talkback mode. This adds content descriptions for
them so that they are described correctly.

Test: manual
Fixes: 151325418
Change-Id: I16430fe20b285c3393903a2430e6b22cca41fafb
2020-03-17 13:15:28 -04:00
Fabian Kozynski
12c2fa660d Remove unnecessary strings
Test: build
Bug: 149773221
Change-Id: Ifb33b4a4b06b52b224c43092f39140266449a989
2020-03-12 10:58:49 -04:00
Fabian Kozynski
75ad41effa Adds a tooltip for multiple structures
Adds a tooltip (manager) to display tooltips in Controls surfaces. The
manager supports the following:

* The tooltip will not be shown after a certain number of times. Tracked
by a Shared Pref that is passed to the TooltipManager
* The tooltip will be shown pointing to a given position on screen
* The tooltip can be parametrized to show the arrow pointing up
(default) or down.

Fixes: 150707923
Test: manual

Change-Id: I70e7c38343a16ae6cd887a0fdcfa5b0f896e413e
2020-03-09 15:38:27 -04:00
Matt Pietal
b7da66c80d Controls UI - Add PIN dialog
Support 'ControlAction.RESPONSE_CHALLENGE_PIN' response types. When
detected, prompt the user for the PIN, copy the action with the user's
response, and send it all over again.

Bug: 150849062
Test: visual

Change-Id: I5cf8391125a3dfe235895192b2663851f37eed11
2020-03-06 16:39:33 -05:00
Fabian Kozynski
04e7bdef04 Add dialog for recommended controls
The dialog can only be requested if the package of the controls provider is
currently in the foreground.

This is accomplished by querying Activity Manager about the
UidImportance of that package. Added
android.permission.PACKAGE_USAGE_STATS to SystemUI for this.

Test: atest
Test: manual
Fixes: 149410221

Change-Id: Ifdf479d8dbc70502da95d362e3bfd60ad3c561fb
2020-03-06 12:55:35 -05:00
Matt Pietal
8f8953e14d Controls Ui - Redline adjustments
Match current UX specs. Fix structure selection ellipses

Bug: 150789261
Test: visual
Change-Id: Ife0b98449b2135e7bbe22262fc2908eabb90d072
2020-03-05 11:36:20 -05:00
Scott Warner
778db3306a Show charging status in addition to trust granted
If the device is kept unlocked, it displays 'Kept unlocked by TrustAgent' and will not show charging state.
This adds the charging state below the unlocked message

Test: m, atest KeyguardIndicationControllerTest, check keyguard
Fixes: 150780409
Change-Id: I6b3515167c990c27fa89b3742d72db98657768b0
2020-03-04 18:11:02 +00:00
Mady Mellor
5a3e94b702 Bubbles user education for stack & manage
Two types of education
1) highlighting the bubble when it first appears on screen (after user tap)
2) highlighting manage button when a bubble is expanded

* Both of these are added in BubbleStackView & respond to theme changes
* Prefs to save whether user has seen either education
* Simple animations in / out; we can tune them later
* Adjusts the starting position of the stack to work with user education
  positioning
* Adds a secure setting string to force user education to show for demo
  purposes.

Test: manual:

1) get bubble for first time
2) tap on flyout => flyout disappears & user education shows
3) get another update to that bubble => note that it doesn't show bc
   user education is displaying

1) get bubble for first time
2) tap on bubble => flyout disappears & user education shows
3) tap outside of the user education => user education hides

1) get bubble for first time
2) wait => after flyout disappears, user education shows
3) tap  on the bubble => user education hides & bubble expands, after
   expansion "manage" user education appears
4a) interact with content in the activity view
4b) collapse the stack (via back or tapping outside)
4c) tap on the manage button
4d) select a different bubble
=> each of 4x) should dismiss the manage button user education

Check that switching themes (and dark mode) gets the right colour for user
education backgrounds & text.

Bug: 148105621
Change-Id: I8e6401573c1ac21dfe636aa1132461fe04ce67ac
Merged-In: I8e6401573c1ac21dfe636aa1132461fe04ce67ac
2020-02-27 22:57:14 +00:00
Fabian Kozynski
1e3178de3b Changed management to just show all controls
This is the first of a series of CLs to update management screens to
latest mocks. Now ControlModel is an interface to interact with the
Adapters. Different implementers can be used to surface different views
of all the controls.

Zones are now sorted according to the order they appear on load. Zones
with no name (or blank name) are given a generic "Other" and put at the
end.

Test: atest
Test: manual
Bug: 149138395

Change-Id: Ica708d903afed582c4c6ad4a5142351cd81cec89
2020-02-24 13:35:33 -05:00
TreeHugger Robot
e10efd8c81 Merge "Alerting notifications section header + new header style" 2020-02-21 02:23:25 +00:00
Steve Elliott
b0940383e9 Alerting notifications section header + new header style
Test: manual, atest
Bug: 149922055
Change-Id: I2191033e267a74dc748c57bf2b00e69e0612a757
2020-02-20 20:07:35 -05:00
Joshua Duong
21819bf32d [adbwifi] SysUI: Add WifiDebuggingActivity.
This will prompt the user whether they trust the current wireless access
point when enabling wireless debugging.

Bug: 147814644

Test: make
Exempt-From-Owner-Approval: already approved
Change-Id: I56a7c022f26d4e3d93a22d9022f19f1b8d997d70
2020-02-20 13:49:58 -08:00
Lyn Han
d9f8e2b955 Update empty overflow copy
Bug: 148879187
Test: manual - text updated
Change-Id: I33e0df0b6baac9536f43962cc6f61028fa563201
2020-02-15 19:14:59 -08:00
TreeHugger Robot
b82b55f30d Merge changes I04d5e59f,Ia5fa3517
* changes:
  Update overflow button on theme change
  Empty overflow UI
2020-02-13 20:00:59 +00:00
Matt Pietal
f2932fd3fc Merge "Added fallback for load failed" 2020-02-12 23:41:22 +00:00
Lyn Han
05ea3f89da Empty overflow UI
Bug: 148879187
Bug: 149146374
Test: manual -> bubbles < 5, click into overflow: text shows
Test: manual -> bubbles > 5, click into overflow: overflow bubbles show
Test: atest SystemUITests
Change-Id: Ia5fa3517b0e793952684f573b9a0436bfd15246c
2020-02-12 12:35:42 -08:00
Fabian Kozynski
9c459e58b6 Added fallback for load failed
If the load call times out or fails in some other way, the management
acitivity will show that and just show all favorites (without the
removed tag).

Also, added many docs

Test: atest
Test: manual
Fixes: 149138396
Change-Id: I58e391b65df1e40989101f227c46fd47e3fb419a
2020-02-12 15:08:43 -05:00
TreeHugger Robot
088839281c Merge "Link to notif history in shade" 2020-02-12 03:44:29 +00:00
TreeHugger Robot
6b1b31f0cf Merge "Allow for HTML styling in mobile data type content descriptions" 2020-02-11 20:30:17 +00:00
Julia Reynolds
d09bbeefb6 Link to notif history in shade
Test: manual
Bug: 137396965
Change-Id: I083cf332ca0b6098a38d68bdff441c929aa0928a
2020-02-11 14:08:59 -05:00
Yinglei Wang
6301099935 Merge "Revert "Partially revert "modify quick settings to adopt the accessibility state api""" 2020-02-11 00:10:18 +00:00
Evan Laird
5784a6b67c Allow for HTML styling in mobile data type content descriptions
This CL implements a (somewhat hacky) way to enable HTML attributes in
the mobile data type content description strings. This way we can use
some basic styling in the Quick Settings cellular data tile which uses
it in a TextView.

We do this by assuming that the content description is valid, escaped
HTML, and send two separate CharSequences to all of the listeners, all
of which can then decide if they need the regular content description or
the prettified version.

Test: atest SystemUITests; system ui demo mode
Bug: 141177147
Change-Id: Idf387111b0cdc34ad3762eac0ec6c2b484b393e3
2020-02-10 16:45:16 -05:00
yingleiw
5e0f9f4b02 Revert "Partially revert "modify quick settings to adopt the accessibility state api""
This reverts commit 7a64815b74.

And added the info.setText() part in onInitializeAccessibilityNodeInfo()
in QSTileBaseView.java so that related tests are not broken.

Test: tested with quicksettings and
android.platform.test.scenario.sysui.quicksettings.ToggleWifiOn#testToggle (pass)
and android.platform.test.scenario.sysui.statusbar.NotificationIconOverflow#testNotificationOverFlow
(fails without and with my cl).

Change-Id: I611177fcbd32d35532cfcafbb2b7a73961d1ddc2
2020-02-10 09:57:50 -08:00