Commit Graph

33301 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
Miranda Kephart 1a359a261d Add hints in Overview
If the ENABLE_HINTS_IN_OVERVIEW flag is enabled, pulls chip hint
data (currently from the NavBarHint plugin; eventually from AiAi)
and shows the chips between the task view screenshot and the QSB.

Screenshot: https://screenshot.googleplex.com/Ww05W13XjBv

BUG:124390101

Change-Id: I7686673b705257eca31f2fa40e2744e197153c7c
2019-02-20 15:17:03 -05:00
Xin Li b031a02fea [automerger skipped] Merge "DO NOT MERGE - Merge PPRL.190205.001 into master" am: 12330be612 -s ours am: b88fa9e4fe -s ours
am: 92fe36bab2 -s ours
am skip reason: subject contains skip directive

Change-Id: I74c9d80a68e3da2eaac749c5eeaf7e67a4a1bbb1
2019-02-20 12:15:53 -08:00
Xin Li 92fe36bab2 [automerger skipped] Merge "DO NOT MERGE - Merge PPRL.190205.001 into master" am: 12330be612 -s ours
am: b88fa9e4fe -s ours
am skip reason: subject contains skip directive

Change-Id: I95557635f9ef977ed36e93ff3e8e65d9e59610a2
2019-02-20 11:42:22 -08:00
Xin Li b88fa9e4fe [automerger skipped] Merge "DO NOT MERGE - Merge PPRL.190205.001 into master"
am: 12330be612 -s ours
am skip reason: subject contains skip directive

Change-Id: I8a87e859ca637b2712f26778a8bfc2d0e0825594
2019-02-20 10:56:50 -08:00
Xin Li 8baff6dee7 [automerger skipped] DO NOT MERGE - Merge PPRL.190205.001 into master am: 6ff829a083 -s ours am: f95552ba45 -s ours
am: 1989693ed3 -s ours
am skip reason: subject contains skip directive

Change-Id: Ic4f3abc25173b5d8c9ca0e1731d4d9971a807332
2019-02-20 10:15:29 -08:00
Xin Li 1989693ed3 [automerger skipped] DO NOT MERGE - Merge PPRL.190205.001 into master am: 6ff829a083 -s ours
am: f95552ba45 -s ours
am skip reason: subject contains skip directive

Change-Id: Idaef8517c97ae153b979fb73df6f8a7c866f8ce1
2019-02-20 09:28:17 -08:00
Xin Li f95552ba45 [automerger skipped] DO NOT MERGE - Merge PPRL.190205.001 into master
am: 6ff829a083 -s ours
am skip reason: subject contains skip directive

Change-Id: Ib6172ad71bf923d5fcd067a987c4177bb39d08fc
2019-02-20 08:51:46 -08:00
Xin Li 12330be612 Merge "DO NOT MERGE - Merge PPRL.190205.001 into master" 2019-02-20 16:25:59 +00:00
TreeHugger Robot 7b4215d633 Merge "Removing support for capturing assist structure on swipe up" into ub-launcher3-master 2019-02-20 00:15:48 +00:00
TreeHugger Robot 774f825b04 Merge "Moving some recents controller methods into wrapper class and better tracking the controller states" into ub-launcher3-master 2019-02-20 00:12:59 +00:00
Tony Wickham 39b6378255 Merge "Only stabilize tasks during quick switch session" into ub-launcher3-master 2019-02-20 00:01:47 +00:00
TreeHugger Robot d0d8e2c6d2 Merge "Implement fallback recents activity for Go" into ub-launcher3-master 2019-02-19 23:26:53 +00:00
Sunny Goyal 74e4fea394 Removing support for capturing assist structure on swipe up
Change-Id: I381b4d1254cd9ced30b5d2a873dbe0736b2924ee
2019-02-19 15:12:33 -08:00
Sunny Goyal 77ee7f1e58 Moving some recents controller methods into wrapper class and better tracking
the controller states

Change-Id: I561cd74dde0a49f5734cbc7fe6930703b7e998dd
2019-02-19 15:10:12 -08:00
Tony 60ac5d2b34 Only stabilize tasks during quick switch session
- A stabilization session starts when going to a new task via a quick switch
- A stabilization session ends after 5 seconds on the same task or when completing
  a gesture to go to home or overview
- We track the system task order and copy it for the duration of the stabilization session
- After the session ends, we switch back to the system task order
- Remove ENABLE_TASK_STABILIZATION flag (and also QUICK_SWITCH)

Bug: 111926330
Change-Id: I2c18dff2d20ad02b73a4935ac534e9fc9f5f49c0
2019-02-19 14:54:23 -08:00
TreeHugger Robot f913db949e Merge "Removing support for long swipe to all-apps" into ub-launcher3-master 2019-02-19 22:53:00 +00:00
Kevin 750bbe08da Implement fallback recents activity for Go
Implement recents activity for Go for when the default launcher does not
have recents implemented. To do this, we factor out some common recents
activity functionality from RecentsActivity and extend it to make a Go
specific activity that pops in the icon recents fragment.

Bug: 114136250
Test: Manual test NexusLauncher and Launcher3QuickstepGo by installing a
quickstep-less launcher and setting it to default
Change-Id: I936568489e8966da4a62e4b779ae660a220f2aeb
2019-02-19 14:12:42 -08:00
Tony Wickham 8d7778fa37 Merge "Dispatch ACTION_POINTER_UP to recents view" into ub-launcher3-master 2019-02-19 21:47:06 +00:00
Sunny Goyal 3432a2afa5 Removing support for long swipe to all-apps
Change-Id: I29e6b2d283126e584de6e49b6f658c153d582d6b
2019-02-19 13:07:37 -08:00
TreeHugger Robot 06ed106de2 Merge "Some live tile and state fixes" into ub-launcher3-master 2019-02-19 20:24:21 +00:00
Tony Wickham aa66a288c3 Dispatch ACTION_POINTER_UP to recents view
Bug: 123539954
Change-Id: I298599445d644eb82e05a116ce85425d239839fe
2019-02-19 11:35:25 -08:00
Winson Chung 201840ba23 Merge "Disable Launcher when starting in a managed profile" into ub-launcher3-master 2019-02-19 18:38:56 +00:00
Xin Li 6ff829a083 DO NOT MERGE - Merge PPRL.190205.001 into master
Bug: 124234733
Change-Id: I862d307efebef10f453581d548322e7d973f33b9
2019-02-18 15:58:42 -08:00
Sunny Goyal 462551be9c Some live tile and state fixes
> Removing LayoutListener which was causing relayouts in the middle of
  the transitions
> Fixing some logging in MultiStateCallback
> Using an overlay to draw the hole for the live tile

Bug: 124451190
Change-Id: I91351f76ec7cc2793a835f40002bfd912939d40d
2019-02-18 14:59:18 -08:00
TreeHugger Robot a58934e00b Merge "Adding NORMAL_STATE_ORDINAL" into ub-launcher3-master 2019-02-18 19:26:54 +00:00
android-build-team Robot 3fe4fa505f Snap for 5316819 from 96691dee0c to qt-release
Change-Id: Idfaeb1520f18ddf6b5f175ce90923260840d9ada
2019-02-17 04:07:51 +00:00
vadimt 422885d2ca Fixing Cancel target being seen as Remove by accessibility
Bug: 115854326
Change-Id: Ic52d7253ea47d65b18cc38c4a2242ab15c4e35fd
2019-02-15 19:55:43 -08:00
vadimt 5616670a5a Fixing swipe-up mode recognition in TAPL
It failed on Cuttlefish

Change-Id: I81e168f133d51d7c140897cd6847bf30da608d70
2019-02-15 18:04:54 -08:00
vadimt 6895e409a1 Adding NORMAL_STATE_ORDINAL
Test: presubmit
Change-Id: Ie927a4a1ebe925f613d4d8636f6041efeba872dc
2019-02-15 16:42:14 -08:00
Winson Chung 9fea3de8f5 Disable Launcher when starting in a managed profile
- The launcher package is automatically enabled for work profiles due to
  DPM interpreting it as a critical component since it does not have any
  launchable activities. Once enabled, it is possible for an explicit
  broadcast to update smartspace or assistant state to trigger the process
  to be created for the work profile user, which ends up initializing logic
  which may call into LauncherApps (which is not allowed from the work
  profile).

  As a workaround, we disable the launcher application immediately upon
  detecting that it is running in a work profile.

Bug: 120550382
Change-Id: I72c52fe598d41440a1fb59304b494a000277384b
2019-02-15 15:59:08 -08:00
TreeHugger Robot bcd70baf51 Merge "Moving state ordinals to TestProtocol" into ub-launcher3-master 2019-02-15 22:11:04 +00:00
Vadim Tryshev cc38b095d9 Merge "Disabling some tests in OOP mode" into ub-launcher3-master 2019-02-15 22:04:52 +00:00
vadimt 270ddb93d9 Disabling some tests in OOP mode
These tests call sendPointer() which fails with
"Injecting to another application requires INJECT_EVENTS permission".

Will re-add them later.

Test: running those in OOP and in-proc
Change-Id: I1c96fad14cf8bef896209a94065614a6207ea751
2019-02-15 13:37:48 -08:00
Vadim Tryshev 266415f11e Merge "Unifying setup for AOSP and Nexus Tapl Tests" into ub-launcher3-master 2019-02-15 20:33:08 +00:00
vadimt e12f5c3b8b Unifying setup for AOSP and Nexus Tapl Tests
Test: TaplTestsQS
Change-Id: Ib699566f13980bd89335ad17b2a694e37b83e2ae
2019-02-15 12:08:19 -08:00
Xin Li 96691dee0c [automerger skipped] DO NOT MERGE - Merge pi-platform-release (PPRL.190205.001) into stage-aosp-master am: 3de3cf0bce -s ours
am: e6c5947966 -s ours
am skip reason: subject contains skip directive

Change-Id: I5db35cd660efb33fdabdf878a5cb0b69a1d05808
2019-02-14 21:07:41 -08:00
TreeHugger Robot d202bf40bf Merge "App to home animation zooms into the app icon." into ub-launcher3-master 2019-02-15 02:05:27 +00:00
vadimt 2a648aa894 Moving state ordinals to TestProtocol
These checks immediately broke after recent change of ordinals.

Test: Tapl tests
Change-Id: Ie040f452d3f31c86f780e6f38c6f9afa0d0dcbf3
2019-02-14 17:47:11 -08:00
TreeHugger Robot a18f2b1470 Merge "Fixing alt-tab is properly dispatched to the RecentsView" into ub-launcher3-master 2019-02-15 01:36:31 +00:00
vadimt 0589b07829 Disable state checks.
They fails for a reason I don't understand.

Change-Id: Ie3b5407a8a3efa3bf5f0f75562191191b0e8e9a5
2019-02-14 17:10:43 -08:00
Jon Miranda 0128d3f6e0 App to home animation zooms into the app icon.
- Created FloatingIconView which is now used by both the app close and
  app open animation.
- getItemLocation in DeviceProfile is used to get an item's final location
  since getLocationOnScreen may return a View's location mid-animation.
- Added getFirstMatchForAppClose which is optimized to return for best
  visual animation.
- Also fixes app open RTL bug.
- Next CL will use AdaptiveIcons and FolderShape reveal animator to match
  the app icon to the app window.

Bug: 123900446
Bug: 123541334
Change-Id: Ief75f63fc5141c1ee59d4773946d08794846cb31
2019-02-14 16:54:45 -08:00
Vadim Tryshev f0d26535ee Merge "Reducing tests flakiness." into ub-launcher3-master 2019-02-14 23:13:24 +00:00
vadimt 2f2994cd37 Reducing tests flakiness.
Moving some tests to TaplTests. It's a right idea in general, also
flakes seem to go away because of a different initialization pattern.

Reintroducing UIDevice.pressHome in the test's start. Once BVTs pass,
I'll switch back.
See b/121335479

Test: All nexus tests
Change-Id: I677be5b6aaf073d15e8f2cf9b7a940a1f457b325
2019-02-14 15:10:52 -08:00
Xin Li e6c5947966 [automerger skipped] DO NOT MERGE - Merge pi-platform-release (PPRL.190205.001) into stage-aosp-master
am: 3de3cf0bce -s ours
am skip reason: subject contains skip directive

Change-Id: I87d2bd47bb8458c94a137d641f70a8f6f34af922
2019-02-14 14:39:40 -08:00
Vadim Tryshev 6ffac2ea78 Merge "Sending state ordinals from Launcher to TAPL" into ub-launcher3-master 2019-02-14 22:35:52 +00:00
Sunny Goyal b52ff2269b Fixing alt-tab is properly dispatched to the RecentsView
Change-Id: I14a5569877bc0e7fe3aa30d3cd1fa74920b3e9db
2019-02-14 13:49:57 -08:00
vadimt 42a88b9681 Sending state ordinals from Launcher to TAPL
This improves diagnostics.

Test: TAPL tests
Change-Id: I0ebb533513405372ea7c58a36910160cfb6d8368
2019-02-14 13:08:01 -08:00
TreeHugger Robot aee03144ae Merge "Deleting Quickscrub related logic" into ub-launcher3-master 2019-02-14 20:24:48 +00:00
Sunny Goyal 3f271d4b7f Deleting Quickscrub related logic
Bug: 124255113
Change-Id: Ic5f2338f1e3ae0a0cfb08f822dee0e01ae54a7b0
2019-02-14 11:40:03 -08:00