Commit Graph

1039 Commits

Author SHA1 Message Date
Evan Laird
638ebb3254 Listen for EXTRA_PRESENT changes
ACTION_BATTERY_CHANGED can pass a boolean EXTRA_PRESENT which would
alert listeners that a battery may or may not be present. SystemUI now
wants to show an error battery state instead of a potentially misleading
status in this situation.

Bug: 169935148
Test: adb shell cmd battery set present 1
Change-Id: I7d576248bb9931059100facb67ca6b46e81e554e
Merged-In: I7d576248bb9931059100facb67ca6b46e81e554e
2020-12-11 16:05:37 -05:00
timhypeng
c23f9171ce Add controller for Media operation
-Access LocalMediaManger to display avilable output devices information
-Access LocalMediaManger to do media operation, such as volume adjustment,
switching output device, grouping
-Access MediaController to show media content information
-Add MediaOutputControllerTest for unit test

Bug: 155822415
Test: atest MediaOutputControllerTest
Merged-In: I9eb6e3b0a6e584637aecb4132dbc2b138c6d1530
Change-Id: I9eb6e3b0a6e584637aecb4132dbc2b138c6d1530
2020-12-02 03:21:14 +00:00
Jeff DeCew
a49a320e49 Disable player's "Dismiss" button when notification is not dismissible.
Bug: 169271494
Test: manual
Change-Id: I3c2a73e4885642965ec553387b5e91f0cb16ff2f
Merged-In: I3c2a73e4885642965ec553387b5e91f0cb16ff2f
2020-10-14 10:16:26 -04:00
Fabian Kozynski
7a5e333ba5 Add TileAdapterDelegate
Use an AccessibilityDelegate for the actions in QSCustomizer. Adding or
removing a tile can now be done with the click action, whereas moving or
adding to a particular position require a context action.

This removes the old custom dialog and improves the overall
accessibility.

Test: manual
Test: atest TileAdapterDelegate
Bug: 168039987
Bug: 140366995

Change-Id: Ib5b19aeebb54c46573555563c3f39bd922b68896
Merged-In: Ib5b19aeebb54c46573555563c3f39bd922b68896
(cherry picked from commit ac22e5bf36)
2020-09-23 19:12:22 +00:00
Beth Thibodeau
6fcdb6bf9e Remove delete action from notification
Fixes: 153621404
Test: manual
Change-Id: I1c6046a84d15719c5bad8a840037fa08be05fe65
Merged-In: I1c6046a84d15719c5bad8a840037fa08be05fe65
(cherry picked from commit 1700fdca78)
2020-08-20 20:07:17 +00:00
Fabian Kozynski
2e0f351d35 Add guts to media player on long press
Adds the following:
* Button for accessing settings
* Button for dismissing player (similar path to when a package is
uninstalled)

Guts will close automatically if:
* QS is collapsed
* Media carousel changes pages

Also, flattened the view hierarchy to support animations between states.

Test: manual
Test: atest com.android.systemui.media
Bug: 156036025
Change-Id: I340e0b37393573f81a3bf12d5e453eccf5982473
Merged-In: I340e0b37393573f81a3bf12d5e453eccf5982473
(cherry picked from commit 429360fb39)
2020-08-10 12:51:33 -04:00
Fabian Kozynski
9a85dc9c0a Merge changes from topic "permission_chip" into rvc-qpr-dev
* changes:
  Restricts notified app ops based on flags
  Add back privacy chip
2020-07-23 13:45:26 +00:00
Fabian Kozynski
d074a54435 Add back privacy chip
This adds back the privacy chip classes (Controller and view).

Change to using Executors and DeviceConfigProxy, also fix tests that
were flaky before.

Test: SystemUITests
Bug: 160966908
Change-Id: Id3e5981a87c33a8cabe7ce348f9512d81ad2b1d8
Merged-In: Id3e5981a87c33a8cabe7ce348f9512d81ad2b1d8
2020-07-20 14:27:28 -04:00
Beverly
d50eb6eeb5 Update PowerNotificationWarnings
Test: manual
Fixes: 160969580
Change-Id: I451338d8fcad71d1e3d95cbc08808d76f8b7d991
2020-07-15 17:04:13 +00:00
Fabian Kozynski
91280c30c5 Add string for "See more apps"
Test: manual
Fixes: 159792758
Change-Id: I9b116fef0bfaad7c40bb9a9a109e0abf1b005b4c
2020-06-24 10:57:23 -04:00
Beth Thibodeau
ab9e7facdf Merge "[DO NOT MERGE] Support toggling resumption in Settings" into rvc-dev 2020-06-19 22:26:57 +00:00
Antoan Angelov
db36471478 Merge "Show disclosure for organization-owned work profile" into rvc-dev 2020-06-19 14:52:02 +00:00
Beth Thibodeau
c1bc307bce [DO NOT MERGE] Support toggling resumption in Settings
Moved setting so we can use Tunable:
adb shell settings put secure qs_media_resumption 1

If setting is changed, removes all existing resume players

Bug: 154039093
Test: manual
Test: atest SettingsProviderTest
Test: atest com.android.systemui.media

Change-Id: Iad056fbad4520cfe762d9e9f5ed62d38ea1117b1
2020-06-18 23:58:11 +00:00
Ben Lin
0ea256833b Add Accessibility Resize support.
Bug: 158662766
Test: Open a11y context menu and resize
Change-Id: Ib9704ece853fbec65f58b5cb9965937a66b6118c
2020-06-17 15:47:41 -07:00
arangelov
1b21b1cf12 Show disclosure for organization-owned work profile
Fixes: 149073538
Test: manual
Test: atest QSSecurityFooterTest
Change-Id: I5b848a2464d5b4cd394c47a211253411aa1ff930
2020-06-17 09:55:51 +00:00
Fabian Kozynski
1eb40ef103 Change error and none messages
When loading controls returns an error or no controls, show an
informative message.

Test: manual
Fixes: 156923066

Change-Id: Iae3bdb5707d5cda5d970b8a9fc439420eb4f6f8d
2020-06-15 15:43:00 -04:00
Lyn Han
1c442e559c Up char limit for dismiss option in manage menu
Requested by translators

Fixes: 158764580
Test: no effect
Change-Id: I11a4f86b70f6b524f8f6f13aceea3219e92aca8d
2020-06-12 03:25:54 -07:00
Steve Elliott
ef5a7c42c4 Rename "Incoming" section to "New"
Fixes: 158494079
Test: manual, visual
Change-Id: Iaea368d7d31905f2f179a56374360a817cc39a54
2020-06-09 15:58:03 +00:00
Lyn Han
75882e42da Merge "Update string for dismiss option in manage menu" into rvc-dev 2020-06-08 17:42:30 +00:00
Lyn Han
6e1e07eeb6 Update string for dismiss option in manage menu
Fixes: 158037450
Test: manual - manage menu shows "Dismiss bubble" instead of "Dismiss"
Change-Id: I87f4bf11272757637f99d4486a61bbefb32b53e9
2020-06-07 15:31:02 -07:00
Matt Pietal
8761fbb501 Merge "Controls UI - Handle 'not found' better" into rvc-dev 2020-06-04 23:22:54 +00:00
Beth Thibodeau
f55bc6afc2 Adding back media resumption
Behind a flag for now, while we work on animation issues and settings
Enable with: adb shell settings put system qs_media_resumption 1

Bug: 156104922
Fixes: 154823185
Fixes: 156256312
Test: manual; atest com.android.systemui.media
Change-Id: I77e3706031da820ea0d49c5dfd17f89ae7fb7db4
2020-06-04 17:26:13 -04:00
Matt Pietal
370db8771d Controls UI - Handle 'not found' better
Show a more informative error to the user on touch/long press about
how to handle this situation. Properly animate status changes.

Fixes: 154737944
Test: TYPE_DISPLAY in mock app simulates not found error
Change-Id: I15ce2d2621ea29c97936f9d9022d917637693288
2020-06-04 17:20:42 -04:00
Julia Reynolds
e03aa8f751 Update conversation priority onboarding
And fix a bug with toggling priority I noticed while testing

Test: atest
Fixes: 157988478
Bug: 155490513
Change-Id: I8f5a6076ed2aa6c862a187bac15f3ad9af3cd141
2020-06-02 16:49:39 -04:00
Jeff DeCew
2cba4d1db1 Fix typo in Conversations notification.
Test: manual, visual
Fix: 155497988
Change-Id: I3d15896a20f80adfd408ed09f57e4d7cc01d8e2e
2020-05-29 14:08:10 -04:00
TreeHugger Robot
99984950b8 Merge "Moving product specific strings to product directory" into rvc-dev 2020-05-28 14:17:03 +00:00
Lucas Dupin
c1b6a084a0 Merge "Revert "Add media icon to status bar"" into rvc-dev 2020-05-28 01:42:32 +00:00
Lucas Dupin
68857da059 Revert "Add media icon to status bar"
This reverts commit 5d0422347f.

Reason for revert: User feedback
Fixes: 157547868
Change-Id: I1ac06ff410212cd8c83764424268cf4aa38022d8
2020-05-27 23:43:10 +00:00
Sunny Goyal
98eea984b7 Moving product specific strings to product directory
Test: Verified apk builds
Bug: 152086714
Change-Id: I409c7cb235727309b9d2ba6ad8773cd3c0dd6df7
2020-05-27 15:15:07 -07:00
Jeff DeCew
cc4f6f2425 App Pinning strings; security notes on startup dialog.
Bug: 151332926
Test: manual, visual
Change-Id: Ic3e83f1bf4451afe5fe7f21827388f91b0b87378
2020-05-27 12:59:02 -04:00
Julia Reynolds
4959bdd948 Update conversation strings
Test: manual
Bug: 157215227
Change-Id: Ic9f3625451a0546b3b92d7113f91ee7db17b4a9d
2020-05-21 18:52:45 -04:00
Sean Pont
d7ff85ad87 Show lock message in Global Actions
When POWER_MENU_LOCKED_SHOW_CONTENT is false and either the Quick Access
Wallet or Home Controls are available, show a lock message in Global
Actions until the phone is unlocked.

Fixes: 155906825
Fixes: 156923009
Test: manual
Test: atest GlobalActionsDialogTest
Change-Id: Iee664702df17629a5f3213c5580530440167e21e
2020-05-20 10:53:25 -07:00
Lucas Dupin
5d0422347f Add media icon to status bar
Test: manual
Test: atest PhoneStatusBarPolicyTest
Fixes: 156672238
Change-Id: I915ef61cbfd290e417b98c6f423ae230b2938fa7
2020-05-19 14:15:13 -07:00
Fabian Kozynski
93a6975a9e a11y for controls rearranging
This CL adds local context actions for rearranging controls. The actions
allow to move each current favorites one position at a time.

Test: manual
Fixes: 155997794

Change-Id: I3dbace5c11bb93830315ca57513744464595cc16
2020-05-14 16:40:04 -04:00
Fabian Kozynski
b3c393f723 a11y for controls management
Use state description to indicate if a control is a Favorite and its
position for when it can be rearranged.

Also, remove a hardcoded string.

Test: manual
Fixes: 155995940
Change-Id: Ia908558a9108e895457e9847f52744f27fe177c3
2020-05-13 11:45:00 -04:00
Jay Aliomer
54fda22191 Merge "Screen recording sound options" into rvc-dev 2020-05-07 23:20:35 +00:00
Jay Aliomer
0bd491ae55 Screen recording sound options
Adding options to screen recording
Internal and Mic audio combination

Fixes: 146340420
Test: manual
Change-Id: Ib3c3b6c78a4d075f22479897e7c9e93a29c4fd4f

Change-Id: If8d49ebba02150580d8caf3117d293aedcd648ff
2020-05-07 18:02:34 +00:00
Lyn Han
8333811d76 Merge "Overflow a11y" into rvc-dev 2020-05-07 04:28:51 +00:00
Steve Elliott
0b17a06762 Merge "Add new "incoming" header for HUNing notifications" into rvc-dev 2020-05-06 22:34:15 +00:00
Lyn Han
e570696b7d Overflow a11y
Fixes: 149232987
Test: manual - TalkBack on for overflow button, overflow bubbles;
prompts "double tap to add back to stack"

Change-Id: I20f2a3731dca014cf7555d49d676192636bb8d61
2020-05-06 13:52:14 -07:00
Steve Elliott
19b2c86d8a Add new "incoming" header for HUNing notifications
Bug: 155494605
Test: manual, visual
Change-Id: I4838d235bb18204fe929c935b230c041eb12f4f1
2020-05-06 12:05:53 -04:00
Fabian Kozynski
4429ee6d93 Fix redlines and strings in Controls dialog
Also, make sure that it appears on top of the app

Fixes: 155205745
Test: manual
Change-Id: I56ebae4ef6bdf1c89850a4ad70be05b37e3cd0cb
2020-05-04 12:44:41 -04:00
TreeHugger Robot
daaa0d74d2 Merge "Allow for longer strings in priorty onboarding screen" into rvc-dev 2020-04-30 22:42:58 +00:00
Josh Tsuji
b24071b704 Merge "Fix a11y issues." into rvc-dev 2020-04-29 19:41:28 +00:00
TreeHugger Robot
486fdc0b68 Merge "Fix back and cancel flows" into rvc-dev 2020-04-28 20:36:12 +00:00
Joshua Tsuji
0f390fb0fb Fix a11y issues.
Test: use talkback w bubbles
Fixes: 129522932
Fixes: 140367439
Fixes: 149539297
Change-Id: I8ca58df861a23365fdd3a2b7155161538f194d5c
2020-04-28 15:37:17 -04:00
Fabian Kozynski
5f561f0b01 Fix back and cancel flows
This fixes all the back flows (finishing activities when they are not
needed). Also fix some transition animations.

Add a toast when "See other apps" is selected with changes done. This
will appear even if something is changed and reverted, as that kind of
thing is not tracked.

Test: manual, go over flows
Fixes: 154741024

Change-Id: I24611f4f32e41c7dd3774620518f2945db081727
2020-04-28 14:42:09 -04:00
Matt Pietal
94316e9058 Controls Ui - Handle error scenarios
1. Handle errors on action responses
2. Handle errors on control state load
3. Handle retries for PIN prompts

Bug: 150931809
Test: mock app
Change-Id: Ibfb6fc6eb2f94c31d4438bdeb5709800b8256463
2020-04-28 11:56:34 -04:00
Evan Laird
c084789311 Allow for longer strings in priorty onboarding screen
- Up the CHAR_LIMIT to 75 for priority onboarding strings
- set maxlines to 2
- Update some paddings to make things look good when the text does wrap

Test: manual
Fixes: 154614037
Change-Id: I84a84077d1efe69de0611c3a970c45aca38d7c59
2020-04-28 11:22:09 -04:00
Julia Reynolds
8582df5cc7 Add experience for shortcut-less convos
- no conversation specific controls
- no 'bubble this' button
- turn off interim placeholder channels
- fix msg tracking - only shortcut-less notifs matter

Test: atest
Bug: 154814754
Change-Id: Ia04ce496d4e7b2f353c71865f338b5229192c395
2020-04-28 12:11:47 +00:00