Commit Graph

18 Commits

Author SHA1 Message Date
Winson Chung
cbb15a9963 Revert "Revert "4/ Update SysUI shared lib for Recents transition""
This reverts commit f6401c0284.

Reason for revert: Testing relanding changes with ag/3515280

Change-Id: Ibb8d4868fe2cc1053b528ed757bd3ec1f9c10355
2018-01-25 13:45:22 -08:00
Jorim Jaggi
f6401c0284 Revert "4/ Update SysUI shared lib for Recents transition"
This reverts commit 9f6ba8df3b.

Breaks presubmits
2018-01-25 15:21:18 +01:00
Winson Chung
9f6ba8df3b 4/ Update SysUI shared lib for Recents transition
- Ensures that we cancel the recents animation when handling touch
- Moving InputConsumerController to shared lib
- Add compat classes for recents controller/listener

Bug: 70180552
Test: Manual, swipe up with suitable launcher build
Change-Id: Ib57ea73ff75545b91922df188ffb7152e9d4cebd
2018-01-24 19:20:21 -08:00
Tony Wickham
fb63fe85f2 Add swipe up onboarding from apps
After launching 3 apps, we create a window at the bottom
attached to the nav bar to teach users to swipe for recents.
There is an X on this window to dismiss it, but we will keep
showing the onboarding every time they open apps until they
perform the swipe up action.

Test: manual

Bug: 70180942
Change-Id: I4b15fac918b7b1633a3c09ab0819f2acb1dce697
2018-01-23 16:02:27 -08:00
Matthew Ng
bd8245718d Added logging for OverviewProxyService
Added debug logs for OverviewProxyService. Use "OverviewProxyService" as
the tag to get logs. The logs cover all of the binder calls from
IOverviewProxy.adl.

Test: manual
Bug: 67957962
Change-Id: Ia46848e54683fc1aacdb633644b5161c1ac58b16
2018-01-17 17:05:43 -08:00
Matthew Ng
c361fa1963 Reconnect overview service to launcher when its package name changes
Listen for broadcast intent filter ACTION_PACKAGE_ADDED to reconnect the
connection from overview to launcher.

Test: manual - enable/disable feature from launcher settings
Bug: 67957962
Change-Id: Ic069498ec2036bcb6ab6d95002d5c34027395360
2018-01-08 12:50:27 -08:00
Winson Chung
11f53e9683 Minor optimizations to task loading/screenshot
- Pass graphic buffer instead of bitmap for current screenshot
- Add option to skip preloading titles
- Adding some more compat classes

Bug: 67510855
Test: Build quickstep

Change-Id: Idf4642683d3121e69f0854ac909a8c22c7238b9a
2017-11-16 09:41:46 -08:00
TreeHugger Robot
38ca5ccb6a Merge "Dump the overview proxy service information" 2017-11-15 00:52:21 +00:00
Matthew Ng
1e43ebdda7 Dump the overview proxy service information
Dumps into the dependency chain of its number of connection attempts, if
user has completed setup and if the connection is currently established.

Test: adb shell dumpsys activity service com.android.systemui
Bug: 67957962
Change-Id: I1d5ffc51f99f08c21495d51a32a103ab8fed757c
2017-11-14 14:49:13 -08:00
Matthew Ng
30c0a02075 Listen for launcher package added to connect to it faster
When launcher is reinstalled, it may take time for it to get ready and
to reconnect to. If not available immediately it would try to connect it
later after a timeout. Instead of waiting, receive a broadcast when it
gets installed to connect immediately.

Test: manual - reinstall launcher
Bug: 67957962
Change-Id: I1e531db9646d11a1eae99abe46d5e6f852c5eeda
2017-11-10 16:29:30 -08:00
Matthew Ng
fac8783159 Fixes the connection listener wrong thread crash for overview proxy
Sending connection callbacks from binder thread crashes any layouts
called from the listener. Use the original handler to post connections
to fix this crash.

Bug: 67957962
Test: manual, reinstall launcher to re-establish the connection
Change-Id: I958d86346c41cbf1e9a0dc8bdeae957ec64f8a55
2017-11-10 11:40:16 -08:00
TreeHugger Robot
d9db81bb10 Merge "Reconnect service when disconnected by launcher reinstall" 2017-11-10 04:09:08 +00:00
Matthew Ng
eb6893b4c8 Reconnect service when disconnected by launcher reinstall
When launcher is reinstalled, the current service is disconnected, now
reconnect it. Also added some unlinking with the death recipient.

Bug: 67957962
Test: manual, reinstall launcher
Change-Id: Id776948df50ce27de9e73037573be1e7eac989f5
2017-11-09 17:31:20 -08:00
Matthew Ng
7d05e77d5b Remove add slippery flag to nav bar when connected to launcher service
Added a listener for OverviewProxyService to get updates when the
service is connected to the launcher so that the nav bar can toggle the
slippery flag to allow more touch inputs after dragging out of the it.

Bug: 67957962
Test: manual
Change-Id: Ib1ebaec318252021fa986ec554136f19d61126f8
2017-11-09 15:33:57 -08:00
Winson Chung
38d31c211b Provide interface to temporarily fetch screenshot.
Bug: 68774229
Test: Build nexus launcher and verify we can call to get the screenshot
Change-Id: I6a5456efca94f45cda000fe9e097ec524540592b
2017-11-08 15:03:19 -08:00
Matthew Ng
dfab86cd67 Fixes connecting to service after setup finishes for other users
Changed event to connect to launcher service using onUserSetupChanged
instead of onDeviceProvisionedChanged since it does not run when other
users finish setup wizard.

Test: manual - create new user and finish setup, check connection status
Change-Id: I37d55b6089ebddb0bd2ab9e5d0e0bb3fa8d73948
Fixes: 68994491
2017-11-07 15:46:51 -08:00
Matthew Ng
1fa3f7eebc Fixes service disconnect crash when changing users
Changing users crashes system ui because service disconnected from
unprovisioned user that had no connection. Fix by always disconnecting
if connected before trying to connect to service. Requires follow up
change to have new provisioned user to connect to service.

Change-Id: I350ec45b90fa297c6ffe4932325c3b07653538f3
Fixes: 68929438
Test: manual
2017-11-07 11:50:36 -08:00
Matthew Ng
13dbf878bd Started code to pipe overview events and info to launcher
The first event will have navigationbar send its x and y touch events
with no delay (upon vsync) to launcher so that launcher can detect and
animate a drag gesture.

If the user has provisioned setup, the connection between overview to
launcher service will be establish to send any information as a proxy
through binder calls. Connection will be reattached if device switches
between users. Each failure to connect to launcher service will have an
exponential backoff timeout to reconnect.

To implement call Dependency.get(OverviewProxyService.class) and then
getProxy() to get the proxy to pipe events or other information across
to launcher.

Test: manual
Bug: 67957962
Change-Id: I3828474147c37b2c514a682f9124e29a5e142736
2017-11-02 15:45:45 -07:00