Commit Graph

655969 Commits

Author SHA1 Message Date
Bill Yi
709eb51adb [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 93c9539885 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16104041

Change-Id: I75a64076dc48eb8c8491f87c8c67202c42fb3f2b
2021-10-22 01:04:25 +00:00
TreeHugger Robot
24a3f691b2 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-10-22 00:49:28 +00:00
TreeHugger Robot
ca5b427dd6 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-10-22 00:49:03 +00:00
Bill Yi
8d3cb158fa Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I4ede132d0dd0f66889bbe619aff1e1bd757696f7
2021-10-21 22:24:16 +00:00
Bill Yi
93c9539885 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I84a054b0ecbd71841c971295343e79b97bb60b84
2021-10-21 22:21:41 +00:00
TreeHugger Robot
22d8ff6f68 Merge "StatusBar unfold transition: reset translations when rotating" into sc-v2-dev 2021-10-21 21:50:31 +00:00
TreeHugger Robot
e5a6127d6d Merge "By default, tap gesture posture mapping should be empty" into sc-v2-dev 2021-10-21 18:50:02 +00:00
TreeHugger Robot
296086064e Merge "Only update lock icon views on the main thread" into sc-v2-dev 2021-10-21 18:43:42 +00:00
Nick Chameyev
c1074125b5 StatusBar unfold transition: reset translations when rotating
When rotating the screen scoped status bar unfold
transition provider stops the animation and invokes
onTransitionFinished callback but the translations of the
views are not cleared. It led to incorrect translations
of the status bar icons after rotating the screen during
the animation.

Bug: 201518277
Test: rotate the phone during unfold animation
Change-Id: I3bcd48f73e43133e3d53c7ba9f25e9618a037d4c
2021-10-21 19:02:51 +01:00
Beverly
4d81bbdef5 Only update lock icon views on the main thread
The onAllAuthenticatorsRegistered callback may be
called on a background thread.

Test: manual
Test: LockIconViewControllerTest
Fixes: 203769116
Change-Id: I468fd6b5e06e0038766017a90a59c70b37c5c8c5
2021-10-21 12:52:29 -04:00
Beverly
86f54bbf2e By default, tap gesture posture mapping should be empty
If the posture mapping is empty, AmbientDisplayConfiguration
will instead use the default tap gesture config. Before,
it was filled with empty items which caused the tap gesture
not to appear in Settings.

Test: manual
Fixes: 203608945
Change-Id: I858f63a4a949002926d20a331b2b41b3bb50a6a5
2021-10-21 16:43:38 +00:00
Tom Natan
fdf0378b8d Merge "Make ActivityOptions#setLaunchTaskId a system API" into sc-v2-dev 2021-10-21 16:21:03 +00:00
Tom Natan
aeb4f22e3b Merge "Add the min aspect ratio to ActivityRecordProto and populate it" into sc-v2-dev 2021-10-21 15:58:58 +00:00
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
tomnatan
d223334e60 Make ActivityOptions#setLaunchTaskId a system API
This is needed for digital wellbeing, see go/dwb-dialog-multi-window-dd for more information.

Bug: 199825187
Test: N/A
Change-Id: Ic0acbb034f326d0e8bc0e63d8c1a7b3f35a0e931
2021-10-21 08:33:35 +00:00
Bill Yi
0c43d85257 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie4fb263f5be01c9a715e06b0026dd29d91b2b69f
2021-10-21 07:28:27 +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
tomnatan
a3a198d478 Add the min aspect ratio to ActivityRecordProto and populate it
This is needed for CompatChangeTests to verify that the min aspect ratio
is applied directly by checking the min aspect ratio.

Bug: 203541827
Test: N/A
Change-Id: I1736cd4a2c4a1c5857796fa9772def7b7d94ba33
2021-10-20 13:05:25 +00: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