Commit Graph

1039 Commits

Author SHA1 Message Date
Jerry Chang
ed8fea431c Merge "Deal with display insets when layout splits" into sc-dev am: 04e05de6da
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14010220

Change-Id: I32fadf1b0205e87256d59845fd2f5310a2f029c6
2021-03-30 07:10:23 +00:00
Jerry Chang
04e05de6da Merge "Deal with display insets when layout splits" into sc-dev 2021-03-30 06:45:48 +00:00
Jerry Chang
8e8ceb4542 Merge "Fix not able to put app in split after removed task from side stage" into sc-dev am: 8b23eff356
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13982791

Change-Id: Iab4f315a441c93e469588c943d9f7f7b14915708
2021-03-30 03:05:30 +00:00
Jerry Chang
29f76eeae5 Deal with display insets when layout splits
Fix: 175360659
Bug: 174209492
Test: manual check split bounds and divider position
Change-Id: I3b8c567a6a8f49d003eedd53a4abc32f53c7208c
2021-03-30 10:58:55 +08:00
Jerry Chang
8b23eff356 Merge "Fix not able to put app in split after removed task from side stage" into sc-dev 2021-03-30 02:36:43 +00:00
Bill Lin
8b26f0206a Merge "Integrate DisplayLayout for One handed mode" into sc-dev am: 2b2c2a85f4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13899080

Change-Id: I411b13cafd876aefadf140ece0e9e0b5dbba06e5
2021-03-29 06:54:11 +00:00
Bill Lin
2b2c2a85f4 Merge "Integrate DisplayLayout for One handed mode" into sc-dev 2021-03-29 06:26:37 +00:00
Sunny Goyal
2298aa4cb1 Merge "Using IconLoader lib to load splashscreen icons" into sc-dev am: 75238d1237
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13988645

Change-Id: I4af12553f478accbd53577cb50cee925ee4991d1
2021-03-26 17:09:04 +00:00
Sunny Goyal
75238d1237 Merge "Using IconLoader lib to load splashscreen icons" into sc-dev 2021-03-26 16:41:57 +00:00
TreeHugger Robot
b752366da0 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-03-26 04:47:04 +00:00
Bill Yi
17284baf7a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I415d832e5f58ea7c304493547140d4f8578b22b0
2021-03-26 02:55:51 +00:00
Sunny Goyal
61af195119 Using IconLoader lib to load splashscreen icons
Bug: 183641907
Test: Manual
Change-Id: I06bfe0b2c5f908da7bd57b413c6f5d5d1b4cd32a
2021-03-25 09:56:00 -07:00
Bill Lin
52a3bb48ca Integrate DisplayLayout for One handed mode
1) Handle rotation
2) Initialize DisplayLayout in dagger and update when
   onDisplayAdded() & onDisplayRemoved()
3) Refact OneHandedTouchHandler
4) Refact OneHandedBackgroundPanelOrganizer
5) Refact OneHandedDisplayAreaOrganizer

Test: atest WMShellUnitTests
Bug:182899148
Bug:182633327
Bug:183172404
Bug:183489178
Bug:183559944
Bug:183065937
Bug:183005910
Bug:183063280
Bug:183162084
Bug:181423645
Bug:177497107
Change-Id: Ie7a4fa97df5f6a3963a55bd507d36e026e971bab
2021-03-25 07:32:58 +00:00
Jerry Chang
78f17f568b Fix not able to put app in split after removed task from side stage
Relies on reorder operation instead of setHidden operation to control
visibility of side stage. When removing task from side stage, keep side
stage visible if there's task remaining on side stage.

Fix: 180631194
Test: atest WMShellUnitTests
Test: manual check drop to split works after removeFromSideStage
Change-Id: I5a92bf33d1d447d4c4e28bb97e3e337927ffb875
2021-03-25 12:37:26 +08:00
Charles Chen
2a35650036 Merge "Check if display exists in RootTDAOrganizer" into sc-dev am: e750fc8744
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13877250

Change-Id: Idc6a05772942a2f942759bb8124803044f4bb10d
2021-03-24 06:08:15 +00:00
Charles Chen
e750fc8744 Merge "Check if display exists in RootTDAOrganizer" into sc-dev 2021-03-24 03:14:13 +00:00
Charles Chen
604acee017 Check if display exists in RootTDAOrganizer
There's a scenario that the display is removed before DAOrganizer callbacks
propagate to the client side.
This CL checks if the display still exists before applying
 DisplayAreaInfo changes.

Test: manual - repro steps in bug
fixes: 182790285

Change-Id: I1180ca6bea4e5bd87f22298483400c9d604bae06
2021-03-23 20:10:37 +08:00
Vadim Caen
4557d194a3 Merge "Hide branding view when empty" into sc-dev am: 015adeccfd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13901315

Change-Id: I2d0b0ac079914e3593799ff83f4cc3366173a877
2021-03-23 08:42:12 +00:00
Vadim Caen
015adeccfd Merge "Hide branding view when empty" into sc-dev 2021-03-23 08:28:33 +00:00
Vadim Caen
884c99d065 Hide branding view when empty
It looks like the empty branding view was causing the underlying
view to bleed through it so ensuring that it is removed if empty.

Bug: 182708883
Change-Id: I868931768bed5b083433fd5222720724bfe3e60e
2021-03-23 08:28:14 +00:00
Wei Sheng Shih
87416b08d4 Merge changes Id0cf1b23,I4df6891e,I759de2e1 into sc-dev am: 964eafdccc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13493025

Change-Id: Iafee035d0692a8300aaa4627e69f563349baf869
2021-03-23 03:52:15 +00:00
Wei Sheng Shih
964eafdccc Merge changes Id0cf1b23,I4df6891e,I759de2e1 into sc-dev
* changes:
  Add trace for tracking the performance of new starting window
  Force enable hardware accelerated for starting window
  Pre-draw AdaptiveIconDrawable and cache it before doFrame
2021-03-23 03:15:07 +00:00
Bill Lin
48e70fdaf0 Merge "1/ Set Swipe bottom for notification OFF by default" into sc-dev am: 9eaba911ec
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13855249

Change-Id: Ie4c0b65672334b06b14107eff33cd89b837d98b0
2021-03-23 01:52:06 +00:00
Bill Lin
9eaba911ec Merge "1/ Set Swipe bottom for notification OFF by default" into sc-dev 2021-03-23 01:22:38 +00:00
Heemin Seog
b88119856b Merge "Add INTERACT_ACROSS_USERS to WMShell" into sc-dev am: 0cc4fd9db8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13907600

Change-Id: I9e7a6233274e13277bede1885780565a58a846ec
2021-03-22 21:16:29 +00:00
Heemin Seog
0cc4fd9db8 Merge "Add INTERACT_ACROSS_USERS to WMShell" into sc-dev 2021-03-22 20:53:04 +00:00
wilsonshih
2c9160c38b Add trace for tracking the performance of new starting window
Analysis performance.

Bug: 173975965
Test: check perfetto
Change-Id: Id0cf1b23799fd8bb0193c950ae4320ccca9dfac0
2021-03-22 16:23:41 +08:00
wilsonshih
998666c46d Force enable hardware accelerated for starting window
Currently the hardware acclerated was disabled for starting window, we
will need to enable it to fix the reveal animation janky.
With software rendering, each frame would cost 20~30ms on redfin.

Test: atest KeyguardTests KeyguardLockedTests SplashscreenTests
Bug: 182708883
Bug: 173975965
Change-Id: I4df6891e0b24231b7fd3a1d2d630ca2b9eead79f
2021-03-22 14:54:52 +08:00
wilsonshih
9d1ce22f88 Pre-draw AdaptiveIconDrawable and cache it before doFrame
The AdaptiveIconDrawable can spend much time which will impact the
time for first window drawn. But usually there is a small time
between setContentView to doFrame, we can use this gap to pre-draw
the AdaptiveIconDrawable and cache it since we already know the size
and it won't change anymore.

Bug: 173975965
Test: atest StartingSurfaceDrawerTests SplashscreenTests
Change-Id: I759de2e1b4025dd150532f3fd5c67d1b404f56a0
2021-03-22 14:54:31 +08:00
Heemin Seog
4fe9ff343e Add INTERACT_ACROSS_USERS to WMShell
Also add it to privapp permissions for Car Launcher

Bug: 183051101
Test: manual
Change-Id: I9ad7688425c8804eded75865bf3f202bf9ff5cd2
2021-03-19 11:43:01 -07:00
Quang Luong
f858217802 Merge "Revert "Update min_sdk_versions to match WifiTrackerLib"" into sc-dev am: 406c9fb61c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13930075

Change-Id: I044d02618bc6073b475e60ccca3ee6046119ff62
2021-03-19 17:22:27 +00:00
Quang Luong
406c9fb61c Merge "Revert "Update min_sdk_versions to match WifiTrackerLib"" into sc-dev 2021-03-19 17:04:58 +00:00
Quang Luong
0c3b94e971 Revert "Update min_sdk_versions to match WifiTrackerLib"
Revert "Update GoogleWifiTrackerLib min_sdk_version to match Wif..."

Revert "[WifiTrackerLib] Put @hide methods in separate wrapper p..."

Revert "Update TwoPanelSettingsLib min_sdk_version to match Sett..."

Revert "Update BluetoothServices min_sdk_version to match Settin..."

Revert "Update DroidTwoPanelSettingsLib min_sdk_version to match..."

Revert submission 13842044-wifitrackerlib-hideapi

Reason for revert: build breakage
Reverted Changes:
I85b8ed34a:[WifiTrackerLib] Put @hide methods in separate wra...
I891f51aab:Update DroidTwoPanelSettingsLib min_sdk_version to...
If8e82e047:Update GoogleWifiTrackerLib min_sdk_version to mat...
I4529627fb:Update BluetoothServices min_sdk_version to match ...
I87b46a09b:Update TwoPanelSettingsLib min_sdk_version to matc...
I65a3246b4:Update min_sdk_versions to match WifiTrackerLib

Change-Id: I083b764b42e5cf5476b1ec9ed3a9b2d5ed12afc9
2021-03-19 16:55:23 +00:00
Quang Luong
6f79bf6ba4 Merge "Update min_sdk_versions to match WifiTrackerLib" into sc-dev am: 45abbc309d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13842469

Change-Id: Ie752e7b946aa8a8e1b00b3d6892f86dc119ae433
2021-03-19 16:24:24 +00:00
Quang Luong
45abbc309d Merge "Update min_sdk_versions to match WifiTrackerLib" into sc-dev 2021-03-19 16:19:15 +00:00
Wei Sheng Shih
b7a382544b Merge "Add API windowSplashScreenIconBackground(12/N)" into sc-dev am: 370868599b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13692971

Change-Id: I532947f60046892f77f01807ca87e04a7e361e49
2021-03-19 11:49:15 +00:00
Wei Sheng Shih
370868599b Merge "Add API windowSplashScreenIconBackground(12/N)" into sc-dev 2021-03-19 11:44:37 +00:00
Winson Chung
a6c32d8b41 Merge changes from topic "shell_feature_interfaces_reland" into sc-dev am: d3d61ffefe
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13895212

Change-Id: I2528258a1b17c1967ec13cf75a34029beb170a86
2021-03-19 07:23:52 +00:00
Winson Chung
d5d57899b4 1/ Add mechanism to expose shell feature directly (for Pip) am: 2b72add7fd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13895211

Change-Id: I27eaca793feb623b2175ae654b3a5c18a729f72c
2021-03-19 07:23:45 +00:00
Winson Chung
d3d61ffefe Merge changes from topic "shell_feature_interfaces_reland" into sc-dev
* changes:
  2/ Add mechanism to expose other features directly
  1/ Add mechanism to expose shell feature directly (for Pip)
2021-03-19 06:55:31 +00:00
Chris Li
bb101c1f12 Merge "Fix non-resizable split flicker tests" into sc-dev am: 667d242404
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13882033

Change-Id: I80d0241e663b4633595363b370e770ce80565b1d
2021-03-19 03:44:06 +00:00
wilsonshih
a4c6d8f828 Add API windowSplashScreenIconBackground(12/N)
Add new API for developer to customize starting window, set a
background color behind the icon.

Also masking the AVD and icon background like AdaptiveIconDrawable.

Ref doc: go/improved_app_launch_animations

Bug: 73289295
Test: atest SplashscreenTests
Change-Id: Ibba49ecc3ca020022cf775fed302e383908be327
2021-03-19 11:23:56 +08:00
Chris Li
667d242404 Merge "Fix non-resizable split flicker tests" into sc-dev 2021-03-19 03:19:26 +00:00
Chilun Huang
0404d3ee9b Merge "Do not use obsoleted snapshot as staring window" into sc-dev am: df8f101244
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13824388

Change-Id: Ia5aaf083bf4f2ee8751233eb231d588405171ce3
2021-03-19 02:26:50 +00:00
Chilun Huang
df8f101244 Merge "Do not use obsoleted snapshot as staring window" into sc-dev 2021-03-19 02:07:48 +00:00
Jorge Gil
b0d9be7fbd Merge "Update the PIP exclusion bounds when PIP is offset by shelf/ime" into sc-dev am: f134ef3656
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13879996

Change-Id: I1f0da56fcaf0b9fc4503d5fd3754e8887d1f7975
2021-03-19 00:33:27 +00:00
Jorge Gil
f134ef3656 Merge "Update the PIP exclusion bounds when PIP is offset by shelf/ime" into sc-dev 2021-03-19 00:12:19 +00:00
Evan Rosky
5d3b5f70c7 Merge "Initial support for display rotation in shell transitions" into sc-dev am: 557bab6f87
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13538094

Change-Id: I5ec9639c906c016d01ecd994fcce4ee2d2db039f
2021-03-18 23:27:22 +00:00
Evan Rosky
557bab6f87 Merge "Initial support for display rotation in shell transitions" into sc-dev 2021-03-18 23:24:48 +00:00
Mady Mellor
01277937aa Merge "Remove the explicit callback, not all of them" into sc-dev am: 651be19f5c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13893166

Change-Id: I88b332f872f9b70e4087937a9460925347c3f222
2021-03-18 22:17:55 +00:00