Commit Graph

16555 Commits

Author SHA1 Message Date
TreeHugger Robot 730155ea09 Merge "Fix bug where floating view is removed before window animation is complete." into ub-launcher3-edmonton-polish 2018-06-20 18:46:33 +00:00
TreeHugger Robot bc57c64d6a Merge "Comment out part of WorkTabTest as it is not succeeding in the build server. Bug: 78589564" into ub-launcher3-edmonton-polish 2018-06-20 18:46:30 +00:00
Hyunyoung Song 70e36604a4 Comment out part of WorkTabTest as it is not succeeding in the build server.
Bug: 78589564

Change-Id: I7a979d9a62e222b8b2217844883d4a41c42f8209
2018-06-20 11:25:39 -07:00
TreeHugger Robot 765996e1e3 Merge "Apply legacy treatment on all non adaptive icons Bug: 110123894 Bug: 62372639" into ub-launcher3-edmonton-polish 2018-06-20 18:25:26 +00:00
Hyunyoung Song 0d84d7de61 Apply legacy treatment on all non adaptive icons
Bug: 110123894
Bug: 62372639

Change-Id: I3bcaa3b9886942b4f1d45aaeebc8b8022e1319f8
2018-06-20 11:01:52 -07:00
TreeHugger Robot 7d430c902e Merge "Creating some common launcher targets" into ub-launcher3-edmonton-polish 2018-06-20 16:26:02 +00:00
TreeHugger Robot 9a36abc179 Merge "Increase timeout for WorkTabTest Bug: 78589564" into ub-launcher3-edmonton-polish 2018-06-19 23:20:33 +00:00
Jon Miranda 53246e5fdc Fix bug where floating view is removed before window animation is complete.
This fix attaches the AnimatorListenerAdapter on the parent AnimatorSet
to ensure all animations are complete before removing the floating view.

Bug: 110156760
Change-Id: I56638d745227e414583fa47a202c9aaa33874baa
2018-06-19 16:13:10 -07:00
Hyunyoung Song e8d5bcfb92 Increase timeout for WorkTabTest
Bug: 78589564

Change-Id: Ie52843d08488d4c7444dd3c0231054cfecc00922
2018-06-19 15:57:02 -07:00
Tony Wickham c0b468c990 Merge "Don't intercept above shelf progress if still animating" into ub-launcher3-edmonton-polish 2018-06-19 22:04:17 +00:00
TreeHugger Robot 3c83d4ed72 Merge "Fix the Launcher3Tests Bug: 78589564" into ub-launcher3-edmonton-polish 2018-06-19 21:23:48 +00:00
Hyunyoung Song 3efd037e63 Fix the Launcher3Tests
Bug: 78589564

$ adb shell am instrument -w com.android.launcher3.tests/android.support.test.runner.AndroidJUnitRunner

com.android.launcher3.allapps.search.DefaultAppSearchAlgorithmTest:..
com.android.launcher3.logging.FileLogTest:..
com.android.launcher3.model.AddWorkspaceItemsTaskTest:....
com.android.launcher3.model.CacheDataUpdatedTaskTest:...
com.android.launcher3.model.DbDowngradeHelperTest:....
com.android.launcher3.model.GridSizeMigrationTaskTest:...........
com.android.launcher3.model.LoaderCursorTest:........
com.android.launcher3.model.PackageInstallStateChangedTaskTest:...
com.android.launcher3.popup.PopupPopulatorTest:..
com.android.launcher3.provider.RestoreDbTaskTest:..
com.android.launcher3.touch.SwipeDetectorTest:.....
com.android.launcher3.ui.AllAppsAppLaunchTest:..
com.android.launcher3.ui.AllAppsIconToHomeTest:..
com.android.launcher3.ui.ShortcutsLaunchTest:..
com.android.launcher3.ui.ShortcutsToHomeTest:..
com.android.launcher3.ui.WorkTabTest:.
com.android.launcher3.ui.widget.AddConfigWidgetTest:....
com.android.launcher3.ui.widget.AddWidgetTest:..
com.android.launcher3.ui.widget.BindWidgetTest:......
com.android.launcher3.ui.widget.RequestPinItemTest:.
com.android.launcher3.util.GridOccupancyTest:..
com.android.launcher3.widget.WidgetsListAdapterTest:......

Time: 180.363
OK (76 test)

Change-Id: I4a50581bc8d06a030467ac9fec3e1ef668745214
2018-06-19 14:13:13 -07:00
TreeHugger Robot 3471127e8b Merge "UNREVIEWED: TAPL prototype for in-lab flake test" into ub-launcher3-edmonton-polish 2018-06-18 23:10:06 +00:00
Vadim Tryshev 5a7d701d55 UNREVIEWED: TAPL prototype for in-lab flake test
These sources didn't pass a normal CR, and mustn't be used in prod. The
goal of landing them is to start in-lab flakiness tests ASAP. A normal
code review will follow after landing cleanup CLs.

Bug: 110103162
Test: Running TaplTests suite
Change-Id: I051591c9af7822d4cbae4261e66563f1ccc1cfcc
2018-06-18 14:29:34 -07:00
Sunny Goyal 0eb466ea2f Merge "Exposing some methods to make QSB customization easier" into ub-launcher3-edmonton-polish 2018-06-18 19:26:46 +00:00
Santiago Etchebehere 257b9c1ac1 Reapply the change to not clip recents
Redo the fix from ag/4326104 as it got removed when reverting
the overscroll fix in ag/4358154

Change-Id: I87d186cbf7675948f4cd5d8aa1a907db1aad5ea0
2018-06-18 10:18:23 -07:00
Sunny Goyal 9fc97976e0 Creating some common launcher targets
Bug: 110336301
Change-Id: I4de635c9a2acd9dee0a8cd2396d6cfa23eefb2db
2018-06-18 01:12:55 -07:00
Sunny Goyal 95cded5424 Exposing some methods to make QSB customization easier
Bug: 110336301
Change-Id: I74d73bfd4b345bae2ecab144b37f1af1126e4725
2018-06-18 01:11:46 -07:00
Santiago Etchebehere 260b4cbd90 Revert "Adding overscroll effect in recents list"
This reverts commit 4d6b1a95a1.

Bug: 110279118

Change-Id: I794b2c7af076d63901f2286fd2ff3d06c6e39fee
2018-06-15 23:55:03 +00:00
Hyunyoung Song 73088c2aae Merge "Create a param to return scale used for bitmap creation Bug: 110082040" into ub-launcher3-edmonton-polish 2018-06-15 22:00:32 +00:00
TreeHugger Robot c3dde3bdec Merge "Allowing taskView to have focusable children (using taskOverlays)" into ub-launcher3-edmonton-polish 2018-06-15 21:13:26 +00:00
Sunny Goyal 32b2896e6f Allowing taskView to have focusable children (using taskOverlays)
Bug: 110271905
Change-Id: Ie75a680efa61d3ded6142ff4e65198a704603639
2018-06-15 21:04:18 +00:00
Jonathan Miranda 0d2c6c23ed Merge "Fix bug where QSB gets clipped when flinging All Apps open." into ub-launcher3-edmonton-polish 2018-06-15 19:44:12 +00:00
TreeHugger Robot f37cfa72d2 Merge "Immediate 2nd quickscrub should not cancel if same state" into ub-launcher3-edmonton-polish 2018-06-15 19:36:41 +00:00
Jon Miranda 3c71c6a564 Fix bug where QSB gets clipped when flinging All Apps open.
Bug: 77538324
Change-Id: I3e40346559fd3b7010d92d28e12efcf2d8581640
2018-06-15 11:19:32 -07:00
TreeHugger Robot ae7c6d1284 Merge "Add hard clip for overscrolled children to not be visible above QSB." into ub-launcher3-edmonton-polish 2018-06-15 16:38:49 +00:00
Jon Miranda b8ca1aa7ee Add hard clip for overscrolled children to not be visible above QSB.
We lose the RecyclerView fading edge, but this is the simplest/less risky
solution.

Change-Id: I7aa39a33678ed8a9b9cf9f17c9ad8c14707b0299
2018-06-15 09:26:57 -07:00
Jonathan Miranda 3871e72686 Merge "Fix bug where add to folder fails even when folder creation animation runs." into ub-launcher3-edmonton-polish 2018-06-14 23:14:15 +00:00
Hyunyoung Song 8d71d49043 Merge "Change target SDK for Launcher3Tests.apk to run on Sailfish device (API28) Bug: 78589564" into ub-launcher3-edmonton-polish 2018-06-14 21:55:16 +00:00
Hyunyoung Song c22dec25f7 Change target SDK for Launcher3Tests.apk to run on Sailfish device (API28)
Bug: 78589564

https://sponge.corp.google.com/target?tab=Details&run=1&sortBy=STATUS&show=ALL&id=453a6b41-ff25-4a20-927a-561abad0e730&target=launcher3_unittests_invocation&searchFor=

Change-Id: I7e97545329e684304c074c66bca409467e17b90b
2018-06-14 14:38:14 -07:00
Hyunyoung Song 4bc3cc3111 Create a param to return scale used for bitmap creation
Bug: 110082040

Change-Id: I35254289a216be4db96f452db184454581a59b32
2018-06-14 12:28:42 -07:00
Matthew Ng f8fafa2847 Immediate 2nd quickscrub should not cancel if same state
Trigging quickscrub immediately after a previous quickscrub would cause
the controller to cancel even if the state change was from overview to
overview, then controller will not do auto-advancing because it thinks
quickscrub has been cancelled. If the state changes but both are
overview then do not cancel and quickscrub can do auto-advancing.

Change-Id: I309937572ad23eea14662501f41c13cd79dd10ab
Fixes: 110006796
Test: quickscrub, then let go and soon after quickscrub again
2018-06-14 11:05:44 -07:00
Tony Wickham 4f8e417bca Merge "Report when a notification is shown in the popup" into ub-launcher3-edmonton-polish 2018-06-14 16:27:42 +00:00
Tony Wickham a32b6a1d37 Merge "Add padding between hotseat and insets in multiwindow landscape" into ub-launcher3-edmonton-polish 2018-06-14 16:27:18 +00:00
TreeHugger Robot 9d2a75f741 Merge "Prerequisites for TAPL" into ub-launcher3-edmonton-polish 2018-06-13 21:21:45 +00:00
Tony Wickham 1eeffbee01 Add padding between hotseat and insets in multiwindow landscape
Right now there's almost no room between the hotseat icons and the
nav  bar in this mode, and it looks kind of bad. It also causes
b/109946631 which is fixed by this change.

Also fix placement of popup in RTL landscape (was incorrectly inset)

Bug: 109946631
Change-Id: I324485da0048b907776b16b719b631c5314e5696
2018-06-13 12:37:47 -07:00
Jorim Jaggi fca9eec464 Optimize system bar switching animations
- Fix a bug where the wrong time was used when the activity was in
overview, but overview wasn't actually visible.
- Fixing this looks pretty bad. Introduce a pre-delay since our
animations decelarate heavily at the end.
- Consolidate logic between swipe-up and swipe-down. Take a middle
value that is most in line with the other animations.

Test: Open/close apps from home and recents with and without
swiping.
Fixes: 109906294

Change-Id: I9cd5568c60fe7281d0f71a75981a3003770e659e
2018-06-13 14:44:18 +02:00
Sunny Goyal 2b03b713f7 Fixing atomic animation not getting completed properly
> Finishing the atomic animation to that proper states are applied
> Offsetting the duration of atomic animation so that it completes along with
  the swipe animation

Bug: 80432882
Bug: 86308723
Bug: 80549582
Change-Id: I8a3b44c2c7017e241b2fbdbb96c5d67edbb359d1
2018-06-12 17:08:55 -07:00
Jon Miranda 36f6359c21 Fix bug where add to folder fails even when folder creation animation runs.
If the distance > max distance for folder creation, we clear the drag mode
if it was previously set.

Bug: 78919972
Change-Id: Ibd456c0981ebb20958c54d21ba3996172d2dd554
2018-06-12 15:26:52 -07:00
Vadim Tryshev 74c261c89f Prerequisites for TAPL
Adding things that will be used by TAPL.

1. Adding Ctrl+W to open widgets
2. Marking a UI element with shortcuts_and_widgets
id. Example of usage: we want to be sure we are in all apps.
A somewhat paranoid way to check this is to check that
apps_view is on, and workspace and overview_panel are off.
However, workspace is always in the hierarchy. We use
shortcuts_and_widgets instead.

Bug: 110103162
Test: Manual
Change-Id: I2a851e16c477f7ee895b459530bc5a1ff19e32f8
2018-06-12 14:54:23 -07:00
Matthew Ng 59ffaf035d Fixes the task header view location in landscape
The header was off by forgetting to calculate with insets. Also rtl
needed to start from left to do calculations correctly.

Test: start overview in landscape, press icon of task
Change-Id: I561dbe315c7be0b4dee602bfd17b4abfffa55605
Fixes: 110096772
2018-06-12 13:52:50 -07:00
Sunny Goyal b0e4126ad0 Do not clip recents view as it scales down to reveal more content
Change-Id: Icc26dec5fc4d6b19d22eb975628de3856f2ea471
2018-06-12 10:02:44 -07:00
Sunny Goyal 267d04f79b Merge "Adding overscroll effect in recents list" into ub-launcher3-edmonton-polish 2018-06-12 16:56:02 +00:00
Tony Wickham fe1402d8a4 Merge "Fix some issues with haptic" into ub-launcher3-edmonton-polish 2018-06-12 15:55:30 +00:00
TreeHugger Robot 90edc36dd9 Merge "Dismiss task menu view after pinning from tapping menu item" into ub-launcher3-edmonton-polish 2018-06-11 23:56:09 +00:00
Sunny Goyal 4d6b1a95a1 Adding overscroll effect in recents list
Bug: 109828536
Change-Id: If2b65cfc2b7f14deb721436f7aa378c4a2c5c468
2018-06-11 16:42:37 -07:00
Tony Wickham 29aef52be3 Fix some issues with haptic
- Don't have double haptic on quick scrub
- Correctly check interpolated progress to determine final state,
  so that it always aligns with the haptic (i.e. passing the haptic
  means letting go will go to the new state)

Bug: 109709720
Change-Id: I702bb76a4c15f932f923e81a14cc49f6a9126cb8
2018-06-11 23:23:49 +00:00
Sunny Goyal c82c6396e9 Moving clear all button inside the recents view
Bug: 72222505
Bug: 109828536

Change-Id: I843b79db3e47abc2c41ed78f186b9c941941ddef
2018-06-11 13:51:03 -07:00
Matthew Ng 89da6799e4 Dismiss task menu view after pinning from tapping menu item
OnClickListener for pin menu option will close all floating views such
as the task menu view.

Test: launch a transparent app, swipe up and try to pin it
Change-Id: I0a3253c79fd543e6044037835ffd74777c76a17d
Fixes: 109678966
2018-06-11 11:49:20 -07:00
TreeHugger Robot 367a53ec13 Merge "Added haptic feedback when swipe/fling up from an app in fullscreen" into ub-launcher3-edmonton-polish 2018-06-11 17:57:38 +00:00