Commit Graph

1008 Commits

Author SHA1 Message Date
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
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
wilsonshih
5cafb53ce6 Remove the timeout which used for cleanup splash screen
Remove the internal timeout to clean up the starting window, for now on
the developers are responsible for removing it.

- Also clean up some redundant members.

Bug: 181838419
Test: atest SplashscreenTests
Change-Id: Iebcccbca454eb7fda4bed637cb5866deec36cf6b
2021-03-18 11:36:44 +08:00
jorgegil@google.com
30d86a6b5c Update the PIP exclusion bounds when PIP is offset by shelf/ime
Bug: 182509392
Test: enter PIP, stash, open chrome to trigger offset - verify back
gesture works correctly

Change-Id: If80ec31035d7da9718267133e10493bd2a363495
2021-03-17 15:26:09 -07:00
Evan Rosky
1551cb7307 Initial support for display rotation in shell transitions
This puts display-content as another WC in a transition. It then
adds WC rotation to change tracking. If there is a rotation,
the shell-side handlers will play the transition.

This replaces ScreenTransitionAnimation, seamless-rotation, and
fixed-rotation:

 ScreenTransitionAnimation implementation will move to shell.

 seamless-rotation is redundant because the rotation setup is
 intrinsically "seamless": it requires shell to imbue an
 animation onto it rather than just doing the jump-cut.

 fixed-rotation is now just a custom animation where we
 counter-rotate the closing app on frame 1 and then perform
 the normal open animation on the opening app.

Bug: 179270750
Test: DisplayContentTests#testShellTransitRotation
      enable shell transitions and rotate the device or launch
      and close apps in different orientations.
Change-Id: I4bc23b2e614ba85bf9752f62da4c3f8d0c90436d
2021-03-17 15:08:10 -07:00
Mady Mellor
8b7afff3ef Remove the explicit callback, not all of them
Test: manual - expand / collapse / switch between bubbles
      works fine
Bug: 181896441
Change-Id: Ib724b2195aeb7748ade669964a65394e61f675a5
2021-03-16 18:31:11 -07:00
Mark Renouf
2856fb0f08 Merge "Splits up internal binder api for scroll capture" into sc-dev am: ce4e40ac0f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13766690

Change-Id: I7608281b2d36a3e3760deb9a3aef880efc2b4efd
2021-03-16 18:22:56 +00:00
Mark Renouf
ce4e40ac0f Merge "Splits up internal binder api for scroll capture" into sc-dev 2021-03-16 18:21:37 +00:00
Tiger Huang
7faf533fb3 Let insets can still be controlled if its window bounds is moved
Insets source window can be moved by the display area policy so that
the window would not on the edge of the display. This makes the window
cannot provide insets to the display frame. The default animation uses
the display frame to compute insets, so the moved types cannot be
animated properly.

This CL adds an insets hint to InsetsSourceControl. It is the insets
computed from its owning window bounds. With the insets hint, the insets
animation can be played regardless of the display frame.

This CL also fixes an issue that the insets animation would be played in
the wrong direction by the fixed-rotation window.

Bug: 175775686
Fix: 181939099
Fix: 163018915
Test: atest ImeInsetsSourceConsumerTest InsetsAnimationControlImplTest
            InsetsControllerTest InsetsSourceConsumerTest
            DisplayImeControllerTest
      WindowInsetsTests (manual)
Change-Id: Ic6a8a215bd9b3a3b1af18e425dabe803c9be323e
2021-03-16 23:33:31 +08:00
Nataniel Borges
e3b5cc3f69 Merge "Remove Snapshot and Splash Screen from consecutive entry check" into sc-dev am: 89740805f3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13875865

Change-Id: Ifbb06ad405817030d5e6259c5594e2231ecc3944
2021-03-16 14:28:15 +00:00
Nataniel Borges
89740805f3 Merge "Remove Snapshot and Splash Screen from consecutive entry check" into sc-dev 2021-03-16 14:14:02 +00:00
Chilun
a68b3eb151 Do not use obsoleted snapshot as staring window
We will use splash screen as starting window if the activity is in
finishing state. Now we will not use the activity with finishing
state to show the starting window, so we check the top activity
component to avoid using obsoleted snapshot as starting window.

Bug: 180893837
Test: atest ActivityStarterTests ActivityRecordTests
Change-Id: I27fb40d6d4e8808caf803ef78c39050258eab1a2
2021-03-16 17:34:12 +08:00
Nataniel Borges
8b15b01c43 Remove Snapshot and Splash Screen from consecutive entry check
It is already possible to ignore windows/layers on the verification of  visibleWindowsShownMoreThanOneConsecutiveEntry and visibleLayersShownMoreThanOneConsecutiveEntry. However many tests need to manually add the Snapshot and Splash Screen entries.

Those entries are not guaranteed to show for more than 1 entry, they depend on the app behavior and when the SF actually renders the information sent by WM.

This CL removes those windows by default from the verification and refactor the tests to make it easier to update in the future

Test: atest FlickerTests WMShellFlickerTests
Bug: 182720234
Change-Id: I0e3346e078515b3e9a2065256ac04696acfa59fb
2021-03-16 10:26:55 +01:00
Winson Chung
16df6d6a2b Merge "Create WindowContext for adding the drag drop overlay" into sc-dev am: f839a05c78
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13690178

Change-Id: I114c4cb7bcc13b8541c19eef7b5624626e60bc75
2021-03-16 03:50:37 +00:00
Winson Chung
f839a05c78 Merge "Create WindowContext for adding the drag drop overlay" into sc-dev 2021-03-16 03:30:29 +00:00
Mark Renouf
400a505d4d Splits up internal binder api for scroll capture
Splits the connection callback out from the session
callbacks.

Use ListenableFuture at the ScrollCaptureClient layer
to safely chain together futures, provide a better
exception handling/reporting path, and allow for
cancellation of background tasks.

Bug: 180671218
Test: atest ScrollCaptureClientTest ScrollCaptureConnectionTest
Test: atest ScrollCaptureFrameworkSmokeTest
Change-Id: Ibc8536d12a5554f62b3d7e1f4f717d3589ec45e0
2021-03-16 02:07:53 +00:00