Commit Graph

7237 Commits

Author SHA1 Message Date
Mady Mellor
b858b41f12 Merge "Make bubble scrim be dark always" into sc-dev 2021-04-26 23:21:45 +00:00
Jeff DeCew
819b290c49 Merge "Fix CallStyle ranking & ensure correct features are used." into sc-dev 2021-04-26 21:43:28 +00:00
Mady Mellor
3b68dba36f Make bubble scrim be dark always
When the scrim is lighter & the pointer triangle is also
white, it's very hard to see and will not pass GAR.

Bug: 186441337
Test: atest ScrimControllerTest
Test: manual - expand bubble in dark & light theme on top of launcher
               and on top of some other app
             => notice scrim is always dark & pointer triangle is
                slightly more visible
Change-Id: I5e5c191bb813dc272284daf11e76c02ba17dc375
2021-04-26 20:08:37 +00:00
Flavio Fiszman
bf0507b001 Merge "Handling group chat sender" into sc-dev 2021-04-26 17:01:12 +00:00
Jeff DeCew
a91713d836 Fix CallStyle ranking & ensure correct features are used.
Fixes: 179178086
Test: atest SystemUITests NotificationComparatorTest
Change-Id: I8e0890954300f4fcf31d5927b1919e16e46a7801
2021-04-26 12:32:28 -04:00
Beverly Tai
eb54ad9bee Merge "Doze - remove metrics logger, add uievent" into sc-dev 2021-04-26 14:02:53 +00:00
Flavio Fiszman
47b06875bd Handling group chat sender
Change-Id: I4e4ff94e3452f3eb74bf8d7af2969e0ce2d3ac91
Test: manual and people/
Bug: 183084944
2021-04-26 14:43:35 +01:00
Flavio Fiszman
f98a859fc2 Merge "Adding logging to People Tiles" into sc-dev 2021-04-26 09:36:45 +00:00
Lucas Dupin
477aab1fa3 Merge "A new shade pull down animation" into sc-dev 2021-04-25 01:03:18 +00:00
Lucas Dupin
976de38e37 A new shade pull down animation
Test: manual
Test: atest ScrimViewTest
Test: atest ScrimControllerTest
Bug: 185683835
Fixes: 184891403
Change-Id: I1c51f3dc0d8afe97457aea8712c4322ebbda6ae4
2021-04-24 13:08:34 -07:00
bsears
250a563fbf Merge "Split up MODE_SHOW_BOUNCER and MODE_UNLOCK_COLLAPSING" into sc-dev 2021-04-24 05:31:12 +00:00
Beverly
51c04d7a03 Split up MODE_SHOW_BOUNCER and MODE_UNLOCK_COLLAPSING
MODE_SHOW_BOUNCER shouldn't notifyKeyguardAuthenticated, but
MODE_UNLOCK_COLLAPSING should.

Test: use biometric auth right after reboot - goes to bouncer
Test: atest BiometricsUnlockControllerTest
Fixes: 186179437
Change-Id: I3f054a66de9125d8c61a52c2096779500c5012c0
2021-04-24 01:04:05 +00:00
Beth Thibodeau
a585030805 Merge "Only allow local sessions to be resumable" into sc-dev 2021-04-23 23:08:25 +00:00
Beth Thibodeau
5529e39aa5 Merge "Show recently active media on smartspace signal" into sc-dev 2021-04-23 22:21:54 +00:00
TreeHugger Robot
0addbd59ef Merge "Smartspace - Support launching intents from lockscreen" into sc-dev 2021-04-23 21:00:52 +00:00
Beverly
e32e6b14b6 Doze - remove metrics logger, add uievent
- UiEvent wasn't being used onWakeScreen even though the events
themselves already exist. Use ui-event and add event for wake timeout
- Inject UiEventLogger for easier testability

Test: manually view ui events using command
  `$ANDROID_HOST_OUT/bin/statsd_testdrive-terse 90`
Test: atest DozeTriggersTest
Fixes: 186230887
Change-Id: I7ac4c11e5c95ed774499ee8b62931321fa812549
2021-04-23 20:56:06 +00:00
TreeHugger Robot
709b6ce952 Merge "Avoid gestures occuring on AOD2." into sc-dev 2021-04-23 20:54:19 +00:00
Beth Thibodeau
c9bc1be5b5 Merge "Handle media session destroyed" into sc-dev 2021-04-23 19:13:15 +00:00
TreeHugger Robot
f60e8709ad Merge "Disable long press for Device Controls tile" into sc-dev 2021-04-23 19:06:41 +00:00
Beth Thibodeau
3397068594 Show recently active media on smartspace signal
Smartspace will send an update when headphones are connected, but if the
user had recently active media (<3h) then we will show that media
instead of the smartspace cared. When smartspace later tries to expire
its card, this re-activated media will also be marked inactive again
(unless the user had started playback).

Fixes: 182811956
Fixes: 182813365
Test: manual
Test: atest com.android.systemui.media
Change-Id: I380f668c789c945d20814796607fcfc1e356de8f
2021-04-23 15:04:52 -04:00
Beth Thibodeau
4053be9269 Only allow local sessions to be resumable
It is possible for an app to be resumable locally, but also post
notifications when playing remotely that are not resumable long-term.
This change makes it so that only local sessions will be used for resume
players, and remote sessions will be removed when the underlying notification
is removed.

Bug: 185681682
Test: manual - start playback on Spotify web, observe notification on
phone, then close app on phone and observe no resume player
Test: atest MediaDataManagerTest MediaResumeListenerTest

Change-Id: I0a6ff2bab234a33298f84fd6d99b7d537d3d5e34
2021-04-23 14:38:52 -04:00
Dave Mankoff
b5b43ec3cf Avoid gestures occuring on AOD2.
Fixes: 186218339
Test: atest SystemUITests && manual
Change-Id: Ic6ec3df49a47290e31588bb44f7487bb8448d406
2021-04-23 13:59:16 -04:00
Song Hu
0482828ca6 Merge "Query and surface Quick Share chip before screenshot image compress/export. Update chip intent, once image URL is available after compress/export." into sc-dev 2021-04-23 17:10:16 +00:00
Flavio Fiszman
2b3dcc6520 Adding logging to People Tiles
Change-Id: I94d99467b1d40bc629406eb6a5bce8a1a78dd0a4
Test: manual
Bug: 186127384
2021-04-23 17:38:45 +01:00
Jay Aliomer
116e4c41e0 Merge "Make lockscreen background opaque" into sc-dev 2021-04-23 16:32:48 +00:00
Matt Pietal
de36555b9f Smartspace - Support launching intents from lockscreen
Also integrate the FalsingManager, which is important for determining
user intent while on the lockscreen.

Fixes: 186219857
Test: atest KeyguardClockSwitchControllerTest

Change-Id: I22108ec2335bd350fbcaf5d5b90dd3b351011767
2021-04-23 11:51:32 -04:00
Fabian Kozynski
094f20a916 Disable long press for Device Controls tile
Test: manual
Fixes: 186196549
Change-Id: I36b508a836d2016908102d373d416df5ecf1b3a4
2021-04-23 10:51:09 -04:00
Caitlin Cassidy
efaeb0c564 Merge "[Ongoing Call Chip] Don't show the chip on lockscreen." into sc-dev 2021-04-23 14:01:58 +00:00
Song Hu
e55e544fef Query and surface Quick Share chip before screenshot image compress/export. Update chip intent, once image URL is available after compress/export.
Test: test on local device
Bug: 185423664
Change-Id: I2710a727d4fc4fabaa1404d965feaa0c97d502fc
2021-04-23 05:36:10 -07:00
Lucas Dupin
d765a0634b Merge "Fix issue where theme would be accepted in SUW" into sc-dev 2021-04-23 03:17:06 +00:00
Beth Thibodeau
9985b65f64 Handle media session destroyed
It is possible for a media session to be destroyed without updating the
playback state or removing the notification, in which case the
controller will no longer be valid. So we can treat this like
resumption, and re-register the controller and re-activate the controls
if we later get an event where the media is playing.

Fixes: 185899440
Test: MediaTimeoutListenerTest
Change-Id: If8b8922b436261ccf703ee9e1e3c0294171a6c2e
2021-04-22 21:50:52 -04:00
Bob Badour
0fd3637f6e Merge "[LSC] Add LOCAL_LICENSE_KINDS to frameworks/base" into sc-dev 2021-04-22 23:23:16 +00:00
Lucas Dupin
9c07bde873 Fix issue where theme would be accepted in SUW
An event passing null would cause the internal state of
ThemeOverlayController to be reset, accepting future theming events.

Test: atest ThemeOverlayControllerTest
Bug: 182560740
Change-Id: Ie619ff5ae73b97e6a26cc90227bcad1c6277b30b
2021-04-22 22:35:56 +00:00
Beverly Tai
86b5b1ec88 Merge "Support slide to udfps auth on keyguard" into sc-dev 2021-04-22 21:27:49 +00:00
Lucas Dupin
1ddd959e96 Merge "Do not reload theme when managed profile" into sc-dev 2021-04-22 17:32:01 +00:00
Beverly
5082eadba8 Support slide to udfps auth on keyguard
- Allow udfps fingerprint to run when the bouncer is about to show;
instead, we'll manually pause auth in UdfpsKeyguardViewController when
we don't want to allow the user to authenticate
- On Keyguard, when bringing up the bouncer (swipe up on LS), continue
to show the udfps target until it hits a threshold - then we fade out
the icon

Test: manual
Bug: 178509275
Change-Id: I6e883a619b38a1a136f9d6e39b755a75c5028553
2021-04-22 16:49:12 +00:00
Caitlin Cassidy
eb457d50b7 [Ongoing Call Chip] Don't show the chip on lockscreen.
Also moves the #initNotificationIconArea call to be within
CollapsedStatusBarFragment, rather than requiring StatusBar to call it.
This makes our unit tests better because now we don't need to call it
manually.

Also fix a bug in #onDozingChanged that was passing disabled1 in for
disabled2.

Test: atest and manual
Bug: 183229367
Fixes: 185897059
Change-Id: I0a65f9e90e66680f0b602b89f89ec0a4900e9df8
2021-04-22 15:18:12 +00:00
Lucas Dupin
7f5bc353d4 Do not reload theme when managed profile
When a managed profile is added, if setup wizard was not finished,
do not reload the theme, postpone until it's done

Bug: 185572689
Test: atest ThemeOverlayControllerTest
Change-Id: I0cb1b2316a6837d85cf708403a34c2459a1dcc5a
2021-04-21 23:06:12 -07:00
Bob Badour
1cdaca9f84 [LSC] Add LOCAL_LICENSE_KINDS to frameworks/base
Added SPDX-license-identifier-Apache-2.0 to:
  core/tests/hosttests/test-apps/DownloadManagerTestApp/Android.mk
  core/tests/hosttests/test-apps/MultiDexLegacyAndException/Android.mk
  core/tests/hosttests/test-apps/MultiDexLegacyTestApp/Android.mk
  core/tests/hosttests/test-apps/MultiDexLegacyTestAppTests/Android.mk
  core/tests/hosttests/test-apps/MultiDexLegacyTestAppTests2/Android.mk
  core/tests/hosttests/test-apps/MultiDexLegacyTestAppWithCorruptedDex/Android.mk
  core/tests/hosttests/test-apps/MultiDexLegacyTestServices/Android.mk
  core/tests/hosttests/test-apps/MultiDexLegacyTestServicesTests2/Android.mk
  core/tests/hosttests/test-apps/MultiDexLegacyVersionedTestApp_v1/Android.mk
  core/tests/hosttests/test-apps/MultiDexLegacyVersionedTestApp_v2/Android.mk
  core/tests/hosttests/test-apps/MultiDexLegacyVersionedTestApp_v3/Android.mk
  core/tests/overlaytests/host/test-apps/SignatureOverlay/Android.mk
  core/tests/overlaytests/host/test-apps/UpdateOverlay/Android.mk
  packages/Android.bp
  packages/SystemUI/tests/Android.mk
  services/tests/servicestests/test-apps/PackageParsingTestManifests/Android.bp
  tests/Camera2Tests/CameraToo/Android.mk
  tests/Camera2Tests/CameraToo/tests/Android.mk
  tests/Camera2Tests/SmartCamera/SimpleCamera/Android.mk
  tests/Camera2Tests/SmartCamera/SimpleCamera/tests/Android.mk
  tests/CanvasCompare/Android.mk
  tests/FlickerTests/test-apps/Android.bp
  tests/LockTaskTests/Android.mk
  tests/SoundTriggerTests/Android.mk
  tools/aapt2/integration-tests/MergeOnlyTest/App/Android.mk
  tools/aapt2/integration-tests/NamespaceTest/App/Android.mk
  tools/aapt2/integration-tests/NamespaceTest/Split/Android.mk
  tools/fonts/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: Ic480b653df5da840f5e65b818af3de5c8417ab4a
2021-04-21 14:42:18 -07:00
Jordan Demeulenaere
ff8c1e6f6f Merge "Animate activities launched by QS click (1/2)." into sc-dev 2021-04-21 15:46:05 +00:00
Jay Aliomer
c4d40ef7b7 Make lockscreen background opaque
Test: manual
Fixes: b/185924533
Change-Id: Ia12526997b782b32573c96e091bca3e8a58531d1
2021-04-21 11:43:24 -04:00
Jordan Demeulenaere
2541d51347 Animate activities launched by QS click (1/2).
See b/185892236#comment3 for before/after videos.

Bug: 185892236
Test: atest QuickAccessWalletTileTest DeviceControlsTileTest AlarmTileTest
Change-Id: I539921777ab516bd35ba809f818fe02092325e78
2021-04-21 14:28:26 +02:00
Beverly Tai
f98e690f9e Merge "If enrolled show udfps bouncer on camera roll auth" into sc-dev 2021-04-21 12:25:11 +00:00
Matt Pietal
a2be0990e2 Merge "Remove "Device Controls" from Settings" into sc-dev 2021-04-21 11:31:33 +00:00
mincheli
d51edde5d2 Magnification uses WindowManager.getMaximumWindiowMetrics to compute its layout instead of the display size
Bug: 185099320
Test: atest WindowMagnificationController
Change-Id: I764fb870aa18980c07b08dacdaf56bcd598ff2ab
2021-04-21 07:40:40 +00:00
TreeHugger Robot
7a80f253ec Merge "Smartspace - Fade out secondary cards" into sc-dev 2021-04-21 03:54:02 +00:00
TreeHugger Robot
3723a67112 Merge changes I100846a4,I61b12a00 into sc-dev
* changes:
  Revert "Added exposure effect on ImageWallpaper"
  Revert "Stops ImageWallpaper Thread when phone is idle"
2021-04-21 00:57:50 +00:00
Mady Mellor
681f269d78 Merge changes from topic "global_to_secure" into sc-dev
* changes:
  Fix bubbles for workprofile
  Sysui bubbles multiuser fixes: persistence / overflow
  Move bubble setting to secure table & support multiuser
2021-04-20 23:06:40 +00:00
Josh Tsuji
52c0fcde28 Revert "Added exposure effect on ImageWallpaper"
This reverts commit 068978ca85.

Reason for revert: breaks wakeup

Bug: 185681677
Change-Id: I100846a4698f89ee9bd65492986643c11dc21a8b
2021-04-20 18:54:04 -04:00
Beverly
eb5fe1d31c If enrolled show udfps bouncer on camera roll auth
- Add PowerManager.userActivity when user uses udfps to authenticate
so the screen won't turn off prematurely
- When the udfps-bouncer is showing, tapping outside the udfps view will
show the regular pin/pattern/password bouncer

Fixes: 184927116
Fixes: 182500156
Test: atest SystemUITests
Test: manual
  1. enroll udfps
  2. go to locked lock screen
  3. double tap power button to bring up camera
  4. tap on camera gallery (lock icon on image, bottom right)
  Observe: udfps is highlighted; tapping outside udfps area brings up
  regular bouncer

Change-Id: If01ee16647499fc2cf73afe527053cd6830a50ed
2021-04-20 16:47:58 -04:00