summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2023-12-08Refactor WallpaperModelFactory (3/3)George Lin
This CL makes the following changes: This CL makes the following changes: 1. Created an interface WallpaperDataFactory, which is implemented by DefaultWallpaperModelFactory and GooogleWallpaperModelFactory, respectively, depending which project we include. This also avoids complex inheritence pattern, where developers need to go back and forth to know what's going on when converting. 2. Made DefaultWallpaperModelFactory and GooogleWallpaperModelFactory injectable classes. 3. Moved functions in DataFactory classes to companion extension functions. Developers do not need to look into many classes. 4. Since DownloadableLiveWallpaperInfo represents a wallpaper that's not yet downloaded, we should treat it as a static wallpaper that shows the static image. Test: Manually tested that the downloadable wallpaper shows Bug: 291761856 Flag: ACONFIG com.android.wallpaper.multi_crop_preview_ui_flag DEVELOPMENT Change-Id: Iefc7202bcd9e963cfb3cc1c5933925f87a40d663
2023-12-04Refactor clock plugin packageHawkwood Glazier
Flag: N/A Bug: 278571309 Test: Rebuilt system image Change-Id: I80f79390f4a487755459aa1fe1ef1f36acf81a8b
2023-11-29Fix color in the preview fragment (2/2)Catherine Liang
Colors were inconsistent between the preview fragment and the actual wallpaper colors set, because the style was not accounted for. Adjust to account for style when changing the colors of the preview fragment UI. Style-related changes are included in ThemePicker while PreviewFragment changes are in WallpaperPicker2. Flag: NONE Bug: 308947090 Bug: 308946897 Test: manually verified with different wallpapers Change-Id: I1897ae1e18113fdbfa573676111ccf3b1daee82f
2023-11-21Merge "Inject WallpaperInteractor and repository (2/3)" into mainAustin Wang
2023-11-21Inject WallpaperInteractor and repository (2/3)Austin Wang
Flag: ACONFIG com.android.wallpaper.multi_crop_preview_ui_flag DEVELOPMENT Bug: 303317694 Test: launch multi crop preview Change-Id: I0121da42a69d221b8f229d69607907495fac7779
2023-11-17Merge "Fix crash from resetting shortcuts to none" into mainCatherine Liang
2023-11-17Fix crash from resetting shortcuts to noneCatherine Liang
Wallpaper picker crashes from resetting both shortcuts to none, and behaves incorrectly when resetting one shortcut to none, because slots without a selection were not accounted for in the snapshot restorer. Flag: NONE Bug: 305156127 Test: Manually verified different shortcut reset scenarios Change-Id: Ib218dccf3f34509b64662eafdf7ac301884ec066
2023-11-16Log color snapshot (1/2)George Lin
Test: Manually tested the log is correct Bug: 290848448 Flag: None Change-Id: Ic7ea9c4ea383f733675eca84c8d405794c6e9bfe
2023-11-08Fix color logging crashCatherine Liang
Bug: 309005949 Test: manually tested different wallpaper & other color options Flag: NONE Change-Id: I511c78a12aec1c7544c75ad7c5034c1c7d739012
2023-11-02Merge "Makes Studio and Soong kotlin+mockito behavior the same" into mainTreehugger Robot
2023-11-02Merge "[WPP logging] Wire logThemeColorApplied" into mainCatherine Liang
2023-11-02[WPP logging] Wire logThemeColorAppliedCatherine Liang
Test: manually verified Bug: 305752530 Flag: NONE Change-Id: I40d8c156848d6f43b08c0962603a0f443d1e86bf
2023-11-01Makes Studio and Soong kotlin+mockito behavior the sameChris Poultney
Bug: b/307745237 Test: all deviceless tests pass in Studio and Soong Flag: NONE Change-Id: Id20cd262f613778cb688e525e35dbde9873110c1
2023-10-31Convert wallpaper preference to Kotlin (2/3)George Lin
Test: Build success Bug: 307819582 Flag: NONE Change-Id: Id26e88873e80732e522b01ffa148dd4c3d367216
2023-10-25[WPP logging] Wire logLockScreenNotificationAppliedGeorge Lin
Test: Manually tested. See bug. Fixes: 305753308 Flag: NONE Change-Id: I0be9a454d6cb6f8634dd00f3a25814aeb6323086
2023-10-24[WPP logging] Wire logClockColorApplied and logClockSizeAppliedGeorge Lin
Test: Manually tested. See bug. Bug: 305753671 Flag: NONE Change-Id: Ied843e1b57e8c180e83883fd60377753eae5fc2c
2023-10-24[WPP logging] Wire logClockApplied (1/2)George Lin
Test: Manually tested. See bug. Bug: 305753671 Flag: NONE Change-Id: Ibf282179a098bc105469a3fa0047b1febcfab241
2023-10-24Resolves test resource issues and re-enables testChris Poultney
Fixes: b/291104503 Test: ThemePickerRoboTests pass in atest and Studio Change-Id: I03da527b4ccb2d5abfc4320879aeaaa43809a64c
2023-10-20Merge "Make WallpaperModelFactory injectable (2/3)" into mainAustin Wang
2023-10-20Merge "[WPP logging] Wire logShortcutApplied" into mainGeorge Lin
2023-10-19Make WallpaperModelFactory injectable (2/3)Austin Wang
Flag: com.android.wallpaper.multi_crop_preview_ui_flag Bug: 303457890 Test: build, presubmit Change-Id: I2f656a9adb54759b444f8e5648c19a338098724c
2023-10-19Merge changes from topic "blackflash-main" into mainChris Poultney
* changes: Reuse ClockViewFactory Cache affordances and selection picker side
2023-10-19Cache affordances and selection picker sideSantiago Etchebehere
Bug: 302425391 Test: manually verified that quick affordances work as expected Change-Id: I24a05119721847243afbe7e7ba326cdd328c870b
2023-10-19Merge "Remove ClockSectionViewModel (2/2)" into mainGeorge Lin
2023-10-18Merge "Make logger injectable (1/3)" into mainGeorge Lin
2023-10-17[WPP logging] Wire logShortcutAppliedGeorge Lin
Test: Manually tested. See bug. Fixes: 305753309 Change-Id: I21fe90900d4efb01dc5884993b3d5475fcd1152d
2023-10-17Make logger injectable (1/3)George Lin
Test: Manually tested logger works as expected Bug: 305069232 Change-Id: I4e83837498c23d45b66f77dfc7ecbeb037decdb7
2023-10-17Remove ClockSectionViewModel (2/2)George Lin
Test: Build success Fixes: 305998329 Change-Id: Ice043a8d570517a176b375db51383f890ef54aa6
2023-10-16Clean up obsolete aliases for Truth. am: 5c4bc0eb33Krzysztof Kosiński
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/ThemePicker/+/25045563 Change-Id: Ie9910c17886d3d668ebc6cfa7e8d624c96ed0bec Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-14Clean up obsolete aliases for Truth.Krzysztof Kosiński
Bug: 255714762 Test: presubmit Change-Id: I47c6b167ddb2009ba6e582b089d8b84745acd589
2023-10-10Merge "Adjust quick affordance section controller to use base flags (2/3)" ↵Catherine Liang
into main
2023-10-09Merge "Modify theme color applied log" into mainGeorge Lin
2023-10-07Clean up obsolete aliases for Truth. am: 2585ebb7fa am: d60849f035 am: ↵Krzysztof Kosiński
76a932bbf4 am: 7b755e3973 am: 5f65e508bf Original change: https://android-review.googlesource.com/c/platform/packages/apps/ThemePicker/+/2778096 Change-Id: Iae1ff8425ad0bc71c8597d18cb178febe12ecadb Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-07Clean up obsolete aliases for Truth. am: 2585ebb7fa am: d60849f035 am: ↵Krzysztof Kosiński
76a932bbf4 am: 7b755e3973 Original change: https://android-review.googlesource.com/c/platform/packages/apps/ThemePicker/+/2778096 Change-Id: Ifb1eee63675582d694e7783d04638d3ac0993c1c Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-07Clean up obsolete aliases for Truth.Krzysztof Kosiński
Bug: 255714762 Test: presubmit Change-Id: I7d20d4fc924f231e4eda6b366e694d858f09d7ad
2023-10-06Merge "Migrate clock descriptions to plugins" into mainHawkwood Glazier
2023-10-06Adjust quick affordance section controller to use base flags (2/3)Catherine Liang
The quick affordance section controller currently calls runBlocking when initializing to query flags and check if the feature is available. However, fragments and section controllers should be getting System UI flags using base flags, which queries and caches the flags when a flag is first needed. In addition, the runBlocking function is suspected to be the cause of the reported crash within the bug. In this CL, the quick affordance section controller, interactor & repository are adjusted to remove the flag querying, and the flag is read from base flags instead in the section controller. Bug: 296856318 Bug: 290849013 Test: adjusted unit tests for this change and made sure they still pass, verified manually that quick affordance section controller remains Change-Id: Ic469396f4a959a339efebec7cfbaaf37f8b404e3
2023-10-06Modify theme color applied logGeorge Lin
Modify the logging method to conform to the new spec Test: Build success. Will manually test in the later CL. Bug: 299659307 Change-Id: Ib50167950b68ef49bb2a209e241690bca56fc57f
2023-10-06Move the logging files to the right package (1/2)George Lin
Test: Build success Bug: 299659307 Change-Id: I27357d5fdfa0a1589a9fe411217e0e9469b863a6
2023-10-06Migrate clock descriptions to pluginsHawkwood Glazier
Bug: 287507746 Test: Checked accesibility functions of clock picking Change-Id: Ie91b46addd22a5c2f700cc479c67b2eff147c384
2023-10-05Merge "Add new logging APIs (1/2)" into mainGeorge Lin
2023-10-04Make fake ClockViewFactoryGeorge Lin
Test: Build success Bug: 303461806 Change-Id: I1d4551477642ac036a58283ab8675442be1f74ab
2023-10-04Add new logging APIs (1/2)George Lin
Test: Will test manually in later CLs when log APIs are used Bug: 299659307 Change-Id: If8091555c4ea62001e212db8d25eee3f19949ba3
2023-09-29Merge "Move wallpaper colors files (2/3)" into mainCatherine Liang
2023-09-28Logging clean unused events (1/3)George Lin
Test: Build success Bug: 299659307 Change-Id: I79e76c98f665f6b6a629928bab66f779d883250e
2023-09-26Transfer loggers to Kotlin (3/3)George Lin
Test: Build succeeded Bug: 299659307 Change-Id: Ie25e5d005432b455723b4e66f827b5b937d5c27c
2023-09-26Move wallpaper colors files (2/3)Catherine Liang
Move WallpaperColorsRepository and WallpaperColorsModel to a better location, consistent with other files. Bug: 269451870 Test: manually verified wallpaper colors related features function correctly Change-Id: Ifb7d95df73f12d1823664b3a93f177cd0cff934f
2023-09-22Merge "Move logging related classes to logging package (1/3)" into mainGeorge Lin
2023-09-21Move logging related classes to logging package (1/3)George Lin
Test: Build succeeded Bug: 299659307 Change-Id: I9698c4e7df5bbb42b175431e6d5c972d929c66d4
2023-09-21Adds a Hilt module for test dependenciesChris Poultney
See go/picker-test-injection Bug: b/297021618 Test: verified that tests use deps from test module Change-Id: Iada1f20cd69d3e7ce3d80eae3bfdfa5edc57e821