Commit Graph

655953 Commits

Author SHA1 Message Date
Makoto Onuki
ca3316df61 Merge "Fix javadoc on Context.startForegroundService" into sc-v2-dev 2021-10-21 15:15:40 +00:00
tim peng
9c0537028d Merge "DO NOT MERGE: HA still appears in Media device list even though it has been unpaired." into sc-v2-dev 2021-10-21 11:02:32 +00:00
Nick Chameyev
8264da57b7 Merge "Do not animate statusbar unfold when in portrait orientation" into sc-v2-dev 2021-10-21 10:02:00 +00:00
TreeHugger Robot
0b4f292d62 Merge "Hide SoftInput when INVALID_DISPLAY" into sc-v2-dev 2021-10-21 09:10:48 +00:00
TreeHugger Robot
786af488fb Merge "Add java doc for registerVisibleActivityCallback method." into sc-v2-dev 2021-10-21 06:40:19 +00:00
Tim Peng
68dac6c41e DO NOT MERGE: HA still appears in Media device list even though it has been unpaired.
-Add mUnpairing to mark the device triggers removeBond()
-For HA, once it calls removeBond(), two HA would be unpaired. It causes the incorrect state if we do main/sub devices switching.

Bug: 198124571
Test: manual test

Merged-In: I4ed5db2bd01f4b4e8f246ed3e8f74e24149571f9
Change-Id: I4ed5db2bd01f4b4e8f246ed3e8f74e24149571f9
(cherry picked from commit 5597cbd76b)
2021-10-21 05:20:34 +00:00
lpeter
0ff358f0a8 Add java doc for registerVisibleActivityCallback method.
Bug: 202102333
Test: manual test
Change-Id: I01d709be9f79552370aa9bcde47c65a36a956a19
2021-10-21 12:25:03 +08:00
TreeHugger Robot
1fe4da5195 Merge changes from topic "b149942757-remove-view-injection" into sc-v2-dev
* changes:
  Remove View Injection entirely.
  Remove injected parametser from NSSL
2021-10-21 03:06:22 +00:00
Dave Mankoff
8fe314adc6 Remove View Injection entirely.
Fixes: 149942775
Test: manual && atest SystemUITests
Change-Id: Ib0a21aad64ab141fc4d16a181e8fba64014ea16f
Merged-In: Ib0a21aad64ab141fc4d16a181e8fba64014ea16f
2021-10-21 02:09:00 +00:00
Dave Mankoff
5012c17215 Remove injected parametser from NSSL
This substitutes in calls to Dependency#get. While this feels like
a step backwards, it is the last step necessary before removing
acual view injection.

Removal of Dependency#get is ongoing and will include cleanup of this
class.

Bug: 149942757
Test: manual
Change-Id: I129f0751f101cdce7ae92554b2a09d2091b7c13b
Merged-In: I129f0751f101cdce7ae92554b2a09d2091b7c13b
2021-10-21 02:08:20 +00:00
Jerry Chang
430944cefb Merge "[DO NOT MERGE] Provide IconProvider in sysui dagger" into sc-v2-dev 2021-10-21 01:28:14 +00:00
TreeHugger Robot
0fb09fdf82 Merge "Show bouncer from AOD on udfps-longpress if fp isn't running" into sc-v2-dev 2021-10-20 22:20:11 +00:00
Makoto Onuki
f61a9d76e1 Fix javadoc on Context.startForegroundService
Bug: 203664384
Bug: 142968927
Test: treehugger
Change-Id: Ie3ba7d9fd5cda034f2ef8fab79630cfb15d6bb13
2021-10-20 21:45:06 +00:00
Fabian Kozynski
546aaad7e4 Merge "Rewrite DeviceProvisionedController" into sc-v2-dev 2021-10-20 20:24:44 +00:00
Zoey Chen
30d2eeaabe Merge "[SystemUI] 1.Remove the unnecessary log 2. update signal icon in bg thread" into sc-qpr1-dev am: c3af8564f9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16033980

Change-Id: Id9b5ba50323921f9265bf5ce9ef53aaccd464975
2021-10-20 19:25:39 +00:00
TreeHugger Robot
e07b60ab9e Merge "Don't register multiple predraw listeners" into sc-v2-dev 2021-10-20 18:49:14 +00:00
Zoey Chen
c3af8564f9 Merge "[SystemUI] 1.Remove the unnecessary log 2. update signal icon in bg thread" into sc-qpr1-dev 2021-10-20 18:37:37 +00:00
Joshua Mccloskey
c2993b2445 Merge "Added lockout callback to FaceAuthenticationClient" into sc-v2-dev 2021-10-20 18:03:54 +00:00
Jay Aliomer
31281969e6 Merge "Null check if renderer is null" into sc-v2-dev 2021-10-20 17:19:41 +00:00
TreeHugger Robot
c8235441b0 Merge "Enable keyguard remote animation." into sc-v2-dev 2021-10-20 17:16:33 +00:00
Nick Chameyev
56b9431082 Merge "Do not run rotation animation when folding/unfolding" into sc-v2-dev 2021-10-20 17:03:21 +00:00
TreeHugger Robot
fc47105390 Merge "CameraServiceProxy: Estimate rotate&crop override value" into sc-v2-dev 2021-10-20 16:08:51 +00:00
Evan Rosky
b93d37627d Merge "Fix PiP Shell Transitions" into sc-v2-dev 2021-10-20 16:07:03 +00:00
Issei Suzuki
3b5edccda0 Merge changes I69e9cbb6,I187b5a56 into sc-v2-dev
* changes:
  Prevent the occlusion state mismatch between WM and SystemUI.
  Remove keyguard candidate.
2021-10-20 16:02:02 +00:00
TreeHugger Robot
556d14f60e Merge "Add Wi-Fi Scanning notify to QS Internet Dialog" into sc-v2-dev 2021-10-20 15:35:18 +00:00
TreeHugger Robot
55a36291fd Merge "Add WiFi scan notify message (QS Internet Dialog)" into sc-v2-dev 2021-10-20 15:35:15 +00:00
Matt Pietal
648a020480 Don't register multiple predraw listeners
Also make sure they are removed properly when the view becomes
detached.

Fixes: 203257107
Test: atest KeyguardClockSwitchControllerTest

Change-Id: Ied4d4e7774d15af71648b188ac723c9c7635f506
2021-10-20 11:30:19 -04:00
Jay Aliomer
df34a4a481 Null check if renderer is null
Local colors are added before the renderer is created which is causing
crash

Fixes: 203613925
Test: switch to user back and forward
Change-Id: I2f169434e1cb0e692045050e255d24d1f8fa7c47
2021-10-20 15:18:48 +00:00
Nick Chameyev
fa92428107 Do not animate statusbar unfold when in portrait orientation
Disables unfold animation for statusbar when it is
perpendicular to the screen fold.
Moves ScopedUnfoldTransitionProgressProvider from launcher
to shared SysUI/Launcher code.
Introduces NaturalRotationUnfoldProgressProvider which emits
transition events only when in natural rotation.
Added proper disposal of resources when status bar is detached
as PhoneStatusBarView is re-created when folding/unfolding.

Bug: 201518277
Test: manual
Test: atest com.android.systemui.unfold.util.NaturalRotationUnfoldProgressProviderTest
Change-Id: If4da3afca2b41c3675ccf6838e9ad6dac1b6f82e
2021-10-20 14:49:19 +01:00
Issei Suzuki
ee9030901f Enable keyguard remote animation.
Test: Existing test pass.
Bug: 192688157
Change-Id: Ib0fb41b07458e51a87d68e4554f751a96efaad64
2021-10-20 14:55:22 +02:00
Nick Chameyev
6a0044a07c Do not run rotation animation when folding/unfolding
Disables screen freezing and rotation animation when
screen blocker is not removed (e.g. when folding or
unfoding a foldable device with two screens).

Fixes: 199897277
Test: manual fold/unfolds on foldable devices
Test: rotation animation works on inner/outer screen
Change-Id: I2b353b5cb31042cdf4789915a04510062231e29c
2021-10-20 12:53:39 +00:00
wilsonshih
5e6c273cdf Prevent the occlusion state mismatch between WM and SystemUI.
The mismatch condition could happen due to the race condition from
keyguard unlock animation and the execute of AppTransition.

Pre-condition: keyguard is locked and showing a showWhenLocked activity
on top of device, while starting another activity B without
showWhenLocked. The issue sequence is:

1. Start Activity B and it is no occluded, update
PWM#onKeyguardOccludedChangedLw(occluded = false), because keyguard is
showing so set mKeyguardOccludedChanged to true.
2. Because device was occluded, there will attach showWhenLocked flag
to the starting window of Activity B, when this starting window added
to WM, the occluded state chage to true and overwrite the
mPendingKeyguardOccluded again.
3. Keyguard unlock animation finish, WM receive keyguard showing become
false.
4. Starting window removed so occluded state change to false, because
the keyguard is hidden, PWM will update the occluded value to SystemUI
directly.
5. App Transition start, PWM#applyKeyguardOcclusionChange with the
mPendingKeyguardOccluded value, which was true, thus the occluded state
become mismatch.
If the timing between 3, 4, 5 has slightly change, then this issue won't
happen.
Anyway, an easy fix is to ensure the updated value on PWM should
always be the latest value from KeyguardController.

Bug: 201328381
Test: atest KeyguardTests KeyguardTransitionTests KeyguardLockedTests
Change-Id: I69e9cbb6238a19cf75ac0c9cb16adb2310399876
2021-10-20 14:43:26 +02:00
Issei Suzuki
a9573379e2 Remove keyguard candidate.
Test: No-op refactoring, existing tests pass.
Bug: 191438572
Change-Id: I187b5a5654bf7d10e63373fca8c40398838e655c
2021-10-20 14:27:45 +02:00
Jerry Chang
7891acface [DO NOT MERGE] Provide IconProvider in sysui dagger
So that other components can get app icon throught it as well.
Like showing app icon as resizing hint while dragging divider bar in
split screen.

Bug: 202740435
Bug: 201653912
Test: atest WMShellUnitTests
Change-Id: I7cc10be4ebfe7f9aad5db036a595613546ca15c9
2021-10-20 11:26:23 +00:00
Santos Cordon
618c83b000 Merge "Display's transition phase checked before DPC init." into sc-v2-dev 2021-10-20 10:48:11 +00:00
Hyundo Moon
5a9ab8d69a Merge "MediaRouter: Route setBluetoothA2dpOn() via MediaRouterService" into sc-qpr1-dev am: 2c7ec2cbf5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16044773

Change-Id: I017be1b10677f78ee7f5b290a13eab376c4e0615
2021-10-20 02:27:48 +00:00
Hyundo Moon
2c7ec2cbf5 Merge "MediaRouter: Route setBluetoothA2dpOn() via MediaRouterService" into sc-qpr1-dev 2021-10-20 02:12:45 +00:00
TreeHugger Robot
a18b8a827e Merge "Migrate screen rotation latency tracker with shell transition" into sc-v2-dev 2021-10-20 02:12:34 +00:00
Brian Isganitis
e712904779 Merge "Expose mirror of wallpaper surface in WindowManagerGlobal." into sc-v2-dev 2021-10-19 23:47:17 +00:00
Evan Rosky
c6d5abe414 Fix PiP Shell Transitions
PiP Shell Transitions needs to be more robust to pass CTS tests
reliably.

Some changes:

1. DELIVERED_TO_TOP intents don't create a transition since there is
   no change to the WM hierarchy. This way the app-launch transition
   won't conflict with activityRestartAttempt.

2. If PiP started an expand transition while an enter transition is
   ongoing, cancel the enter transition.
   a. Additionally, because PiP doesn't resize task until the enter
      transition finishes, the expand transition will actually be
      a no-op. If we see this pattern, also cancel the enter
      transition.

3. When taskVanished, make sure to call any pending finishCallback
   because it doesn't allow the running animator to properly finish.
   Transition systems require the finish callback to function
   properly.

4. Minimize the uses of finishTransition with a sync callback. We
   probably need to phase this out because it can conflict with
   subsequent startTransition calls (because only 1 sync is supported
   at a time).

Bug: 183993924
Test: atest PinnedStackTests
Change-Id: Ieb573032839a2f31b0bb371410484fc93a1714fa
2021-10-19 15:50:41 -07:00
TreeHugger Robot
3f7564a1ae Merge changes I447f5c9c,Id3de50c6,I13e9ef2f into sc-v2-dev
* changes:
  Don't show the keyguard status bar if we're animating the screen off.
  Adjust unlock parameters so that the lockscreen content doesn't overlap with the app/launcher.
  Don't play the screen off animation if we disabled animations system-wide.
2021-10-19 22:40:28 +00:00
TreeHugger Robot
0363d75290 Merge "Don't expand the panel on ACTION_CANCEL if the keyguard is fading away." into sc-v2-dev 2021-10-19 22:27:46 +00:00
TreeHugger Robot
8baec90550 Merge changes I504d9c65,I45abcf87 into sc-v2-dev
* changes:
  Utilize measured energy for multidisplay power attribution
  Update Screen and AmbientDisplay Power Calculators for multi-display
2021-10-19 22:20:47 +00:00
Joshua Mccloskey
ae9471fe51 Added lockout callback to FaceAuthenticationClient
Test: Verified a haptic is received after a face is locked out.
Fixes: 187800411

1. Make sure only a face is enrolled.
2. Auth 5 times with eyes closed.
3. Verify a haptic is received after the fifth failed auth(locked out).

Change-Id: I2275787964a1aaed0f4a91a9b6c378eadea3fc3f
2021-10-19 15:19:52 -07:00
TreeHugger Robot
5e30b0076c Merge "Vertically center app in landscape size compat mode" into sc-v2-dev 2021-10-19 20:59:28 +00:00
Emilian Peev
bb799a86dc CameraServiceProxy: Estimate rotate&crop override value
Try to estimate the necessary rotate&crop compensation
for:
1) All device orientations
2) Front cameras
3) Cameras with landscape sensor orientation

Additionally check the resizeable flag of the top activity
using the 'topActivityInfo.resizeMode'.
Move the heuristics outside of the camera proxy stub inner
class and declare them static. This should make unit tests
of the logic inside easier.

Bug: 202567080
Test: Manual using camera applications,
Camera CTS,
atest FrameworksServicesTests:com.android.server.camera.CameraServiceProxyTest

Change-Id: Iba9b1b26958a373c481a1af0601c08012b5a61e7
2021-10-19 13:21:29 -07:00
TreeHugger Robot
3708e854a9 Merge changes Iac617598,I59fe4951,I374dc97a,Id882cff6,Ie3b4c571, ... into sc-v2-dev
* changes:
  [Status Bar Refactor] Combine PanelExpansionChange and PanelExpansionStateChange into one listener class.
  [Status Bar Refactor] Remove PanelBar#onPanelPeeked and put its code in a callback instead.
  [Status Bar Refactor] Move a bunch of callbacks out of PanelBar and into (N)PVC.
  [Status Bar Refactor] Move PanelBar's touch handling into NotificationPanelViewController.
  [Status Bar Refactor] Remove unnecessary return value from StatusBar#interceptTouchEvent.
  [Status Bar Refactor] Move PanelBar#collapsePanel into NotificationPanelViewController.
2021-10-19 19:46:30 +00:00
Brian Isganitis
5e3d35c102 Expose mirror of wallpaper surface in WindowManagerGlobal.
Test: Manual
Bug: 188222480
Change-Id: I92302053a797de76aec3c2a25e5d895cfc85e6d5
2021-10-19 15:27:55 -04:00
Beverly Tai
913d0dd050 Merge "Devices with UDPFS shows lock icon on AOD" into sc-v2-dev 2021-10-19 19:18:00 +00:00
Jenhou Huang
f746e466dc Merge "Fix device ordering" into sc-v2-dev 2021-10-19 18:10:32 +00:00