Commit Graph

213 Commits

Author SHA1 Message Date
Tony Wickham
7362abd073 Merge "Move plugin support to shared lib" 2018-10-01 18:18:01 +00:00
TreeHugger Robot
4a1b3e251e Merge "Only abort activity options when failing to bring a task to front" 2018-09-28 18:30:56 +00:00
Tony Wickham
023cb195be Move plugin support to shared lib
In addition to changing imports, this required some changes to use java
7, since that's what the shared lib needs to be for launcher.

See bug for more details on this project.

Test: "atest com.android.systemui.shared.plugins"
  build succeeds and all tests pass

Bug: 115877296
Change-Id: Ib79ede0a61664df0ba1a194632a345d2229777fc
2018-09-28 10:04:09 -07:00
Winson Chung
67f5c8b2d0 Removing dependencies on recents-specific code in SysUI
- Removing references to SystemServicesProxy (to be removed) for
  AM/WMWrapper
- Removing unused code for old nav bar swiping logic, and also unused
  and quickstep-incompatible code for dragging in recents
- Removing all event bus logic from outside recents subpackage
- Exposing PipUI component for bridge caller

Bug: 114137554
Test: Can still swipe up
Change-Id: Ibcfbe06acae06ea5950615cabd52243279fee16d
2018-09-26 14:14:08 -07:00
Winson Chung
d024368b7e Only abort activity options when failing to bring a task to front
- If the activity options has a start callback, abort will prematurely
  call the callback prior to the app actually being good to go (and starting
  the app transition)
- Also exposing custom activity options call with callback to Launcher

Bug: 111896388
Test: Make change with launcher to defer hiding the task view until the
      transition-start callback, check that swiping down does not flicker

Change-Id: Ie19a38ed81b62057957b3ebfc119d5348468818b
2018-09-26 11:43:31 -07:00
John Reck
26caa0f509 Use public APIs instead of private ones
Test: builds
Change-Id: I4a8f289a1ac2ee6819bde5cd7c8edb98184c3c27
2018-09-24 15:45:10 -07:00
Charles Chen
3b37d4d803 Merge "Fix WM input limitations on secondary displays (3/4)" 2018-09-06 11:26:44 +00:00
Hyunyoung Song
6d9db37d18 Remove unused SysUISharedLib
Test: it builds!
Bug: 113128349

For Launcher3 to build from the library directly, the build rule cannot
be an app. This is the very first CL out of 2~3 that will follow.

Change-Id: I7a1aa2d33e1ccf64d91a65db58e69446e77a4044
2018-08-31 13:48:25 -07:00
Arthur Hung
39134b21d8 Fix WM input limitations on secondary displays (3/4)
One DisplayContent contains one InputMonitor now.
- Change setInputWindow of InputManagerService updated by displayId,
  so Window Handles in InputDispather can be updated by each DisplayContent.
- Only exist one focus in current state, reset it if in removed DisplayContent,
  will be updated by default display or focused display.
- Add displayId parameter for createInputConsumer and destroyInputConsumer,
  so InputConsumer from PIP, RecentApp and Wallpaper can be supported in multi-display.

Bug: 111363643
Test: atest WindowManagerSmokeTest ActivityManagerMultiDisplayTests
Test: atest com.android.server.wm.DisplayContentTests
Test: atest libinput_tests inputflinger_tests
Change-Id: I999c355be1789af5759f00206475d004e10116e3
2018-08-30 09:59:09 +00:00
Vishnu Nair
aeab1b8251 SF: Remove setFinalCrop impl 1/2
setFinalCrop functionality is reimplemented by creating a new bounds layer
and applying a crop on this layer. see ag/4625718

Test: go/wm-smoke

Change-Id: I3ffb6dc2e2afd5170f6c6dee9e928ed0600656b1
2018-08-29 08:37:38 -07:00
Hyunyoung Song
c1647ead13 Swipe down on Pixel Launcher expands Notification Shade
Bug: 111839343
Test: make -j31 && vendor/google/tools/flashall

-Tested for single touch swipe
-Tested with heads up noti
-Tested for single touch T1, second touch T2
T1 DOWN, T2 DOWN, T2 UP, T1 UP
T1 DOWN, T2 DOWN, T1 UP, T2 UP

Change-Id: I4b392ced07f6a9bece4bfc0a8be46de9b5088f82
2018-08-27 12:49:01 -07:00
Sunny Goyal
056b80da9c Removing some unsed compat APIs
Test: manually tested on device
Change-Id: I7f8832850d5020517b2a4566d823f11ec1a4b436
2018-08-22 21:45:45 +00:00
Sunny Goyal
bba378e87c Restricting the shared lib to java 7
Bug: 112849320
Test: Verified launcher works fine with the new jar
Change-Id: Ibfbc4e53f879894ada134c227e212e3e23c49ea6
2018-08-22 13:03:57 -07:00
Jason Monk
a2f2d82f26 Convert sysui to bp
Test: tests gonna test, builds gonna build
Change-Id: I7f1ef2e82ce2c74253c57de8d73079dcfe2d2264
2018-08-16 19:40:39 -04:00
Winson Chung
6b0f1a3d77 Expose DockedStackListener for logging purposes in Launcher
Bug: 111077107
Test: Implement listener in Launcher and verify the callbacks are made

Change-Id: I4017c8e139242c2b0875f8222c99396d55b1be04
Signed-off-by: Winson Chung <winsonc@google.com>
2018-08-03 15:19:36 -07:00
Winson Chung
e4c7d37e03 Merge "Expose method to clear all visible recent tasks" 2018-08-02 21:08:56 +00:00
Winson Chung
e643910a33 Expose method to clear all visible recent tasks
- Atomically remove all the visible tasks so that SysUI doesn't need to
  remove each task individually.

Bug: 80471073
Test: atest FrameworksServicesTests:RecentTasksTest#testRemoveAllVisibleTasks
Change-Id: I23a6e152e94d5462948ab40adc9d7baf593847e1
2018-08-01 12:16:51 -07:00
Winson Chung
1728b6f92f Synchronize changes to the task key cache
- It's possible for a task key to be invalidated from a background loader
  thread while onTrimMemory is called from the UI thread

Bug: 111097496
Test: This is a race condition and hard to reproduce
Change-Id: I43333778487cd35166d4a22ed5cf27c641ec80c7
2018-07-25 12:16:26 -07:00
Matthew Ng
9f1fb05f89 Merge "Allow quickscrub after deadzone consumes touch" into pi-dev am: 95b7c25a58
am: 1622ea15fe

Change-Id: I509cc0c6079b146da78ac607d3edb437f4812dd1
2018-06-22 12:47:09 -07:00
Matthew Ng
472d3e4898 Allow quickscrub after deadzone consumes touch
Moved deadzone detection to QuickScrubController so that quick scrub can
still occur. If anything is consumed by deadzone, no other touches will
occur however quickscrub can be detected and function with launcher. No
other events except for touch down will be sent to launcher.

Test: scrub right above the home button
Change-Id: I4b4e7a8eacf8fe38d8644116a526c175adaba790
Fixes: 80536498
2018-06-21 15:09:21 -07:00
Wale Ogunwale
04d9cb5f40 Moved some activities implementation to ActivityTaskManagerService (2/n)
Second step in unifying the window hierarchy that is currently split
within AM and WM packages. We move some of the API implementation for
activities from ActivityManagerService.java to
ActivityTaskManagerService.java.

Test: Existing tests pass
Test: go/wm-smoke-auto
Bug: 80414790

Change-Id: I23dcd924493d8ad1e0b6e3a55386fd72b0146605
2018-06-12 13:38:39 -07:00
Wale Ogunwale
65ebd955e1 Split interfaces and service for activities from current AM interfaces (1/n)
First step in unifying the window hierarchy that is currently split
within AM and WM packages. We separate the interfaces and service dealing
with activities and their containers (tasks, stack, display) from the
rest of AM interfaces and services. This will allow us to move the new
interfaces and services to WM when the internal states are cleaned-up.

Test: Existing tests pass
Test: go/wm-smoke-auto
Bug: 80414790
Change-Id: Ide9b3f89123b768cdbd3e3878113c7a8021187f3
2018-06-06 18:26:21 -07:00
Winson Chung
4b250f34d9 Merge "Expose the source component which launched this task." into pi-dev am: b4e4fc3a1e
am: 2e6f1a0475

Change-Id: I6b73ad07fc6090788149031ccd33c7077845bbdf
2018-06-06 08:48:24 -07:00
Winson Chung
90ce3f4648 Expose the source component which launched this task.
Bug: 109698096
Test: Launch app in launcher, launch same task from overview, ensure we are
      logging the same component

Change-Id: I1c34267e7d4ac6ec467fab9467001b6301ee785c
2018-06-06 00:26:19 +00:00
Jorim Jaggi
2eb755d012 Merge "Merge "Updates to shared lib for Launcher" into pi-dev am: f4833c4fb2" into pi-dev-plus-aosp
am: 8ea57c6592

Change-Id: I603155988400aee7bef56131580a5529fee335d9
2018-05-31 12:40:03 -07:00
Jorim Jaggi
f4833c4fb2 Merge "Updates to shared lib for Launcher" into pi-dev 2018-05-31 15:50:31 +00:00
Jorim Jaggi
cd56073b09 Updates to shared lib for Launcher
Test: builds
Bug: 80292740
Change-Id: I7ce71c6271bd70d802c18001436b651bcc02c90c
2018-05-29 16:29:24 +02:00
Winson Chung
1e4cbeea07 Merge "Merge "Initial changes for full-width quickscrub." into pi-dev am: 004e01d388" into pi-dev-plus-aosp
am: ac4381d357

Change-Id: I613bac5e256a5d0cb7b51dedd2ca528dd3422e2f
2018-05-24 17:10:23 -07:00
Winson Chung
661d5f96a5 Initial changes for full-width quickscrub.
Bug: 79945202
Test: Swipe from anywhere in the nav bar

Change-Id: Ib0b07ceb64fb74c570c297acf865a37a1dc56fa8
2018-05-23 20:46:06 -07:00
Winson Chung
5a1408ce6b Merge "Fade back button in and out tied with the overview/shelf (1/2)" into pi-dev am: d51bbc5fe4
am: b43ab66d3c

Change-Id: I02a0ea7f444db8cfe15e731c2050c17b8bc59e3c
2018-05-18 21:58:29 -07:00
Winson Chung
d51bbc5fe4 Merge "Fade back button in and out tied with the overview/shelf (1/2)" into pi-dev 2018-05-19 04:36:16 +00:00
Jorim Jaggi
6b97c44515 Merge "Fixes for SyncRtSurfaceTransactionApplier" into pi-dev am: 1df0616e27
am: ec0b8cf316

Change-Id: Ie7d1348d14bc2def0b8c06a3856d6ac67cb71e29
2018-05-18 10:43:04 -07:00
Jorim Jaggi
42b0475097 Fixes for SyncRtSurfaceTransactionApplier
Such that launcher can use it.

Test: Open/close app
Bug: 78611607
Change-Id: I8e66b983035eb8da9dd8349e2a5b57d3631df74f
2018-05-18 18:23:45 +02:00
Jorim Jaggi
e4a8d4c7e9 Merge changes I608d4b61,Ia7900e75 into pi-dev
* changes:
  Follow up to Ia7900e753b29187a7a7b81f393666687e8b8e04b
  Apply surface parameters in sync with RenderThread
2018-05-18 11:49:56 +00:00
Jorim Jaggi
2d39fb90d0 Follow up to Ia7900e753b29187a7a7b81f393666687e8b8e04b
Test: Open notification
Bug: 78611607
Change-Id: I608d4b619d5e236c1c874c8c7613f35574d45fd4
Merged-In: I608d4b619d5e236c1c874c8c7613f35574d45fd4
2018-05-18 09:47:12 +00:00
Matthew Ng
96985e7426 Fade back button in and out tied with the overview/shelf (1/2)
Back button changes opacity when moving the shelf during swipe up
between home screen and overview. The alpha changes depending on the
progress of the swipe up animation. When going from app to home and vice
versa, the fade animation does not tie with the swipe up progress. The
fade animation also masks the back button drawable when ime visibility
changes.

Change-Id: Idaf219923af58732715d0f0b59386dea7ab0d0ad
Fixes: 74581837
Fixes: 76900236
Test: swipe up from home screen to overview
2018-05-17 12:20:23 -07:00
Tracy Zhou
005976f46c Merge "Count app launch correctly." into pi-dev am: 8b49b9f736
am: b86987fc05

Change-Id: I0f5226e1338395368da54d8b36bc48ea8701caf8
2018-05-16 19:38:57 -07:00
Jorim Jaggi
64be98d5d2 Apply surface parameters in sync with RenderThread
Otherwise it could lead to parameters applied in the wrong frame,
leading to jank.

Test: Open notification
Bug: 78611607
Change-Id: Ia7900e753b29187a7a7b81f393666687e8b8e04b
Merged-In: Ia7900e753b29187a7a7b81f393666687e8b8e04b
2018-05-17 01:57:31 +00:00
Tracy Zhou
60cd1d96a9 Count app launch correctly.
Previously we mis-count each different activity, regardless of the app
it belongs, as one app launch. We should instead count each different
app open, either created, or brought front as a different app launch,
but different tasks created from the same app is considered one launch.

Fixes: 79885137
Test: Manual test
Change-Id: I5b4b8bee9b0ed4aa23a4ea9eefdfa112b6442455
2018-05-16 17:25:04 -07:00
Jorim Jaggi
aa7505dfc5 Follow up to Ia7900e753b29187a7a7b81f393666687e8b8e04b
Test: Open notification
Bug: 78611607
Change-Id: I608d4b619d5e236c1c874c8c7613f35574d45fd4
2018-05-16 21:40:09 +00:00
Sunny Goyal
b2fbf8f26c Merge "Adding utility method to dump encoded view hierarchy" into pi-dev am: ce42933ae3
am: 7e7ad73005

Change-Id: If9041ce31a967fdc2c502027699a17385f8d05a5
2018-05-16 13:29:03 -07:00
Sunny Goyal
40f658625d Adding utility method to dump encoded view hierarchy
Test: Verified the library change with launcher (after generating a bug report)
Bug: 79861035
Change-Id: Id1eabbfd293ee43c46cbecae82442fc77b661744
2018-05-16 10:14:19 -07:00
Jorim Jaggi
7a5addd2b7 Apply surface parameters in sync with RenderThread
Otherwise it could lead to parameters applied in the wrong frame,
leading to jank.

Test: Open notification
Bug: 78611607
Change-Id: Ia7900e753b29187a7a7b81f393666687e8b8e04b
2018-05-15 17:31:33 -07:00
Hyunyoung Song
051e8dd386 Merge "Add user event logging for recents onboarding > Actual logging will happen in launcher side" into pi-dev am: 9a59a1abf6
am: da57173960

Change-Id: I57cecae83bc92e22e7373069479900f0645f8d21
2018-05-14 12:54:54 -07:00
Hyunyoung Song
b96238a120 Add user event logging for recents onboarding
> Actual logging will happen in launcher side

Bug: 73784423
Test: Builds

Change-Id: I99ae31a74c2e5921915dc3bbf6d08669b5c98584
2018-05-11 17:02:41 -07:00
Winson Chung
10348578c8 Merge changes from topic "sysui_flags_drop" into pi-dev am: 53ae6a82cd
am: 59ff523949

Change-Id: I8d6fa49ba23b78648cf43fafe7c290f2e0c4b59f
2018-05-11 16:48:13 -07:00
Winson Chung
53ae6a82cd Merge changes from topic "sysui_flags_drop" into pi-dev
* changes:
  Clean up Recents animation api
  Expose the system ui visibility flags and translucent state with snapshot
2018-05-11 22:18:37 +00:00
Winson Chung
95d769e4c5 Merge "Expose rotation button as hit target for deferring recents animation." into pi-dev am: 800a8a8e61
am: 39ce66898a

Change-Id: I552781076a7729a7e1f557771947cfb08b9fa9e9
2018-05-10 16:29:48 -07:00
Winson Chung
8079af7742 Expose rotation button as hit target for deferring recents animation.
Bug: 78906750
Test: Hit rotation button with Camera open, no flash
Change-Id: Id5abc2d255d35debcade0ccbc55f20aedcf89e35
2018-05-10 11:12:55 -07:00
Winson Chung
6802e2a553 Clean up Recents animation api
Bug: 73714156
Test: Ensure you can still swipe up

Change-Id: Ie70ed0edb05f54d17d3989895b86e07851c44c06
2018-05-08 17:56:05 -07:00