Commit Graph

954 Commits

Author SHA1 Message Date
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
Julia Reynolds
e6fed50a1d Update inline conversation controls
- Move actions to header
- Reorder items
- Fix missing icon
- Wrap header text so it won't overlap buttons
- Enable 'add to home screen'

Test: atest
Fixes: 149070309
Fixes: 148467829
Bug: 137397357
Change-Id: I6ad7702f4ffd1eeb5a48914fa6e55538a6c92be2
2020-02-08 08:04:44 -05:00
Beth Thibodeau
51bfd2e34f Merge "Add custom start dialog with options" 2020-02-06 16:58:57 +00:00
Julia Reynolds
e79019393a Merge "Separate concept of VIC from DND" 2020-02-05 12:21:25 +00:00
Beth Thibodeau
630225cac4 Add custom start dialog with options
Use a custom dialog with options for recording audio and taps, instead
of the standard media projection permissions dialog. Options will not be saved
and both default to off. Since system audio isn't implemented yet the audio
switch just shows the text for microphone audio.

Also updated ongoing notification text to reflect whether audio is being
recorded.

Bug: 147490562
Test: manual, screenshots at https://drive.google.com/drive/folders/1jIyzmPDwt6oxVGAw319awdSafnoz8nmI?usp=sharing
Change-Id: I2b012a6b8b6611c0d6fcada79ed5bdc009e24b17
2020-02-04 17:31:50 -05:00
Julia Reynolds
24edc00304 Separate concept of VIC from DND
(Very important conversations). Track VICs in a different
field, and update DND (and public apis) to allow
all, important, or no conversations through.

Test: atest, cts
Bug: 137397357

Change-Id: Iae04546eb7c0b1e79cfdbeec7311628cd7ad634a
2020-02-04 14:23:46 -05:00
Fabian Kozynski
bbf8afe06d Merge "Polish controls management activities" 2020-02-04 18:56:32 +00:00
Fabian Kozynski
5fc5f6ba48 Polish controls management activities
* Change to no toolbar and add title and subtitle
* Change individual controls to use lozenges (same layouts as in the
controls space).

Test: manual
Bug: 148207527
Change-Id: Ie0f3c53ca12dbe29aa1e4469fc0146e29f548d76
2020-02-04 11:33:08 -05:00
Aran Ink
89ebc3c1bd Change backup string used for remote input images.
Test: Manual.

Bug: 148428159
Change-Id: I7728d973007d05749179eb14b14bbbbc1087ee79
2020-02-03 14:06:40 -05:00
yingleiw
7a64815b74 Partially revert "modify quick settings to adopt the accessibility state api"
This reverts commit 4a72a74b2a except for
the api part.

Fix: b/148501707

Test: not needed
Change-Id: I3cf75589ca0abd2aa58a4291a0261b5ce42d066a
2020-01-30 21:38:38 +00:00
yingleiw
4a72a74b2a modify quick settings to adopt the accessibility state api
Seperated out the state part from contentDescription. Also changed the
tile on/off states from mocking switch to unavailable/on/off state
description based on State.state. During testing, I removed event
merging (including source node merging) for state and content change
events. Use event text for state description changed part will be in a
seperate CL.

Test: tested on the quick settings tiles for focusing and state change
evnets. With the event merging removed, the state change is announced
when the focus keeps on the tile. Before my change, content change is
not announced when the focus keeps on the tile due to source node change
in event merging.

Fix: 148473520

Change-Id: I5b6aee6f0982cf4e0a3962fbe15239314f3a2de4
2020-01-28 13:31:13 -08:00
Matt Pietal
2223179499 Controls UI - Basic impl
The start of basic controls implementation. Support for lights, locks,
and basic thermostat information. Token support is needed only for
mocking at the moment and will be removed.

Bug: 148207527
Test: SystemUiTests

Change-Id: If25c57735ebd314a978d3969934d781eafc4f89c
2020-01-27 09:53:58 -05:00
Beth Thibodeau
c1881fcd9d Merge "Fix issues with taps and file saving, update UI" 2020-01-22 22:15:19 +00:00
TreeHugger Robot
c4035ef38d Merge "Show RemoteInput images in notification history." 2020-01-22 22:05:00 +00:00
Aran Ink
2e3cc4169d Show RemoteInput images in notification history.
For cases where we can't show images, show "Image inserted" text instead. This will happen for work profile notifications, and for notifications that don't use MessagingStyle.

Test: Updated unit tests for NotificationRemoteInputManagerTest to use new RemoteInputHistoryItem structure, and to ensure support for URIs and mime types. Manual testing to ensure images appear in notification history for MessagingStyle notifications under the primary user, and that "Image inserted" appears for work-profile and non-messaging notifications.

Change-Id: I254b579aa710337039a7def6880f14a61bbd4d53
2020-01-22 15:22:19 -05:00
Beth Thibodeau
28b448923b Fix issues with taps and file saving, update UI
Restore previous value for showing taps when ending recording

Updates to match current design:
- Colored background
- App title and icon for notification header
- Instead of notification actions, change to tap to stop
- Changed notification importance to DEFAULT

Also fixed an issue with temp file directory not existing that could occur on
factory reset devices

Fixes: 147790694
Bug: 137153302
Test: manual
Change-Id: Ia1bf0ad7883aa933e44a45bfa4ec66dd63fd7606
2020-01-22 14:35:55 -05:00
Jay Aliomer
15d855465b Custom dark theme scheduling
allows the use to set the start and end automatic dark theme
activation within a day.
Fixes: 147649309
Test: atest UiModeManagerServiceTest UiModeManagerTest
Change-Id: Iaa3593d4e8863412e3703ce9f089b88dd4df1225
2020-01-21 14:13:23 -05:00
TreeHugger Robot
0b56225ecf Merge "Add screen recording QS tile" 2020-01-15 21:29:10 +00:00
Julia Reynolds
12ba4cf7a8 Add conversation-centric inline controls
Round one - needs polish, and actions may be added or removed
in the future, and demote isn't working yet.

Bug: 137397357
Test: atest
Change-Id: Ia52598bec58fc54b8bde29168cd419a24d1e4dab
2020-01-15 10:20:29 -05:00
Beth Thibodeau
77c2545dd9 Add screen recording QS tile
Currently defaults to no taps, no audio. This adds a 3s countdown before
actually launching the recording, which can be stopped from either the
notification or the tile.

Bug: 137153302
Test: manual
Change-Id: I0e194dc8d43d8834e07e1f6d8de90a2c703a4c3a
2020-01-10 15:05:49 -05:00
TreeHugger Robot
5ba7d903a6 Merge changes Id007cc64,I94afce96
* changes:
  Minified people row
  Current user and work profile availability in peoplehub
2020-01-08 17:33:43 +00:00
Steve Elliott
d991c048bc Minified people row
Bug: 146664602
Test: manual, atest
Change-Id: Id007cc64a6d37dea51bbdd5d70d7eac4df7556ac
2020-01-08 11:19:48 -05:00
Narayan Kamath
1fe15700f7 SystemUI: Remove stray space at the end of a sentence.
In the interests of grammatical accuracy. Was also confusing
to the localization team.

Test: manual
Bug: 146821690
Change-Id: I1404423e29904052a899aa406adf17417be67914
2019-12-27 13:06:49 +00:00
TreeHugger Robot
cbb570901c Merge "Change media projection permission dialog." 2019-12-19 12:38:27 +00:00
Automerger Merge Worker
872b451e77 Battery Saver capitilized in tile am: 730fc5b2c9 am: 9315c09b30
Change-Id: I0777856e60828bd739737779b92b9fd1ac0363a3
2019-12-18 02:58:37 +00:00
Automerger Merge Worker
9315c09b30 Battery Saver capitilized in tile am: 730fc5b2c9
Change-Id: I2df5bce6d717a6dc22e42aa489d9da3d14b52bf5
2019-12-18 02:42:39 +00:00
Jay Aliomer
730fc5b2c9 Battery Saver capitilized in tile
When the phone is in battery saver mode, the "Battery Saver" secondary
label should be capitalized

Test: manual

Fixes: 145694753
Change-Id: Ia88547aa05ad441b07da3044e7148e1a918c28b5
2019-12-18 02:07:12 +00:00
Automerger Merge Worker
6edce1b1cc Merge "Dark theme battery saver tile secondary text" into qt-qpr1-dev am: a8a1e592aa am: 24beda9edb
Change-Id: I6242f9ff875715eae91c38558313556502df1072
2019-12-17 23:13:28 +00:00
Automerger Merge Worker
24beda9edb Merge "Dark theme battery saver tile secondary text" into qt-qpr1-dev am: a8a1e592aa
Change-Id: Icb7b51383b444748077d019cccb9e5416261599a
2019-12-17 22:09:27 +00:00
Jay Aliomer
f19ce4af1d Dark theme battery saver tile secondary text
Dark theme tile on battery saver should show
"Dark theme" and "Battery saver" on two lines

Test: manual. turn battery saver on while dark theme on auto

Fixes: 146439388
Change-Id: I460b582ca7fcf244b406d6eaf70c10e4edc52d85
2019-12-17 20:57:08 +00:00
chaviw
4ce1ddff79 Added WindowMagnification for Accessibility in System UI
Added support for window magnification as an accessibility feature. The
UI can either be dragged to a new a location or arrow controls can move
the window around.

Test: adb shell settings put secure window_magnification 1
Bug: 136250281
Change-Id: If3098df098f2a1b88b2170e773dccc8f86946abf
2019-12-16 13:49:53 -08:00
Sunny Goyal
b4a26016c4 Moving product specific strings to a separate directory
This allows for easier organization of gradle project

Test: Verified everything builds
Change-Id: Idde32a0ccdf0c6cf0fca7898d7ad770b709fc1f5
2019-12-06 17:48:39 +00:00
Narayan Kamath
d47702cd09 Change media projection permission dialog.
Based on feedback from partners.

Test: visual
Bug: 143183960
Change-Id: Ifa734cc8b2f7ca7696af03327709728731ca9490
2019-11-28 15:00:36 +00:00
Wilson Wu
fe7f309fae Merge "Support showing alignment hint based on aligniment state of dock" into qt-qpr1-dev
am: fc3f1408da

Change-Id: I4b9b1fd4c3209a6e3ae42c65d0a2b4c8484fc8ba
2019-11-26 02:39:29 -08:00
Wilson Wu
fc3f1408da Merge "Support showing alignment hint based on aligniment state of dock" into qt-qpr1-dev 2019-11-26 10:29:40 +00:00