summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Launcher3: Can't search out local app by Chineseyingrenw2017-07-121-0/+4
|\ | | | | | | | | | | am: a9f4bffbfc Change-Id: I1af93ffb397640ce54ee8f1938666db4f0262ea5
| * Launcher3: Can't search out local app by Chineseyingrenw2017-07-121-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Description: Chinese content type is Character.OTHER_LETTER. When key matches,it check the content type. And if type is Character.OTHER_LETTER, it doesn't support search and break. When the content type is Character.OTHER_LETTER, make it work normally. Bug: 63534074 Change-Id: I3713f24c9206fe16a8da2a23e6c90d68079dd533
* | Add tests to SwipeDetector (formerly VerticalPullDetector).Hyunyoung Song2017-07-062-0/+371
|/ | | | Change-Id: I09ab4f22d7204ad806825ab0d6374c2b9616bf39
* Close cursor after use in RestoreDbTaskTest.Rajeev Kumar2017-06-271-5/+2
| | | | Change-Id: I799fe29ecd602141cac61314c087e3154e12b102
* Fixing GridMigrationTask testsSunny Goyal2017-06-221-0/+4
| | | | | Bug: 62907570 Change-Id: Id165e70930025ccf13a1a105acbdc0fb59ee7e32
* Show more shortcuts when last notification is dimissedTony2017-06-151-9/+9
| | | | | | | | | | | | | | | | We currently only show 2 shortcuts when notifications are present, but support up to 4 otherwise. With this change, the hidden shortcuts are added back after dismissing the notifications, instead of only after closing and reopening the container. To ensure the transition is as elegant as possible, we also separated the shortcuts header from the rest of the shortcuts. That way we can reveal the new shortcuts without removing the header (the shortcuts come out from behind the header). Bug: 38036250 Change-Id: Ie9ab35f9be57cec1d5345e9e70e84e09ea52c9fc
* Adding support for loading workspace in the absence of Launcher.Sunny Goyal2017-06-081-12/+7
| | | | | | | | | > LoadWorkspace can be called with a LoaderResult which does not bind anything. > Synchronous bind does not look for a valid page id, and will fallback to the current pageId similar to full load flow Bug: 37616877 Change-Id: If14491dc79c5b85ae1019cc93e4e08759df3387d
* Simplifying logic for managed for icon additionSunny Goyal2017-05-221-1/+6
| | | | | | | | | | | | | | | | | | | | > Checking for duplicate icons before adding new icons For O and above, icon addition is controlled using SessionCommitReceiver. As long as the Launcher is the default app, it will keep adding icons on the homescreen. Apps installed while launcher was not the default homescreen, no icons will be added. For below O, icons are added based on package event. As long as the Launcher process is running, it will keep adding icons on the homescreen. Apps installed while the launcher app was dead, no icons will be added. Bug: 37528649 Bug: 37082950 Bug: 34112546 Change-Id: Ic99501fa476c00474a479f2a36c24614bfa3f4bf
* Adding support for DB downgradeSunny Goyal2017-05-092-0/+198
| | | | | | | | Adding a schema file for handling DB downgrade. This schema file is part of the backup/restore set, and hence is available on a device with lower app version. Bug: 37257575 Change-Id: I69c8ef5f28d5209be6e6679412c7459d4eeda5d0
* Moving apps search related logic into a custom layout fileSunny Goyal2017-05-081-1/+1
| | | | | | | | This will allow derivative projects to easily change the search behavior by simply overriding the xml file Bug: 37616877 Change-Id: Ib8d6a2dab06819a52611e9a3d97c70c5a49bbf97
* resolve merge conflicts of 26b174659 to ub-launcher3-masterTony2017-03-302-2/+2
|\ | | | | | | | | Test: I solemnly swear I tested this conflict resolution. Change-Id: Ifb24f291b096b979044e5c87ec58c24e9c479728
| * Add support for system shortcuts in popup containerTony Wickham2017-03-302-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | - Currently the system shortcuts are just widgets and app info - As shortcuts, they live in ShortcutsItemView - They are populated either as icons only (if there are deep shortcuts) or as icons + text - Widgets are disabled until binding them is complete (we request for them to be bound on long-press now). We should revisit this. Bug: 34940468 Change-Id: Ia51d002c3b3ede87658bdab57abfc3eeca1ed242
* | Merge "De-dupe shortcuts with the same id as the main notification." into ↵Tony Wickham2017-03-271-1/+31
|\| | | | | | | | | | | | | | | ub-launcher3-dorval am: c3dfed43eb Change-Id: I60bbede53d61f117596e90eb3363a4cb5eac7245
| * De-dupe shortcuts with the same id as the main notification.Tony Wickham2017-03-241-1/+31
| | | | | | | | | | | | | | | | | | | | | | - Pass NotificationKeyData, which includes the shortcut id, instead of just the notification key from NotificationListener - Remove the shortcut with the same shortcut id as the first notification, if it has one, in PopupPopulator#sortAndFilterShorcuts() - Add some unit tests Bug: 36571718 Change-Id: I308941b34c525b34686583476e3f82ccb8b7e2d8
* | Adding support for showing the widget preview based on the provided RemoteViewsSunny Goyal2017-03-173-11/+60
|\| | | | | | | | | | | am: c65a0085d7 Change-Id: Iabea96bb74294e2775a08427c17e154020d9bc40
| * Adding support for showing the widget preview based on the provided RemoteViewsSunny Goyal2017-03-173-11/+60
| | | | | | | | | | Bug: 35811129 Change-Id: I336e48cd00cfec2e617ac73bd8a81419b0944aa7
| * Updating test as per API changesSunny Goyal2017-03-071-1/+1
| | | | | | | | Change-Id: I746bf48254ebfcad18426d47c61a54f8a11f5cf8
* | Show promise app icon in All Apps while installation process.Mario Bertschler2017-03-171-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | This CL only modifies the model and is behind a feature flag which per default is set to false. The app icon will appear as a promise icon, it reacts on icon or label changes and the icon will be remove on finishing the installation process. With this CL the progress of the installation process is not visible. Bug: 23952570 Change-Id: I510825d0b0b1b01eb14f7e50f0a2358b0d8b99b5
* | Updating test as per API changesSunny Goyal2017-03-071-1/+1
| | | | | | | | Change-Id: I746bf48254ebfcad18426d47c61a54f8a11f5cf8
* | Merge "Separating the config and flags in different directories so that it ↵TreeHugger Robot2017-03-073-7/+6
|\ \ | | | | | | | | | is easier to override one or the other" into ub-launcher3-master
| * | Separating the config and flags in different directories so thatSunny Goyal2017-03-073-7/+6
| |/ | | | | | | | | | | | | it is easier to override one or the other Bug: 36001650 Change-Id: I713f4f5dbcf902614ce9f6c7a73bdace7bdf1ea0
* / Removing DeferredHandler and using a simple Handler to post callbacksSunny Goyal2017-03-072-8/+7
|/ | | | | | | | | | | | | | DeferredHandler was added when we were posting each icon separately, to prevent starvation. But since then we have moved to binding batct items during bind. Also fixing waitForIdle not waiting the second time. waitForIdle was using a global variable to maintain state, and was not waiting properly when its called the second time before binding deep shortcuts Original Change-Id: I9c1289cb3bfb74f86e53ec7ac6dd76bb39666b2d Change-Id: I9e6b3ae65fbd3aec3a46092efc5249c4525efedf
* Merge "Adding some tests for request pin shortcut/widget flow" into ↵TreeHugger Robot2017-02-2212-70/+575
|\ | | | | | | ub-launcher3-dorval
| * Adding some tests for request pin shortcut/widget flowSunny Goyal2017-02-2212-70/+575
| | | | | | | | | | Bug: 33584624 Change-Id: I49df36f60d2ae071b9d2c77c9c3300e010cd3bb9
* | Simplifying Model data load state managementSunny Goyal2017-02-221-2/+1
|/ | | | | | | | | | | Instead of maintaining 3 different states, each tied to a subset of data, maintaing a single state that represents all the data. Individual subset data is invalidated in rare cases and these invalidates are tightly tied to the UI. This also allows us to add new data to the model, without worring about classifying the data into a subset. Bug: 34112546 Change-Id: Id9cb273de35b79e84a2ef8d6556fcf1e72fb4b75
* Merge "Separating methods for updating the model to a sepatate class." into ↵TreeHugger Robot2017-02-162-8/+8
|\ | | | | | | ub-launcher3-master
| * Separating methods for updating the model to a sepatate class.Sunny Goyal2017-02-162-8/+8
| | | | | | | | | | | | | | Removing static access to model update methods, to allow for better access control and testing Change-Id: I9afe004dbf1b2fe50df422fd28bceea9230a4704
* | Adding minSDK for test targetsSunny Goyal2017-02-152-0/+3
|/ | | | | Bug: 35079440 Change-Id: Ie27eebe7afaed6a80efc43cb41f651e8acabc835
* Merge "Refactor DeepShortcutsContainer to PopupContainerWithArrow" into ↵Tony Wickham2017-01-251-14/+17
|\ | | | | | | ub-launcher3-master
| * Refactor DeepShortcutsContainer to PopupContainerWithArrowTony Wickham2017-01-251-14/+17
| | | | | | | | | | | | | | | | | | | | | | - Also added PopupItemView, which takes animation logic from DeepShortcutView, and which DeepShortcutView now extends. - Renamed ShortcutFilter to PopupPopulator, which has support for new item types (not yet used). Also moved populating logic (e.g. UpdateShortcutChild Runnable) to PopupPopulator. Bug: 32410600 Change-Id: Ib6e444ac7ca99c80ba438801c26e62d9542e0ad9
* | Fixing loadWorkspaceSunny Goyal2017-01-241-1/+2
|/ | | | | | | | > Adding checks on legacy shortcuts > Checking restore status based on package and not componentName Bug: 34123342 Change-Id: I442699e4ebb34ae66aa25c512bfcdc1b4fd5ae2a
* Adding some widget addition flow testsSunny Goyal2017-01-2314-53/+554
| | | | | | | > Added two dummy widget providers: with config and without config > Added tests for verify widget config flow Change-Id: I4577f085abe8f8b82047b644c71cc9065358153a
* Only marking items not already restored as restoreSunny Goyal2017-01-131-1/+2
| | | | | | | > Moving the restore property to LoaderCursor Bug: 34123089 Change-Id: I1f992ef086d65e0b3cf18d3b2cf37a4f254c97d2
* No more LauncherActivityInfoCompatSunny Goyal2017-01-115-10/+10
| | | | | Bug: 32745285 Change-Id: I00f13794d5dc0a2b1fe03ec74de36018f22eb386
* Removing static Context access using LauncherAppStateSunny Goyal2017-01-114-27/+21
| | | | | | | | > This ensures that LauncherAppState is only accessed in the presence of a valid context Bug: 33032833 Change-Id: I955e5cb022f8bd6374681ae6c0720a2666d5b750
* Enforcing background thread when accessing iconCacheDb.Sunny Goyal2017-01-103-6/+17
| | | | | | | | > Moving any icon cache access to background thread > Updating Apps list to avoid loading icons for ignored apps Bug: 21325319 Change-Id: Id72755100f1176ccfcc99249c5e02873cc249a13
* Refactoring some loadWorkspace logic in a separate classSunny Goyal2017-01-101-0/+234
| | | | | Bug: 34112546 Change-Id: I8a43ed1646056aa1957ac3d6ea82018691df6386
* Revert "Build empty test apk until junit dependency issue is sorted out."Hyunyoung Song2017-01-052-5/+8
| | | | | | This reverts commit 4c82c33a64b9f6719a0a1457361362cf70e2c9ac. Change-Id: I39c142e2b0e882245a6928264465578e4ddc12c9
* Removing all compatibility code below LollipopSunny Goyal2016-12-161-5/+2
| | | | | Bug: 32745285 Change-Id: I62971908e3e4402941fab627bbdfd47be64473a3
* No more UserHandleCompatSunny Goyal2016-12-155-14/+15
| | | | | Bug: 32745285 Change-Id: I762fb4e268c1afe48a1860ab12a4ccb3f626aa95
* Ensuring that ShortcutInfo always has an iconSunny Goyal2016-12-131-6/+2
| | | | | | | | | > Making iconBitmap public instead of a getter (similar to AppInfo) > Removing getIcon() which can lead to IO on UI thread > Removing updateIcon and handling the update at the caller Bug: 21325319 Change-Id: I6a49b9043f974e9629ea25e77012d97cc04c0594
* Build empty test apk until junit dependency issue is sorted out.Hyunyoung Song2016-12-081-2/+2
| | | | Change-Id: Ib63a654139e43c433011d0f7b761905426aff24d
* Merge "Moving ShortcutInfo creation in InstallShortcutReceiver to background ↵Sunny Goyal2016-11-301-2/+3
|\ | | | | | | thread" into ub-launcher3-master
| * Moving ShortcutInfo creation in InstallShortcutReceiver to background threadSunny Goyal2016-11-301-2/+3
| | | | | | | | | | | | | | > Creating shortcut info requires iconCache access Bug: 21325319 Change-Id: I3317d8b6824aa05b836f3ed3626f169d4d34f783
* | Merge "Adding a utility class to enforce that icons are always flattened on ↵Sunny Goyal2016-11-211-4/+5
|\ \ | |/ |/| | | the background thread." into ub-launcher3-master
| * Adding a utility class to enforce that icons are always flattened onSunny Goyal2016-11-191-4/+5
| | | | | | | | | | | | | | the background thread. Bug: 21325319 Change-Id: I4d0f02557cdbf70cfa86750ac047faf2917e39bf
* | Add ShortcutsLaunchTest and ShortcutsToHomeTest.Tony Wickham2016-11-143-1/+143
| | | | | | | | | | | | | | | | | | - ShortcutsLaunchTest verifies that launching shortcut from the deep shortcuts container works. - ShortcutsToHomeTest verifies that shortcuts can be dragged from the deep shortcuts container. Change-Id: I6919b69d4ea1c9e0f13a8f236266745c12ef0715
* | Fix drag and drop test by moving a bit if there are shortcuts.Tony Wickham2016-11-143-11/+33
|/ | | | Change-Id: Icd023f5d095610b6d1aadbf455d068ce7d700768
* Moving various runnables in LauncherModel to individual tasksSunny Goyal2016-11-097-1/+594
| | | | | | > Adding tests for some of the runnable Change-Id: I1a315d38878857df3371f0e69d622a41fc3b081a
* Fixing text search where a word starting with lower case was not being matchedSunny Goyal2016-10-201-0/+4
|\ | | | | | | | | | | am: 28a64381b6 Change-Id: Ib5158d42219478c97d6bec5049e3354ee1087094