Commit Graph

803 Commits

Author SHA1 Message Date
Vinit Nayak
ac03d56980 Merge "Pass nav button disable and AOD events to launcher" into sc-v2-dev am: 2c6b4d5fc9 am: 6bb50b0b4a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14738870

Change-Id: Ic149f5be95c1e6417cb6e5f30580dbfd494e56af
2021-06-15 23:46:07 +00:00
Vinit Nayak
2c6b4d5fc9 Merge "Pass nav button disable and AOD events to launcher" into sc-v2-dev 2021-06-15 23:05:15 +00:00
Hongwei Wang
286fb4f60b Merge "Polish YT auto enter PiP transition" into sc-dev am: 9630069410
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14941602

Change-Id: I9bb1b13ed30de587022c33e5099a046e767be31b
2021-06-15 01:03:08 +00:00
Hongwei Wang
1d627b7356 Merge "Polish YT auto enter PiP transition" into sc-dev am: 9630069410 am: 7a642df1c9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14941602

Change-Id: Id5ea465c7ad512d25b5c3964308aeb32b65220df
2021-06-14 22:41:49 +00:00
Vinit Nayak
c9a7b45ed6 Pass nav button disable and AOD events to launcher
Bug: 180046394
Change-Id: Ic6f552f57b48fc15b9873e59e3d8b53a17e312d6
2021-06-14 10:27:53 -07:00
Jooyung Han
6390d97088 smartspace: remove errorneous import in AIDL
Importing the same type in a file which defines the type is an error.

Bug: 190782365
Test: m
Change-Id: I1d38d1f017ba233e97d206fc6a272113d113a9c3
2021-06-11 04:30:59 +00:00
Hongwei Wang
6a92728699 Polish YT auto enter PiP transition
- Fixed the round corner radius calculation, take into account the
  insets, was applied to the destination bounds side
- Adjust the leash position based on the insets

Video: http://recall/-/aaaaaabFQoRHlzixHdtY/eUpkH2il1vYBVBPt1Vks2u
Bug: 190748719
Test: auto-enter-pip from YT landscape, see video
Change-Id: I2f3f4ae807630c5ae6bcc9968c6b46cf4501ad07
2021-06-10 18:11:39 -07:00
Hongwei Wang
a9b650ee9c Merge "Polish round corner for auto-enter-pip" into sc-dev am: 628002c70c am: 85889a4ff8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14900574

Change-Id: I0b7130207e794cb369ad2c84b6c2af811e0fb6d1
2021-06-09 02:25:20 +00:00
Shawn Lin
941b6b293d Merge "Add a method to trigger the navigation bar animation in system" into sc-dev am: 433c1d8a10 am: e8a7d9d622
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14879192

Change-Id: Ib0990010fea456dc31a8049dfac46298876e009e
2021-06-09 02:25:00 +00:00
Hongwei Wang
989ca8989b Merge "Polish round corner for auto-enter-pip" into sc-dev am: 628002c70c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14900574

Change-Id: I39b111613b6e50885d5db5e895ec482011a58dad
2021-06-09 02:06:00 +00:00
Shawn Lin
a0c788d3e4 Merge "Add a method to trigger the navigation bar animation in system" into sc-dev am: 433c1d8a10
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14879192

Change-Id: I01bf8ae9bc270abd2e389837e1e140bf8c47dccd
2021-06-09 02:05:24 +00:00
Hongwei Wang
628002c70c Merge "Polish round corner for auto-enter-pip" into sc-dev 2021-06-09 01:41:10 +00:00
Hongwei Wang
6422ad45c9 Polish round corner for auto-enter-pip
Video: http://recall/-/aaaaaabFQoRHlzixHdtY/b47ErxSscLnZl9clVncSY6
Bug: 187834841
Test: manual, see video
Change-Id: I59132ea50a3213a9caa2366c103fdddf642498e2
2021-06-08 13:13:39 -07:00
Vinit Nayak
a9bf9c8312 Extract a11y from NavigationBar to share with TaskbarDelegate
When taskbar is showing, navigation bar isn't created which
means all of the a11y registers are never registered.
NavigationBarA11yHelper maintains existing a11y flag logic from
NavigationBar but any class can register with it to get updates.

Bug: 180046394
Test: A11y works as expected on 3 button phone
Right events getting pass through to launcher when on larger
device

Change-Id: I9eeb566fca0e5142b38127aa8f32c21632c33caa
2021-06-08 12:19:19 -07:00
shawnlin
0304528265 Add a method to trigger the navigation bar animation in system
Bug: 189278432
Test: build
Change-Id: I9795c4cde805fdca29de3708e2d77f12932a1066
2021-06-07 16:03:28 +08:00
Wu Ahan
54bbc02dda Merge changes from topic "unlock_jank_instrument" into sc-dev am: 924618b41c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14419588

Change-Id: I4833213060872062cca199f83f8a8965c52baf8d
2021-06-04 05:40:59 +00:00
Wu Ahan
924618b41c Merge changes from topic "unlock_jank_instrument" into sc-dev
* changes:
  Instrument jank and latency of the unlock animation of lockscreen
  Support configuration as parameter while beginning the instrumentation
2021-06-04 04:19:38 +00:00
Galia Peycheva
fe3581e705 Merge "Remove occurances of disable blurs sysprop" into sc-dev am: e5c0adddcf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14807583

Change-Id: I5c47055d5e4e70902eba5910b8d672747adf86f1
2021-06-03 19:54:16 +00:00
Galia Peycheva
2cd5b58dd4 Remove occurances of disable blurs sysprop
The disable blurs sysprop is no longer being used

Bug: 185580298
Test: m
Change-Id: I191d88f233818d76ad8f417e2806b3f3be3bfb45
2021-06-03 19:08:24 +02:00
Ahan Wu
c45abcf9db Support configuration as parameter while beginning the instrumentation
Support a custom configuration while beginning the instrumentation, also
support a custom tag for getting fine-grained CUJ in the trace.

Bug: 187495856
Test: take the trace, see the cuj section name.
Change-Id: Ife2554e0d7dbe4c01b7e4381a12a5f595e2f4364
2021-06-02 01:15:27 -08:00
Vinit Nayak
14e81630b9 Initial commit for rotation contextual button
Bug: 180046394
Test: Events successfully passed through to launcher
Change-Id: I84c60dc89f560fdaf76afdbed8b5f9ec23b38856
2021-06-01 13:16:48 -07:00
Josh Tsuji
74c8519851 Merge "Adds the initial SmartSpace shared element transition!" into sc-dev am: 3ec95514eb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14472057

Change-Id: I49ce737bfe96af14baee989a42ff3bb23a079e50
2021-05-27 00:49:58 +00:00
Josh Tsuji
3ec95514eb Merge "Adds the initial SmartSpace shared element transition!" into sc-dev 2021-05-27 00:29:00 +00:00
Evan Rosky
ffac171d4d Merge "Enable remote transition animations to append to the finish transaction" into sc-v2-dev 2021-05-24 19:28:20 +00:00
Evan Rosky
46ba708bb8 Enable remote transition animations to append to the finish transaction
Adds a parameter to the IRemoteTransitionFinishedCallback. This
transaction will be merged into the finish transaction before it is
applied. This is needed by transitions like live-tile recents where
the end-state of the transition is altered during the "animation".

Bug: 172695387
Test: open app, swipe up to overview, resume that same app, screen
      shouldn't turn black anymore.
Change-Id: I6fa1e22288ce087ad17fdfc950a8419e6ba61a47
2021-05-24 09:14:46 -07:00
Evan Rosky
2996ef5f4f Hook up nav-bar attach/detach logic to Shell Transitions
For the Recents gesture animation, the navbar gets attached to
the app while dragging. The actual navbar attach/detach logic
lives in Core, so this change basically hacks the logic into
the core-side of shell transitions. This is ugly and should
be a temporary solution until that behavior can move to Shell.

This also had to add an ugly API on IATM because the lifecycle
of the navbar reparent is different from the transition lifecycle
in this instance because of LiveTiles.

Bug: 188595497
Test: With shell transit enabled, open app, swipe up to recents.
      Observe navbar attached to app during drag and put back
      on screen afterwards. Also, no more crash.
Change-Id: I1aba53314329e3fd7678a7e8a5fc8ffa0294e395
2021-05-21 08:47:46 -07:00
Tracy Zhou
4427342093 Merge "Notify when quickstep gesture starts" into sc-dev 2021-05-21 02:24:21 +00:00
Lucas Dupin
7a9a236b53 Merge "Add setOpaque to TransactionCompat" into sc-dev 2021-05-20 23:11:46 +00:00
Tracy Zhou
73705bf07a Notify when quickstep gesture starts
Also rename notifyQuickSwitchToNewTask

Fixes: 188568083
Test: manual

Change-Id: Ic42825c60f69bcf1b13b92a096d182e82759d72a
2021-05-20 15:56:12 -07:00
TreeHugger Robot
ee438f960a Merge "Deprecate Context#createApplicationContext" into sc-dev 2021-05-19 15:35:09 +00:00
Lucas Dupin
9fa272ea29 Add setOpaque to TransactionCompat
So launcher can notify when to stop blurring

Bug: 187703092
Test: manual
Change-Id: I0e0c6ff89a44a2be801d0af36e0123399d4a7fbb
2021-05-18 20:11:03 -07:00
Ryan Mitchell
c54ebba25b Deprecate Context#createApplicationContext
If an application caches an ApplicationInfo and uses it to call
Context#createApplicationContext, the app will not get the most recent
version of the overlays for that application. To make things worse, the
LoadedApk stored in ActivityThread#mResourcePackages is updated using
the old ApplicationInfo causing further uses of the cached LoadedApk to
return outdated information.

Deprecate Context#createApplicationContext, convert all internal uses
to Context#createPackageContext(String packageName, ...) and log
whenever any one calls Context#createApplicationContext with an
outdated ApplicationInfo to detect debug issues in using old infos.

Bug: 188059515
Test: change wallpaper and observe widgets get reloaded with most
      recent overlays
Change-Id: I2aeefa8c0e66264859109975a54c4f73f76ad710
2021-05-18 09:07:58 -07:00
Evan Rosky
bd26d8f134 Merge "Add leashes in launcher adapters in lieu of cross-process sync" into sc-dev 2021-05-18 15:32:33 +00:00
Josh Tsuji
2da469ffdf Adds the initial SmartSpace shared element transition!
To see this in action, enable the remote animation (adb shell setprop persist.wm.enable_remote_keyguard_animation 1) and enhanced SmartSpace (adb shell device_config put launcher ENABLE_SMARTSPACE_ENHANCED true). Also, set your lock mode to swipe or some sort of non-bypass biometrics, so you can swipe to unlock.
KIs:
- It looks pretty janky on a fast swipe - this is the same root cause as b/186847064 so will have the same fix
- Launcher animates in with window-level animations (Launcher team is looking into helping)
- Screen off animation is not yet implemented (this is for unlock only)

Bug: 187025480
Test: unlock with every possible permutation of lock settings
Change-Id: I8c186fe57132ebc9a0bc5e3d8785e753e72c3bf2
2021-05-17 16:07:58 -04:00
Tracy Zhou
07756fb349 Merge "[Live Tile] Do not allow rotation in Overview when home rotation is off" into sc-dev 2021-05-17 17:18:42 +00:00
Winson Chung
79914dfbd5 Merge "Add fallback animation for auto-enter without source rect hint" into sc-dev 2021-05-14 23:44:23 +00:00
Tracy Zhou
7ffe7418ea [Live Tile] Do not allow rotation in Overview when home rotation is off
In live tile mode, the live tile app is considered the top window and therefore rotation proposals are sent even when home rotation is disabled. To detect this, launcher needs to send over home rotation state, besides the nav bar needs to listen to recents animation state.

Fixes: 185962767
Test: manual

Change-Id: Ibc873d1067a8a3b37b6c20672cdb32ea356d9f21
2021-05-14 11:21:46 -07:00
Cyrus Boadway
60dc9196e3 Add Widget CUJ parameter to jank monitoring
Android S introduces a new Quickstep animation for launching an activity
from an app widget. This is a similar but distinct CUJ to
LAUNCHER_APP_LAUNCH_FROM_ICON.

Bug: 169042867
Test: presubmit
Change-Id: I3338d31eb2ed74aef0b0697c6070ab7b422514ba
2021-05-13 13:04:42 +00:00
Winson Chung
8aa6016bb3 Add fallback animation for auto-enter without source rect hint
- Launcher will create a new surface which is faded in over the app,
  and as it finishes the recents animation, we transfer the overlay
  from the leash to the task (as with the transform), and when the
  pip task organizer receives it, it can fade out and remove the
  surface
- Fixes flash of status bar colors when going from light status bar
  to home (dark status bar) by deferring whether a task affects the
  sysui flag until it enters pip (only for autoenter)

https://recall.googleplex.com/projects/e3f080d7-2818-43f0-a087-405000b8fdf5/sessions/971a84c8-a622-4b34-a9de-4e595595da42

Bug: 184703546
Test: Swipe up from app with auto-enter but no source hint rect

Change-Id: I0a00cdb98d0a599ef065206e0cd2cfc0e6cc72b1
2021-05-12 23:53:25 -07:00
Ryan Lin
5ed9c4ca81 Merge "Fix hard dragging the window magnification from the bottom of the screen" into sc-dev 2021-05-12 03:00:13 +00:00
ryanlwlin
0b0634c4a9 Fix hard dragging the window magnification from the bottom of the screen
The window magnifier is hard to drag when it is at the bottom
of the screen. This is due to that launcher is detecting
swipe-up system gesture.

To fix it, we set the system ui state flag to true when
the window is overlapped with the gesture detection area.
We also update the gesture dection area via OnApplyWindowInsetsListener
Once the area is changed, we will update the flag again if necessary.

In the testing part, we use real WindowManager to verify the
functionality.

Bug: 179648683
Test: atest com.android.systemui.accessibility
      manually test and use the following command to check the flag
      adb shell dumpsys activity service TouchInteractionService
Change-Id: Ia09bd26b3eb164790614c173594d997d45f4ecdc
2021-05-11 21:29:27 +08:00
Hongwei Wang
57618b94ef Merge "Unify round corner radius in PipSurfaceTransactionHelper(s)" into sc-dev 2021-05-11 03:23:11 +00:00
Hongwei Wang
bec1c53ed9 Pass the float9 values in PictureInPictureSurfaceTransaction
For auto enter PiP from landscape when no source rect hint is specified,
we should actually use the skew instead scale values to set the matrix
transform.

Video: http://recall/-/aaaaaabFQoRHlzixHdtY/dpLVOQzIVjdJpn5kg7T4Fc
Bug: 179720719
Test: manual use ApiDemos app, see video
Change-Id: Ic7072e8354329584f9cb75876911c3d58d78e7f5
2021-05-07 14:26:43 -07:00
Winson Chung
cacddc52aa Merge "Lazy initialize the choreographer" into sc-dev 2021-05-07 00:05:01 +00:00
Vinit Nayak
c5535ff014 Merge "Pass IME visibility info to launcher" into sc-dev 2021-05-06 20:47:36 +00:00
Evan Rosky
e780af1e6f Add leashes in launcher adapters in lieu of cross-process sync
Currently, SurfaceFlinger/BLAST doesn't provide any mechanism
for syncing across processes or any way to even know that a
particular transaction has been applied (exascerbated by the
fact that the transactions are queued up on the buffer queue).
This means there is always a race between when the last
launcher transaction is applied.

Until we get a solution, we add an extra leash so that launcher
doesn't actually modify the organized surface.

Bug: 186132704
Test: using winscope, observe that launcher animates leashes
      instead of the actual task surfaces
Change-Id: I53834fc434a33abd912ebd9edc06fc8c9bbf2e2f
2021-05-06 13:28:51 -07:00
Winson Chung
a8b62357eb Lazy initialize the choreographer
Bug: 187177407
Test: Manual
Change-Id: I7c593c96335d1bfafd682647b231ec1f3d8030d5
2021-05-06 11:52:33 -07:00
Hongwei Wang
cd6e9816a5 Unify round corner radius in PipSurfaceTransactionHelper(s)
Per discussion, will keep the two classes in Launcher and WMShell as for
now and re-address the unification in next release. In this change
- deprecate config_pipEnableRoundCorner since it's now behind a system
  property and waiting to be turned on
- pass the corner radius value from WMShell to Launcher

Video: http://recall/-/aaaaaabFQoRHlzixHdtY/dmUy8qBEMxHShFcFKB3cT3
Bug: 171721389
Test: make sure autoEnterPip has round corner support, see video
Change-Id: If978ee6c3b0307a7423fe51b996f535d7009e74c
2021-04-29 11:25:49 -07:00
Evan Rosky
53d1bb6e50 Adapt transition merge during recents into onTaskAppeared.
If an incoming transition merge request contains only a task
open, this will be converted into the existing onTaskAppeared
callback that recents expects.

Bug: 186132704
Test: open app, swipe to overview, scroll to another app, launch.
Change-Id: Ifd288fbb73e2b4ea7011066bda5c3694b5f579d9
2021-04-28 16:20:24 -07:00
Evan Rosky
6e895c09c9 Merge "Fix surface release race when using Shell Transitions" into sc-dev 2021-04-24 01:29:41 +00:00