Commit Graph

17632 Commits

Author SHA1 Message Date
Hyunyoung Song b8137d0e00 Remove launcher dependency inside LauncherIcons
Bug: 115891474

Change-Id: Ie05d005ee3f8a10ebae35f8cf72b4f255a305667
2018-10-17 10:20:20 -07:00
Tony Wickham 5c5c118c48 Add AllAppsRow plugin interface
Bug: 115877296
Change-Id: I750941f220d08ca9ee14067253253f6d81417101
2018-10-16 17:22:09 -07:00
Bill Yi 7b4575107d Import translations. DO NOT MERGE
Change-Id: Ibd9387c2cc872963f84078960e09b9bccfdfcbdc
Auto-generated-cl: translation import
2018-10-16 17:16:15 -07:00
TreeHugger Robot 55ba0dcaaf Merge "Adding some extra logging around draglayer alpha" into ub-launcher3-master 2018-10-16 20:18:11 +00:00
Tracy Zhou dbccb545b5 Merge "Apply animation seen to onStateSetImmediately." into ub-launcher3-master 2018-10-16 19:03:51 +00:00
Tracy Zhou ff66e3a71f Apply animation seen to onStateSetImmediately.
Sometimes onStateSetImmediately gets called upon swipe up, especially when the phone just get unlocked.

Will add a test following this change.

Change-Id: I2d7117ae919663385b300433eceb063af09a5431
BUG: 113629419
Test: Manual
2018-10-16 18:38:54 +00:00
Sunny Goyal ba7dba3983 Fixing state not set properly when configuration changes
and remote animation callback comes after threshold is crossed

The transition length is updated when removeAnimations is received.
If the gesture delta is crossed before that, we were ending up in
long-swipe mode as due to an incomplete check.

Bug: 117549010
Change-Id: If5471c538ac51b84f176a1fad42112e84046da63
2018-10-15 15:31:10 -07:00
TreeHugger Robot ee11f2cf01 Merge "Make flags UI available on release build of launcher" into ub-launcher3-master 2018-10-15 21:38:02 +00:00
Ryan Lothian fa530cd23f Make flags UI available on release build of launcher
The UI will only be shown on eng/userdebug platform builds.

Bug: 117223984
Change-Id: I27843f2d856a4a19f3fe53c4d306606eaa5714a2
2018-10-15 17:24:48 -04:00
Vadim Tryshev 2ccdd08ad1 Merge "Supporting OOP tests" into ub-launcher3-master 2018-10-15 20:12:45 +00:00
Sunny Goyal cb2c505917 Adding some extra logging around draglayer alpha
Bug: 116853349
Change-Id: I8b7ddbfdd74ea422380097e62bea86e160c1651f
2018-10-15 12:30:47 -07:00
TreeHugger Robot cf7715511e Merge "Adding keyboard handling to QsbHostView similar to a normal appwidget view" into ub-launcher3-master 2018-10-15 18:10:32 +00:00
Sunny Goyal c604a10551 Adding keyboard handling to QsbHostView similar to a normal appwidget view
Bug: 116842846
Change-Id: Ibab2dc1793561998f81710301d9ce0ca3d77e7b4
2018-10-15 11:00:28 -07:00
Winson Chung 0ac0be2e4f Merge "Fix issue with side pages being visible momentarily when swiping up" into ub-launcher3-master 2018-10-15 17:31:57 +00:00
TreeHugger Robot 367f8f2e2d Merge "Fixing wrong index passed when highlighting a preference during scroll" into ub-launcher3-master 2018-10-13 02:13:43 +00:00
Vadim Tryshev 34b6f9f106 Supporting OOP tests
AbstractLauncherUiTest was modified to compile and work both in- and
out- of proc.

Bug: 113056917
Test: was in Nexus branch
2018-10-13 01:13:45 +00:00
Sunny Goyal 570dac8123 Fixing wrong index passed when highlighting a preference during scroll
Bug: 117656931
Change-Id: I518ac7a309774cb91b64433ccece2b9f272639db
2018-10-12 15:43:12 -07:00
Winson Chung 7f96440ee0 Fix issue with side pages being visible momentarily when swiping up
- Apply the initial scale to overview while it is in the backround app
  state to ensure the side pages are positioned accordingly.  Since this
  affects the computation of the target rects for the overview
  animation, also ensure that we calculate those with the final target
  overview scale applied.

Bug: 117439562
Change-Id: I5e00cf1683e31b22cf937b966d52f8cbe745aaba
2018-10-12 14:46:13 -07:00
TreeHugger Robot 9ccff14b53 Merge "Remove unused NO_ALL_APPS_ICON flag" into ub-launcher3-master 2018-10-12 18:58:50 +00:00
Ryan Lothian f2e8ddaf79 Remove unused NO_ALL_APPS_ICON flag
Change-Id: I2286121d8e396acc4afe76c77ef99abd6154a866
2018-10-12 14:45:35 -04:00
TreeHugger Robot 0e62132923 Merge "Fixing BindWidgetTest failing on Launcher3" into ub-launcher3-master 2018-10-11 23:15:18 +00:00
Winson Chung 181f9865ca Merge "Reduce extraneous loading of task snapshots/icons" into ub-launcher3-master 2018-10-11 23:09:42 +00:00
Sunny Goyal 4470344529 Fixing BindWidgetTest failing on Launcher3
Bug: 117616326
Change-Id: I3d08defc735498305cf982b214f6c0fae1508bd9
2018-10-11 16:06:52 -07:00
TreeHugger Robot 7fad0d54ca Merge "Fixing overview package name chech in TAPL" into ub-launcher3-master 2018-10-11 21:33:16 +00:00
TreeHugger Robot e0c16831a8 Merge "Fixing dead lock in loading icon for recents" into ub-launcher3-master 2018-10-11 21:33:14 +00:00
Sunny Goyal 719f58b23f Fixing dead lock in loading icon for recents
> getBitmapInfo() is called on background thead which blocks
  on the main thread to get InvariantDeviceProfile
> getDefaultIcon() can be called on the main thread, which
  would get blocked on a previous call of getBitmapInfo()

Bug: 117588621
Change-Id: I6549398c7e0a49284fe59950965495074ab8cdd0
2018-10-11 13:59:20 -07:00
Sunny Goyal 897931a56a Fixing overview package name chech in TAPL
Bug: 117568664
Change-Id: Icac29b4c2c600b90aa21d6db0a7a81403eb3c785
2018-10-11 13:41:27 -07:00
Winson Chung 4292c3038b Reduce extraneous loading of task snapshots/icons
- Skip handling loading visible task data after resetting overview, we
  currently keep the tasks bound to their task views (some calls are not
  synchronous with the lifecycle of recents, can be changed later), so
  the next call to loadVisibleTasks before the tasks have been loaded would
  load snapshots for old tasks
- Skip loading tasks if the previously requested load plan is still valid,
  this can happen because setCurrentTask() will be called multiple times
  during swipe up

Bug: 117603579
Change-Id: Ie58ded14dedbb3934d08163ca7939d89310c3ecf
2018-10-11 12:48:16 -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
Sunny Goyal 4548a7d48d Disabling proguard on Launcher3 as it is a test target
Bug: 117527405
Change-Id: I4d32cf060eebaa0d8efe4f0a3a5c924eadcffa4a
2018-10-10 10:03:02 -07:00
Vadim Tryshev 514cd27850 Merge "Improving tests to fix testBindNormalWidget_withoutConfig, and beyond" into ub-launcher3-master 2018-10-10 02:03:39 +00:00
Vadim Tryshev 016ca90736 Merge "Keep hunting down flakes in testOpenCloseMessagesApp" into ub-launcher3-master 2018-10-10 02:02:31 +00:00
Vadim Tryshev 14c6c8cee4 Improving tests to fix testBindNormalWidget_withoutConfig, and beyond
1. Make waitXXX methods fail if the condition diesn’t turn true.
2. Waiting for loading to complete in tearDown instead of reloading the
 model
3. Avoiding waiting for load-complete where loading didn’t start
4. Disabling last test in AddConfigWidgetTest
5. Waiting for loading to complete inside setupAndVerifyContents(), not
 outside
6. Unifying how we wait for loader to complete
7. Adding more logging

Bug: 117332845
Test: running all Nexus tests
Change-Id: I3070e1ac2b9161179cc3e0800b0cd8162807389a
2018-10-09 18:47:42 -07:00
TreeHugger Robot 02e900c3c9 Merge "Adding tests for fallback recents when a 3rd party launcher is installed" into ub-launcher3-master 2018-10-09 21:32:19 +00:00
Sunny Goyal 4ed58d6c03 Adding tests for fallback recents when a 3rd party launcher is installed
Change-Id: I1d4da13cc779f49832008b12b9628d01631faffe
2018-10-09 14:25:01 -07:00
Vadim Tryshev 2d5713634e Ignoring more tests
Bug: 117106893
Test: will see on TAP
Change-Id: Ic031cc6756473552fc11186f666bcb9debfcecb5
2018-10-09 10:31:33 -07:00
Vadim Tryshev 61d8afc628 Keep hunting down flakes in testOpenCloseMessagesApp
More logging + removing a deprecated method.

Bug: 110103162
Test: TaplTests
Change-Id: Icdf6e297b09d73fcadb1fbe82f80d980280d43c8
2018-10-08 17:15:34 -07:00
TreeHugger Robot 9720452363 Merge "Converting long item IDs to int" into ub-launcher3-master 2018-10-08 23:27:27 +00:00
Vadim Tryshev b769edec46 Ignoring more tests
Bug: 117106893
Test: will see on TAP
Change-Id: I992edaff5e40e8c16188033b5cbda6b0228fc2b6
2018-10-08 16:05:11 -07:00
Sunny Goyal efb7e84242 Converting long item IDs to int
> Items ids were already being typecasted to int when being bound on the UI
> Using a consistent type allow better use of platform data-structures
> Adding IntArray and IntSet as a replacement for various Collection classes

Change-Id: Id3c650ed2420c2bfca3bd7671d2b705b56112371
2018-10-08 14:52:39 -07:00
TreeHugger Robot f307b6032e Merge "Groundwork for runtime-toggleable feature flags" into ub-launcher3-master 2018-10-08 17:26:57 +00:00
Ryan Lothian 688e9896fa Groundwork for runtime-toggleable feature flags
This is the first step in adding a flag toggler UI to launcher.
The change migrates a single flag (QSB_ON_FIRST_SCREEN) from a
boolean constant to a boolean method. In future, that will allow
us to return different values at runtime.

Bug: 117223984
Change-Id: I1e62c91dd941b8145166021bc0aa157733e62ea0
2018-10-08 13:17:30 -04:00
Vadim Tryshev c09a12f065 Merge "More temporary logging to diagnose testPendingWidget_autoRestored" into ub-launcher3-master 2018-10-08 17:17:20 +00:00
Bill Yi cd72d37a5f Import translations. DO NOT MERGE
Change-Id: Ibd887507837ddf4ad550f3fd8ae0086982fe1833
Auto-generated-cl: translation import
2018-10-06 18:42:21 -07:00
Vadim Tryshev a7da86e14a More temporary logging to diagnose testPendingWidget_autoRestored
And waiting to loader to finish to improve determinism.

Bug: 117332845
Test: running Launcher
Change-Id: Icdfce969b61f8ceb952a2715037783458da4d4c4
2018-10-05 20:05:34 -07:00
Vadim Tryshev 51146bc7e6 Merge "Adding temporary logging to diagnose testPendingWidget_autoRestored" into ub-launcher3-master 2018-10-06 01:28:00 +00:00
Vadim Tryshev c052e4e68a Adding temporary logging to diagnose testPendingWidget_autoRestored
This test fails

Bug: 117332845
Test: running Launcher
Change-Id: I300c856992b3d1f559c4c31525a45e2c4a960f11
2018-10-05 17:37:01 -07:00
Vadim Tryshev acc9bbef6c Revert "Uncommenting WorkTabTest"
This reverts commit f76ea29772.

Reason for revert: The test now fails on ATP

Change-Id: Ic7bd89e61f4107338bbfaf63628646af427668d3
2018-10-05 21:51:53 +00:00
Vadim Tryshev f76ea29772 Uncommenting WorkTabTest
It started to work locally in condition, I believe, identical to those
on ATP.

Bug: 112899690
Test: adb shell am instrument -e size large -w -r -e debug false com.google.android.apps.nexuslauncher.tests/androidx.test.runner.AndroidJUnitRunner
Change-Id: I2decb2142d15e025402c0c32b7b161dd28d102bb
2018-10-05 13:27:40 -07:00
Vadim Tryshev 4ada2d2cde Resetting loader state after each UI test run
This is to prevent tests from affecting tests running after them.

Bug: 117332845
Test: Ran all tests; will see on TAP
Change-Id: Ie93ef30477eb069c6b4df48c6fceaceb968edaf4
2018-10-05 12:03:17 -07:00