summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Rebrand from Launcher3 to TrebuchetArne Coucheron2017-07-021-2/+4
| | | | Change-Id: If3af3a32db2281372dc1beb47e13a2ce0dc380af
* Fixing text search where a word starting with lower case wasSunny Goyal2016-10-191-0/+4
| | | | | | | not being matched Bug: 32249413 Change-Id: I0f5e24052759a734fe0df3bd3d0bf2e7ef7f2713
* Adding support for searching word segments when camelcase is used in the titleSunny Goyal2016-09-091-0/+78
| | | | | Bug: 30880421 Change-Id: If642d24408fe0e80b5a0dd9a2a57d2f3c2d92ea9
* Bug fix in Alarm where it was not getting called correctly if theSunny Goyal2016-08-301-0/+9
| | | | | | | | | | | new timeout was set that was smaller than the previously set timeout > Using uptimeMillis in Alarm to avoid errors due to system time changes > Adding an extra check in Wait in case Thread.sleep eats up all the timeout Change-Id: Id1fac5e8fdb81a0c3c7a6a5e50586b2a2f180d06
* Build fix: Updating SDK for testsSunny Goyal2016-08-011-1/+1
| | | | Change-Id: I1377dce808335f65eb0799b7053c84853f57980a
* Filter shortcuts down to 4 if there are more.Tony Wickham2016-07-291-0/+139
| | | | | | | | | | | | - We take the first 4 in sorted order, except we remove up to 2 static shortcuts to make room for dynamic ones if they exist. - Added ShortcutFilterTest with testSortAndFilterShortcuts(). This asserts that the filtered list is sorted and has the expected number of static and dynamic shortcuts based on inputs with various amounts of each. Bug: 28980830 Change-Id: I832b6b21144f17c74bb8b90a840d6620e99911b8
* Merge "Adding logic to pull in workspace data from another Launcher3 based ↵Sunny Goyal2016-07-131-1/+53
|\ | | | | | | provider. This allows OEMs to keep the user's homescreen intact while changing the default home app package." into ub-launcher3-calgary
| * Adding logic to pull in workspace data from another Launcher3 basedSunny Goyal2016-07-091-1/+53
| | | | | | | | | | | | | | | | provider. This allows OEMs to keep the user's homescreen intact while changing the default home app package. Bug: 28536314 Change-Id: Ibebfd7dd33aa2cbd9ca28d2d611dd0a4a5971444
* | Merge "Defining the list of predefined device profiles in xml. This allows ↵Sunny Goyal2016-07-111-1/+1
|\ \ | |/ |/| | | the profiles to be easily customized by derivatives." into ub-launcher3-calgary
| * Defining the list of predefined device profiles in xml.Sunny Goyal2016-07-071-1/+1
| | | | | | | | | | | | This allows the profiles to be easily customized by derivatives. Change-Id: Iaec2b7a0eda34581c8e48b7dc44817013632dabe
* | Build fix.Sunny Goyal2016-07-091-3/+2
| | | | | | | | | | | | Missed some traces of key-value backup Change-Id: Ifda94aa27aa53625bfb7ca173c6750c1b2433669
* | Removing Key-Value pair backup logic as Launcher now uses full-data backupSunny Goyal2016-06-231-4/+4
|/ | | | Change-Id: I3bbaec2b33afe8c1da3ca1468c7c733cc3194604
* Merge "Fix LauncherInstrumentationTestCase#openAllApps() method. b/29535532" ↵Hyunyoung Song2016-06-221-2/+9
|\ | | | | | | into ub-launcher3-calgary
| * Fix LauncherInstrumentationTestCase#openAllApps() method.Hyunyoung Song2016-06-221-2/+9
| | | | | | | | | | | | b/29535532 Change-Id: Iebf20c2fe66ad244b04658b15ade21d579fb2c12
* | Fixing bug in GridSizeMigrationTask, where it was not accounting forSunny Goyal2016-06-221-4/+15
|/ | | | | | | an extra space when there is no all-apps icon Bug: 29569843 Change-Id: Ib768f0d069aed413bd8f4c2aa86ab1d3d657680e
* Adding a flag (enabled by default) to remove the all-apps button.Sunny Goyal2016-06-171-2/+4
| | | | | | | All apps can still be opened by clicking the caret. Bug: 29398447 Change-Id: I61f1b05cea83a0a49d7cc16c518c5419618ba779
* Executing the DB migration during startup instead of restore.Sunny Goyal2016-06-082-6/+6
| | | | | | | This allows proper execution of DB.onUpgrade task if the app updates after the restore Change-Id: I4c40167b30e1d7040b3a38be70d834f7b215e540
* Removing the SearchDropTarget bar as it no longer contains the QSBSunny Goyal2016-06-061-71/+0
| | | | | | | | | | | | > Renaming it to simply DropTargetBar > Moving AppInfo to the top bar as well > The workspace pages will extend to the top edge (minus some padding). Since the QSB is no longer displayed on top of every page, there is no reason to reserve the space. > In spring-loaded mode, the workspace cell layout will scale enough to make room for the drop target bar at the top Change-Id: I2baf607310335dd576c9d9fcbb75ab708f47ac03
* Moving the QSB to the workspace grid.Sunny Goyal2016-05-272-11/+70
| | | | | | | | | | | | The QSB will only be resent on the first screen of the workspace covering the full width of the first row. If will not be movable. The first screen of the workspace will not be movable. The searchDropTargetBar no longer contains the QSB (it can be renamed in aseparate cl). Refactoring all QSB related logic by moving it to a custom view inflated only using xml. Change-Id: Icb4fd6eb855df1af15f685961c38351bf4fd4f4a
* Fixing commentsSunny Goyal2016-05-271-1/+1
| | | | Change-Id: I412fef8e07d91548beb8a5431d6aa86611237f69
* Merge "Adding some UI tests > Launcher app from all-apps > Drag icon to ↵Sunny Goyal2016-05-279-204/+535
|\ | | | | | | all-apps and launch it > Add widget from widget tray" into ub-launcher3-calgary
| * Adding some UI testsSunny Goyal2016-05-269-204/+535
| | | | | | | | | | | | | | | | > Launcher app from all-apps > Drag icon to all-apps and launch it > Add widget from widget tray Change-Id: I6bd6128a7b560a23a887d1fb40bfcda25b9b02e7
* | Refactoring out grid occupancy management in a separate classSunny Goyal2016-05-272-1/+62
|/ | | | Change-Id: I37a830c0f2eb0a0dd4f5fc78fa29127cb18cb3c2
* build fixSunny Goyal2016-05-101-1/+1
| | | | Change-Id: Ib31b7b4efa96897e7ea04412a9deae14a432b6c0
* Adding full backup handler for launcher3Sunny Goyal2016-05-101-0/+74
| | | | | | Bug: 28302573 Change-Id: If0889a3b00b88b134b19d7f790159dfafdcdb004
* Removing LauncherProvider dependency in DatabaseHelerSunny Goyal2016-05-101-3/+9
| | | | | | This will allow DatabaseHeler to easily be moved to an independent class Change-Id: I9a3d5d3380ed0af246d7a01553a492467c3096b0
* Adding a utility class for persistant logging.Sunny Goyal2016-05-091-0/+77
| | | | | | | The logs are kept for at max 48 hours. It uses two log files and switches between the two based on the day of the year. Change-Id: I9a99499b3445a62f29f62a5cd13db20b1783bcd3
* Add test size annotation.Hyunyoung Song2016-05-054-0/+8
| | | | | | | | | | | | | | Rational/Background: @MediumTest: An integration or functional test that validates the interaction of one or more application modules on a single machine. (should run under 1 sec: Usually get killed after 5 min) @LargeTest: A system test, integration test, or end-to-end test that verifies that a complete application works and accounts for the behavior of external subsystems. (Usually get killed after 15 min) Change-Id: I8b668af3d2ca09c43ad45c6fd72b1d0d80c6b7d3
* Fixing broken instrumentation tests when run from command lineSunny Goyal2016-03-185-28/+8
| | | | Change-Id: I923cdbaaaf18c9b765d1e70122b92cd2c1621e06
* Adding UI tests for various bind widget flowsSunny Goyal2016-03-151-0/+428
| | | | Change-Id: I634302051886baee6b6424f69bc95db860b4823e
* Fixing broken testQsbTallHeight for some devicesSunny Goyal2016-02-251-1/+3
| | | | Change-Id: I0f4f11847602f4767051543ff648c5c32a82961a
* resolve merge conflicts of b9759d399b to ub-launcher3-calgary.Tony Wickham2016-02-011-13/+8
|\ | | | | | | Change-Id: I66230c15e5eaeef316d4e2f14b85c6ff1b6e977d
| * Merge "Add extra space for the search bar." into ub-launcher3-burnaby-polishTony Wickham2016-02-011-13/+8
| |\
| | * Add extra space for the search bar.Tony Wickham2016-02-011-13/+8
| | | | | | | | | | | | | | | | | | Also fixed a broken test. Change-Id: I1c270e69617528ea30f0e26a2101673e9b9fa63c
* | | Merge "Fixing Test builds" into ub-launcher3-burnaby-polishSunny Goyal2016-01-291-7/+3
|\| | | | | | | | | | | | | | | | | | | | am: f7f8cf5743 * commit 'f7f8cf5743810a614079ff7d4202dd0c9cd969ed': Fixing Test builds
| * | Fixing Test buildsSunny Goyal2016-01-261-7/+3
| |/ | | | | | | Change-Id: I8524ebc124270feb2e6e69e17ba0e0c6301bce18
* | Fix broken tests.Tony Wickham2016-01-222-3/+8
|\| | | | | | | | | | | | | am: a5cfbe8075 * commit 'a5cfbe807503bf4c2d5853f700191fef34fb3713': Fix broken tests.
| * Fix broken tests.Tony Wickham2016-01-222-3/+8
| | | | | | | | | | | | | | | | - Missing a comma in one of the focus logic test matrices - Disable QuickAddwidgetTest, because it isn't that useful and is flaky by nature. Change-Id: Ia85fa578ea563ca525419b68ffcf90cfef8f86d0
* | Adding support for migrating the grid between any two valid screens sizes.Sunny Goyal2016-01-202-0/+361
|/ | | | | | | | The grid is migrated in steps where each step consists of at max one column change and at max one row change. Adding some unit tests for GridMigrationLogic Bug: 25958224 Change-Id: Ie54e872ea0925cc4c463edbba0a7201d62b373a0
* Added an instrumentation test case for quickly adding a widget.Tony2015-12-041-0/+81
| | | | | | | This would have caught the race condition bugs that caused the "specified child already has a parent" IllegalStateException (bug 23896857). Change-Id: I3b408d21113237b0c89a0a7161f504596212bd58
* Cleanup keyboard code.Tony Wickham2015-12-041-20/+32
| | | | | | | | | | | | | This should be the last keyboard CL. - Fix bug: couldn't focus All Apps button in some cases when the All Apps column was skipped over. Also added test case for this. - Stop explicitly passing countX and countY to handleKeyEvent, as these had to match the matrix dimensions anyways. - Rename createSparseMatrix() - there were 3 methods of the same name, but all had different purposes. This is confusing both from a readability standpoint and also when looking at stack traces. Change-Id: I08ba8411674fcea43a608856c114dee8dbd22398
* Make sure pages are always accessible via left/right arrow keys.Tony Wickham2015-12-031-1/+1
| | | | | | | | | | | | | | - Handle NextPageFirstItem as first focusable item in reading order - Handle PreviousPageLastItem as last focusable item in reading order - Check the hotseat after the workspace in both cases above - Dpad horizontal navigation (left/right) uses these as a last resort (Rule3) to guarantee an item takes focus if a page exists Note that it is necessary to search for a focusable item because widgets are not yet focusable. Bug: 25591057 Change-Id: I953648bd76c657d660a38427fdd4108bf9963c23
* Add special column for All Apps button in FocusLogic's sparse matrix.Tony Wickham2015-11-101-0/+150
| | | | | | | | | | | | | | | | | | | | | | The All Apps button creates a number of edge cases, mainly because it causes the hotseat to sometimes have an extra column than the workspace. Previously, we sort of swept these problems under the rug by simply ignoring the All Apps button if other icons were present in the hotseat, with the assumption that those other icons should get focus instead of the All Apps button. (If possible, we want to stay in the same column when moving from the workspace to the hotseat.) But this doesn't always work, as in the attached bug where the hotseat doesn't get focus at all when the All Apps button is an obvious candidate for it. By adding a specialized column in the focus matrix for the All Apps button, we ensure that moving down to the hotseat stays within the original column when possible, while also allowing the focus to switch to the All Apps button if appropriate. Furthermore, we take care to skip over the All Apps column when necessary in order to maintain all previous functionality. Bug: 25590522 Change-Id: I5d6a8ee69de8834314c4689246fe7d54329b2eef
* Added unit tests for b/25434120 regression.Tony Wickham2015-11-061-0/+35
| | | | Change-Id: I55b10274c4bb63ec6fd3138236e78a04e3eac91a
* Setting correct height for search bar widget options bundle.Tony Wickham2015-10-291-4/+71
| | | | | | | | | | - Seperate search bar height from its top and bottom paddings - Report this height plus 8dps top and bottom for the widget options - Use a separate bottom padding to adjust spacing between QSB and the workspace - Add tests to verify the height of the search bar in both normal and tall modes (ran on Nexus 6, 7, and 10) Change-Id: Ia7557785d1b38194eee869d0460456e8f33447d5
* Merge "Refactoring getPreferenceKey method" into ub-launcher3-burnaby-polishSunny Goyal2015-10-201-2/+1
|\
| * Refactoring getPreferenceKey methodSunny Goyal2015-10-201-2/+1
| | | | | | | | | | | | This method was returnning a constant and getting inlined by proguard. Change-Id: I87348e25b21483adc1b27d16f99dec4b73205701
* | Using UiSelector instead of BySelectorSunny Goyal2015-10-191-6/+8
|/ | | | Change-Id: Ie912cc7291a2533f6686bdb34e108be15ce244ac
* Adding tests for rotation preferenceSunny Goyal2015-10-163-4/+96
| | | | | | Updating the gradle file to run tests directly from AndroidStudio Change-Id: Iac23dfc6f995477f2406071fbfab3a16ee58ce6f
* Start adding unit tests for the invariant device profile / RefactorHyunyoung Song2015-05-281-0/+123
| | | | | | | | | | - removed redundant code to sort the device profiles - removed DeviceProfileQuery class - Added a helper method inside the test to easily generate interpolation graph looks like: https://docs.google.com/a/google.com/spreadsheets/d/1a1fdemrOqIDixiql77h0anWzUD3GlYfGsbP2FfIhyPM/edit?usp=sharing Change-Id: Ia4c54a8d59a049c418c08d1b766f07ac6e1d0944