Commit Graph

1882 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
bb26914777 Update margin / corners on BiometricDialog
Bug: 111461540

Test: BiometricPromptDemo with multiple orientations

Change-Id: Iaa6c58118662091045229491cee79fbb5a9093d2
2018-11-07 19:34:27 -08:00
Fabian Kozynski
1263824ae5 Dialog and chip for privacy showing
Creates a chip and a dialog to show the current apps using certain app
ops (location, microphone, camera).

Dimens are estimated. Settings button dismisses dialog for now.

Test: atest && visual
Bug: 117646163
Change-Id: Ida5b42acf331d6c9da06141379eadc0da5e72df2
2018-11-02 12:14:10 -04:00
Beth Thibodeau
5898ac47b2 Adding screen recording function.
Screen recording can be launched via long press on screenshot in
the global actions menu if the local feature flag is enabled.
Otherwise, long press on screenshot will also trigger a screenshot.

Demo videos: https://drive.google.com/open?id=1oJzfzJb8aGXSUqn4CZ_Yn7qWmJ2dvRd5

Test: manual
Change-Id: I373d38ad86291ff6f26f7dca3195001bd8f5ee16
Bug: 111395687
Bug: 118826991
2018-11-01 15:56:39 -04:00
TreeHugger Robot
8a57b4d4fa Merge "Revert "Proxy notification improvments"" 2018-11-01 01:21:23 +00:00
Daniel Sandler
d0a52b6013 Revert "Proxy notification improvments"
This reverts commit ac98aea2ed.

Reason for revert: b/118700922 (broken CTS test)

Bug: 118700922
Change-Id: I7d55365b3f64acd82e377dc973e2de5d654cc352
2018-10-31 20:14:02 +00:00
TreeHugger Robot
685f77665d Merge "Fixes biometric dialogs in dark mode." 2018-10-31 19:53:32 +00:00
Gus Prevas
a7df7b2f86 Fixes biometric dialogs in dark mode.
This change removes the hardcoded colors from the biometric dialog
layout, and recreates the dialogs in response to a configuration change.

Change-Id: I20459781570a6d223464b6cbf8ca516994710b3e
Fixes: 117504007
Test: manually
2018-10-30 13:54:03 -04:00
Julia Reynolds
8775b65952 Merge "Proxy notification improvments" 2018-10-30 17:02:24 +00:00
Julia Reynolds
ac98aea2ed Proxy notification improvments
- Fix a bug where the notifications weren't being posted
- Add attribution to the notification guts

Bug: 111452544
Test: atest
Change-Id: I58d104fe0ad8450a4722585335011ea633fee52a
2018-10-29 14:16:03 -04:00
Winson Chung
2dbcf0973b Moving SysUI with legacy Recents to another build target
- Move all legacy recents code out of the core sysui code
- Add separate target for products which still depend on it
- Move overview proxy implementation into another implementation of the
  recents interface

Test: atest SystemUITests
Test: Push SystemUiWithLegacyRecents to the system image
      adb shell pm disable com.google.android.apps.nexuslauncher/com.android.quickstep.TouchInteractionService
      and ensure that the old recents implementation still works (and split
      screen)

Change-Id: Iad67218ec37c13c79b6393d87f6bdc4f3996e2c6
Signed-off-by: Winson Chung <winsonc@google.com>
2018-10-26 10:15:50 -07:00
Selim Cinek
908d785aaa Merge "Fix overlap between operator name and heads-up notification" 2018-10-12 21:04:48 +00:00
Tetsutoki Shiozawa
ce9645b17a Fix overlap between operator name and heads-up notification
The title of heads-up notification was shown incompletely
because it's covered by operator name.
To fix this issue, the operator name should be hidden
when a heads-up notification is shown.

Fixes: b/116533819
Test: atest SystemUITests
Test: manual - enable config_showOperatorNameInStatusBar
               and show a heads-up notification

Change-Id: Id3318cd7cb2c9b6950392fadd11d02ab873d84c5
2018-10-11 21:18:20 +00:00
Lucas Dupin
957a3f4aa1 NotificationInfo should use the notification theme
Test: visual
Change-Id: Id183e58f63d4f578cd1535f5848e859d16916883
2018-10-11 13:48:30 -07:00
Fabian Kozynski
52bd8c260e Fixes wrong measurements on QS animation
Clipping of PagedTileLayout is done independent of padding so no
measurement corrections are needed. Padding in TilePage fixed so
the pages are centered (they use all the width).

FrameLayout in qs_paged_tile_layout removed as not used.

Change-Id: If8cd95855ebcddf533e87b9203c4ee3d831bdf2c
Test: atest && visual
Fixes: 117452733
Bug: 117401270
Bug: 117096186
2018-10-09 10:18:26 -04:00
TreeHugger Robot
a5f160fd6e Merge "Show padlock on AOD" 2018-10-05 23:29:45 +00:00
Lucas Dupin
117365db66 Show padlock on AOD
Bug: 111405682
Test: manual
Change-Id: I1e41cc332d676d977447327b75737795713f3040
2018-10-05 12:35:35 -07:00
Fabian Kozynski
051d856587 Merge "Fix clipping on scrolling QS Panel" 2018-10-02 13:02:31 +00:00
Fabian Kozynski
6eaf3acd2c Fix clipping on scrolling QS Panel
QS Panel paged view now clips to its padding.

Pages are horizontally centered.

Test: runtest & Visual
Change-Id: If35b8d6f4c44cb0c425efa6e8f6aa92a8cfa0c75
Fixes: 117096186
2018-10-01 17:28:54 -04:00
TreeHugger Robot
eb56016997 Merge "Fixed size of buttons in switch user panel" 2018-09-26 15:29:48 +00:00
Fabian Kozynski
13155ef2f9 Fixed size of buttons in switch user panel
Test: Accessibility Scanner
Fixes: 115582288

Change-Id: I1b02c06fa8d1461f9e26e8cca881cb3f2d0d8f1f
2018-09-25 15:04:08 -04:00
Fabian Kozynski
a60b0e2a38 Merge "QSCustomizer updates transparent view height" 2018-09-21 18:13:40 +00:00
Kevin Chyn
6cf54e8190 3/n: Add FaceDialogView and "confirmation" plumbing
This change adds plumbing from <Biometric>Service to SystemUI for requiring
user confirmation (or not). This change also fixes some layout bugs
that were hard to notice.

Bug: 111461540
Fixes: 113130114
Fixes: 116135579

Test: With confirmation, crypto operation does not work until token
      is added to Keystore
Test: Without confirmation, crypto operation works when biometric is
      authenticated
Test: BiometricPromptDemo works, UI elements are all correct
Test: Talkback messages are correct

Change-Id: I2c05577699a29c09777cae4db6c7334c1e6bc179
2018-09-20 17:53:10 -07:00
Kevin Chyn
0be1f33757 2/n: Refactor common code from FingerprintDialogView
Bug: 111461540

Test: BiometricPromptDemo works
Change-Id: I7077b062f1da0e084a38d5d53248123a82456a48
2018-09-20 12:58:54 -07:00
Fabian Kozynski
bf954233c6 Merge "Refactor PagedTileLayout to not overflow screen" 2018-09-20 14:33:55 +00:00
Fabian Kozynski
712ae39210 Refactor PagedTileLayout to not overflow screen
PagedTileLayout respects MeasureSpec mode for height to decide on how many
rows to show. TilePage and PagedTileLayout only show as many rows as
they can up to the height of the screen. TileLayout can calculate the
maximum number of rows given a height limit.

Fixes: 113082314
Test: Visual, atest

Change-Id: I2860d71c9aeb2a8ac62fcdbc71a3041a91605bcb
2018-09-20 09:01:53 -04:00
Fabian Kozynski
5d5deeb256 QSCustomizer updates transparent view height
Updates the height of the transparent view that overlays the status bar
when the QS Customizer panel is expanded whenever the configuration
changes.

Change-Id: Ic0dd4d07f8149ac8434495d2d0c5373329e034a6
Fixes: 115999397
Test: Visual & atest
2018-09-20 08:48:15 -04:00
Tracy Zhou
8b4bb8664e Update Quickstep Onboarding tips to use theme color so that it works in both light and dark theme.
Test: manual
Change-Id: I027887fe853d41be689431f0e893e661b9a0c6e5
Fixes:115928014
2018-09-19 23:13:48 +00:00
TreeHugger Robot
500420ce55 Merge "Fixes tapping home button on right edge with quickstep layout" 2018-09-18 23:49:32 +00:00
Matthew Ng
a099cc8bb1 Fixes tapping home button on right edge with quickstep layout
Reverted ag/4731597 since it was causing issue and instead hides the
menu container when none of its children are visible.

Change-Id: Ie48ef32f8a66392796cb0330faed6dff499bc1b1
Fixes: 114099654
Test: tap around the right edge
2018-09-18 14:54:07 -07:00
Evan Laird
4418fe2c3d Merge "Leave spaces between Operator name and Clock in StatusBar" am: 375af769e6 am: 3832515acf
am: e06b199457

Change-Id: Ic6fcd200364780b66d29b4d502f0c7c70f2af48a
2018-09-13 13:11:44 -07:00
Evan Laird
e06b199457 Merge "Leave spaces between Operator name and Clock in StatusBar" am: 375af769e6
am: 3832515acf

Change-Id: I80224e5a1cfa6433255d737f8943e4ce35932a53
2018-09-13 12:51:29 -07:00
Shigeki Yokomichi
52a11bbe15 Leave spaces between Operator name and Clock in StatusBar
In StatusBar, there are no spaces between Operator name and Clock,
so leaving spaces to improve design.

Bug: 114133664
Test: Manual, enable operator name in status row
config_showOperatorNameInStatusBar, insert sim card with operator name,
watch status row.

Change-Id: I1a2e33436ed50d429ae4b1769d0a72d501233a22
2018-09-13 11:39:30 +00:00
Julia Reynolds
b1e57eaa5e Set a min width on 'ok' touch target
Test: layout inspector
Change-Id: I914c13897071624104b4646d3974aeecba660ba0
Fixes: 111724330
2018-09-07 19:17:24 +00:00
Fabian Kozynski
3f78933e89 Fixes race condition in animation on Ringer Status.
Race condition caused by setting the container to INVISIBLE regardless
of new status.

Change-Id: I28b2d8bf5ae6587ac8aa5ab807e835a7fd2a97f9
Fixes: 111137359
Test: Visual and runtest
2018-09-05 12:50:41 -04:00
Matthew Ng
4da4f9b986 Reduce NearestTouchFrame size to prevent button taps on nav bar
am: 7daaaad74a

Change-Id: I7888977d8e53ad03e6aadd0b154a757e36957068
2018-08-31 09:11:01 -07:00
Matthew Ng
7daaaad74a Reduce NearestTouchFrame size to prevent button taps on nav bar
The NearestTouchFrame spanned the entire nav bar that took any tap to
hit the nearest button such as the back button. Reducing it prevents
taps from the edge of the nav bar. Related: ag/4179853

Change-Id: I25a73cc995ed8d479ca9d5da85ec8a7cb629769d
Fixes: 112298917
Test: tap the left side of the nav bar
(cherry picked from commit 9e90f24dc5)
2018-08-31 04:09:14 +00:00
Aurimas Liutikas
b8616dc4d1 Migrated SystemUI & SettingsLib to androidx
Test: make SystemUI SettingsLib
Bug:76692459
Change-Id: I248fdf4042a0a97bc6349091da21c936c2d37c95
Merged-In: I248fdf4042a0a97bc6349091da21c936c2d37c95
(cherry picked from commit fd52c1433c)
(cherry picked from commit d366771e84)
(cherry picked from commit a14377a450)
2018-08-28 14:19:51 -07:00
Amin Shaikh
061b36e47d Vertically center QS customizer heading.
Bug: 77326457
Test: manual
Change-Id: I1938453184d0dea1a98374710e84604931fbf2ff
2018-08-28 16:33:21 -04:00
Aurimas Liutikas
d366771e84 Migrated SystemUI & SettingsLib to androidx
Test: make SystemUI SettingsLib
Bug:76692459
Change-Id: I248fdf4042a0a97bc6349091da21c936c2d37c95
Merged-In: I248fdf4042a0a97bc6349091da21c936c2d37c95
(cherry picked from commit fd52c1433c)
2018-08-27 22:41:10 -07:00
Fabian Kozynski
1720c36285 Changed font in QSEdit headers to Google Sans.
Created new style with same parameters as before but using
placeholder for Google Sans.

Fixes: 79166531
Test: Manual
Change-Id: I12cc34c4fa8e0eeb4e94dafe64f0d6664c8d0da0
2018-08-23 13:14:44 +00:00