Commit Graph

537 Commits

Author SHA1 Message Date
Bill Lin
c77d9d3d7b Align rvc-dev QuickStepContract order
ag/11495551 introduce the bit # located at 15
public static final int SYSUI_STATE_GLOBAL_ACTIONS_SHOWING = 1 << 15

Due to one handed feature do not merged in rvc-dev
We should align the order on master branch

Test: make
Bug: 155499313
Change-Id: I6bad6faf3b1cf1d3105a23c121375cceafa91ed0
2020-05-28 13:00:42 +08:00
Govinda Wasserman
6cb0c663b5 Merge "Adds Assistant invocation time stamp to ActivityManagerWraper" into rvc-dev am: f90980db10 am: bef96f45fc am: 8b21219e64 am: 97b3ad1a7f
Change-Id: I2cf62aa89c375d9f28ac43678b560571b8ff28ad
2020-05-21 20:47:12 +00:00
Govinda Wasserman
bef96f45fc Merge "Adds Assistant invocation time stamp to ActivityManagerWraper" into rvc-dev am: f90980db10
Change-Id: I3bb293c21fb80802437886dd3d1e5b3534ac3738
2020-05-21 19:25:37 +00:00
Govinda Wasserman
bd09c172ea Adds Assistant invocation time stamp to ActivityManagerWraper
Test: Tested locally
BUG: 153963643
FIX: 153963643
Change-Id: I75809cf64c1bf8db19893e59d1b62dcf5a06c5c7
2020-05-21 11:03:04 -04:00
Bill Lin
a75594aa95 Ensure dump info include SYSUI_STATE_ONE_HANDED_ACTIVE state
Test: adb shell bugreport, search "SysUiState state:"
      then check if one_handed_active state showing
Bug: 150747909
Change-Id: Ic6cd7e1beeb1b8464a3483bfd8e90d92ab09a30a
2020-05-21 02:13:28 +08:00
TreeHugger Robot
175d5e4045 Merge "Sending split screen stack change to Launcher whenever it changes, instead of Launcher pulling it" into rvc-dev am: 2fed0a734e am: 98dd0436c7 am: 35f65a447a am: 11c6f11c3f
Change-Id: I45caa2f58c027045c4a814618d710661ea2b076d
2020-05-19 21:02:14 +00:00
TreeHugger Robot
98dd0436c7 Merge "Sending split screen stack change to Launcher whenever it changes, instead of Launcher pulling it" into rvc-dev am: 2fed0a734e
Change-Id: I5d1a56aa7d6ed336115f9b4b74e9790024368f10
2020-05-19 20:06:34 +00:00
Sunny Goyal
2148254452 Sending split screen stack change to Launcher whenever it changes,
instead of Launcher pulling it

Bug: 155816922
Test: Verified with Launcher changes
Change-Id: I45920f8730740c819c63878857c3b5acbe12097a
2020-05-19 18:14:04 +00:00
Winson Chung
68aedd16f4 Merge "Add global actions to sysui state for handling with gesture nav" into rvc-dev am: 4b3634f78b
Change-Id: Ic80cc35eb93204f3c53dfa3e5116c22e21a25ae2
2020-05-18 23:40:43 +00:00
Winson Chung
9467454820 Add global actions to sysui state for handling with gesture nav
Change-Id: I2cdea6761e6665c8f863937eff33a8272381b6e9
Merged-In: I2cdea6761e6665c8f863937eff33a8272381b6e9
Bug: 155499313
Test: Swipe back while global actions are showing over the lockscreen
2020-05-18 17:08:05 +00:00
Winson Chung
a3eabd5859 Add global actions to sysui state for handling with gesture nav
Change-Id: I2cdea6761e6665c8f863937eff33a8272381b6e9
Bug: 155499313
Test: Swipe back while global actions are showing over the lockscreen
2020-05-16 02:38:28 +00:00
TreeHugger Robot
ec463ead03 Merge "Remove divider view when exiting splitscreen" into rvc-dev am: 3a6ec37a71 am: 9da5177ac9 am: 1453c98f03 am: 79f1e50e2a
Change-Id: Ic6d26f278251a0eec16d026a264f9175fcd74836
2020-05-15 16:02:36 +00:00
TreeHugger Robot
9da5177ac9 Merge "Remove divider view when exiting splitscreen" into rvc-dev am: 3a6ec37a71
Change-Id: I8906a47c807cbd58f1945fe2ef32f882fd43c8f2
2020-05-14 02:32:10 +00:00
TreeHugger Robot
030906ef0a Merge "Improve compatibility of WallpaperCompat" into rvc-d1-dev am: 1d390491ef am: 17c9b650cb am: 6b829e7ba2
Change-Id: Ic526eb3638bf4a665f1371addb6f5d7cef3e605a
2020-05-13 07:30:06 +00:00
Santiago Etchebehere
a2f88daae8 Improve compatibility of WallpaperCompat
Don't use reference to the resource id as it might change
in the framework. Also catch all exceptions when using
scalePreview.

Bug: 154783188
Test: manual
Change-Id: I10a21d8a302c4b0d3fd9b1d64046ede22bd0d6b8
2020-05-12 21:53:06 -07:00
Vishnu Nair
4880a30fe0 Remove divider view when exiting splitscreen
Remove and re add divider view as needed so we do not allocate memory
while split screen is not active. Also release surface reference from
server when we are done with the SurfaceControl so we don't have to rely
on GC to remove the last reference.

Fixes: 150190730
Test: test split screen manually, check for offscreen or onscreen
divider layers in winscope

Change-Id: I1a6a1c1d4346aafeae85aaf61ec4df23722e75ab
2020-05-08 18:10:47 +00:00
Sunny Goyal
8cd244b66f Merge "Removing some deprecated methods" into rvc-dev am: 56242fa00d am: 5033237450 am: 05025aa68d am: f7b1ed15a5
Change-Id: I783999503cd5aabe62e357aa16e14f8586f971cd
2020-05-05 19:44:43 +00:00
Sunny Goyal
05025aa68d Merge "Removing some deprecated methods" into rvc-dev am: 56242fa00d am: 5033237450
Change-Id: I1fac0dae65f15979af96212a3df09d64addaf6d3
2020-05-05 19:15:15 +00:00
Sunny Goyal
5c33fab743 Merge "Removing some deprecated methods" into rvc-dev am: 56242fa00d
Change-Id: Ife5486ac8d3150e38929ce7c868da078cb549856
2020-05-05 19:09:14 +00:00
Sunny Goyal
076fc59314 Removing some deprecated methods
Test: Presubmit
Bug: 155669898
Change-Id: I1e4d1ab89feaa3415d140b38e1f70ac65f8f4208
2020-05-04 12:49:42 -07:00
Sunny Goyal
28818bed9a Merge "Exposing some ViewRoomImple methods in shared lib" into rvc-dev am: 0cdc03a772 am: c84358a720 am: 685535ff1a am: 7928c15d49
Change-Id: Iefc4419b6182f6f5dbf40f2cf42857b2627e6ac9
2020-05-04 18:47:19 +00:00
Sunny Goyal
c84358a720 Merge "Exposing some ViewRoomImple methods in shared lib" into rvc-dev am: 0cdc03a772
Change-Id: I7b1de17030cba51f001578a75bd812a20b4c25b4
2020-05-04 17:57:10 +00:00
Sunny Goyal
226849f197 Exposing some ViewRoomImple methods in shared lib
This would allow us to implement SyncRtSurfaceTransactionApplierCompat directly in Launcher
so that we can better handle surface lifecycle

Also removing java 7 restriction from librayr as the latest gradle properly handle java-8 jars

Bug: 148885018
Bug: 148194313
Test: Verified jar works with Launcher
Change-Id: I57adfea4b41ce12c8f8f2697dc554feca7ccc6b6
2020-05-01 15:48:04 -07:00
Bill Lin
a20e0f19e0 Implement DisplayArea Animation/Transition for one handed (7/N)
1) Use updateHandler to handle MSG queue in background
2) The field mIsInOneHanded used to ensure start/stop event wait in queue
3) Only finishOffset() can update mIsInOneHanded to prevent race condition
4) Schedule offset used for normal case with animation
5) Offset immediately used for rotation case

Test: atest OneHandedAnimationControllerTest
Test: atest OneHandedDisplayAreaOrganizerTest
Test: atest OneHandedManagerImplTest
Test: atest OneHandedUITest
Test: atest OneHandedSettingsUtilTest
Test: atest SystemUITests
Test: atest DisplayAreaPolicyBuilderTest
Bug: 150747909

Change-Id: Ic3396626027afcb9eaa4e7554f8f94920854ca7c
2020-04-30 18:50:51 +08:00
Selim Cinek
f5796c2132 Merge "Pass actual plugin to PluginInstanceManager.MainHandler." into rvc-dev am: 755bf9e048 am: 95581cca4e am: 61ceb722b6 am: e6589c3840
Change-Id: I986a5f76fc279309bc94e6cc385e3226ce9caf50
2020-04-28 17:27:20 +00:00
Selim Cinek
61ceb722b6 Merge "Pass actual plugin to PluginInstanceManager.MainHandler." into rvc-dev am: 755bf9e048 am: 95581cca4e
Change-Id: Ia3693a7665a20f286043c79b660dd73f259552c9
2020-04-28 16:57:16 +00:00
Selim Cinek
e5b21c7812 Merge "Pass actual plugin to PluginInstanceManager.MainHandler." into rvc-dev am: 755bf9e048
Change-Id: Ia92a0dbbd6a0d39f4929c1219a07545dd54337bf
2020-04-28 16:56:29 +00:00
Dave Mankoff
59a83b8634 Pass actual plugin to PluginInstanceManager.MainHandler.
Was previously passing PluginInfo where Plugin was needed.

Bug: 146033031
Test: manual
Change-Id: Idf3bf647206f4cc21ea4eeabad93ba8106cf2d17
2020-04-28 11:25:57 -04:00
TreeHugger Robot
443d32b195 Merge "Disconnect plugins on the main thread." into rvc-dev am: bb4a7486de am: 5c2745e81d am: 2c969ea120 am: a0a82d2507
Change-Id: I0d4123f25500a4178645b28464c543c92b52f107
2020-04-27 22:19:13 +00:00
TreeHugger Robot
5b07edb0f3 Merge "Disconnect plugins on the main thread." into rvc-dev am: bb4a7486de
Change-Id: I2bdf544ead009ea6cc40ccb673e48a8f86e9806d
2020-04-27 22:06:13 +00:00
TreeHugger Robot
2c969ea120 Merge "Disconnect plugins on the main thread." into rvc-dev am: bb4a7486de am: 5c2745e81d
Change-Id: If626dcfa8af4fc16afd2a7da3d1279c5440b6045
2020-04-27 21:58:49 +00:00
TreeHugger Robot
bb4a7486de Merge "Disconnect plugins on the main thread." into rvc-dev 2020-04-27 21:46:44 +00:00
Dave Mankoff
308c90f77c Disconnect plugins on the main thread.
Fixes: 146033031
Test: atest SystemUITests && manual
Change-Id: Icc5612b2d7129e146ec02df04e473d340b0d8b40
2020-04-27 15:31:56 -04:00
TreeHugger Robot
97da6eefdd Merge "Inform receivers of restart attempt previous visibility" into rvc-dev am: 756662fb2f am: 1af5be809b am: 9432c1937c am: 056faa3f38
Change-Id: I0b95456cc5f9226b9c16f260b09ad3bf4d2691e2
2020-04-27 18:42:46 +00:00
TreeHugger Robot
1af5be809b Merge "Inform receivers of restart attempt previous visibility" into rvc-dev am: 756662fb2f
Change-Id: Ic653d6d3993110962d66d27e49385a7f04000343
2020-04-27 18:36:16 +00:00
Evan Rosky
8d1c24e0a5 Inform receivers of restart attempt previous visibility
This way receivers like recents know whether the activity
was already visible before a restart attempt.

Bug: 154575664
Test: added test. Can also launch a running activity into
      split-primary and it won't expand it.
Change-Id: If59ee1615fa36bbe3af9412194a7f96b9377528a
2020-04-27 09:13:31 -07:00
TreeHugger Robot
24d4c16588 Merge "Add Wallpaper scale methods to be used by WallpaperPicker" into rvc-d1-dev am: adba2d2c2b am: 42cd9a1fa2 am: a709b7f4e7
Change-Id: I587bea7fed18f15c1219c422638fe38dd7ddbf11
2020-04-23 01:07:54 +00:00
Santiago Etchebehere
b4bbe5352f Add Wallpaper scale methods to be used by WallpaperPicker
Bug: 151868130
Test: manual
Change-Id: I13fe94ca8c1f1feb733bfc0d189ff18c9036c4a3
2020-04-22 15:23:52 -07:00
Ming-Shin Lu
19566e6d34 Merge "Add test APIs for makeCustomAnimation" into rvc-dev am: 49ccdb557f am: c1e19880fd am: 47b0836f9f am: 8843e5feac
Change-Id: I14bcf42e0aa3edc824e167795d37c1c8a7247df9
2020-04-17 04:29:42 +00:00
Ming-Shin Lu
49ccdb557f Merge "Add test APIs for makeCustomAnimation" into rvc-dev 2020-04-17 03:33:51 +00:00
Hyunyoung Song
3e1d68e352 Merge "Remove SystemUI-statsd out of SystemUISharedLib" into rvc-dev am: 5912900406 am: 2cc54aa11c am: 5712462e9c am: 1d3ea37d07
Change-Id: Ic17f3921dae867d8e3dbacebee05a219a5cc9191
2020-04-13 20:47:35 +00:00
Hyunyoung Song
5912900406 Merge "Remove SystemUI-statsd out of SystemUISharedLib" into rvc-dev 2020-04-13 20:10:18 +00:00
Hyunyoung Song
3d89c931f3 Remove SystemUI-statsd out of SystemUISharedLib
Bug: 148533500
Test: builds
Change-Id: I8609409b35d34902bf1fd3f8b308cc2825cf437c
2020-04-11 16:50:59 -07:00
TreeHugger Robot
dd0ca1b234 Merge "Deprecates the animatingBounds from WM to SysUI" into rvc-dev am: c3721ac874 am: 7b48e03224 am: 97b959516c am: 620d5354dc
Change-Id: Ibbbb861bc1dadb728a9926c38a378e78a31aa009
2020-04-10 23:47:57 +00:00
TreeHugger Robot
c3721ac874 Merge "Deprecates the animatingBounds from WM to SysUI" into rvc-dev 2020-04-10 23:13:52 +00:00
Hongwei Wang
3c981f6eb7 Deprecates the animatingBounds from WM to SysUI
PipTouchHandler, similar to other components in SysUI, should be in-sync
with the destination bounds calculated within SysUI rather than WM.

Fixed also the empty movement bounds upon the first call to
PipTouchHandler#onMovementBoundsChanged. Together, this change should
fix the PIP not being lifted on IME show up. PipTouchHandlerTest is
updated correspondingly.

Bug: 153352899
Test: manually enter/exit PiP
Test: atest PipTouchHandlerTest
Change-Id: I2912af2a181b7fb57c6d90751744d46c6b3366d2
2020-04-10 13:47:14 -07:00
Ming-Shin Lu
e9bd437978 Merge "Trigger onTaskAppeared when a task started from recents becomes ready." into rvc-dev am: 1c92e1f789 am: 7ffe6e70ae am: a22ad45c92 am: 82def810f5
Change-Id: I5389eadd171e9c658e01f5b13b57fbd0a39b7909
2020-04-10 07:52:15 +00:00
lumark
04bceb99f1 Trigger onTaskAppeared when a task started from recents becomes ready.
In quick switch flows, launcher will first swipe task snapshot
through recents animation, and then start new task with custom animation
options through startActivityFromRecents after gesture finish detected,
and then finish recents animation finally.

But that way user may experience flickering before the new task launch
and recents animation finish.

To improve quick switch flickering, we ignore the new task's custom
animation from recents and generate task remote animation target,
and then trigger a callback for launcher to control/animate this
task surface, more like a part of RecentsAnimation,

Also, adding removeTask method for launcher can flexibility remove the
new task animation target once no need to animate, so that launcher
can decide when to finish recents animation.

Bug: 152480470
Test: manual as below steps:
  1) Doing quick switch task.
  2) Make sure launcher can receive onTaskAppeared callback.
  3) Make sure launcher calls removeTask successfully.
  4) Make sure launcher can finish recents animation after 3).
Change-Id: I0692a280a49719229fa8871509bad37a1343a00f
2020-04-10 02:20:03 +08:00
Ming-Shin Lu
b6d7002f36 Add test APIs for makeCustomAnimation
For CTS to verify activity custom transition duration
with onAnimationStartedListener / onAnimationFinishedListener
in ActivityOptions

Bug: 150443017
Test: build, atest ActivityTransitionTests
Change-Id: I603ab60a65343f3f336b311064ad55b01ead4929
2020-04-07 21:21:59 +08:00
Tracy Zhou
e508092fff Merge "Get rid of usage of Context#getDisplayNoVerify() in SurfaceViewRequestReceiver" into rvc-dev am: f1a03e07cd am: 2f1c11564a am: 90447d841f am: 8cb167b73c
Change-Id: I383f571d48185016c3dcf4e856132569fcaa8178
2020-04-03 21:15:34 +00:00