Commit Graph

122 Commits

Author SHA1 Message Date
Sunny Goyal
cbc3927c03 Merge "Adding a compatibility implementation for WindowCallbacks" into pi-dev am: 358840b0cb
am: 21824800d3

Change-Id: I3e3326220bb7824dc9691b0e2f315a194d80775c
2018-04-10 18:40:07 -07:00
Sunny Goyal
788800c7cd Adding a compatibility implementation for WindowCallbacks
Test: Verified the library with launcher changes
Bug: 77695434
Change-Id: Id1c051896b542cb582c778c7c7709191f7a7957f
2018-04-10 16:19:01 -07:00
Winson Chung
5c2425b93f Merge "Workaround fetching user's package resources" into pi-dev am: cfccbf9106
am: 4afdd6fd8d

Change-Id: Ia53003c021bf8cc93149a6bd52f22ac057aca661
2018-04-09 22:39:02 -07:00
TreeHugger Robot
cfccbf9106 Merge "Workaround fetching user's package resources" into pi-dev 2018-04-10 04:36:29 +00:00
Winson Chung
d9635968e6 Workaround fetching user's package resources
Bug: 77747389
Test: Manual, create work profile user, create an apk with an icon resource
      in its task description, and ensure that launcher can load the icon.

Change-Id: I33c7eaca9481fe44440b4b584b64531835e2fe9e
2018-04-09 18:38:32 -07:00
Sunny Goyal
7a8fe148dc Merge "Exposing the getHomeActivities() to allow the launcher detect the current home app" into pi-dev am: 172cb70322
am: 4afbaa9268

Change-Id: I8ed009d11891f7e4539323e65dd793f487927a89
2018-04-09 14:59:09 -07:00
Sunny Goyal
9159850734 Exposing the getHomeActivities() to allow the launcher detect the current home app
Test: Build and verified the lib with Launcher3
Bug: 75979063
Change-Id: I77c2b2178030e083336b2e51ee850f5753f03aba
2018-04-09 12:02:39 -07:00
Jorim Jaggi
0d36292e4e Merge "Early wake-up for transitions (2/2)" into pi-dev am: 4c1453ac45
am: 2e1d841633

Change-Id: Ic0b06664869f6957871f9725c3fe6c90c16e16b9
2018-04-06 15:20:23 -07:00
Jorim Jaggi
4c1453ac45 Merge "Early wake-up for transitions (2/2)" into pi-dev 2018-04-06 21:44:28 +00:00
Jorim Jaggi
7c8a860cb9 Merge changes from topic "gpuprio" into pi-dev am: 7eeb0eb6d3
am: 89a0cc2406

Change-Id: I8cc93b1d10c4d3d80a0ded5559ccd2304551d2ab
2018-04-06 06:50:21 -07:00
Jorim Jaggi
e4428857d3 Add ThreadedRendererCompat for Launcher use
Bug: 75985430
Change-Id: Ia9a7c68cdff8a3263aa75f1178cb90bf4cf6f3de
2018-04-06 12:12:19 +00:00
Jorim Jaggi
aa763cd35f Early wake-up for transitions (2/2)
On some devices it's very likely that we fall into GL comp during
app transitions. However, SF offsets are chosen in a way such that
the time to finish a frame is just too tight to be completely jank
free when hitting GL composition in SurfaceFlinger. Thus, we
introduce the concept of a separate early offset, and wakeup
SurfaceFlinger at that time if we think that hitting GL comp is
likely, or we already hit GL comp in the last frame.

Test: Open app, check vsync offsets in systrace
Test: Open many dialogs/apps to fall into GPU comp.
Bug: 75985430
Change-Id: I461fdcd573583f3ea0348c8b23cc9945d33f8976
2018-04-06 13:36:14 +02:00
Winson Chung
785c4d27cb Merge "Fix issue with quickstep recents button not unlocking before entering PIP." into pi-dev am: 4b436a930d
am: b46f34dd50

Change-Id: Ica73c022208af87396a05bdaed511d536106fb95
2018-04-05 17:09:46 -07:00
TreeHugger Robot
4b436a930d Merge "Fix issue with quickstep recents button not unlocking before entering PIP." into pi-dev 2018-04-05 23:34:35 +00:00
Sunny Goyal
5d103259d1 Merge "Adding a utility method to show Assist session" into pi-dev am: 53a77b615c
am: c9d3194e01

Change-Id: I836104f3aebb6eefedbb724055557bfe28753426
2018-04-04 17:10:09 -07:00
Sunny Goyal
5067909efa Adding a utility method to show Assist session
Bug: 72122079
Test: Verified the library works with launcher
Change-Id: Ic1e9131687ea85fdcce16c71054ce7940c190504
2018-04-04 14:41:42 -07:00
Matthew Ng
75da95fa96 Merge "Added two touch slops for easier home press (1/3)" into pi-dev am: e81e6faf08
am: 2ce1ddd2ed

Change-Id: I895c7f48f72022c2f65028d1355576d80d1f7c13
2018-04-03 17:58:33 -07:00
Winson Chung
7e756be722 Allow recents animation to override divider minimized state am: f557c3b565
am: ea0adfdb10

Change-Id: I8d56a170214c5592e6b44781ab01eca6e94103f8
2018-04-03 17:51:51 -07:00
Winson Chung
8e50da2016 Prevent unnecessary reordering of the home stack am: 6a38fca2d8
am: 40fb4a289a

Change-Id: Ic448939e0e27f5e1baa9e83bcc10640ee0ed8013
2018-04-03 17:49:09 -07:00
TreeHugger Robot
e81e6faf08 Merge "Added two touch slops for easier home press (1/3)" into pi-dev 2018-04-03 22:31:57 +00:00
Matthew Ng
9a22363a50 Added two touch slops for easier home press (1/3)
The first slop starts the drag either for quick step or scrub. At this
point either launcher can animate swipe up or the home button moves for
scrub, however the home button is still active and can be pressed or
long pressed. The second slop is for activating quick step or scrub.
Similar to before when an operation has activated, the home button
cannot be pressed or long pressed. This allows the home button to have a
larger area to be clicked.

Change-Id: I0a3dd2b5e0f41748a7ba9ebb6241283291995228
Fixes: 76430825
Test: scrub or swipe up
2018-04-03 13:34:59 -07:00
Winson Chung
e3dd59c86a Fix issue with quickstep recents button not unlocking before entering PIP.
Bug: 77152886
Test: Lock the screen with any show-over-lockscreen activity, then press
      the recents button, ensure you are prompted to unlock

Change-Id: Iaa402c8c0fbf743c3410882a888a487d45085fa5
2018-04-02 16:32:15 -07:00
Winson Chung
f557c3b565 Allow recents animation to override divider minimized state
- When swiping up while in split-screen, the animation should be able to
  adjust the docked divider minimized state so that we don't wait until
  launcher is repositioned to the front in order for the divider to
  update.

Bug: 73118672
Test: Enter split screen, swipe up and ensure the dock divider moves
      (Note, there are still unrelated clipping issues)

Change-Id: Id71f91eaf2f06b3c33628a2199cc94c82e235471
2018-03-30 10:25:16 -07:00
Winson Chung
6a38fca2d8 Prevent unnecessary reordering of the home stack
- Just cancel the recents animation in-place when handling the home button
  to prevent it from being repositioned to the bottom (which stops home)
  and then starting it again (which restarts it)

Bug: 74405472
Test: Press home from an app, ensure launcher stop is only called once
Change-Id: Id41aa2f77c01767cc2c35445458b8f2db81200fc
2018-03-30 10:25:09 -07:00
Winson Chung
392685b6fd Merge "Use package context for loading task description icon resource" into pi-dev am: a17eccac73
am: 0d685793e7

Change-Id: I26492efc4cb491c9d2e54612a69b678cdb3cca52
2018-03-27 23:08:22 +00:00
Winson Chung
3e562ca567 Use package context for loading task description icon resource
Bug: 73816146
Test: Manual, swipe up, ensure we still load icons
Change-Id: I21d39da5891e2f4cdf5427bcb03049ed05780c87
2018-03-27 10:48:37 -07:00
Matthew Ng
bc0d78288b Merge "Remove quick switch and simplify quickstep code for scrub" into pi-dev am: f15f291777
am: 728dc5eabb

Change-Id: I84139c84f02f609ce157e29e47bb4d99e3b35de1
2018-03-24 04:15:01 +00:00
Matthew Ng
fba3969463 Remove quick switch and simplify quickstep code for scrub
Remove quick switch code and the concept of a threshold for starting
quickscrub from system ui. Quickscrub starts (and is sent to launcher)
after touch slop (in the direction parallel to nav bar) is passed.

Change-Id: I59fa25c9a9d50298adcf877590b3beee6d887308
Fixes: 73820325
Test: drag home button when quick step enabled
2018-03-22 14:40:03 -07:00
Sunny Goyal
0c477a8143 Merge "Adding a empty constructor so that the class can be emulated" into pi-dev am: eb37b9cbb0
am: b1d8f2bf06

Change-Id: Ib29f7b6020508368a555b82046776c79fca78818
2018-03-20 21:46:48 +00:00
Sunny Goyal
040a10aabb Adding a empty constructor so that the class can be emulated
Test: N/A
Bug: 75979063
Change-Id: I21f168e25d1d4f3ef6fea9d13df3bc74bbe4e6f8
2018-03-20 15:55:36 +00:00
Winson Chung
e465160c0c Merge changes I0c466350,I09a9cd43,I8b2a0819 into pi-dev am: 4cda02f25f
am: 9dcc7b982b

Change-Id: Id79f409381fa6b211329ef85b13cd7f4202dccb0
2018-03-20 06:40:24 +00:00
Tracy Zhou
8002e7f96c Merge "Move default pip position to right above the shelf." into pi-dev am: 017f44be88
am: 6f9ebab4ed

Change-Id: I65e587befec2dcba43b95fe6c6d8775a918fd332
2018-03-20 00:34:39 +00:00
TreeHugger Robot
4cda02f25f Merge changes I0c466350,I09a9cd43,I8b2a0819 into pi-dev
* changes:
  Reset dummy stack view tasks after computing transition into Recents
  Don't update onboarding if there is no valid running task.
  Only check screen pinning state on touch down.
2018-03-20 00:16:57 +00:00
Winson Chung
4a088432b6 Reset dummy stack view tasks after computing transition into Recents
- Also clear up references from the app transition spec future to the
  parent implementation, which can also leak memory.

Bug: 73961798
Test: Enter recents, ensure that dummy stack view holds no task refs
Change-Id: I0c466350c1c1dd490f8776ca23f13de0d698e060
2018-03-19 15:20:29 -07:00
Tracy Zhou
43513086d2 Move default pip position to right above the shelf.
This change takes care of the flow from WindowManagerService to
PinnedStackController, all the way to PipTouchHandler. It also
introduces a WindowManager hook that allows Launcher to pass in
shelf visibility and height. A separate change is made to send
signals from Launcher to SysUI. (ag/3724896)

Bug: 73961893
Change-Id: I2ff54e78bc2dc35c806b902464048b051a4d6394
Test: atest CtsActivityManagerDeviceTestCases:ActivityManagerPinnedStackTests
2018-03-19 17:41:08 +00:00
Matthew Ng
f3ba484f6a Revert "Revert "Centralized quick step/scrub/switch logic (1/2)"" am: 2ea93b708d
am: 838386fbcb

Change-Id: Ib97ad4ae875d021dca9dbe71d4f95a3245474f94
2018-03-15 01:26:11 +00:00
Matthew Ng
838386fbcb Revert "Revert "Centralized quick step/scrub/switch logic (1/2)""
am: 2ea93b708d

Change-Id: Iea566c5e83acf561ac4112b0f594f965a7056097
2018-03-15 01:10:06 +00:00
TreeHugger Robot
6a9088e093 Merge changes from topic "centralize-quick-3s" into pi-dev
* changes:
  Fixes crash on navbar using 3rd party launchers
  Revert "Revert "Centralized quick step/scrub/switch logic (1/2)""
2018-03-15 00:53:19 +00:00
Jorim Jaggi
7d872a74cc Merge "Merge "Add ability to filter remote animation adapter by activity type" into pi-dev am: c175631670" into pi-dev-plus-aosp
am: 79cbe6f986

Change-Id: I47c482f63121b7cbf50ec6ee76e18a7719ecde23
2018-03-14 23:02:39 +00:00
Jorim Jaggi
c175631670 Merge "Add ability to filter remote animation adapter by activity type" into pi-dev 2018-03-14 21:55:07 +00:00
Matthew Ng
2ea93b708d Revert "Revert "Centralized quick step/scrub/switch logic (1/2)""
This reverts commit 0e490d9208.

Reason for revert: Will be merged with fix
Bug: 74726495
Test: manual

Change-Id: I36ea9c2702107b23eff4adb1f3ba9fdc1be12999
2018-03-14 13:51:26 -07:00
Winson Chung
a77468496d Merge "Revert "Centralized quick step/scrub/switch logic (1/2)"" into pi-dev am: 6d4bdc5381
am: 5fe2c73450

Change-Id: I2a8aa287a71001221c00d51a1934ac0ea05b3d51
2018-03-14 20:13:07 +00:00
Winson Chung
6d4bdc5381 Merge "Revert "Centralized quick step/scrub/switch logic (1/2)"" into pi-dev 2018-03-14 19:42:13 +00:00
Winson Chung
0e490d9208 Revert "Centralized quick step/scrub/switch logic (1/2)"
This reverts commit b06ae3bf13.

Reason for revert: b/74726495
Bug: 74726495

Change-Id: I4bce8df13f9fa9e1b420382f7a96f9855510196f
2018-03-14 19:41:16 +00:00
Jorim Jaggi
acb0c9f116 Merge "Allow controlling SystemUI flags during RecentsAnimation" into pi-dev am: d854d917ec
am: 7fc78d6c2a

Change-Id: Ic57ff6a3469520d250da3e29a8c96f45bc255186
2018-03-14 16:37:14 +00:00
Jorim Jaggi
77be157a9e Add ability to filter remote animation adapter by activity type
Such that Launcher can choose not to use the remote animation
for assistant.

Test: Open assistant, close it
Test: go/wm-smoke

Bug: 72702760
Change-Id: Ib97cb5dd076afe5535e4e7951f423ccf9e78e720
2018-03-14 17:12:45 +01:00
TreeHugger Robot
d854d917ec Merge "Allow controlling SystemUI flags during RecentsAnimation" into pi-dev 2018-03-14 16:00:49 +00:00
Jorim Jaggi
50bf59ca0d Allow controlling SystemUI flags during RecentsAnimation
Such that the bars can flip from light/dark depending on animation
progress.

Test: go/wm-smoke
Test: Swipe up from light bar app
Test: WindowStateTests
Bug: 73498721
Change-Id: Ie4b99c75840474a01225720fcd7372191f035a3e
2018-03-14 15:11:52 +01:00
Matthew Ng
240013f884 Merge "Centralized quick step/scrub/switch logic (1/2)" into pi-dev am: 6852177153
am: f71f5780fe

Change-Id: Ic1ec902e064cd9d6493c534638b4c386a8fba803
2018-03-14 05:27:52 +00:00
TreeHugger Robot
6852177153 Merge "Centralized quick step/scrub/switch logic (1/2)" into pi-dev 2018-03-14 04:54:24 +00:00