Commit Graph

657645 Commits

Author SHA1 Message Date
Hongwei Wang
1ba4fcf076 Merge "Resume appSwitchesAllowed after exit PiP" into sc-v2-dev 2021-12-08 17:01:45 +00:00
TreeHugger Robot
9a33c9de70 Merge "Improve fold state provider logic handling posture" into sc-v2-dev 2021-12-08 16:28:45 +00:00
TreeHugger Robot
2176d951d0 Merge "Allow checking if an activity is organized" into sc-v2-dev 2021-12-08 15:18:29 +00:00
Issei Suzuki
20569604d9 Merge "Fix jank when app launched from quick panels on the lock screen" into sc-v2-dev 2021-12-08 15:09:06 +00:00
Weng Su
f811df0eb6 Fix the build break in InternetDialogControllerTest
Bug: 209774568
Test: manual test
atest -c InternetAdapterTest \
         InternetDialogControllerTest \
         InternetDialogTest

Change-Id: If470687953a024e8f84841dcb32fd312720ce034
2021-12-08 22:35:16 +08:00
TreeHugger Robot
d54867d6c0 Merge "[Provider Model] Adjust the design of "See all" (QS Internet Dialog)" into sc-v2-dev 2021-12-08 13:34:46 +00:00
TreeHugger Robot
4e9facf967 Merge "[Provider Model] Reduce WiFi list in airplane mode (QS Internet Dialog)" into sc-v2-dev 2021-12-08 13:33:41 +00:00
Tom Natan
56b6a1936d Merge "Remove EnabledSince from OVERRIDE_MIN_ASPECT_RATIO_PORTRAIT_ONLY" into sc-v2-dev 2021-12-08 10:27:25 +00:00
Nicolo' Mazzucato
5aef2c1fab Improve fold state provider logic handling posture
Now FOLD_UPDATE_START_CLOSING event is emitted when the angle decreases.
After each angle update, a timeout is started to finish the animation.
When the timeout is reached, FOLD_UPDATE_ABORTED is emitted.

The timeout logic has been moved from
PhysicsBasedUnfoldTransitionProgressProvider to DeviceFoldStateProvider.

This change should not create problems to
FixedTimingTransitionProgressProvider, as it doesn't use any
intermediate FOLD_UPDATE event.

Test: Locally on device
Test atest com.android.systemui.unfold.updates.DeviceFoldStateProviderTest
Bug: 208977663
Change-Id: Ibc5df1e089d6543e7cf6ee2e0ce3d48a0b24cc07
2021-12-08 11:09:36 +01:00
PETER LIANG
3f1a7a2a33 Merge "Update the string of the migration tooltips." into sc-v2-dev 2021-12-08 09:36:35 +00:00
PETER LIANG
00d2cf5083 Merge "Reset the settings key of the migration tooltips as enabled." into sc-v2-dev 2021-12-08 09:36:35 +00:00
Andrii Kulian
bf54c4ad74 Allow checking if an activity is organized
Adds an interal method to check if an activity is being organized
by any process. This can be used by WM Jetpack Extensions APIs to
inform apps about their activities being embedded.

Bug: 204399167
Test: Manual, using demo app
Change-Id: I3a0ad021ad43c97bf9b92df05e9858aae143f62b
2021-12-08 17:29:34 +08:00
Joshua Mccloskey
698f40caf7 Merge changes from topic "faceCameraSensorPrivacy" into sc-v2-dev
* changes:
  Added sensor privacy message to biometric prompt
  Add SensorPrivacy error message to FaceService.
2021-12-08 07:01:56 +00:00
Wei Sheng Shih
611d320a39 Merge "Provide default splash screen style for Launcher and SystemUI." into sc-v2-dev 2021-12-08 03:55:35 +00:00
Weng Su
a841c8a1d3 Merge "[Provider Model] Refine sub-title (QS Internet Dialog)" into sc-v2-dev 2021-12-08 03:45:38 +00:00
Ben Lin
229448b89e Merge "PiP: Disable enter-split button when not visible." into sc-v2-dev 2021-12-08 02:33:22 +00:00
TreeHugger Robot
968104d29e Merge "[Provider Model] Refine progress bar (QS Internet Dialog)" into sc-v2-dev 2021-12-08 01:28:02 +00:00
TreeHugger Robot
e5f5532902 Merge "Update work challenge to align with material next" into sc-v2-dev 2021-12-07 23:41:09 +00:00
Ben Lin
3cb94e0d6a PiP: Disable enter-split button when not visible.
Bug: 209360831
Test: Enter PiP, press on where split-button should be - doesn't do
anything

Change-Id: I456cf7f3aa2aecdf3dae10d968c28d92e985e7dd
2021-12-07 14:42:50 -08:00
Lucas Dupin
a2e9bfb4b9 Merge "Remove test flakiness" into sc-v2-dev 2021-12-07 22:41:11 +00:00
TreeHugger Robot
0cf8c02bf1 Merge "Fix NPE in SplitController#startActivityToSide" into sc-v2-dev 2021-12-07 22:38:37 +00:00
Jeff DeCew
209eb582b1 Merge "Hide notification footer when QS is expanded." into sc-v2-dev 2021-12-07 22:14:49 +00:00
Joshua Mccloskey
27db3c0af9 Added sensor privacy message to biometric prompt
Bug: 201045056
Test: Verified that BiometricPrompt shows an error message if the user
is using face authentication and camera privacy is enabled.

Change-Id: Idc2140062c4aa87e0bcffb14e07336dc6cd7d955
2021-12-07 13:57:23 -08:00
Evan Severson
1093748900 Merge "Finish SensorUse activity when dialog is dismissed" into sc-dev am: e1d8d04603 am: 2040013af4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16308034

Change-Id: Icdc7371f08e75c45e93717adfb94693ffed5bfd3
2021-12-07 21:16:08 +00:00
Menghan Li
fa378b00af Merge "Update Color Inversion quick settings strings." into sc-v2-dev 2021-12-07 21:12:41 +00:00
Evan Severson
2040013af4 Merge "Finish SensorUse activity when dialog is dismissed" into sc-dev am: e1d8d04603
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16308034

Change-Id: I7518889657d9a47e758bdeff7b02aa3412421576
2021-12-07 20:58:36 +00:00
Evan Severson
e1d8d04603 Merge "Finish SensorUse activity when dialog is dismissed" into sc-dev 2021-12-07 20:46:09 +00:00
TreeHugger Robot
2df58a479c Merge changes from topic "activity-embedding-finish-tests-1" into sc-v2-dev
* changes:
  Do Not Report Activities that are Finishing
  Create HandlerThread for TaskFragmentAnimationRunner
2021-12-07 20:36:36 +00:00
TreeHugger Robot
31801ae6ea [automerger skipped] Merge "Add missing size check when parsing staged aliases" into sc-dev am: d8d54c9aac -s ours am: e95d840923 -s ours
am skip reason: Merged-In I9f5d2851ff59da90163ead6c0416f0bba3868cc4 with SHA-1 abdf5a518d is already in history

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

Change-Id: I345b29629a41f035421c996e7124a223790144c7
2021-12-07 20:15:52 +00:00
Ruslan Tkhakokhov
fb7c9dfb81 Merge "Dispose of TransportClient in BMS#beginRestoreSession" into sc-v2-dev 2021-12-07 20:07:41 +00:00
TreeHugger Robot
e95d840923 [automerger skipped] Merge "Add missing size check when parsing staged aliases" into sc-dev am: d8d54c9aac -s ours
am skip reason: Merged-In I9f5d2851ff59da90163ead6c0416f0bba3868cc4 with SHA-1 abdf5a518d is already in history

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

Change-Id: I5643a77b535459c955e2a8d09736463473e0a04f
2021-12-07 20:06:34 +00:00
TreeHugger Robot
c7186b0847 [automerger skipped] Merge "Add missing size check when parsing staged aliases" into sc-qpr1-dev am: 81e1e9b53b -s ours
am skip reason: Merged-In I9f5d2851ff59da90163ead6c0416f0bba3868cc4 with SHA-1 85b3e879f8 is already in history

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

Change-Id: Ia64e2c7ff5669cbf6676affa7132f391143166fe
2021-12-07 20:06:33 +00:00
TreeHugger Robot
81e1e9b53b Merge "Add missing size check when parsing staged aliases" into sc-qpr1-dev 2021-12-07 19:45:58 +00:00
TreeHugger Robot
d8d54c9aac Merge "Add missing size check when parsing staged aliases" into sc-dev 2021-12-07 19:45:56 +00:00
TreeHugger Robot
067e59bbf6 Merge "Add missing size check when parsing staged aliases" into sc-v2-dev 2021-12-07 19:45:44 +00:00
Shivam Agrawal
f382049442 Fix NPE in SplitController#startActivityToSide
SplitController#startActivityToSide is called from
SplitController#launchPlaceholderIfNecessary with
a null value for the failure callback. If the activity
launch to side fails, then startActivityToSide tries
to pass the failure to the failure callback, which is
null. This CL fixes this bug by checking if the failure
callback is null.

Bug: b/209296363
Test: existing tests pass
Test: launch settings app from overview and observe no crash
Change-Id: I6577d992f48acbaae6b0e9776e65933e779defe3
2021-12-07 13:45:23 -05:00
Lucas Dupin
77ebf9ee1b Remove test flakiness
We should never pass real contexts into a unit test.

Test: atest LockscreenShadeTransitionControllerTest
Fixes: 209528556
Change-Id: I13446b5732327984d375fac6f68154f22374c130
2021-12-07 10:30:19 -08:00
Lucas Dupin
f12551c388 Merge "[Output Switcher] Add support for split mode" into sc-v2-dev 2021-12-07 17:44:24 +00:00
Hongwei Wang
de8bc925fd Merge "Ensure at most one pip-dismiss-overlay" into sc-v2-dev 2021-12-07 17:18:24 +00:00
Shivam Agrawal
32e0508252 Do Not Report Activities that are Finishing
...in TaskFragment

There may be a delay between when an activity is marked
to finish and when the WM hierarchy actually removes the
activity from the TaskFragment. In between this delay,
the TaskFragmentInfo will change because the runningActivityCount
will change, triggering an onTaskFragmentInfoChanged.
This callback is unncessary because there will be another
callback soon once the activity is removed from the hierarchy.

Bug: b/205901017
Test: atest CtsWindowManagerJetpackTestCases:ActivityEmbeddingLaunchTests
Change-Id: I64e08acc2a745f6f242996e99240fe4a8f0dea97
Merged-In: Id773ac3f0afea198ad4f8b4594d7a4cf0ad98ea8
2021-12-07 16:50:48 +00:00
Shivam Agrawal
7a696c99da Create HandlerThread for TaskFragmentAnimationRunner
TaskFragmentAnimationRunner is initialized using the
looper from the caller thread. This may cause a NPE
because the looper may be null if the
TaskFragmentAnimationRunner is initialized from a
non-main thread.

This CL creates a HandlerThread for the
TaskFragmentAnimationRunner so that it can be
initialized from any thread.

Bug: b/207662199
Test: atest CtsWindowManagerJetpackTestCases:ActivityEmbeddingLaunchTests
Change-Id: Id06b03380dc6dfa9122fca293df8948b4374c966
2021-12-07 16:49:06 +00:00
Peter_Liang
42dfe6bcf7 Update the string of the migration tooltips.
Goal:
1. Used for guiding users to agjust the settings config.
2. Reuse the previous tooltips for S to S MR.

Bug: 208992292
Test: manual test
Change-Id: I9a5b9b4d65813eefcaedc374ae0c5a0806eb07db
2021-12-07 23:55:48 +08:00
Jeff DeCew
3741a88710 Hide notification footer when QS is expanded.
This prevents an incorrect animation that occurs if the first notification appears while QS is expanded.

Fixes: 201427195
Test: clear shade; expand QS; post notification; observe footer is never visible
Merged-In: Id00a168720a52b491ca3d2de1fbee7cf46b2a683
Change-Id: Id00a168720a52b491ca3d2de1fbee7cf46b2a683
2021-12-07 15:07:30 +00:00
Louis Chang
35eaf77b5d Merge "Fixes re-setting activity type when embed activity in split-screen" into sc-v2-dev 2021-12-07 14:14:29 +00:00
TreeHugger Robot
9e63997827 [automerger skipped] Merge "Consolidate clearing mImeInsetsFrozenUntilStartInput" into sc-qpr1-dev am: 9ae4d14f5d -s ours
am skip reason: Merged-In I796754992911b917a49fcd18f22019c1eecad908 with SHA-1 97a4225843 is already in history

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

Change-Id: Ibf55ffe521e6b577863b904da22bb19fb1fd8b1f
2021-12-07 13:54:30 +00:00
Alex Florescu
d13c46ae87 Merge "Increasing size of lock icon on big screen devices" into sc-v2-dev 2021-12-07 13:45:27 +00:00
TreeHugger Robot
9ae4d14f5d Merge "Consolidate clearing mImeInsetsFrozenUntilStartInput" into sc-qpr1-dev 2021-12-07 13:35:13 +00:00
Weng Su
427e2410d2 [Provider Model] Adjust the design of "See all" (QS Internet Dialog)
- Show "See all" until there are results && there are more results than
can fit into the panel.

- See b/206061768#comment22 for a screenshot.

Bug: 206061768
Test: manual test
atest -c InternetDialogControllerTest \
         InternetDialogTest

Change-Id: If58364d865ea4497ea270fddbe8ba409f6069391
2021-12-07 21:26:06 +08:00
Jordan Demeulenaere
7339a87bf3 Merge changes Ia5accb74,Ic4d7def4,I30bd56fc into sc-v2-dev
* changes:
  Change DialogLaunchAnimator X-axis interpolator
  Extract interpolators and durations out of LaunchAnimator
  Synchronize dialog launch animation using BLAST
2021-12-07 10:09:36 +00:00
Stanley Wang
20e71a637f Merge "Update the padding of MainSwitch layout and the MainSwitch's TextView margin to meet the spec." into sc-v2-dev 2021-12-07 08:13:54 +00:00