summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Add dummy string to Launcher3Tests resources to fix build error.Hyunyoung Song2015-03-161-0/+21
| | | | | | | | | | | TL;DR;; since ag/656186 which moved the all-makefiles-under call to the bottom of the launcher's Android.mk file, resources for test package will not build without a dummy file. This change is necessary for the test team to continuously run the android tests. b/19566571 Change-Id: I4ff422ac019df4447348d953c5dd606d2a0dcc58
* [key event focus] DPAD navigates to the nearest item on next/previous pageHyunyoung Song2015-03-031-1/+19
| | | | | | | | | | | | | | | | b/19381790 b/16351792 TL;DR;; Previously, when RIGHT is handled on the right most column of the current page or when LEFT is handled on the left most column, the next icon of focus is next page 'first' icon or the previous page 'last icon'. With this change, the row information is preserved when trying to locate an icon to give focus in the next/previous page. Next CL: long awaited unit tests that capture corner cases for different orientation/ device configuration. Change-Id: I5278bed45275b3e4cb39fb698df35f90bb45a415
* [unit tests] Setup instrument target for the launcher3 unit testHyunyoung Song2015-03-023-3/+95
| | | | | | b/19566571 Change-Id: I47da40aa13a3e7c5ec8531e7ef6a9e52f764c565
* [unit tests] Delete stress packageHyunyoung Song2015-03-023-123/+0
| | | | | | | | | b/19566571 TL;DR;; no longer working AND also the one test that is set up is useless to keep. Change-Id: If44457c7bc19a973450edf5aad3e744daf20624a
* Fix launcher3 standalone build.John Spurlock2013-09-181-2/+2
| | | | Change-Id: Ibfe14c5960211916222fc49389b8776be6bf768b
* Launcher2 is now Launcher3.Daniel Sandler2013-06-052-4/+4
| | | | | | | | | | Changes include - moving from com.android.launcher{,2} to com.android.launcher3 - removing wallpapers - new temporary icon Change-Id: I1eabd06059e94a8f3bdf6b620777bd1d2b7c212b
* changing test to use hidden test api annotations.Tsu Chiang Chuang2011-08-053-20/+11
| | | | Change-Id: If1002c80fdfdc87694890215201314e2372bbe4a
* rectify build files.Tsu Chiang Chuang2011-06-171-1/+2
| | | | Change-Id: I138ac7805cb045f960e32193bad95a73cd8b063e
* Adding stress test for launcher2 rotation.Tsu Chiang Chuang2011-05-254-0/+147
Change-Id: I03b7dbdd025af39fc733a91f54633a548225e140