Commit Graph

7835 Commits

Author SHA1 Message Date
Jordan Demeulenaere
94240f3acd Merge "Fix ActivityLaunchAnimatorTest crash" into sc-dev 2021-07-14 20:12:14 +00:00
Peter Kalauskas
8527610e55 Merge "Fix visibility issue in QS detail panels" into sc-dev 2021-07-14 18:24:24 +00:00
Lucas Dupin
e98202ed30 Merge "Interpolate corner to 0 when recording screen" into sc-dev 2021-07-14 15:36:26 +00:00
Peter Kalauskas
875b9b7a19 Fix visibility issue in QS detail panels
Fixes visibility issue where keyguard could enter a bad state where QS
remains visible even though it should be hidden.

Previously, keyguard could enter a bad state if QS was closed while it
had a detail panel open that had animations disabled.

To fix issue, run animations when closing detail panels, even if they
requested not to be animated on close.

Test: Turn off all animations (i.e. adb shell 'settings put global
      animator_duration_scale 0.0 && settings put global
      transition_animation_scale 0.0 && settings put global
      window_animation_scale 0.0'), open QS, tap user icon, tap close,
      ensure you are taken back to the lock screen and that the UI looks
      normal
Test: Rapidly tap the user icon and bottom of keyguard in quick
      succession, ensure that keyguard UI never enters a bad state
Fixes: 193549640
Fixes: 193545214
Change-Id: Ie092f83031edaff0240194832b5499df3b4eab12
2021-07-14 08:34:30 -07:00
Jordan Demeulenaere
635655b8da Fix ActivityLaunchAnimatorTest crash
This CL fixes a crash in a test that was introduced by a last minute
change in http://ag/15235792. This crash was not caught by the
presubmits for some reason.

Bug: 192194319
Test: atest ActivityLaunchAnimatorTest
Change-Id: I082514703a2c5500686a6bfe3cec3501653032b3
2021-07-14 11:50:32 +02:00
Jordan Demeulenaere
e388c26283 Merge "Prevent SysUI from crashing during Ghost animation" into sc-dev 2021-07-14 07:17:35 +00:00
Wei Sheng Shih
a9a861134d Merge "Get starting window background color directly." into sc-dev 2021-07-14 01:28:39 +00:00
Lucas Dupin
4679e63662 Interpolate corner to 0 when recording screen
This way the shade animation on the video will look nicer.

Test: manual
Test: atest NotificationPanelViewTest
Fixes: 191540562
Change-Id: If7be978e2ffadcbe8e0f0656e5746328445b73d2
2021-07-13 15:17:42 -07:00
TreeHugger Robot
59cc921223 Merge "Reset tooltip preference to fix flaky test." into sc-dev 2021-07-13 19:18:43 +00:00
Anna Zappone
d1952df3d0 Merge "Prevent any SecurityExceptions on Uri resolution" into sc-dev 2021-07-13 17:46:06 +00:00
Josh Tsuji
5094d64542 Reset tooltip preference to fix flaky test.
Fixes: 187725725
Test: run test in studio a few times, it passes instead of failing
Change-Id: I780cc09eb9b13b415f9299ab2e3661261ae2066e
2021-07-13 12:59:27 -04:00
Jordan Demeulenaere
a39e6a274d Prevent SysUI from crashing during Ghost animation
This CL prevents a crash in SysUI when starting a launch animation that
ghosts a View that is not attached to a ViewGroup. We now skip the
animation when that happens.

Bug: 192194319
Test: atest ActivityLaunchAnimatorTest
Test: atest GhostedViewLaunchAnimatorControllerTest
Change-Id: I6f2616776a092307c84d8f64fbbb798eb1bebafb
2021-07-13 18:42:45 +02:00
Anna Zappone
cdc15d7020 Prevent any SecurityExceptions on Uri resolution
By deferring resolution of the Uri to Launcher, we risk a
SecurityException. This is extremely important to avoid as if we the
SecurityException is thrown, we can no longer make any updates to the
widget.

Bug: 192986188
Test: locally with Signal
Change-Id: I5421ff5494b405ab9d48afd678fd72dc570a655b
2021-07-13 17:20:05 +01:00
TreeHugger Robot
b5d478b4cc Merge "Guard against NPE" into sc-dev 2021-07-13 14:45:34 +00:00
James O'Leary
db5a7a4ce0 Merge "Fix WallpaperPicker not being able to assign colors" into sc-dev 2021-07-13 14:06:45 +00:00
TreeHugger Robot
7bb7211f76 Merge "Use DockManager instead of BatteryController for Falsing." into sc-dev 2021-07-13 13:59:38 +00:00
wilsonshih
3be521ad48 Get starting window background color directly.
SystemUI does not need to re-calculate background color of starting
window because Shell library is bound to SystemUI, so status bar can
get background color directly, also this can support to get the
background color from snapshot starting window.

Also fix the starting window listener did not receiveing background
color successful because makeSplashScreenContentView is execute on
another background thread, so there should block the splash screen
thread until the background color is estimated.

Bug: 192213918
Bug: 192659309
Test: manual launch apps from Notification and Launcher, ensure the
color is correctly send to SystemUI or Launcher.

Change-Id: I626cb23d7aebfe4e032fad285bfad374c0e11cea
2021-07-13 18:53:19 +08:00
Jeff DeCew
6645cb8ac9 Merge "Ensure stackHeight accounts for pulseHeight and dozeAmount where we used to use innerHeight." into sc-dev 2021-07-12 17:24:02 +00:00
James O'Leary
edb7c22c0d Fix WallpaperPicker not being able to assign colors
- ThemeOverlayController intentionally chooses transparent as the theme
color if there aren't any wallpaper colors (ex. a Live Wallpaper that
doesn't send WallpaperColors objects to WallpaperManagerService)
- Rather than refactor old code, we patched by ensuring any attempts to
use less-than-opaque colors for a theme are replaced by using a default
color (ag/15193364)
- However, WallpaperPicker sends transparent colors when setting a new
theme color
- WallpaperPicker's ColorUtils.toColorString turns a color into a 6
characters hex code when transmitting it to framework via JSON stored in
a setting.
- Six characters can only contain red, green, and blue channels, not
alpha.
- When the six character string is parsed by Integer.parseInt(), the
resulting color has 0 alpha, and the new theme color is rejected in
favor of the default color
- Using Color.parseColor ensures that alpha is correctly set, whether
callers use a 6 or 8 character hex code, and ensuring the input to
Color.parseColor starts with a # sign ensures it will work properly

Test: Add logs to WallpaperPicker, verifying points at which it
manipulates hex codes, ensuring WallpaperPicker is receiving colors
with a full alpha channel and merely losing it upon converting it to
a 6 digit string. Make this patch to framework. Check implementation of
Color.parseColor, ensure we meet its requirements for arguments by
sanitizing inputs from callers (i.e. add a # sign in front). Uninstall
patches wallpaper picker, reverting to system image, and verify theme
colors are assigned properly.
Bug: 193044118

Change-Id: Idcdf5d41ee422d5a1b12cec415da9198b8405a5a
2021-07-12 10:10:19 -04:00
TreeHugger Robot
b172012858 Merge "Add orientation listener to all biometric overlays." into sc-dev 2021-07-10 02:23:23 +00:00
TreeHugger Robot
6061740344 Merge "Use FalsingManager for QS user switcher" into sc-dev 2021-07-10 01:26:23 +00:00
Joe Bolinger
34a6c46d1d Add orientation listener to all biometric overlays.
Listener is only active when the overlays are showing (see Icce7846c5637711d8abad1121095fd7a25ed644f).

Fix: 186372522
Test: atest SidefpsControllerTest UdfpsControllerTest AuthControllerTest
Test: manual (Settings -> enroll fingerprint, flip device in all orientations)
Change-Id: I9981aecd08decf03336caccc313a86aead441797
2021-07-09 14:23:43 -07:00
Jeff DeCew
d277f5069d Ensure stackHeight accounts for pulseHeight and dozeAmount where we used to use innerHeight.
Fixes: 192679392
Test: bypass unlock from pulse
Change-Id: I9c29c1b220344a9aa73caae5acf79b169e4bcfc4
2021-07-09 16:19:48 -04:00
Silin Huang
851904a45c Merge "Fix a bug that the QuickAccessWalletTile displaying packageName as title." into sc-dev 2021-07-09 18:21:57 +00:00
Julia Reynolds
eb505a200c Guard against NPE
Test: atest; manually ensure that icons still work when
using SystemUI's context
Fixes: 192575971

Change-Id: I3c93d4898a6995148606b15fc8bd98d465741c0a
2021-07-09 14:03:59 -04:00
Anna Zappone
268234b2b9 Merge "Add available description for talkback" into sc-dev 2021-07-09 15:52:54 +00:00
Peter Kalauskas
c608dd0cdd Use FalsingManager for QS user switcher
Bug: 192013256
Test: atest SystemUITests:com.android.systemui.qs.QSFragmentTest
Test: atest SystemUITests:com.android.systemui.qs.QSDetailTest
Change-Id: I9587aa375e8f9e5ef7d696fcb3f0904cf546c0cc
Merged-In: I9587aa375e8f9e5ef7d696fcb3f0904cf546c0cc
2021-07-08 23:34:30 +00:00
Beverly Tai
ec1a26e36c Merge "NonBypass - enter device if user is attempting udfps auth" into sc-dev 2021-07-08 22:36:56 +00:00
Anna Zappone
88bac9ca54 Add available description for talkback
Bug: 189908609
Test: PeopleTileViewHelperTest and local
Change-Id: I5b00dfdb8aa04b84aa71d37adfbd06f134bcf5a9
2021-07-08 22:48:12 +01:00
Silin Huang
89066a5c28 Fix a bug that the QuickAccessWalletTile displaying packageName as
title.

The root cause is that it the QAWClient#getServiceLabel invoked an
outdated serviceInfo, which causes an IOException.

Test: atest
Fixes: 188789272
Change-Id: I0a2aae165d8057cfb1b1d30690c96a31d3455a2f
2021-07-08 13:58:27 -07:00
Beverly
49ad566a9f NonBypass - enter device if user is attempting udfps auth
Test: manual, atest BiometricUnlockControllerTest
Bug: 192680255
Change-Id: Ide1d74a97e67b92200621c5a70ed883a2534835f
2021-07-08 15:40:08 +00:00
Beverly
94d6c35f33 Allow bypass + show errors on alt bouncer
- Show the keyguard bouncer errors so users are aware of auth errors
- Also fixes a bug where we wouldn't proceed to the activity (ie:
notification click) if the user authenticated from the alt bouncer
using passive auth. now, the bypass logic includes when the alt bouncer
is showing.

Test: manual
Fixes: 186313318
Fixes: 192355757
Change-Id: I3caffd2e89b9ae596b11ca4a05665db53491c2d2
2021-07-07 19:30:38 -04:00
Joe Bolinger
73ffe99b7b Merge changes If03d8ee3,I701d9d6f,I715e0e53 into sc-dev
* changes:
  Add a device orientation listener for updaing UDFPS layouts.
  Add modality switch callback to update UDFPS layout during configuration changes.
  Execute hide overlay immediatly.
2021-07-07 18:31:43 +00:00
Winson Chung
6574585d64 Merge "Take screen-off animation into account when determining hiding nav bar" into sc-dev 2021-07-07 18:12:28 +00:00
Beth Thibodeau
1c3d54b979 Merge "Remove controls from carousel when not in manager" into sc-dev 2021-07-03 15:49:15 +00:00
Joe Bolinger
c3e039f9ca Add a device orientation listener for updaing UDFPS layouts.
Configuration change events are only generated when switching to/from portrait/landscape modes and can't be used for udfps overlays.

Fix: 190832486
Test: manual (put device in landscape, start auth, flip 180 degrees)
Change-Id: If03d8ee3ec479b91eab93622a6e93f00b3f14765
2021-07-02 17:09:41 -07:00
Winson Chung
07bbe5b847 Take screen-off animation into account when determining hiding nav bar
- When the keyguard hides the nav bar, take into account the screen-off
  animation so that we can hide it earlier when the animation starts

Bug: 190368572
Test: atest StatusBarKeyguardViewManagerTest
Test: In three button nav w/ AOD, turn off the screen
      - also try above with interrupting the screen off animation
      - also try above with power button instantly locks disabled
Change-Id: I504cd55e243976586b0544100e46d2b14fa33850
2021-07-02 15:39:59 -07:00
Silin Huang
bceb8dc9b0 Merge "Add westworld log to quick access wallet UI." into sc-dev 2021-07-02 22:26:18 +00:00
Joe Bolinger
571124edc9 Add modality switch callback to update UDFPS layout during configuration changes.
Addresses a race condition when the view is attached and the modality switch is in progress.

Also fixes an issue with the confirmation button being re-enabled after a configuration change.

Bug: 190832486
Test: atest AuthBiometricFaceToFingerprintViewTest
Change-Id: I701d9d6f03474df2dda6f48e506208ddf7eab2c3
2021-07-02 14:53:48 -07:00
Ying Xu
d003be9369 Merge "Disable W+ in QS." into sc-dev 2021-07-02 21:25:23 +00:00
Dave Mankoff
79cb546860 Use DockManager instead of BatteryController for Falsing.
Also, pause the proximity sensor directly when we dock/undock.
This ensures that we don't wait for some other event to occur
before changing the state of the proximity sensor.

Fixes: 192670703
Test: atest SystemUITests
Change-Id: If2b429639df76bbd4cf8adecc987dcf18ae45925
2021-07-02 17:18:26 -04:00
Nate Myren
1e1aef37c8 Merge "Create "trusted chain" mechanism for AttributionSource" into sc-dev 2021-07-02 20:03:33 +00:00
Beth Thibodeau
b12fdd8073 Remove controls from carousel when not in manager
If the user is in a bad state where controls exist in the carousel but
their keys have been removed from the manager, allow the dismiss button
to remove the player from the carousel directly.

The device isn't expected to get into this state normally but this will
allow users to remove the bad controls without needing to reboot.
Also added dump to MediaCarouselController to help debug future reports.

Bug: 190799184
Test: atest MediaDataManagerTest MediaControlPanelTest
Test: take bugreport, verify MediaCarouselController data is in dumpsys
Test: manual - force bad controls state, verify can still remove
Change-Id: I7af130c90c7b661cc7cc8bbeb3ca1fd5d81c8913
2021-07-02 15:52:07 -04:00
Silin Huang
d886267b18 Add westworld log to quick access wallet UI.
Bug: 192604191
Test: atest WalletScreenControllerTest
Change-Id: Ia0ae73a5bff55e6d81d330f71a7c15179d2d9793
2021-07-02 12:25:51 -07:00
Josh Tsuji
8938a91f1a Merge "Clamp brightness to dim value if we're timing out and playing the screen off animation." into sc-dev 2021-07-02 18:35:12 +00:00
Beverly Tai
4aa9f16e1f Merge "Add requested refresh rate on keyguard" into sc-dev 2021-07-02 17:18:11 +00:00
Cassie
e1ebcd303d Disable W+ in QS.
Bug: 191903788
Test: manual
Change-Id: Id965fb6dc588a40ddbf8c594b3eeae1ef82aa10c
2021-07-02 09:26:09 -07:00
Josh Tsuji
f0bc45fba0 Clamp brightness to dim value if we're timing out and playing the screen off animation.
This is the value PowerManager uses to dim the screen just before timeout, per https://source.corp.google.com/sc-dev/frameworks/base/core/res/res/values/config.xml;l=1349?q=config_screenBrightnessDim.

Fixes: 190581215
Test: watch the screen off, no brightness jump
Change-Id: I54856416dae1270c4379cb0547712edeba02b204
2021-07-02 09:21:46 -07:00
Caitlin Cassidy
3ad556f672 Merge "[Ongoing call] Don't show the time if the notification's when value isn't valid." into sc-dev 2021-07-02 15:51:13 +00:00
Beverly
a65cb90b0f Add requested refresh rate on keyguard
Fixes: 184176119
Test: manual, atest SystemUITests
Change-Id: Ic3c1d3b47e9b3090afe042c72564ffc4bdda9199
2021-07-02 14:28:58 +00:00