Commit Graph

17252 Commits

Author SHA1 Message Date
TreeHugger Robot a950d40d09 Merge "Started converting Launcher to be gesture-stable" into ub-launcher3-master 2018-08-14 19:18:46 +00:00
Sunny Goyal 5bbe9e16b6 Merge "Changing Condition to an interface to allow using lambdas" into ub-launcher3-master 2018-08-14 19:10:13 +00:00
Lucas Dupin f3c4f77809 Merge "Respect night mode flag on Q and beyond" into ub-launcher3-master 2018-08-14 18:32:34 +00:00
Lucas Dupin eca08a10bd Respect night mode flag on Q and beyond
Test: manual
Change-Id: I01c51d02e787557717c12567adc8276943dbd1bc
Fixes: 110758454
2018-08-14 11:18:42 -07:00
Winson Chung 7debc53f93 Skip logic to find the dominant color when loading recent task icons
- Also move some allocations in ColorExtractor into thread locals to reduce
  allocations

Bug: 78777731
Change-Id: I8819106d476a9af02e864135a2f44b55fe9219cd
2018-08-14 10:30:33 -07:00
Vadim Tryshev dc755e718d Started converting Launcher to be gesture-stable
All tests keep passing.

WorkTabTest.workTabExists was made gesture-stable. There is no need to
use TAPL, as the point is not to check answering to gestures, but to
check presence of tabs, which is better to do using launcher internal
state. (It still fails if run as a part of all tests, presumably,
because after Launcher's start, changes in user configuration are not
recognized, so I've commented the failing part)

Bug: 110103162
Test: Run all tests
Change-Id: Ic30b8e8475d16cee3880332f12311a44ddfa26cb
2018-08-14 10:29:57 -07:00
Sunny Goyal 6edb1b84bf Changing Condition to an interface to allow using lambdas
Change-Id: Ib7ad6a45d2ce556f843cd3a9767001904707dced
2018-08-14 10:27:48 -07:00
TreeHugger Robot b6ecb17356 Merge "Removing Launcher activity dependency on various animations" into ub-launcher3-master 2018-08-13 20:03:33 +00:00
Vadim Tryshev 3b5793fdf5 Support for running Overview tests with quickstep on and off
Bug: 110103162
Test: TaplTests suite
Change-Id: Ic479156f2973aeec5cc3d288e1c891b8086d9daa
2018-08-10 17:35:43 -07:00
TreeHugger Robot d6ba50412b Merge "Adding overscroll in recents view" into ub-launcher3-master 2018-08-10 22:53:49 +00:00
Sunny Goyal b7b0135c93 Adding overscroll in recents view
Bug: 109828536
Change-Id: I4fe94bd157c2b65f80604751e6f0f7d5d81d058d
2018-08-10 22:41:20 +00:00
TreeHugger Robot 8f7137b769 Merge "Removing magic constant 0.1f from Overview" into ub-launcher3-master 2018-08-10 22:03:12 +00:00
Vadim Tryshev 309053fff9 Using SWIPE_UP_SETTING_NAME in TAPL
Bug: 110103162
Test: TaplTests suite
Change-Id: Ia62207773a156aca1e226307ccc462c252cc9227
2018-08-10 14:30:59 -07:00
Sunny Goyal 849c6a2b18 Removing Launcher activity dependency on various animations
(This cl reverts change-Id: I455edcd17bda83ab51c2c04fa40e66097a4d6975)

Various animations were marked for cancellation when launcher activity is
destroyed. This this does not work with multiple activities (Launcher,
fallback recents, shortcut confirmation). Also since launcher activity
handles configuration changes, the activity is not destroyed often.

Instead associating a target with various animations which automatically
cancels the animations when that target goes away.

Change-Id: I64cd095a28075561a9e20c9dcdeb9f90c18e1047
2018-08-10 13:31:46 -07:00
TreeHugger Robot 52b28f0926 Merge "Adjust notification dots" into ub-launcher3-master 2018-08-09 22:19:57 +00:00
Vadim Tryshev 846718a79a Removing magic constant 0.1f from Overview
Bug: 110103162
Test: TaplTests suite
Change-Id: If3af510360158a2c2b1c3d13c75321c49ece67e2
2018-08-09 14:21:46 -07:00
TreeHugger Robot 431ec79c99 Merge "Removing code duplication for getting swipe-up setting" into ub-launcher3-master 2018-08-09 19:49:20 +00:00
TreeHugger Robot 86944e9d7e Merge "Importing OverScroller.java from platform" into ub-launcher3-master 2018-08-09 19:30:58 +00:00
Sunny Goyal 92526e27c3 Importing OverScroller.java from platform
Bug: 109828536
Change-Id: Idf33fcbc765a83d72503f1428af0d5414bde3ef3
2018-08-09 12:04:36 -07:00
Winson Chung ad830cd2dc Use provided home content insets
- They should be correct now immediately after rotation

Bug: 112205777
Change-Id: I12c5b791b7115408bb34b5d0ae1e3023ce79c1bf
2018-08-09 18:20:24 +00:00
Tony Wickham 9c80147e70 Merge "Use default animation when launching a TaskView that's off screen" into ub-launcher3-master 2018-08-09 16:37:53 +00:00
Tony Wickham 9756df4564 Use default animation when launching a TaskView that's off screen
Now that pressing back launches the previously running task, it's
possible to get TaskView#launch() when the TaskView is not on the
screen (i.e. user scrolled before pressing back). In this case, we
shouldn't use the launch-from-recents animation, as that animation
assumes the task view is the current page or an adjacent one.

Change-Id: I7bec91c9437954061affdedc8cd9e48820ce7357
2018-08-08 17:55:10 -07:00
Tracy Zhou af82a882d7 Fix PIP window moving during quick scrub.
Bug: 110799409
Test: Manual
Change-Id: Ib7c7d87ddb5aee3149127415bfc31b9cd24dd16b
2018-08-08 15:50:52 -07:00
Sunny Goyal 107dcf8d0a Merge "Fix overlapping FloatingViewType IntDef" into ub-launcher3-master 2018-08-08 19:24:54 +00:00
Sunny Goyal aad3359e8e Removing unused touch handling in PagedView so that it is similar to various platform class
Bug: 109828536
Change-Id: Ibaba3fb4298f2dc055d125acea5f4c47403bbef0
2018-08-08 12:12:46 -07:00
TreeHugger Robot 662f52b67f Merge "Unifying multiple definitions of MainThreadInitializedObject" into ub-launcher3-master 2018-08-08 19:07:09 +00:00
TreeHugger Robot 4e41486499 Merge "Removing requirement for no enabled accessibility services" into ub-launcher3-master 2018-08-08 18:57:12 +00:00
Vadim Tryshev 30ac987c56 Removing requirement for no enabled accessibility services
Now Launcher will talk to TAPL even if there are enabled accessibility
services.

This should fix some lab tests that presumably run with some
accessibility services enabled.

Bug: 110103162
Test: will check on lab tests
Change-Id: Ie11896441c2b2b7c16150cd3f2df28a5a5095d88
2018-08-08 11:46:19 -07:00
Sunny Goyal 7fee2a82e4 Merge "Launching last task when back button is pressed in overview" into ub-launcher3-master 2018-08-08 17:34:46 +00:00
Tobias Dubois 7b5834d9b1 Fix overlapping FloatingViewType IntDef
TYPE_DISCOVERY_BOUNCE and TYPE_QUICKSTEP_PREVIEW have the same value.
Make sure each flag has a unique value.

Test: manual
Change-Id: I0fec3f27ffc31bad80d3af7b3baa3631b61b2567
2018-08-08 10:19:52 -07:00
Vadim Tryshev b02bcd4c76 Removing code duplication for getting swipe-up setting
This is between Tapl and Launcher

Bug: 110103162
Test: TaplTests suite
Change-Id: I5b458438834204ca257f45c707577b4d2793fb4e
2018-08-07 18:01:12 -07:00
Rajeev Kumar 147320e64e Use equals for string comparison in ItemClickHandler.
Bug: 112325801
Test: Manual test
Change-Id: I1b57dadac392d5c7f5a7fb367ddbaf79beb7faed
2018-08-07 15:22:14 -07:00
Sunny Goyal 7244d45998 Unifying multiple definitions of MainThreadInitializedObject
Change-Id: I0e5addfe0353f971c76ffba8a0e2fbbce0f7e58e
2018-08-07 09:26:34 -07:00
TreeHugger Robot 59d504e89b Merge "Using proper checks for hardware bitmap usage" into ub-launcher3-master 2018-08-07 16:11:10 +00:00
TreeHugger Robot 3b7402c2b8 Merge "Increasing wait time." into ub-launcher3-master 2018-08-07 00:27:05 +00:00
Sunny Goyal 719fcb1561 Using proper checks for hardware bitmap usage
Change-Id: Ic8efef8ac54ee4c7887860c404060da3c00f4024
2018-08-06 17:00:55 -07:00
Rajeev Kumar dedecd8cf3 Specify proguard.flags file explicitly in the Launcher3QuickStepGo make rule
This change makes sure that following build command doesn't error out:
tapas Launcher3QuickStepGo
make -j45

Bug: 112274857
Test: Built source with tapas Launcher3QuickStepGo and it built successfully.
Change-Id: Icd788e4e119efd386bec6646627c2d9dd485af60
2018-08-06 21:37:53 +00:00
Rajeev Kumar 6e1f150c82 Merge "Make AsyncTask static to prevent memory leak in WorkModeSwitch class" into ub-launcher3-master 2018-08-06 21:04:42 +00:00
Vadim Tryshev 7d0cf2a748 Increasing wait time.
Extremely rarely starting an app takes more than 10 sec.

Bug: 110103162
Test: TaplTests suite
Change-Id: Ic6127e373b76c610eea5126e53e6048ba0f9bd3e
2018-08-06 11:11:25 -07:00
TreeHugger Robot 589f53cf89 Merge "Enabling more checks in TAPL tests." into ub-launcher3-master 2018-08-03 21:07:20 +00:00
Rajeev Kumar 02c33da4d2 Enable code shrinking (dead code removal) on Launcher3QuickStepGo app
Bug: 112042795
Test: Manual testing

I found following effect of shrinking on the apk:

Launcher3QuickStepGo.apk            4925099 bytes
Launcher3QuickStepGo_Proguard.apk   2619051 bytes

We get total saving of 2306048 bytes in apk size.

Change-Id: I75abedc05e5d04967928e73f02bcc78608f52ac0
2018-08-03 13:33:18 -07:00
Rajeev Kumar 88a2391f1d Make AsyncTask static to prevent memory leak in WorkModeSwitch class
Bug: 112163931
Test: Manual testing
Change-Id: I17d0cb871103693d9e901758fba2abb2b73874fb
2018-08-03 12:16:10 -07:00
Android Build Merger (Role) dc26977a26 [automerger] Use clear-all recent tasks call am: 68df758665
Change-Id: Ic8bcbef8d72e2ca48a2d6ffe4c0d7d40f2fba37c
2018-08-03 18:15:53 +00:00
Winson Chung 68df758665 Use clear-all recent tasks call
Bug: 80471073
Change-Id: Ibce9d521ba8d3903ff1f2fbdabfd391b15630bd7
2018-08-03 11:15:33 -07:00
Vadim Tryshev 7acde48955 Enabling more checks in TAPL tests.
Hiding workspace from tests when in AllApps or Overview.

Also, we don’t need workspace_page_container.

Bug: 110103162
Test: Running TaplTests suite
Change-Id: I10875a1ce5d41a015c63034160676578f52d2e98
2018-08-03 10:29:36 -07:00
TreeHugger Robot 7f63682742 Merge "Adding AOSP into the tapl library name." into ub-launcher3-master 2018-08-03 02:10:06 +00:00
TreeHugger Robot e98aab058e Merge "Fixing scrolling up in App Apps." into ub-launcher3-master 2018-08-02 22:58:25 +00:00
Jonathan Miranda d9d4b5b2dc Merge changes from topic "am-b9751869-5607-4cac-8442-b1dba848150a" into ub-launcher3-master
* changes:
  [automerger] Update launcher grid for tablet devices. am: 5eacbb7fc1
  Update launcher grid for tablet devices.
2018-08-02 22:16:06 +00:00
Sunny Goyal 9331521b7d Merge "Exposing some private methods to easily customize widgets popup" into ub-launcher3-master 2018-08-02 21:55:52 +00:00
TreeHugger Robot ce15b325e8 Merge "Retiring some feature flags" into ub-launcher3-master 2018-08-02 21:48:54 +00:00