Commit Graph

796 Commits

Author SHA1 Message Date
Beth Thibodeau
b45f78f1ab Merge "Use theme corner radius in volume and power dialog" 2019-02-14 20:33:11 +00:00
Beth Thibodeau
8faa0af23b Use theme corner radius in volume and power dialog
Fixes: 124383060
Test: Visually verified that radius changes with theme
Change-Id: I07d77b1cde8bfd23ce20ba552581835d7734857a
2019-02-14 13:25:11 -05:00
Amin Shaikh
116fa334ea Update systemui qs icons to gm2.
Bug: 116357908
Test: mp res sysuig
Change-Id: Ibba0d717042e77287b7067d14a9bec615fd929a8
2019-02-13 16:21:05 -05:00
Fabian Kozynski
216812e981 Change Chip between QS and QQS
Chip animates via fade out and fade in. No redlines for margins and
padding.

Test: manual

Change-Id: I10f024eb06f88b6493687febdbb0d5ccbba450b8
2019-02-07 11:20:34 -05:00
Mady Mellor
e8e07712e0 Add permission prompt to bubble expanded header view
Test: manual / coming soon
Bug: 111236845
Change-Id: Ie616d2215c495e8b30ba7fa8ebb1abdc8e5ebd7e
2019-02-05 13:08:48 -08:00
TreeHugger Robot
c6da7a9f3d Merge "New lock iconography" 2019-02-01 03:10:29 +00:00
Lucas Dupin
c9e5d76952 New lock iconography
Change-Id: Ie8b269a2bdfa1946e0c3591717142a34c1b15c67
Fixes: 122058242
Test: visual
2019-01-31 16:43:35 -08:00
Mady Mellor
9801e85396 Update header to have content intent & settings buttons
* Sets notification entry on BubbleExpandedViewContainer and use that to
  to populate the contents
* Adds settings + app deeplink buttons to header
* Header will use bubble metadata text if it exists or the app name

Bug: 111236845
Test: manual - tested with notify activity view based bubble that
      (1) - tapping deep link button opens content intent
      (2) - tapping settings button opens notif settings for app
Change-Id: I07d6beced7da001e233237b91053b0fc4b18505b
2019-01-30 15:34:02 -08:00
TreeHugger Robot
06dc2c3c1e Merge "Remove unused systemui resources." 2019-01-29 21:23:06 +00:00
Amin Shaikh
d20df8ea81 Remove unused systemui resources.
Bug: 122263617
Test: mp sysuig
Change-Id: If4681826ebe87ab193f96d90720b174a32efadca
2019-01-29 09:32:10 -05:00
Gustav Sennton
3c5fcca4c3 Update smart reply/action sizes to follow mocks.
The smart suggestion mocks show buttons with rounded sides - with this
CL we update the button dimensions to make their sides rounded.
This CL also changes a couple other button dimensions to follow the
mocks.

Screenshots:
One-line buttons before this CL:
https://screenshot.googleplex.com/yzMXZ3Djrmy.png
One-line buttons after this CL:
https://screenshot.googleplex.com/3rBDmTXzkch.png

Two-line buttons after this CL:
https://screenshot.googleplex.com/s1HfEsyTFFU.png
Two-line buttons after this CL:
https://screenshot.googleplex.com/Z2bCLgXCJJu.png

Bug: 121186803
Test: build Android and check how smart suggestions look.

Change-Id: Idac328c4e5e108e4af99e1de16e4db2dcb404bd2
2019-01-24 13:57:54 +00:00
Kevin Chyn
1bafe67c78 Merge changes from topic "face-small"
* changes:
  2/n: Add BiometricPrompt implicit UI
  1/n: Add BiometricPrompt#setRequireConfirmation(bool) API
2019-01-10 22:50:08 +00:00
Kevin Chyn
e191271230 2/n: Add BiometricPrompt implicit UI
In small mode, tapping the gray are is ignored. Combined
StatusBar#showBiometricTryAgain into onBiometricAuthenticated(bool)

We now create a new BiometricDialogView object for each BiometricPrompt
authenticate call. This makes the view's lifecycle much easier to manage.

Bug: 111461540

Test: Small -> Big when error or rejected
Test: Small -> Authenticated looks good
Test: Try again button is shown when rejected
Test: Icon spacing looks good after animation
Test: Big/small state persists across configuration change

Change-Id: Id0157a7506cea9b0e7de079c43f8bd5ba3cbd8c5
2019-01-10 11:11:27 -08:00
Mark Renouf
89b1a4af26 Enable ActivityView in bubbles
Test: manually
Bug: 111236845
Change-Id: I9ed749c2bfe0c883c85a32514f087785b9d63719
2019-01-09 16:17:00 -05:00
Kevin Chyn
2e425c6fb7 Merge changes Ibff5b56f,I24f48aef
* changes:
  Add null checks in BiometricService
  Update BiometricPrompt icons and logic
2019-01-04 00:32:45 +00:00
Kevin Chyn
6bb2077fe2 Update BiometricPrompt icons and logic
Bug: 111461540
Fixes: 120157910

Test: Icons looks good
Test: Taps in gray area after authenticated/confirmed don't send errors
Test: Negative button isn't shown after state == AUTHENTICATED

Change-Id: I24f48aefbabb53ffbb1864679c50afb110efb71b
2019-01-03 11:41:26 -08:00
Amin Shaikh
4f06c93ed5 Delete unused SystemUI icons.
List taken from evanlaird's unusedfiles.txt.

Bug: 120856800
Test: mp sysuig

Change-Id: I4548fbeefe1a009fe61b12a4b5a61f6f748edd63
2019-01-02 21:00:40 +00:00
Lucas Dupin
55b655c881 Delete hollow pill flag
Bug: 111405682
Test: compile, enter AOD, unlock
Change-Id: Iff2054420844099fdbb879ecef9af6ee218383b9
2018-12-26 19:49:43 +00:00
Fabian Kozynski
009bd1bfe3 Merge "Use frameworks wifi icons instead of sysui" 2018-12-17 22:09:33 +00:00
Fabian Kozynski
04e4cdff7a Use frameworks wifi icons instead of sysui
ic_qs_wifi_full_x have been replaced by ic_wifi_signal_x in frameworks.
That way they can be overlaid with the whole system. Also,
ic_qs_wifi_disabled was identical to ic_qs_wifi_full_0, so it was
removed.

Test: Visual (using HotDog overlay)
Bug: 121040363
Change-Id: Ia36613e5c0b1f3a0c1eb5c687d795992e8660955
2018-12-17 15:05:29 -05:00
Pengquan Meng
9a3a1bd6ac Merge "Add 5G icon to System UI" 2018-12-17 19:07:57 +00:00
Chad Brubaker
90f391fe87 Prototype Spaceship mode qstile
Initial prototype disabling location/sensors and enabling airplane mode.
Camera/Mic will come in a followup.

Test: manual
Bug: 110842805
Change-Id: I26132fcc9ffea83e3e78a0e54882d23c99ee590c
2018-12-14 20:46:04 +00:00
Pengquan Meng
a62d32b656 Add 5G icon to System UI
This add the 5G and 5G+ icon to the system UI for 5G Non-Standalone
network.

System UI uses the ServiceState & CarrierConfig to determine whether and
which 5G icon should be displayed in 5G Non-Standalone network.

Bug: 111497313, 111453000
Test: build & manually test
Change-Id: I6fba0f9c42fff3cb1398895b122f18f13de239f7
2018-12-14 10:45:31 -08: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
Fabian Kozynski
cddef9467f Removed unused animations
Test: builds and atest passes.
Bug: 120090468
Change-Id: Iee6f7ec86136fa7cbbaff49ce6d0040f32a2e480
2018-12-03 14:53:29 -05: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
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
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
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
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
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
Lucas Dupin
48609df6e0 Fix face icon size
Change-Id: I60a3c60ee91a69c7599e025a939932a0c0c1719e
Fixes: 117402444
Test: visual
2018-10-08 11:45:58 -07:00
Lucas Dupin
117365db66 Show padlock on AOD
Bug: 111405682
Test: manual
Change-Id: I1e41cc332d676d977447327b75737795713f3040
2018-10-05 12:35:35 -07: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
Matthew Ng
ec5b841e0e Remove more car icons and simplify back button to just one icon (1/2)
Change-Id: I66649e7efff08b699bb42303b066a2f34d40bc0e
Bug: 112864354
Test: manual
2018-08-22 14:36:05 -07:00
TreeHugger Robot
b3d3dd2173 Merge "Change nav bar icons for UX mode: carmode to vector drawables" 2018-08-21 18:10:47 +00:00
Brad Stenning
0403579690 Change nav bar icons for UX mode: carmode to vector drawables
bug: 80003212
Test: compile and deploy to hardware
Change-Id: Id979edf2d5353565ffd0e2930cc06daa5ae81d0d
2018-08-16 17:40:12 +00:00
Matthew Ng
59728ce490 Fix circle in the opa ring and enlarge circle when opa is disabled (1/2)
Use vector drawables to show the ring and the circle instead of using
shapes because for some devices, the scaling causes the circle to not
sit in the center. When opa is disabled, the home button will enlarge to
the full size.

Test: manual - enable assistant and look at home button on pixel devices
Change-Id: If582d5f4dd5b3c8f67156bc6b1b1e40e183e0ed2
Fixes:112603227
2018-08-14 14:35:29 -07:00
Beverly
47fb7e76bb Use AVD files for wireless charging animation
- use avd files instead of programatically drawing animation

Test: manual
Change-Id: I387080a0e8412fecdf7d935c0ab26f3d5e9f02cc
2018-07-25 11:19:26 -04:00
Wesley.CW Wang
a9de792316 Separated emergency option final UI
- Refine faster emergency icon.
 - Add ic_faster_emergency.xml to framework/core/res/drawable.
 - Remove faster_emergency_icon.xml from SystemUI/res/drawable.
 - Change emergency_icon.xml color to colorError.
 - Emergency option(India case) will follow separated option design if
 separated option feature is enabled.

Test: Manually,
use "adb shell settings put global faster_emergency_phone_call_enabled 1" to show separated emergency option(default case),
use "adb shell settings put global emergency_affordance_needed 1" to show India emergency option(India case),
India emergency option will be separated button if feature is enabled,
otherwise it will be default design.
Change wallpaper to enable light/dark theme & check separated emergency option color.
(light theme color : D93025    dark theme color : E25142)

Bug: 110658988
Change-Id: Id13bcb5b5242ded92b309667c5e2beb8694b9977
2018-07-19 15:05:37 +08:00
Yuanjia Hsu
e3d3ca75dc Merge "Add separated emergency option on power menu" 2018-06-28 13:10:27 +00:00
Wesley.CW Wang
3004fcb949 Add separated emergency option on power menu
- Add a separated button on power menu to launch emergency dialer.
 - Change HardwareUiLayout.java FrameLayout to LinearLayout, let it can
display separated button.
 - Add a flag to recognize separated button should show/hide, if
EmergencyAffordance(India) enabled, separated button will hide,
otherwise power menu will display separated button & power
menu last item won't get white background.

Test: Manually, use "adb shell settings put global faster_emergency_phone_call_enabled 1" to show/hide separated emergency option, press emergency option will go to emergency dialer.
Bug: 80376488
Change-Id: I8e6bb72ce7b8cecdb6bd01150b53f61f1515dbb1
2018-06-26 14:46:25 +08:00
Mike Digman
2657757c43 Make rotate nav+qs icon consistent, understandable
Now using the same iconography (but different angle) for nav
and qs. Note nav viewport, size and pivot (for motion) change
is intentional to match other navbar icon sizing.

Test: manual
Change-Id: I1abb33130cc724b6e63e008cf7301ebce383c8d1
Fixes: 110052596
2018-06-11 23:04:48 +00:00