summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Improve wallpaper preview loading transition" into sc-dev am: de34ad568dSantiago Etchebehere2021-06-171-0/+2
|\ | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/WallpaperPicker2/+/14970016 Change-Id: I30f1651f1469791d4bb6f662d28d599721418938
| * Improve wallpaper preview loading transitionSantiago Etchebehere2021-06-161-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Fix WallpaperPreviewBitmapTransformation rounding error when scaling - Precompute the thumbnail background color to use as placeholder if possible - Allow the placeholder to be serialized in WallpaperInfo so it's available when opening the preview - If available, obtain a low res preview as bitmap - Remove unused views from wallpaper_preview_card - Make TouchForwardingLayout transparent from loading to avoid it showing in the fragment transition Before/after videos: https://drive.google.com/drive/folders/1-PqL0BCOuet9pnrYVphewpwAcvVoBCwo?usp=sharing Bug: 184111918 Test: visual check Change-Id: Icaabafd5c430a0324899e471aa8f28453ab04f1a
* | Merge "Replace "Hub" naming with "Customization"" into sc-dev am: 5eef1b92f1Chihhang Chuang2021-06-161-2/+2
|\| | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/WallpaperPicker2/+/14974893 Change-Id: I1d7546303791cbdfb8c2a8087dc3db1782676ccd
| * Replace "Hub" naming with "Customization"Chihhang Chuang2021-06-161-2/+2
| | | | | | | | | | | | | | | | Since "Hub" is a meaningless naming. Bug: 190354625 Test: Manually Change-Id: I1eb781377b195283c839c8953b9ee7ec6a7e14be
* | Merge "Wallpaper category prefetch should consider force refresh" into ↵Chuck Liao2021-06-151-1/+2
|\| | | | | | | | | | | | | | | sc-dev am: b8a4d92293 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/WallpaperPicker2/+/14947730 Change-Id: I576067d2fede63257f2ff600fb1137c95c9531d4
| * Merge "Wallpaper category prefetch should consider force refresh" into sc-devChuck Liao2021-06-151-1/+2
| |\
| | * Wallpaper category prefetch should consider force refreshChuck Liao2021-06-111-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When prefetching, we should also consider to force fetch the data if the fetched data is reset. Otherwise, the prefetch will get old system wallpaper categoires instead of fetching new ones. Bug: 190824871 Test: manual Change-Id: Ie1960847f11f0c59194d947266a1d263892f8fe6
* | | [3/n] Move new picker logic to AOSP am: adeb353aecChihhang Chuang2021-06-121-0/+6
|\| | | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/WallpaperPicker2/+/14928651 Change-Id: Id5fedf30cdfda28b761e25d6a5a6d08c61d1d627
| * | [3/n] Move new picker logic to AOSPChihhang Chuang2021-06-111-0/+6
| |/ | | | | | | | | | | | | | | HubFragment shows wallpaper section only for WallpaperPicker2 build. Bug: 190354625 Test: Build and run the app Change-Id: Ia98a6cb59221f1ec12fab547479f89b079283479
* | Merge "Remove WallpaperPicker2 BuildCompat" into sc-dev-plus-aospTreeHugger Robot2021-05-242-4/+4
|\ \ | |/ |/|
| * Remove WallpaperPicker2 BuildCompatColin Cross2021-05-212-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | packages/apps/WallpaperPicker2 has its own copy of BuildCompat, supposedly to allow overriding the SDK version in tests, but that feature is never used and having an extra copy causes more work every time the platform version is updated or finalized. Remove it and use checks against android.os.Build.VERSION.SDK_INT instead. Future checks against development versions should use the offical androidx.core.os.BuildCompat. Bug: 186121492 Test: m WallpaperPicker2 Change-Id: I2c92e97219d01d439da5b8b49a7c1da8e34984e2
* | Update the logic for featured collectionsChuck Liao2021-05-201-1/+1
|/ | | | | | Bug: 188589807 Test: manual Change-Id: Ib20aa0c2d5097e3640896b34238c8524e2be7e34
* Remove unused resourcesPierre-Louis2021-04-201-15/+15
| | | | | | | | Generated with Android Studio. strings.xml files are excluded. Moved tab_text_color here. Test: build pass Bug: 185360060 Change-Id: Ic3e9c70b7d3926b7e9397debb2c2e6bc0debf40c
* Adjust the grid size of My Photos and the featured wallpaper categoriesChuck Liao2021-04-191-0/+5
| | | | | | | | | | Screenshots: https://screenshot.googleplex.com/c7boVR5XpxEVutM.png https://screenshot.googleplex.com/3r2EkyV8GCoawu3.png Bug: 182344964 Test: manual Change-Id: I2c0fcb193cf38bb6b6a18b253398a703df7b2423
* Thumbnail with custom border for individual pickerTianguang Zhang2021-04-071-1/+1
| | | | | | | | | | | | | | | | | | | This CL configures IndividualPickerFragment to use a thumbnail with a customizable border defined as a resource string representing the path of the border. Screenshots The following screenshots are obtained by adding the statement ``` thumbnail.setClippingPath(R.string.diamond_border); ``` after every usage of `thumbnail.setClipped`. * Day - https://screenshot.googleplex.com/8TNpBTtKp23wp3b * Night - https://screenshot.googleplex.com/Aybh6nsFKiZ7ajp Bug: 182498328 Fixes: 182498328 Test: none added Change-Id: Ic14ad2484b24d119ee60adca2951887c106e8d13
* [LSC] Add LOCAL_LICENSE_KINDS to packages/apps/WallpaperPicker2Bob Badour2021-03-191-0/+4
| | | | | | | | | | | | | | | Added SPDX-license-identifier-Apache-2.0 to: Android.bp tests/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: I3981f108c11cfcc48e9e0dedeff008a1275a94ce
* Move build to Android.bpSantiago Etchebehere2021-03-152-59/+51
| | | | | | Bug: 181912301 Test: build app Change-Id: Ia83dceb966528b1912aadd27ca6437ed2eabc5c7
* Round thumbnail for individual pickerTianguang Zhang2021-03-081-8/+60
| | | | | | | | | | | | | | This CL configures IndividualPickerFragment to use a round thumbnail for the applied wallpaper. Screenshots * Day - https://screenshot.googleplex.com/3tzed4USi4VyR38.png * Night - https://screenshot.googleplex.com/mcF6nM4NQwWuWTk.png Bug: 178745862 Fixes: 178745862 Test: added in IndividualPickerActivityTest.java Change-Id: Icb9142d2c3d43e312be8c9c0b1647eedededef87
* The test cases in IndividualPickerActivityTest failed.Chuck Liao2021-02-271-18/+0
| | | | | | Bug: 181338669 Test: adb shell am instrument -w -m -e debug false -e class 'com.android.wallpaper.picker.individual.IndividualPickerActivityTest' com.google.android.apps.wallpaper.tests/androidx.test.runner.AndroidJUnitRunner Change-Id: Icf634b91e9449d879b190bba2e250d526955888b
* Add a placeholder package change event listener.Chuck Liao2020-12-231-0/+5
| | | | | Bug: 172188327 Change-Id: If2027364c1f691fd7c2d02e7c9a271b2def29f94
* Adjust cropping of current wallpaper preview for RTLSantiago Etchebehere2020-12-172-3/+3
| | | | | | | | | | When in RTL, the current wallpaper is centered on the rightmost side of the image when using static wallpapers. Make sure the preview follows this same behavior. Bug: 175610692 Change-Id: I8662375bbd8224b2b882a34939f7d11d67205a7d
* Logging WPPG launch source (2/4)Wesley.CW Wang2020-10-121-1/+3
| | | | | | | - Log the launch source when entering TopLevelPickerActivity, DeepLinkActivity and BasePreviewActivity Bug: 154781896 Change-Id: Iea3f0bda6ff05e57fa9356e1890cd76c64e2a978
* Fetch the wallpaper category from the server instead of cache when launching ↵Chuck Liao2020-09-231-0/+5
| | | | | | | the app(activity). Bug: 169029398 Change-Id: Icbbb11c33ae4d4dd7d376a7792d0f685ad809421
* Add missing method in TestInjectorSantiago Etchebehere2020-08-201-0/+7
| | | | | | This will fix broken tests. Change-Id: Ic9094b9fa7c3b88a904f82f28d9089410da800a2
* Support App LinksChuck Liao2020-08-201-0/+5
| | | | | | | Video: https://drive.google.com/file/d/11_MclDVE8Q_ojSYoCDxmK4Ah_FoABPhd/view?usp=sharing Bug: 163019082 Change-Id: I2094c6078a1b3f7eae7307edbe74d9d764b4f501
* Set default title for PreviewFragmentchihhangchuang2020-07-021-1/+1
| | | | | | | | It seemed the better than previous way to set default title Test: Manually Bug: 160211359 Change-Id: I9536964e0d56e55c44d5ed1f785982f5b4cd2129
* Cleanup the AppbarFragment usage in PreviewFragmentchihhangchuang2020-07-011-1/+1
| | | | | | | | | | | | Cleanup only, no business logic change - AppbarFragment had a good pattern to set title on toolbar. PreviewFragment won't do it throught accessing activity tool bar. - AppbarFragment had a good pattern to set bottom action bar, which is widely used within the app, PreviewFragment won't do it by itself. Test: Manually Fixes: 160211359 Fixes: 160206877 Change-Id: I5cc4c05f1b885adbbe0f66afac3fb1ea6183ba0b
* Support full preview as home or lock screenChing-Sung Li2020-06-091-2/+3
| | | | | | | | | | | Add more modes for live / image full preview fragments can support preview as home or lock screen. Video: https://drive.google.com/file/d/1vu-U-7Qr-K9bqsyefap1jwNrbfvt-WDU/view?usp=sharing Bug: 157724411 Test: Manual Change-Id: I5b789ccd813ab977002681551537f2d4cf0d0037
* Add logSnapshot() definition and functionsKunhung Li2020-06-051-0/+5
| | | | | | | | | - Define logSnapshot() in UserEventLogger. - Daily log snapshot data. Bug: 151130766 Test: Manual Change-Id: Ia46801fbbf44b1d06fa9ac9d709367844014a1e3
* Save picker behavior related to launch and applyKunhung Li2020-05-261-0/+85
| | | | | | | | | | | | | - Define key for SharedPreference. KEY_APP_LAUNCH_COUNT KEY_FIRST_LAUNCH_DATE_SINCE_SETUP KEY_FIRST_WALLPAPER_APPLY_DATE_SINCE_SETUP - Save picker launch count and first launch date. - Save wallpaper first apply date. Test: Manual Bug: 151130766 Change-Id: Id332d97f49763b65d3279e7d1ca5584dd7c38661
* Fix "rotation" action is not shown problem and fix the problems of ↵Chuck Liao2020-05-221-129/+20
| | | | | | | | | | | | | | | | IndividualPickerActivityTest. - Avoids the "rotation" action is not shown correctly when onCategoryLoaded() is called after onBottomActionBarReady(). - [Test case] Change the behavior of clicking the tile. - [Test case] Remove the tests for rotation tile UI. - [Test case] Change the trigger point of the daily rotation from the rotation tile to the rotation action. - [Test case] Fix the RuntimeException below for testShowStartRotationDialog_WifiOnly_ClickOK_Fails_ShowsErrorDialog(), testStartRotation_WifiOnly_FailOnce_Retry(), and testStartRotation_WifiOnly_FailOnce_Retry_ShouldStillHaveWifiTurnedOff(). java.lang.RuntimeException: Waited for the root of the view hierarchy to have window focus and not request layout for 10 seconds. If you specified a non default root matcher, it may be picking a root that never takes focus. Bug: 157259520 Test: adb shell am instrument -w -r -e debug false -e class 'com.android.wallpaper.picker.individual.IndividualPickerActivityTest' com.google.android.apps.wallpaper.tests/androidx.test.runner.AndroidJUnitRunner Change-Id: I14cf96e0a4a8b6ffef01b932d6cc4d29e267da7d
* WallpaperPreferences update for live wallpapersKunhung Li2020-05-191-0/+11
| | | | | | | | | - Add wallpaper service name into WallpaperPreferences. - Add missing keys for clearLockWallpaperMetadata. Test: Manual Bug: 156345208 Change-Id: Id82e13150f8664c05edee30465233cc24dfc9e31
* Save the static lock wallpaper's remote identifier.“Chuck2020-04-072-0/+13
| | | | | Bug: 150840985 Change-Id: I2e767b2868564cb68d836a94a0f4923d3966dae9
* Implement the checkmark and the blue border showing/hiding flow.“Chuck2020-03-251-1/+5
| | | | | | | | Video: https://drive.google.com/a/google.com/file/d/1--iz9FlxuZbkEfhIWZv6oKEmxL5KP0JW/view?usp=sharing Bug: 150840985 Change-Id: I3669c27bcee50f7accbbd50d0f88aae6c60530e0
* Fix TestUserEventLogger does not override abstractKunhung Li2020-03-061-0/+10
| | | | | | | | | | Add missing method for override - logLiveWallpaperInfoSelected() - logLiveWallpaperCustomizeSelected() Bug: 150885584 Test: Manual Change-Id: I38370213054bc597579d8066329767466362b834
* Merge "Add a test for starting rotation dialog's UI components." into ↵Chuck Liao2019-12-181-0/+22
|\ | | | | | | ub-launcher3-master
| * Add a test for starting rotation dialog's UI components.Chuck Liao2019-12-171-0/+22
| | | | | | | | Change-Id: Id5581029f7988730f7f7767c02f5245d04a220b2
* | Fix the broken test of PreviewActivityTestChihhang Chuang2019-12-171-5/+23
|/ | | | | | | | | | | | | | | | The testSetWallpaper_TemporarilyLocksScreenOrientation breaks because - The dialog dismiss event comes after #setCurrentWallpaper, which restores the orientation state unexpectly. - The #saveAndLockScreenOrientation was called twice continusly, which overrides the saved orientation state. Solution: - Save orientation only works if there's no data is saved. Continusly calling is working for the first call. - Restore orientation only works if has data saved. Bug: 139867803 Change-Id: Ibfdd0c71f45eb411f3fadfe43515af7f26f3fdb3
* [LivePicker 2/n] Add LiveWallpaper preview supportSantiago Etchebehere2019-11-131-2/+2
| | | | | | | | | | | | | | | | Create a new LivePreviewFragment with the same UI and functionality of Android's LivePicker. Note that there's still redundancy between ImagePreviewFragment and LivePreviewFragment, follow up CLs will clean this up and share as much as possible. Still missing is support for delete and settings action buttons. The new LivePreviewFragment won't be hooked up until all the functionality is implemented. Bug: 141391722 Change-Id: I859f9122c368c01575c23f73a80ffdb519ef0e71
* Add PreviewActivityTestsSantiago Etchebehere2019-10-303-20/+527
| | | | | | | Migrate tests for PreviewActivity Bug: 141954442 Change-Id: I8cdacfd1268ee4817cf1b64b67a73e60aa773f47
* Set up test infrastructure for WallpaperPicker2Santiago Etchebehere2019-10-2324-0/+3132
Add instrumented and robolectric tests support. Bug: 141954442 Change-Id: Id9331b5962819d126f29d4854b7b7d87bf5e79ea