Commit Graph

1022 Commits

Author SHA1 Message Date
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
Chris Li
c40cb1103a Fix non-resizable split flicker tests
1. Update the flag of DEVELOPMENT_ENABLE_NON_RESIZABLE_MULTI_WINDOW
during tests.

2. Before, the tests only checked whether the app window/layer became
visible/invisible, which could also happen during opening recent. Now,
we also check the visibility at the end.

Bug: 182235458
Test: atest WMShellFlickerTests
Change-Id: Ibc7b359d600a0e4105cc3a84b3111d59813eb9f1
2021-03-18 13:35:54 -07:00
Mady Mellor
651be19f5c Merge "Remove the explicit callback, not all of them" into sc-dev 2021-03-18 20:29:50 +00:00
Winson Chung
caa6d6484f 2/ Add mechanism to expose other features directly
- Expose interfaces for splitscreen, one handed, shell transitions,
  starting window
- Make the shell code only reference the starting window controller and
  not the exported interface

Bug: 180074017
Test: atest WMShellUnitTests
Test: Verify Pip calls from Launcher work
Change-Id: Idafed90a8ed3382adfb4322b4b1797237be86a90
2021-03-18 20:12:07 +00:00
Winson Chung
2b72add7fd 1/ Add mechanism to expose shell feature directly (for Pip)
- Also split impl and controller for ShellInit/ShellCommandHandler
  (as with ag/13502602)
- Example implementation of exposing a subset of the Pip interface to
  Launcher directly.  This has the benefit of reducing unnecessary code
  in SysUI just to pipe calls to the Shell.

  The controller implements the binder interface which is collected
  and exposed to Launcher when it binds to the overview  service
  and Launcher can call through the binders directly.

  Note: this requires the shared lib to also build with the Shell
  interfaces so changes to the Shell aidls will still require updating
  the shared lib (until the shared lib prebuilt can removed).

Bug: 180074017
Test: atest WMShellUnitTests
Test: Verify Pip calls from Launcher work
Change-Id: Id74114da6a6a73d32c957f84fce5bbe23e87ba01
2021-03-18 20:04:49 +00:00
Nataniel Borges
9606e48de0 Merge "Promote stable PIP app tests to presubmit" into sc-dev am: a4c5870608
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13901312

Change-Id: I172e27f441ccfaf85ce34baf19b2194db881dae7
2021-03-18 17:25:04 +00:00
Nataniel Borges
a4c5870608 Merge "Promote stable PIP app tests to presubmit" into sc-dev 2021-03-18 16:54:07 +00:00
Tiger Huang
da96e37215 Merge "Let insets can still be controlled if its window bounds is moved" into sc-dev am: 1c7a274367
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13784130

Change-Id: I96bb6eb9a8d441f340e4d72fad92a7d0a8bdb3b4
2021-03-18 16:08:38 +00:00
Tiger Huang
1c7a274367 Merge "Let insets can still be controlled if its window bounds is moved" into sc-dev 2021-03-18 15:27:57 +00:00
Bill Lin
3c6cf129f3 1/ Set Swipe bottom for notification OFF by default
Note:
1) The "Swipe bottom for notification" will still available
   in Settings
2) If user had ever turn ON this settings, then we will NOT help
user change() any setting for this purpose.

Test: facory reset and observe the default function if OFF
Test: atest WMShellUnitTests
Bug: 182711813
Change-Id: Iaea9c31e263d4b86096aeecf5287c7c738a5c69e
2021-03-18 19:11:00 +08:00
Bill Lin
cbd678124b Merge "2/ Do not access SettingProvider in test code" into sc-dev am: 82c923af4b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13916850

Change-Id: If6d355e395e5bca85cfe2fb912d6244ed0ab9219
2021-03-18 10:35:59 +00:00
Bill Lin
82c923af4b Merge "2/ Do not access SettingProvider in test code" into sc-dev 2021-03-18 10:30:09 +00:00
Bill Lin
8a612f73e2 2/ Do not access SettingProvider in test code
- Refactor OneHandedSettingsUtil.java
- Remove redundant test for SettingProvider

New policy: b/175024829
Settings key: <one_handed_*> is not readable.
From S+, new public settings keys need to be annotated
with @Readable unless they are annotated with @hide.

Recent changes :
ag/13764747 Remove @Readable for hidden fields added in S

Test: atest WMShellUnitTests
Bug: 183064974
Change-Id: I85bf3680cbcdba4c85aa96de058bc85cfabead46
2021-03-18 18:14:22 +08:00
Nataniel Borges
1a3724eced Promote stable PIP app tests to presubmit
These flaky tests have been stable for the past week and can be promoted

Test: atest WMShellFlickerTests:com.android.wm.shell.flicker.pip
Bug: 171049720
Bug: 167521849
Change-Id: Ibd78e9d9e53a5712ca781b265b1b65c830a74c08
2021-03-18 11:10:32 +01:00
Wei Sheng Shih
18c3d9cff9 Merge "Remove the timeout which used for cleanup splash screen" into sc-dev am: 4a1f799020
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13771085

Change-Id: I58020929e81edeec3aaaf963f3bccceedba50f83
2021-03-18 09:59:45 +00:00
Wei Sheng Shih
4a1f799020 Merge "Remove the timeout which used for cleanup splash screen" into sc-dev 2021-03-18 09:45:39 +00:00
Bill Lin
bcd30eeebf Merge "Do not access SettingProvider in test code" into sc-dev am: 9ffc639aa1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13911319

Change-Id: I99bc70c362163d37ea17aa4b56d357e70b81570a
2021-03-18 07:39:14 +00:00
Bill Lin
801a654427 Do not access SettingProvider in test code
New policy: b/175024829
Settings key: <one_handed_*> is not readable.
From S+, new public settings keys need to be annotated
with @Readable unless they are annotated with @hide.

Recent changes :
ag/13764747 Remove @Readable for hidden fields added in S

Test: atest WMShellUnitTests
Bug: 183064974
Change-Id: I185491189a3804d7038be3c117583ab571e7a961
2021-03-18 15:07:15 +08:00