Commit Graph

81 Commits

Author SHA1 Message Date
Sunny Goyal 4bb8b06ef3 Passing all events to RecentsView instead of passing the calculated velocity
Velocity tracker is able to calculate the velocity using cached copy of motionEvent
as long as the event as correct timeStamp

Change-Id: I2b0f612e010fdfcf144d5bed928c5a96b36f3ac7
2019-02-20 13:45:27 -08:00
Sunny Goyal 8374b0dd8e Using the new Touch dispatcher
Change-Id: Ib3cf82f6e0360e6e9609a8a3930125883e6ea997
2019-02-13 16:36:42 -08:00
Sunny Goyal 451987c5e6 One thread to rule them all
Moving all quickstep event handling to main thread and removing
multi-thread logic.
Using system input dispatcher for handling event queue to that
velocity tracker works properly on different threads.

Bug: 123833655
Change-Id: I7c5004c32411da4144103112905ff6b40ed700ab
2019-02-08 12:33:22 -08:00
vadimt 682be49c8d Updating sysui_shared
Bug: 123775469
Test: showing a task in Overview
Change-Id: I531da929c5fe51fd7046347b9c02916f37b554b5
2019-02-04 11:52:20 -08:00
Lucas Dupin a2074857dc Disable window corner rounding on some devices
Bug: 122347746
Test: visual; on taimen, marlin and walleye
Change-Id: If6ac1c75297dd25ad40d3ec61537e8793bceceb7
2019-01-24 16:19:49 -08:00
Winson Chung 5045f44cb1 Updating shared lib for context wrapper.
Change-Id: Ie468a23c177028ad4d1b4b90f177a29e5e72d960
2019-01-04 12:22:11 -08:00
Winson Chung 381a75c194 Fix issue with sync rt applier
- Use the shared lib call to ensure that we always have the sync rt
  applier with viewroot.

Change-Id: I911362d105a2c0223693640a28d358caf6dd29d0
2018-12-11 13:04:38 -08:00
Winson Chung 5f593c382f Revert "Revert "Updating shared lib for rounded corners.""
This reverts commit de72d339e5.

Reason for revert: Most test devices have the platform changes

Change-Id: Ibe7e22c5073f2405483945ac726e528bef88fbc9
2018-12-06 19:36:52 +00:00
Winson Chung de72d339e5 Revert "Updating shared lib for rounded corners."
This reverts commit 8bcc8d627a.

Reason for revert: <INSERT REASONING HERE>

Change-Id: I310c428980640f54a5590763f57f01cac2ef061b
2018-12-04 18:40:56 +00:00
Winson Chung 8bcc8d627a Updating shared lib for rounded corners.
Change-Id: I75acb5b0edbda214ff88698b2ca93716d3b69fe0
2018-12-04 10:13:21 -08:00
Winson Chung a682accb9e Updating shared lib for display id change.
Change-Id: Ie4c5362cc89f6e5cc146c70912c1d8dfa6fd781a
2018-11-28 10:53:43 -08:00
Winson Chung ed85dbd963 Updating shared lib jar for freeform call.
Change-Id: If4b4496ff85ffb18e3f499ed4b6a8eb97552e231
2018-11-26 11:32:14 -08:00
Winson Chung 1296cf26f2 Updating shared lib for fw api change.
Change-Id: I42c6c85693d7f1c2b7a38de5f3dd05f43612b504
2018-11-14 10:36:27 -08:00
Hyunyoung Song 0ae3888ad1 Split out launcherProtos from sysui_shared.jar
Bug: 113043444
Change-Id: I3115cdc7871b0f77601e399df01cdde0dde87c6e
2018-11-05 17:01:54 -08:00
Hyunyoung Song fc00747909 Add StatsLog*Manager for logging.
Bug: 113043444

Verification: (19) is our event classifier number
11-05 11:24:28.188   932   994 I statsd  : { 1541445868000000000 766293363001 (19)0x10000->1[I] 0x20000->0[I] 0x30000->0[I] 0x40000->[S] 0x50000->1[I]  }

Change-Id: I75403837f9fa8e51efa012fb708bce7efc9c4488
2018-11-05 11:41:38 -08:00
Winson Chung 0d9275deba Updating shared lib from package & class rename.
Change-Id: If3003c6e454ea60f30372f985fa7f34c9b6ed46d
2018-10-23 15:42:41 -07:00
Winson Chung fd61e04424 Updating shared lib
Bug: 117603579
Change-Id: Ie4fbb962bc1ae3d13bfa7778aa505e1ad7ea8853
2018-10-23 11:44:36 -07:00
Tony Wickham 76cce29d66 Add plugin support
- Add libs/plugin_core.jar
- Include plugin_core in Launcher3 build (it is already present other
  builds as part of the updated shared lib)
- Add PluginEnablerImpl that uses SharedPrefs to enable/disable plugin
  components
- Add src_plugins, where plugin interfaces will live. It has a build
  rule to create a jar that plugin projects will depend on.
- Copy PluginPreferencesFragment from sysui but using our implementation
  for PluginEnabler

Bug: 115877296
Change-Id: I3db54677eaceb10f92018c0f9d18920ad9ffac39
2018-10-10 14:02:56 -07:00
Winson Chung c533f315ca Defer removing the task view until the app has drawn
Bug: 111896388
Change-Id: I8c900e56fcbbdc400dce646c50f8f14b1da4e17f
2018-09-25 18:18:18 -07:00
Sunny Goyal 0c98d0c05f Updating the SystemUI jar as per API changes
Change-Id: I7c7099da2146618113a22b5ec43acebf90bad783
2018-09-07 10:11:34 -07:00
Sunny Goyal 018e3c4447 Update the shared lib for lambda definitions removal
Bug: 112849320
Change-Id: I9b8971a84368eee88bf6fc5a4c0e39b32e7ea891
2018-08-22 15:46:38 -07:00
Winson Chung dbbed57094 Revert "Use clear-all recent tasks call"
This reverts commit 68df758665.

Reason for revert: Should be in master

Change-Id: I1a0d54c606c8cf1e52d5bdbfcd1acc6d0211ab49
2018-08-22 21:12:56 +00:00
Winson Chung 68df758665 Use clear-all recent tasks call
Bug: 80471073
Change-Id: Ibce9d521ba8d3903ff1f2fbdabfd391b15630bd7
2018-08-03 11:15:33 -07:00
Winson Chung 3cc3df59af Log source component instead of current task base intent
- Report original launch source component to ensure app relaunches can be
  associated with the same app for predictions.

Bug: 109698096
Bug: 109675704
Change-Id: Icc5e95560777ad827fd2430cf3b3b052b65eb1b6
2018-06-05 21:09:32 +00:00
Jorim Jaggi 80b9314781 Use SyncRtSurfaceTransactionApplier for recents enter/exit
To ensure proper synchronization, fixing jank.

Furthermore, we need to move the background choreographer to
vsync-sf pulse in order to allow for a smooth transition
background -> foreground when handling the touch.

Test: Swipe up, disable swipe, press recents to enter/exit
Bug: 80292740
Change-Id: Ie58616edf6432a0154d6dbf8497218721154d2b8
2018-05-29 15:50:14 +02:00
Jorim Jaggi 1008f6d72e Use SyncRtSurfaceTransactionApplier for app opening
To ensure 100% synchronization, fixing jank.

Test: Open and close apps
Bug: 78611607
Change-Id: I6843e88ab1de0b8e7d80e6a6f547b895b527d093
2018-05-28 18:10:47 +02:00
Matthew Ng 8b92fe336b Fade back button in and out tied with the overview/shelf (2/3)
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: I51e42930640ba711e81880b385bb722d7ee8ad33
Fixes: 74581837
Fixes: 76900236
Test: swipe up from home screen to overview
2018-05-18 00:48:51 +00:00
Sunny Goyal 55eb556a4b Dumping the excoded view hierarchy instead of the default activity dump
> Encoded hierarchy is smaller is size and has a lot more information about the views

Bug: 79861035
Change-Id: I84316b1b0031282b0579f3aaac22d8d8f00d8bcb
2018-05-16 10:55:21 -07:00
Hyunyoung Song 018eec6899 Add logging for Onboarding
Bug: 73784423

* Discovery bounce, homescreen, hotseat
UserEvent: action:TIP
UserEvent:  Source child:HOTSEAT id=0 BOUNCE

* Discovery bounce, overview, prediction
UserEvent: action:TIP
UserEvent:  Source child:PREDICTION BOUNCE

* Swipe up from navbar text (visibility, cancel target)
UserEvent: action:TIP
UserEvent:  Source child:TIP SWIPE_UP_TEXT

UserEvent: action:TAP
UserEvent:  Source child:CANCEL_TARGET SWIPE_UP_TEXT

* Quickscrub text (visibility, cancel target)
UserEvent: action:TIP
UserEvent:  Source child:TIP QUICK_SCRUB_TEXT

UserEvent: action:TAP
UserEvent:  Source child:CANCEL_TARGET QUICK_SCRUB_TEXT

* Prediction apps text (visibility, cancel target)
UserEvent: action:TAP
UserEvent:  Source child:TIP PREDICTION_TEXT

UserEvent: action:TAP
UserEvent:  Source child:CANCEL_TARGET PREDICTION_TEXT

Change-Id: I94710b5ed3d00e3599985b154eb660af4a958288
2018-05-15 14:31:07 -07:00
Winson Chung a0f09f94b5 Revert "Revert "Update sysui flags on swipe, skip task backgrounds on opaque apps""
This reverts commit f5d5b6f00f.

Reason for revert: Can be submitted once a build with ag/4040557 is available for flashing

Change-Id: Id94440a1dc9b765bb9758af81b0567628befa283
2018-05-11 21:55:21 +00:00
Winson Chung f5d5b6f00f Revert "Update sysui flags on swipe, skip task backgrounds on opaque apps"
This reverts commit 5dd46d51ed.

Reason for revert: Temporary revert until ag/4040557 goes in

Change-Id: Iab2c747a99e1fb1cc5a91787dbf185df77f791b4
2018-05-11 06:50:21 +00:00
Winson Chung 5dd46d51ed Update sysui flags on swipe, skip task backgrounds on opaque apps
Bug: 79228291
Bug: 77984778
Bug: 78659249
Bug: 73714156
Change-Id: I3bb9ce5b4d5d16bc229a1caba99891cb87775136
2018-05-10 15:36:44 -07:00
Winson Chung 447aadbc45 Deferring recents animation when tapping rotation button.
Bug: 79518453
Change-Id: I46490cce0ced0860903337c02fb66e1cdc5add06
2018-05-10 14:40:44 -07:00
Sunny Goyal 59d086c3ce Using surface rotation instead of insets to determine seascape configuration
Insets may not correctly indicate seascape configuration in multi-window or
when the presence of device-cutouts

Bug: 79376298
Change-Id: I8268efca0001fe527a0ffefe48cc71e774fad01c
2018-05-07 17:32:46 -07:00
Sunny Goyal 18c699fbc5 Using the system color extraction logic instead of inbuild logic
> Moving the inbuild color extraction logic to the aosp flavor

Bug: 79111591
Change-Id: I766b0397da7224b424cd5f309cedf635d60a5e0f
2018-05-04 10:16:39 -07:00
Hyunyoung Song a05860421f Log OVERVIEW_ACTIVITY via MetricsLogger in quickstep
Bug: 77920179

Change-Id: Id4c7dc3d535c7a8009d340183e640b04ab07408a
2018-05-02 14:34:23 -07:00
Matthew Ng 8013843fbd Secondary split screen app will be next to the navigation bar (2/2)
Refactored docked position code into PhoneWindowManager to determine
which side the docked app should go based on the position of the nav bar
in landscape (as portrait will only have top). Fixed the split screen
entrance animation for quick step's overview.

Change-Id: I0035214cecb9c6403c59f4b938c2d1ae924f34b0
Fixes: 73250406
Test: play around with splitscreen and minimized mode
2018-04-30 15:01:32 -07:00
Matthew Ng 4df80700c4 Shared touch and drag slops for quick step changes with density (2/3)
All shared touch and drag slops are not static anymore but are computed
for the current system density if the user were to switch density of
device.

Test: change density and use quick scrub
Fixes: 78244075
Change-Id: Idc35e78bdd9c6d9b31a1ccbdd9cd0e7fec87185f
2018-04-26 13:57:11 -07:00
Winson Chung e6e77ca44d Hide the IME when starting quickstep.
Bug: 73285089
Change-Id: Ifad6ffe64467754ade966165ee3c274ac9445c1f
2018-04-23 17:32:43 -07:00
Winson Chung 64b6195bdf Revert "Update shared lib for fullscreen state to task snapshot."
This reverts commit f86337e207.

Reason for revert: Temporary revert until there is a pi-dev build that launcher folks can flash

Change-Id: I1885d7c58d8ec5c3eaccf4abd518c375ecf65164
2018-04-23 23:33:51 +00:00
Winson Chung f86337e207 Update shared lib for fullscreen state to task snapshot.
Change-Id: I9fa585f303f2613eeb5aa30cc0546230e743bbed
2018-04-23 12:25:59 -07:00
Jorim Jaggi cd95352ada Remove prolonged animations
Never worked in P, not needed.

Test: Enter split screen
Bug: 77993227
Change-Id: I092c4141c23dd7ded4e11a0f54156b1abfa2b1c6
2018-04-23 11:54:21 -07:00
Tracy Zhou 5c74f7bb59 Implement swipe up and quick scrub onboarding (Pt. Launcher)
SysUI change: ag/3914771

Bug: 70180942
Test: manual test
Change-Id: I42ade28ebad6dcbbcee6dfb80791f22f36e78290
2018-04-18 17:35:33 -07:00
Sunny Goyal 9162f8187c Better handling transparent activities
> Only hiding the task associated with the current task, instead of hiding all tasks
> Maintaining a state for hidden task so that it does not get reset when alpha is changed due
  to some other reason.

Bug: 77830202
Change-Id: I202e99b153c6f9e3a8d9c68d6844672b3bff41e9
2018-04-14 13:46:41 -07:00
Mehdi Alizadeh c7ee6802c5 Uses definitions in sysui_shared lib for Settings names
Also drops a new sysui_shared.jar

Bug: 77732469
Test: verifty it builds
Change-Id: I080672be4df746ecd3124cc22ccec3ceea3b0742
2018-04-12 19:15:15 -07:00
Tracy Zhou fd21de4489 Move QuickStep onboarding strings from Launcher to SysUI (Pt. Launcher)
Bug: 70180942
Test: N/A
Change-Id: I05e6ce27630d478a40a52bf59a9dfd25881213be
2018-04-12 11:08:28 -07:00
Sunny Goyal fceb82d4a7 Waiting until post draw before calling finish on the recent transition
Bug: 77695434
Change-Id: I7c3c668de7c3986760f26890fa062dee0ddb3805
2018-04-11 12:50:46 -07:00
Winson Chung c477c373ab Updating shared lib for icon loader change.
Bug: 77747389
Change-Id: I84d56a016222d844ab311bd12ade6693b084bff0
2018-04-09 21:06:21 -07:00
Sunny Goyal 59f2094dd6 Automatically switching the ActivityController based on the default home app preference
Bug: 75979063
Change-Id: If7a173cc56da021094ab9770dee26fb61ac20dd3
2018-04-09 13:25:50 -07:00
Jorim Jaggi f4beeb8dfb Enable early wakeup during transitions
We hit GL comp likely on some devices so we start composing
earlier to avoid jank.

Bug: 75985430
Change-Id: I94ff218c79fb512002a2fb7f8aa600d6662f269e
2018-04-09 16:45:06 +02:00