Commit Graph

650163 Commits

Author SHA1 Message Date
Jerry Chang
da44526b9b Fix the content of the bottom split being truncated while showing IME
Freeze the configuration size when shifting split layout so that client
apps can calculate insets properly and won't get config or relaunch.

Fix: 192410210
Test: atest WMShellUnitTests
Test: verified the content of the bottom split won't be truncated when
adjusting split layout with IME and won't get relaunch.

Change-Id: I38da063ffacc19b691c14b74d118949293414492
2021-07-30 16:00:57 +08:00
YUKAI HUNG
ae5d3b43ae Merge "Backup AUTOMATIC_POWER_SAVE_MODE and ADVANCED_BATTERY_USAGE_AMOUNT" into sc-v2-dev 2021-07-27 03:12:49 +00:00
Louis Chang
fcbb6a51c0 Merge "Fix showing duplicated recent tasks in Recents" into sc-v2-dev 2021-07-27 01:20:37 +00:00
ykhung
bb9e57c958 Backup AUTOMATIC_POWER_SAVE_MODE and ADVANCED_BATTERY_USAGE_AMOUNT
Starting with Android 12 QPR, start backing up this setting to restore
user's pref across devices for Battery Saver and Battery Share feaature.

Bug: 192523697
Test: atest SettingsBackupTest
Merged-In: I2eaafec6704c0a0d2a2fb3c301fa9c904f7d3ac4
Change-Id: I2eaafec6704c0a0d2a2fb3c301fa9c904f7d3ac4
2021-07-26 17:00:12 +00:00
Caitlin Cassidy
8c67d4c735 Merge "[Dagger] Move StatusBarIconController and FeatureFlags from KeyguardStatusBarView to its controller." into sc-v2-dev 2021-07-26 14:49:26 +00:00
Caitlin Cassidy
7bc08d28a1 Merge "[Dagger] Move OnUserInfoChangedListener out of KeyguardStatusBarView and into its controller." into sc-v2-dev 2021-07-26 14:48:35 +00:00
Caitlin Cassidy
07116477ab Merge "[Dagger] Move BatteryStateChangeCallback out of KeyguardStatusBarView and into its controller." into sc-v2-dev 2021-07-26 14:48:17 +00:00
Caitlin Cassidy
5e79c57cf9 Merge "[Dagger] Move AnimationCallback out of KeyguardStatusBarView and into its controller." into sc-v2-dev 2021-07-26 14:47:45 +00:00
Caitlin Cassidy
e7b7e88be7 Merge "[Dagger] Move ConfigurationController out of KeyguardStatusBarView and into its controller." into sc-v2-dev 2021-07-26 14:46:08 +00:00
Louis Chang
edaa029b46 Fix showing duplicated recent tasks in Recents
New task was created while the recent task list frozen. So,
a new recent task was added, but the existing task with the
same affinity was not removed.

Removing the existing task and place the new task to the same
index in the list.

Bug: 192926123
Test: atest RecentTasksTest

Change-Id: I4392c30ab58cfdeebcc2d38c9c986ce531c2f507
2021-07-26 21:46:23 +08:00
Jamie Garside
c7f30fcd0e Merge "Added device posture controller to SysUI." into sc-v2-dev 2021-07-26 09:21:42 +00:00
Tony Huang
ff254dd71f Merge "Add api for systemUi getting split visibility" into sc-v2-dev 2021-07-26 07:54:03 +00:00
Chris Li
9119cb969f Merge "Fix NPE in RemoteTransitionCompat" into sc-v2-dev 2021-07-25 18:59:24 +00:00
Chris Li
fd4beffdda Merge "Add WCT#setAdjacentTaskFragments" into sc-v2-dev 2021-07-24 22:14:56 +00:00
Chris Li
61e70d323a Fix NPE in RemoteTransitionCompat
Bug: 193565751
Test: pass failed launcher test with shell transition
Change-Id: I1f876c1486cc68ce9aa409ea973f5db7e7f58efd
2021-07-24 15:11:49 -07:00
TreeHugger Robot
a07201bd7a Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-07-24 02:05:59 +00:00
TreeHugger Robot
cda133cd97 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-07-24 02:03:10 +00:00
Bill Yi
369fa22e04 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I4eed9a66b4d7e0cf56957e738caa7d7cab02860f
2021-07-23 23:49:02 +00:00
Bill Yi
4e85aa994a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I74f3150fd1c9e0a6dbcaeeb9bc5ba761a8705028
2021-07-23 23:26:09 +00:00
Chris Li
99b93b7dfa Add WCT#setAdjacentTaskFragments
Similar to WCT#setAdjacentRoots, but can be called with fragmentTokens
in case the TaskFragments may not be created yet.

Bug: 190433129
Change-Id: I41dd515fb9722ea6e95d0c3fb040cc0d196ad78d
Test: atest WmTests:TaskFragmentOrganizerControllerTest
2021-07-23 14:03:52 -07:00
TreeHugger Robot
69b8a6c9c9 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-07-23 19:37:20 +00:00
TreeHugger Robot
c703274ee9 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-07-23 19:31:00 +00:00
Beth Thibodeau
c9d779caa3 Merge "Fix drag down animation when bypassing" into sc-v2-dev 2021-07-23 18:15:22 +00:00
TreeHugger Robot
ca31c5e7db Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-07-23 18:12:41 +00:00
Chris Li
56e45a0dd4 Merge "Fix Keyguard exit remote animation not invoke finish callback" into sc-v2-dev 2021-07-23 18:01:17 +00:00
TreeHugger Robot
5f74fa08ba Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-07-23 17:57:24 +00:00
TreeHugger Robot
f14036160e Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-07-23 17:53:33 +00:00
TreeHugger Robot
cb59ead845 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-07-23 17:52:46 +00:00
Bill Yi
e6987aff6a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ifd001dc07b61d2e5518168af4da68da3ed46ca2c
2021-07-23 17:12:57 +00:00
Bill Yi
8128340b67 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ibe661f99fb20c735cd33adb39b98c4f790c36e54
2021-07-23 17:08:29 +00:00
Bill Yi
c01605f9de Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I2da9b057a7e2402a99363f8f342516c53bad320f
2021-07-23 16:54:41 +00:00
Bill Yi
20193b10f0 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I180ea7cd109483733eb4036b3665a483af6b2ae1
2021-07-23 16:16:50 +00:00
Bill Yi
a81a5aefe9 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I42bee20dd7e0a9fb93eb366fd51be58d4fcba2f2
2021-07-23 13:35:10 +00:00
Jamie Garside
a8813c12da Merge "Updated keyguard_pin_view to use a ConstraintLayout." into sc-v2-dev 2021-07-23 13:34:43 +00:00
Sergey Volnov
e175b6f56f Merge "Revert "Fix stage split rotation"" into sc-v2-dev 2021-07-23 13:33:52 +00:00
Bill Yi
ed5a96473f Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I916416da0bee68ce06a50f6f17ced5902a7d69d4
2021-07-23 12:42:56 +00:00
Tony Huang
acc62fda0a Revert "Fix stage split rotation"
This reverts commit 706bb3e9a3.

Reason for revert: Cause tests fail

Fix: 191338484
Change-Id: I7a5fb1fa31be2cb52c440dc64f91a83548bcc230
2021-07-23 11:37:41 +00:00
Tony Huang
d69d28659b Add api for systemUi getting split visibility
Bug: 193713566
Test: manual
Change-Id: I6dddfb5ae213da8a7da0b1b9eba45ed7dfff6983
2021-07-23 17:17:33 +08:00
Louis Chang
692e92bfde Merge "Providing caller's token when starting activity in TaskFragment" into sc-v2-dev 2021-07-23 08:26:03 +00:00
Louis Chang
f1a38d121f Merge "Finishing root activity if having other running activities" into sc-v2-dev 2021-07-23 06:52:09 +00:00
Tony Huang
c7efed22c4 Merge "Make sure divider show after DA info changed" into sc-v2-dev 2021-07-23 06:26:43 +00:00
Charles Chen
7d66f8c082 Merge "Add hasRunningActivity in TaskFragmentInfo" into sc-v2-dev 2021-07-23 03:46:27 +00:00
TreeHugger Robot
c739eabbd3 Merge "Prevent NPE when dropping app icon to split" into sc-v2-dev 2021-07-23 03:37:23 +00:00
Louis Chang
ca43bb061b Providing caller's token when starting activity in TaskFragment
NEW_TASK flag was added by ATMS when #startActivityInTaskFragment
is called because the activity was started without source record.

Bug: 193846941
Test: starting CCT in sample app
Change-Id: Ida26034324f7ff761f1e688403d78959a01f010d
2021-07-23 11:14:35 +08:00
Tony Huang
2ac27f9e10 Make sure divider show after DA info changed
Currently it will not receive stage visibility changed callback
after display info changed, the divider will not show even if it
has re-initialized.

Fix this by add applyVisibility call when display info changed.

Fix: 194159070
Test: active stage split and rotate phone
Change-Id: I2b9d6849300bc8a594cdbe658a7f7a663fd949a7
2021-07-23 10:58:09 +08:00
Tony Huang
15cf30408a Merge "Fix stage split rotation" into sc-v2-dev 2021-07-23 02:54:09 +00:00
Chris Li
6ea18c5778 Fix Keyguard exit remote animation not invoke finish callback
When Shell transition is enabled, some launcher tests failed because the
keyguard exit remote animation never invoke the finish callback.

The expect flow is:
1. Dismiss amount changed from 0 to 0.1+ to trigger the keyguard going
away transition.
2. Dismiss amount changed from 0.1+ to 0.3+ to finish the keyguard exit
remote animation.

However, in presubmit test, the dismiss amount may changed from 0.0+ to
1.0 directly. When it happened, there is only a trigger to start the
transition, but never trigger the change event to call the finish
callback, which blocked the Shell transition.

The idea is to also check the current dismiss amount when the keyguard
going away transition reach to the controller.

Bug: 183993924
Test: atest PromiseIconUiTest
Change-Id: I95951385130578f45df0837200cc7e88d89edd34
2021-07-22 18:46:03 -07:00
Selim Cinek
d879f8802c Fix drag down animation when bypassing
The drag down animation didn't do the transition
to the full shade visually, so things would look
out of place.

Fixes: 191282610
Test: drag down while bypassing
Change-Id: Icdd62155f3762621c1046ed5271476ec0b4e2635
2021-07-22 21:48:50 +00:00
Ram Parameswaran
a22be8fb7e Merge "Update dialog styling to comply with design guidelines" into sc-v2-dev 2021-07-22 21:39:41 +00:00
TreeHugger Robot
8dbc900327 Merge "Skip operation on content overlay if task's vanished" into sc-v2-dev 2021-07-22 21:28:20 +00:00