Commit Graph

17472 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
Vadim Tryshev 2ccdd08ad1 Merge "Supporting OOP tests" into ub-launcher3-master 2018-10-15 20:12:45 +00: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
TreeHugger Robot 88c289eae3 Merge "Enabling "in test harness" flag with a direct call" into ub-launcher3-master 2018-10-04 23:45:18 +00:00
Vadim Tryshev c295098e18 Enabling "in test harness" flag with a direct call
This allows running in-proc tests without enabling test harness on
Android and restarting Launcher.

Bug: 110103162
Test: TaplTests
Change-Id: Ife44eff4760eb1349a10847efe2c1f27643bf146
2018-10-04 16:33:45 -07:00
TreeHugger Robot bd5a2dbb4f Merge "Fix issue where pointer id was being used to set as action index" into ub-launcher3-master 2018-10-04 20:20:40 +00:00
Hyunyoung Song 6b82a0843e Fix issue where pointer id was being used to set as action index
Bug: 117157432
Bug: 116744159

Context: In vary rare case, Pointer id can be higher than
MotionEvent.getPointerCount. When I was fabricating ACTION_POINTER_DOWN
event, I was using pointer id instead of index to create MotionEvent.
This resulted in stack trace as seen in the bug.

Change-Id: I802c2a45a274f0dda5984f1d266334fc8b6b0bea
2018-10-04 12:41:00 -07:00
TreeHugger Robot bb24884801 Merge "Disable ShortcutsLaunchTest.testAppLauncher*" into ub-launcher3-master 2018-10-04 19:30:51 +00:00
Vadim Tryshev 5ec12a5d3a Disable ShortcutsLaunchTest.testAppLauncher*
Bug: 117106893
Test: will see on ATP
Change-Id: I2a38ef157b1e2efd4a433618c0570443ca34bdfb
2018-10-04 11:59:22 -07:00
TreeHugger Robot 18cc858445 Merge "Fix clipping issue on adaptive icons" into ub-launcher3-master 2018-10-04 17:47:52 +00:00
Sunny Goyal b4e287a77c Only considering tap on recents view if finger didn't move
Bug: 114450749
Change-Id: Id99fd8c024140025b14973205f9080daa86db522
2018-10-04 10:01:08 -07:00
TreeHugger Robot 674e947979 Merge "Cancelling previous touch interaction when a new touch starts" into ub-launcher3-master 2018-10-03 23:35:27 +00:00