Commit Graph

8355 Commits

Author SHA1 Message Date
Bill Yi
e3f8b4ff70 Import translations. DO NOT MERGE
Change-Id: Ie48301fb4f8c626c2f6514f8f0c41f9f07bec252
Auto-generated-cl: translation import
2018-12-06 03:45:08 -08:00
Gustav Sennton
97a0949361 Merge "Use a fixed size for smart actions icons." 2018-12-05 11:48:43 +00:00
Brad Stenning
8d1a51c4da Move car related code from SystemUI to CarSystemUI
Test: Emulator phone and Car
Change-Id: Ia64a23c1d3643899118e578b82c665c034af1c8e
2018-12-04 09:19:36 -08:00
Fabian Kozynski
9016506e52 Merge "Removed unused animations" 2018-12-04 16:00:24 +00:00
Gustav Sennton
c726f47c00 Use a fixed size for smart actions icons.
Before this CL we would calculate the size of smart action icons by
inflating a new button (to make sure the icon wouldn't make the button
larger than necessary). With this CL we instead use a fixed size for the
icon.

Bug: 119858891
Test: Turn on Smart Actions in cinek@'s Notify app to ensure the icons
have the same size as before this CL.

Change-Id: I596ae3c314770663d9987f80216f368d1eb0007c
2018-12-04 12:08:13 +00:00
Fabian Kozynski
cddef9467f Removed unused animations
Test: builds and atest passes.
Bug: 120090468
Change-Id: Iee6f7ec86136fa7cbbaff49ce6d0040f32a2e480
2018-12-03 14:53:29 -05:00
TreeHugger Robot
c4cbe40fda Merge "Display Hearing Aids name on UI tile" 2018-12-03 16:31:16 +00:00
Kevin Chyn
3d9b0fc963 Merge changes from topic "biometric-refactor"
* changes:
  3/n: For passive modalities, add plumbing for "try again"
  2/n: Multi-modal support for BiometricPrompt
  1/n: Move BiometricDialog management to BiometricService
2018-12-01 05:04:02 +00:00
Stanley Tng
c118294af8 Display Hearing Aids name on UI tile
When the current device is a hearing aids, display the name under the
tile.

Bug: 117423826
Test: Manual testing on phone with hearing aids connected
Change-Id: I98cfda7905763a3da3dbc1fbed13fee881da7bb2
2018-11-30 15:09:35 -08:00
TreeHugger Robot
a8cb5a8bef Merge "Added plural form for "one"" 2018-11-30 20:38:49 +00:00
Kevin Chyn
23289ef7b6 3/n: For passive modalities, add plumbing for "try again"
When "try again" is showing, authentication is canceled internally.
BiometricService caches the client's info so that authentication can
be restarted when "try again" is pressed. Because authentication
is not running when "try again" is showing, BiometricService also needs
to have a TaskStackListener so that BP can be dismissed and an error can
be sent to the client when the app loses focus.

IBiometricServiceReceiver has been split into two. One for BiometricPrompt
to receive messages from BiometricService, and another for BiometricService
to receive messages from SystemUI/<Biometric>Services.

When we get locked out, don't send the last onAuthenticationFailed
to the client, since "Authentication failed" will be shown briefly
and be replaced by "Device locked out" which is janky

Bug: 111461540

Test: Tested with requireConfirmation enabled/disabled
Test: Tested onConfigurationChange corner cases, e.g. when "try again"
      or "confirm" buttons are showing, rotate the device. Buttons
      persist correctly and don't appear when unexpected
Test: Tested task stack corner cases, e.g. when "try again" is showing,
      press home button. BP dismisses and client receives ERROR_CANCELED
Test: BiometricPromptDemo receives all callbacks

Change-Id: I62126708ce8db8b358c666a07aa7c39607642c9d
2018-11-30 11:34:35 -08:00
Gus Prevas
82ad059b13 Updates NotificationInfo layout/buttons.
This change modifies the UI displayed when the new interruption model is
enabled after long pressing a notification or tapping the settings icon
in the notification side menu.  The text links for blocking the channel,
toggling its importance, or canceling out of the dialog are replaced
with buttons with icons and clearer text descriptions.

Test: atest NotificationInfoTest
Bug: 116622974
Change-Id: I06ead5c4da77319df3ebe4c48d863dede37bf2f4
2018-11-30 11:30:51 -05:00
Fabian Kozynski
e3eb6e6717 Added plural form for "one"
Test: build
Change-Id: I3803d843e172e555a6bc580642932a29b0642d69
Fixes: 120133418
2018-11-28 12:27:57 -05:00
Fabian Kozynski
cc64dadb05 Merge "Adjusted margins of Ongoing App Ops Dialog" 2018-11-27 22:37:46 +00:00
Fabian Kozynski
bb68be0ccf Adjusted margins of Ongoing App Ops Dialog
Margins adjusted according to updated mocks

Test: Visual (show layout bounds)
Fixes: 120027803
Change-Id: I052a5711f41087427833b1b6341e8d09b808a531
2018-11-27 15:38:15 -05:00
Fabian Kozynski
2c80342081 Merge "Fixes strings" 2018-11-27 15:53:20 +00:00
Julia Reynolds
268647a748 Proxy notification improvements
- Fix a bug where the notifications weren't being posted
- Add attribution to the notification guts

Bug: 111452544
Test: atest
Change-Id: Id19e58cf66a62b179cb684783b264dad8a5371b0
2018-11-26 11:13:16 -05:00
Gustav Sennton
fa830752aa Merge "Add smart actions to message notifications." 2018-11-22 00:58:46 +00:00
Fabian Kozynski
5d44a4f426 Fixes strings
Bug: 119835271
Bug: 119835278
Bug: 119835773
Test: visual
Change-Id: Ifb860cfac3354d0a64d856c003fc33d112f2d0f8
2018-11-21 15:01:10 -05:00
Gustav Sennton
eab5368d4f Add smart actions to message notifications.
Smart Action look similar to Smart Replies with an icon next to the
button text.
Smart Actions can be added either by an app, or by the framework itself
(through NotificationAssistantService).
The idea is that Smart Actions are really actions relating to the
content in the notification message.

The priority order of smart replies vs. actions will be dealt with in a
follow-up CL (i.e. whether we should prioritize showing smart actions
over smart replies).

Example notifications:
System generated:
https://screenshot.googleplex.com/f6p8uOMygeT.png
App generated:
https://screenshot.googleplex.com/VR6On1eh4CW.png
2 app generated actions:
https://screenshot.googleplex.com/QuM5e792xhb.png

Bug: 111406942
Test: manual tests = add custom actions directly in sys ui and ensure
they're shown in message notifications.
Test: atest SystemUITests

Change-Id: I0ce959b74e89bcabc69b76c50c1877e70d6f06df
2018-11-21 15:35:43 +00:00
Selim Cinek
ff2ffece4b Removed the shadow alpha property from notifications
It wasn't used anymore. Additionally are we also removing the
drag animation events that were originally created for the shadow
alpha animations.

Test: runtest systemui
Change-Id: Ia5cbf7ecb2728fc1298c1b22f3f37bac6b531803
Fixes: 119791828
2018-11-20 11:54:24 -08:00
Mady Mellor
4c102acbf9 Merge changes from topic "initial-bubbs"
* changes:
  Update scrim controller to bubble state when bubbles are expanded
  Introduce scrim state for bubbles
  Update PIP dismiss to work a little better for bubbles
  Make status bar full screen when bubbles are present
  Auto bubble some notifications (behind debug flag)
  Introduce bubble controller & friends
2018-11-20 02:12:50 +00:00
Mady Mellor
c3d6f7d386 Introduce bubble controller & friends
* BubbleController manages adding / removing / state of the bubbles,
  this is what other things should use to check what the state is.
* BubbleStackView renders the stack and deals with expanding / collapsing
  and any view stuff
* BubbleView creates the circular bubble representation and holds the
  notification entry for the bubble. BubbleStackView manages the
  BubbleViews.
* BubbleTouchHandler is where all the touch logic is, BubbleStackView
  uses and so do BubbleViews if you're dragging out a BubbleView from the
  stack to dismiss

* Adding bubbles to the screen and dismissing them are not included in
  this CL, there are later CLs including this logic

Test: manual / working on proper ones
Bug: 111236845
Change-Id: I07ae1202cc7019fcd7e00151ad3ca4a48e2e1350
2018-11-19 15:11:34 -08:00
Lucas Dupin
b1dbcc285c Merge "Keyguard debug flags" 2018-11-17 00:19:21 +00:00
TreeHugger Robot
5ed7b13a05 Merge "Adds block and silence/alert buttons to notification menu." 2018-11-16 19:45:20 +00:00
Lucas Dupin
797561c893 Keyguard debug flags
These are temporary flags that let our UX team test various
interaction patterns. This CL will be reverted once we decide
how to move forward.

Bug: 111405682
Test: manual with setprop
Change-Id: I9235e1e56b0e355c32e808beb32ebd21538ca89d
2018-11-16 11:11:35 -08:00
Gus Prevas
bd348a8de4 Adds block and silence/alert buttons to notification menu.
This change adds buttons as needed to the menu on the right side of a
notification to block the notification's channel and to toggle the
channel's priority.

Bug: 116622974
Test: atest NotificationMenuRowTest
Change-Id: I8179f4893bb86496ee4da718824a263e736ee5a6
2018-11-16 10:39:33 -05:00
Fabian Kozynski
ef12449cf8 Version 2 of Ongoing Privacy Dialog
Minor changes to colors and layout of chip.

Redesign of dialog using new mocks.

Dialog launches Permission Hub

Test: visual & atest PrivacyDialogBuilderTest
Fixes: 117646163
Bug: 112331475

Change-Id: Ic8008f05fcb139c2581794abbb47c00819c20d7f
2018-11-16 09:16:25 -05:00
TreeHugger Robot
e7bb2108b5 Merge "Change font in QS to Google Sans" 2018-11-16 00:21:17 +00:00
TreeHugger Robot
d8059a2a89 Merge "Show privacy icons in status bar" 2018-11-15 21:58:35 +00:00
Fabian Kozynski
e0abce035f Change font in QS to Google Sans
Test: Visual
Change-Id: I911bdee9b72afe619b830ac762b7820804a45b1f
Bug: 117672345
2018-11-15 12:56:42 -05:00
Evan Laird
cf1a103d70 Show privacy icons in status bar
Adds PrivacyItemController to PhoneStatusBarPolicy so that we can show
microphone and camera privacy icons in the status bar.

Test: open camera to show the camera icon
Test: open a recording app to show microphone
Bug: 112331475
Change-Id: Ia14f838d715a2808db595c9da3be236d36cc6589
2018-11-14 13:46:08 -05:00
TreeHugger Robot
b8bb293e72 Merge "Use display context to inflate navbar on external display" 2018-11-14 08:35:32 +00:00
Riddle Hsu
19607774dd Use display context to inflate navbar on external display
- Disable rotation suggestion button if the navbar is on
  non-default display because there is no accelerometer sensor.
- Avoid leakage by removing navbar fragment from fragment
  host when display is removed.

Bug: 117746225
Bug: 117744614
Test: atest SystemUITests
Test: manual - create a virtual display with system decoration.
      The navbar on the virtual display should not change when
      rotating or changing density of default display.
      And after releasing the display, use command "dumpsys
      activity service com.android.systemui/.SystemUIService |
      grep NavigationBarFragment" to check the number of instances.

Change-Id: Icdc8634628ace21395b7eb9d77c6b1067850d1b2
2018-11-14 15:04:44 +08:00
Kevin Chyn
d60f2b049c Merge "Add work background/color to BiometricPrompt for managed profiles" 2018-11-13 21:51:28 +00:00
Evan Laird
4bf21dffaa Add estimated time remaining text to QS
- Add an API to BatteryController to get an estimated time remaining
string.
- BatteryController will now check up to once per minute what the
estimated time will be and builds the string using PowerUtil.
- If the "show percentage" setting is on, the estimated time remaining
string (and battery icon) will show next to the system icons in QS
- Also make the battery percent in QS obey the setting

Test: visual
Bug: 116481529
Change-Id: Iaafa00127c8b8baae40956254a1237c8b7ac079b
2018-11-13 10:47:14 -05:00
Fabian Kozynski
ab96fe0b43 Merge "Separates logic from Chip. Chip is notch-aware." 2018-11-13 14:03:25 +00:00
Kevin Chyn
1b9f8dfb36 Add work background/color to BiometricPrompt for managed profiles
Bug: 117347671

Test: Followed steps in b/119296586#comment1
Test: Background/color changes properly when launching BP from
      managed / unmanaged profiles

Change-Id: Ia0368041540b65b41957d2adbcaa75c0739f62f1
2018-11-12 22:39:29 -08:00
TreeHugger Robot
c59a28bd16 Merge "Dragging hit target over nav bar is bounded by its window (1/2)" 2018-11-13 04:17:45 +00:00
TreeHugger Robot
df2de6437a Merge "Import translations. DO NOT MERGE" 2018-11-12 21:40:21 +00:00
Fabian Kozynski
8d06c71096 Separates logic from Chip. Chip is notch-aware.
Logic extracted from chip view into its own controller.
QuickStatusBarHeader is called when there are changes and sets the
visibility for the chip

Changed behavior when there is a top notch. When the chip is
visible and there's a notch the BatteryMeterView is set
to GONE.

Test: Visual & atest (PrivacyItemControllerTest)
Fixes: 119309613

Change-Id: Iab04a8da3f81e81bf6558d63650740b118809359
2018-11-12 16:02:54 -05:00
Gus Prevas
175214c4a2 Merge "Adds gap after high-priority notifications." 2018-11-12 19:23:43 +00:00
Bill Yi
b7ab812dac Import translations. DO NOT MERGE
Change-Id: I80b8d2fbed81c9acda6f892bb40737516d029505
Auto-generated-cl: translation import
2018-11-12 08:28:41 -08:00
Gus Prevas
e2d6f0408b Adds gap after high-priority notifications.
This change adds a gap between notifications of IMPORTANCE_DEFAULT or
higher and all other notificaitons.  The position of the gap is
recalculated from NotificationPanelView.updateNotificationViews() and
the various components which handle the rounded corners of the
notification shade (NotificationRoundnessManager, the shelf, and the
drawBackground() method in NotificationStackScrollLayout) are updated to
handle rounding the corners on either side of the gap.

Change-Id: Ib8d875d4b82184c9c4d363669606261030a467c8
Bug: 116622974
Test: atest SystemUITests
2018-11-12 10:55:35 -05:00
Matthew Ng
f1f8a43f45 Dragging hit target over nav bar is bounded by its window (1/2)
Test: manual
Bug: 112934365
Change-Id: I14126a91d8004b9b24ad11b5b9f260f263b2b65c
2018-11-09 16:16:04 -08:00
Gus Prevas
9abc50646f Adds silence toggle to notification settings.
This change modifies the UI that appears when a notification is
long-pressed to include a third option when the notification could
potentially buzz or make sound, allowing the user to promote or demote
the notification's channel such that it will not alert (or will start
alerting) for future notifications.

Test: atest SystemUITests
Bug: 116622974
Change-Id: Ia070d0ef1b181b4de8b3d49ace9ff2a65fed8deb
2018-11-09 13:19:11 -05:00
Kevin Chyn
7d54535d62 Merge "Update margin / corners on BiometricDialog" 2018-11-08 18:51:48 +00:00
Kevin Chyn
bb26914777 Update margin / corners on BiometricDialog
Bug: 111461540

Test: BiometricPromptDemo with multiple orientations

Change-Id: Iaa6c58118662091045229491cee79fbb5a9093d2
2018-11-07 19:34:27 -08:00
TreeHugger Robot
b8d667222e Merge "Keep ambient notifications visible for 10sec" 2018-11-07 23:59:35 +00:00
Lucas Dupin
424859a44b Keep ambient notifications visible for 10sec
We were using 6 seconds before.

Test: visual
Bug: 111405682
Change-Id: Ib48b5c6f05a29975bed449c4029b5d4e8652c6f8
2018-11-07 13:35:46 -08:00