summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* We shall call it Trebuchetcretin452018-01-191-2/+4
| | | | | | | | | | | | | | | | | | Change-Id: I068d7e025bb01fd4216be3ffcf3cdfd3285be9da Trebuchet: lineage launcher icon Change-Id: Ibf4e1add2f9dc88907430070bbbf74751dec2070 Rename permissions as suggested in AndroidManifest * Avoid conflicts with different launchers Change-Id: I0560c2ea1a82cb4f58074d31ca6f12518ac09ea7 Finalize rebranding from Launcher3 to Trebuchet Change-Id: If3af3a32db2281372dc1beb47e13a2ce0dc380af
* Merge "Merge branch 'ub-launcher3-dorval-polish2'" into oc-mr1-devTreeHugger Robot2017-09-192-1/+150
|\
| * Merge branch 'ub-launcher3-dorval-polish2'Jon Miranda2017-09-182-1/+150
| |\ | | | | | | | | | | | | | | | Bug: 64937210 Test: flashed img Change-Id: Id6a05e7be885bf5c53a41eab2573c6ae3a44dc55
| | * WallpaperManagerCompat should target correct platformHyunyoung Song2017-09-111-1/+1
| | | | | | | | | | | | | | | | | | | | | Also replace Utilities.isAtLeastO() to static final constant. Bug: 65544683 Change-Id: I39fbea66939d72c31702748716c4e65b4f9bee6a
| | * Remove flicker when multiple apps are added/removed/updated on widget trayHyunyoung Song2017-08-231-0/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 36718342 1.The flicker was also happening partially because notifyWidgetProviderChanged callback also made the entire widget list to update in addition to packageManager update. 2. Now that adapter calls notifyItemInserted, Removed, the recycler view uses it's internal animation to elegantly move items or insert them. (added benefit!) 3. Added tests for WidgetsListAdapterTest $ adb shell am instrument -w -e class com.android.launcher3.widget.WidgetsListAdapterTest com.google.android.apps.nexuslauncher.tests/android.support.test.runner.AndroidJUnitRunner com.android.launcher3.widget.WidgetsListAdapterTest:. Time: 0.337 OK (6 test) Change-Id: I0818d546532631bf889fae560118decff64ec5a4 Signed-off-by: Hyunyoung Song <hyunyoungs@google.com>
* | | Ensure no diffs b/w oc-mr1-dev and ub-launcher3-dorval-polish2.Jon Miranda2017-08-291-5/+1
|/ / | | | | | | | | | | | | | | | | This should ensure that all future code drops will be able to merge cleanly. Bug: 64937210 Test: Manual test Change-Id: I4f7952d0e979402e120b29dc501ac7fff3de2879
* | merged ub-launcher3-dorval-polish2, and resolved conflictsJon Miranda2017-08-2217-564/+499
|\| | | | | | | | | | | | | | | | | | | | | Conflicts: res/values-be/strings.xml res/values-et/strings.xml res/values-ms/strings.xml Bug: 64937210 Test: flashed img Change-Id: I28557d652cc5a547f8b94a60a41f381a5af2fa84
| * Merge "Remove LAUNCHER3_ALL_APPS_PULL_UP Bug: 63712253 Verified: all apps ↵TreeHugger Robot2017-08-211-1/+1
| |\ | | | | | | | | | transition fully functional Verified: NO_ALL_APPS_ICON = false case also works." into ub-launcher3-dorval-polish2
| | * Remove LAUNCHER3_ALL_APPS_PULL_UPHyunyoung Song2017-08-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 63712253 Verified: all apps transition fully functional Verified: NO_ALL_APPS_ICON = false case also works. Change-Id: I779fb7bd4927c5923da3f85590d912dbbbcdef4d
| * | Fixing duplicate/inconsistent definitions for model and callbacksSunny Goyal2017-08-171-1/+1
| |/ | | | | | | | | | | | | | | > 2 implementations for filtering workspace items > 2 implementations for binding widgets > duplicate logic for add and update appInfo Change-Id: Id68a49926af398478deca8ac85ab1f22341a9449
| * Fixing various testsSunny Goyal2017-07-3117-563/+498
| | | | | | | | | | | | | | | | | | | | > Migrating UI tests to AndroidJUnit4 for better support > Removing obsolete RotationPreference test > Fixing broken FileLogTest and AndroidJUnit4 > Removing InvariantDeviceProfileTest as it does not work well with resource overlays Change-Id: I0abb1df6765d76d86c1c6c84e8ac35eb9a6bcdaa
* | merged ub-launcher3-dorval-polish2, and resolved conflictsAdam Cohen2017-07-305-6/+414
|\| | | | | | | Change-Id: Id46c5c59762243403ae15cf951e9723e15bad4e0
| * Merge "Adding A feature flag to disable widgets and a corresponding build ↵TreeHugger Robot2017-07-241-1/+2
| |\ | | | | | | | | | target Launcher3Go without widgets support" into ub-launcher3-dorval-polish2
| | * Adding A feature flag to disable widgets and a corresponding buildSunny Goyal2017-07-211-1/+2
| | | | | | | | | | | | | | | | | | | | | target Launcher3Go without widgets support Bug: 62353159 Change-Id: Ia03d2235a9bcf75f9ef191924f81630e63a2c684
| * | Using common fling detection logic for notification and all-appsSunny Goyal2017-07-201-7/+26
| |/ | | | | | | | | | | | | | | > Refactoring SwipeDetector to both allow vertical and horizontal swipes > Using SwipeDetector and common overscroll effect for notification swipes instead of a separate logic Change-Id: Ib706ee179811ade59ddb68184e1c202365d147c4
| * Using collator for string matching am: 05d2df1678Sunny Goyal2017-07-181-0/+20
| |\ | | | | | | | | | Change-Id: I0e25b3d84cac2d09491aa87c7dafb2c24e12d556
| | * Using collator for string matchingSunny Goyal2017-07-181-0/+20
| | | | | | | | | | | | | | | | | | | | | This provides a better matching for non-latin characters on N and above Bug: 63763127 Change-Id: I220487d242ff547311ddd13e7af380a7e47eec0e
| | * 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
| * | Launcher3: Can't search out local app by Chineseyingrenw2017-07-181-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 (cherry picked from commit a9f4bffbfc9802ca86a813de2bccea9572f710af)
| * | 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
* | Merge "Launcher3: Can't search out local app by Chinese" am: 7c35c64a9d am: ↵Sunny Goyal2017-07-121-0/+4
|\ \ | | | | | | | | | | | | | | | | | | | | | fa5511133a am: 788000b0ec am: 29e4a28f8c Change-Id: I2ffeab12ebdd4422fb92c263fa7de927bf8bd506
| * \ Merge "Launcher3: Can't search out local app by Chinese"Sunny Goyal2017-07-121-0/+4
| |\ \ | | | | | | | | | | | | | | | | | | | | am: 7c35c64a9d Change-Id: I1bf4a8c6909cd4bc8cf7d17a2a99529e6b6a3957
| | * | 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. Change-Id: I3713f24c9206fe16a8da2a23e6c90d68079dd533
* | | | merged ub-launcher3-dorval-polish, and resolved conflictsHyunyoung Song2017-06-2610-39/+238
|\ \ \ \ | |/ / / |/| | / | | |/ | |/| | | | | | | | | | Test: $ make -j 32 dist checkbuild Bug: 30770233 Bug: 62896294 Change-Id: I032e6a6775bad0b3995750a43ff7ed6482cc2d5d
| * | 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
| * \ \ 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
| * \ \ \ Adding support for showing the widget preview based on the provided RemoteViewsSunny Goyal2017-03-173-11/+60
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c65a0085d7 Change-Id: Iabea96bb74294e2775a08427c17e154020d9bc40
| * | | | | 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
* | | | | | merged ub-launcher3-dorval, and resolved conflictsHyunyoung Song2017-05-1033-133/+2216
|\ \ \ \ \ \ | | |_|_|/ / | |/| | | / | |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | Bug: 36904684 Bug: 37929893 Bug: 36068989 Test: make -j 32 dist checkbuild Change-Id: If9b11b212852cb1048d54db2224dab4acf2d93e0
| * | | | 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
| * | | 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
| | | | | | | | | | | | | | | Bug: 35811129 Change-Id: I336e48cd00cfec2e617ac73bd8a81419b0944aa7
| * | Updating test as per API changesSunny Goyal2017-03-071-1/+1
| |/ | | | | | | Change-Id: I746bf48254ebfcad18426d47c61a54f8a11f5cf8
| * 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