summaryrefslogtreecommitdiff
path: root/src/com/android
AgeCommit message (Collapse)Author
2022-11-18Update PluginManager ImportHawkwood Glazier
Bug: 258424862 Test: Rebuilt Wallpaper Picker Change-Id: I4ec416bc29f84a1fdcc136248d41db0245b2cfa3
2022-11-18Add demo clock pickerSherry Zhou
Test: atest ClockCustomDemoFragmentTest Bug: 242332371 Change-Id: I3e91e468f4630c11b8158c93d44c3e027ff6a221
2022-11-14Merge "[TP] Change custom clocks flag name" into tm-qpr-devGeorge Lin
2022-11-11[TP] Change custom clocks flag nameGeorge Lin
Change the flag name for custom clocks Test: Manual Bug: 241966062 Change-Id: Ia3f92b6ea36364ccfde81cd48601d275919ebd49
2022-11-11Fix overlap between app grid options in wallpaper settings.Chris Poultney
Large form factor: http://screen/9BVmRyiEcmFAWwE Small form factor: http://screen/VVj2pVVocFmyHta Fixes: 244257522 Test: TreeHugger Change-Id: Ia358167e800b26f17629777395a210e527e7f091
2022-11-08Merge "Monochromatic Theme on ThemePicker" into tm-qpr-devMarcelo Arteiro
2022-11-07Monochromatic Theme on ThemePickerMarcelo Arteiro
Added Monochromatic Theme option guarded by System Property Flag Screenshot https://screenshot.googleplex.com/3GAAPFXfMBkxF2t Test: Manual Bug: 241778903 Change-Id: I322b2fa36f479f5583e736cb0610ca731fe9bc30
2022-11-04Add time elapsed with error status code for logEffectApplyJohn Pan
Bug: 219489603 Test: Manual Change-Id: I52ebc1959e42c79fc004adf88300162a4012d931
2022-10-12Merge "[TP] Refector wallpaper picker injectors" into tm-qpr-devGeorge Lin
2022-10-10[TP] Refector wallpaper picker injectorsGeorge Lin
1. Sort the functions in DefaultCustomizationInjector. Some do not need to override since they are the same as the parent 2. Rename DefaultCustomizationInjector to ThemePickerInjector 3. Remove WallpapersInjector since it's never used Bug: 247807196 Test: manuel test to make sure it builds Change-Id: I82256f30b845504a82ea89bff82eaad3ff3b8a5f
2022-10-10Format ThemePicker .kt filesCatherine Liang
1. kt-format existing .kt files with $ANDROID_BUILD_TOP/external/ktfmt/ktfmt.py <filepath> 2. Remove the exclusion of the files in ktfmt_includes.txt Bug: 245751447 Test: Manual Change-Id: Iad6e3ac101b59b521f535d72bdfe42a774bd7eaf
2022-10-07[1/n] Color picking show up performanceKunhung Li
Remove unused color code to reduce the time on getting color resources for basic colors. Bug: 229595282 Test: manual Change-Id: I334f45b379c1a959868ac628ac7881c88049796e
2022-10-04[TP] Refactor util function for instantiating preview fragmentGeorge Lin
Due to the refactor, we no longer have the newInstance function from PreviewFragment. Thus we directly instantiate the fragment in the injector. Bug: 246968463 Test: manuel testing and it works as before Change-Id: I223661e2068d6b1c0d32feb45dff8257c6acb6d5
2022-09-22Fixes color choice layout issue.Chris Poultney
Color theme picker size calculation had a bug that caused incorrect column count after scrolling through all pages of choices. Before: http://screen/BZdSY8NLSUTiz4z After: http://screen/4hAF2UpX2nsYrrH Bug: 248080123 Test: TreeHugger Change-Id: Ia17b03d9b1eaa1b102072fa201cae033222199f7
2022-09-08Add clock custom fragmentGeorge Lin
Add clock custom fragment for customizing clock surface. This is just an empty UI and in need to call clock face's API for the content. Design: http://shortn/_7RDNjpWEmS Bug: 241966062 Test: https://screenshot.googleplex.com/AUX4So9hYia6SjD Change-Id: Id3cc910a2b181e88a01dd2f4a4d00eb54de0b10c
2022-08-16Create clock customization sectionGeorge Lin
Created a clock section which shows on the wallpaper picker home page and leads to clock customization. Bug: 241966062 Test: https://screenshot.googleplex.com/64DxwUBSbnfFfPf.png Change-Id: I8a15652bdc580f37cb56efc88e485cb782fc89b7
2022-08-10Fixes spacing of color options in wallpaper picker.Chris Poultney
This eliminates overlap and clipping of color option backgrounds, and also adds vertical spacing between rows if the options spill into a second row. Fixes: 227690986 Fixes: 240448797 Fixes: 231414521 Test: Passes TreeHugger Change-Id: Ia3a2a1c7ae27d9afdf446226c83845be2221f432
2022-08-02Enable color functions for ThemePickerKunhung Li
- Add color section for ThemePicker. - Define theme stub apk with rainbow colors. - Video: https://drive.google.com/file/d/1s_cpn1OegbD1Lof2PxaUVV08BTwpzimp/view Flag: No impact to existing product: just moves code to AOSP for reference Bug: 218396282 Test: Push apks with paths below & test. /system_ext/priv-app/ThemePicker/ThemePicker.apk /product/app/ThemesStub/ThemesStub.apk Change-Id: I25130573ffb37075b4b71c6b83b7b903b6421ce3
2022-06-16Merge "Log wallpaper effects for snapshot" into tm-qpr-devJohn Pan
2022-05-31Log wallpaper effects for snapshotJohn Pan
Bug: 229351685 Test: Manual Change-Id: I64c0f60a03cdd5abfa56e08f84163c16b6d6d6d7
2022-05-27Merge "Change the id for color sections and its ancestor." into tm-dev am: ↵Bob Yang
3e0e2415f9 am: b5015c8ef6 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/ThemePicker/+/18571524 Change-Id: I92e46c198e14baadc8ac6762763b6053e2b4cc9f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-26Change the id for color sections and its ancestor.Bob Yang
Change the id for color sections to prevent focus issues on talkback mode Bug: 227707089 Test: Manual Change-Id: I6d938b048514c217b4d76e8dedb44493fa287ee5
2022-05-25Refactor StatsLogUserEventLogger with SysUiStatsLogBuilderJohn Pan
Bug: 229954483 Test: Manual Change-Id: Ic60a673c3efc06418c71702dfdf3e7239b41b58c
2022-05-17Merge "Set a unique id for color sections to prevent focus issues on ↵Bob Yang
talkback mode" into tm-dev
2022-05-13Set a unique id for color sections to prevent focus issues on talkback modeBob Yang
- Set a unique id for color sections and its ancestor. Bug: 227707089 Test: Manual Change-Id: If64b9b9c33046d59d7d72e0b7d696d106b574cf9
2022-04-29Make reloading color options thread safeSantiago Etchebehere
Use new lists for color options and copy them to avoid concurrent modification if we get a colors changed event from the wallpaper while traversing them Bug: 229684864 Fixes: 229549608 Test: manual Change-Id: Ida3074742861648c5f4da48c788a7ea8d1fdd6bc (cherry picked from commit c30bc1f2c7dfd091d1c919f5ae0b7250a1960723)
2022-04-18Fix color option changes while applying dark/light themeKunhung Li
- Keep wallpaper color and basic color page position while onSaveInstanceState() is triggered. - Restore positions when it initializes if it can get the previous saved state, or it will show selected option. - Video: https://drive.google.com/file/d/1t6do6HEsYm3NselclT3-GbYmN9Rj0LIX/ Bug: 229039719 Test: manual Change-Id: I6dadd7522a380e820f56664ef5370aedc5fcc053
2022-04-18Merge "Fix scrolling goes under the expanded action bar" into tm-devKunhung Li
2022-04-15Fix scrolling goes under the expanded action barKunhung Li
- Find color page ViewPager's inner RecyclerView and call setNestedScrollingEnabled(false) to disbale its nested scrolling. - Video: https://drive.google.com/file/d/1huXw1jEW2s1lIMYMaIWZ1qW7866VjN1p/ Bug: 191099033 Test: manual Change-Id: I7ba3596a5590f7b8f86494d91d7638f91b2eab7c
2022-04-13Add logging for color variantsJohn Pan
Bug: 223304277 Test: Manual Change-Id: I65e9b4368538b3447e199e834c0d424d797d9667
2022-04-08Merge changes from topic "snapshot_migration" into tm-devKunhung Li
* changes: Add logSnapshot() function Refactor getCollectionIdHashCode()
2022-04-01Merge "Always recreate the SurfaceView when updating the grid preview" into ↵Santiago Etchebehere
tm-dev
2022-04-01Add logSnapshot() functionKunhung Li
- Extends StatsLogUserEventLogger() constructor with context. - Load WallpaperPreferences data for snapshot. - Implement snapshot features by using SysUiStatsLog. Bug: 220088526 Test: manual Change-Id: Ib55950cc1a281830a2ac0084ccb9bd603e86bcbd
2022-04-01Refactor getCollectionIdHashCode()Kunhung Li
Rename it to getIdHashCode() to let it be used for both collection id and wallpaper id. Bug: 220088526 Test: manual Change-Id: I5e42c117b0585b744579297464881e308bde763d
2022-03-29Merge "Apply color picking motion" into tm-devTreeHugger Robot
2022-03-28Merge "Fix GridOptionsManager isAvailable NullPointerException" into tm-devJohn Pan
2022-03-28Apply color picking motionChing-Sung Li
Video: - Non-multi-pane: https://drive.google.com/file/d/1lkiCGiXlyaOuJLKyW9o8PGlNIYav2RiD/view?usp=sharing&resourcekey=0-1wrvgaD3h1VhY21qady7GQ - Multi-pane: https://drive.google.com/file/d/13mCWegCyjvTuKQNxt1dKe3rNtxIrvSFY/view?usp=sharing&resourcekey=0-VLqjHyMz3Zjgev9IeIB2bw Bug: 211944540 Test: Manual Change-Id: I867f376e82196c9cf6d3c4e0b4c4ee44589771a6
2022-03-28Fix GridOptionsManager isAvailable NullPointerExceptionJohn Pan
Bug: 226872734 Test: Manual Change-Id: Ibdbc9a478a0d6d00ff8aa8ebe96c3c7313877ee5
2022-03-25Always recreate the SurfaceView when updating the grid previewSantiago Etchebehere
This fixes a problem where the preview was rendereed in the wrong position Fixes: 221856837 Test: manual Change-Id: Ib8605a04e4a4ae5e0d5a83b3afe94d0954169198
2022-03-24Fix dynamic color page indicator not adapt RTLKunhung Li
- Assign page indicator index based on current layout is RTL or not. - Video: https://drive.google.com/file/d/1Cs911iJfCD_deVfOO_OhHrbS7ZzvZ_Yn/ Bug: 220267389 Test: manual Change-Id: I1f33f11d4cbc733173a4ed68cfda3b26ad7d241c
2022-03-19Merge "Implement logEffectApply by using SysUiStatsLog" into tm-devJohn Pan
2022-03-17Fix can't switch back to default color optionKunhung Li
- Picker can’t get the latest style after applying overlays to Settings. The return value of style at that time may be old until parseSettings() has been triggered. - Reset source and style while applying so that it can refresh selected option. - Video: https://drive.google.com/file/d/1njx5v6U7XKPfxkA1LI9hD6TNzgd8bwjK/ Bug: 221198961 Test: manual Change-Id: Ie5e640da8968ec52e200949e868071a061c32f79
2022-03-16Fix basic color previewSantiago Etchebehere
We were using "Primary" color twice for light color preview Fixes: 221295879 Test: manual Change-Id: I0b2679262657b3386ca872523a015ba1fd6819a7
2022-03-15Hide grid selection if grid option size <= 1John Pan
- set mGridOptionsManager.fetchOptions reload to false because we will fetch the option before the call Screenshot: https://screenshot.googleplex.com/BHV9pjhesUcKLzZ.png Bug: 221129455 Test: Manual Change-Id: I27863d8c737fd8a0f2c8a8c275a6742163cf88e4
2022-03-07Implement logEffectApply by using SysUiStatsLogJohn Pan
Bug: 219489603 Test: Manual Change-Id: I19421f4977aa9ce486f9b7cc246820b53a49e9d3
2022-02-24Fix Talkback speak pages for "Wallpapers/Basic colors" tabKunhung Li
- Current design we have setup pages of color options for each tab, so we don't need to announce color section's view pager. Disable its announcement to fix that. - Video: https://drive.google.com/file/d/1OmlFbFIRTsW_6x5Od_wLfgeaBloHnyrm/ Bug: 219863524 Test: manual Change-Id: Ib0d33ccbb2b57c7d233cdcc635d43f7ebea50f7f
2022-02-23Move color picking code into AOSPKunhung Li
Add color picking related code, resources and libraries. Bug: 218396282 Test: manual Change-Id: I6aa244c8dac69f4663f97e19e91cfb6cf3eb0990
2022-02-11Merge "Retire ClocksFetchTask to avoid using AsyncTask"Chuck Liao
2022-02-11Retire ClocksFetchTask to avoid using AsyncTaskChuck Liao
Replace ClocksFetchTask with Executors Bug: 198711500 Test: manual Change-Id: I6495efbd9b690fcd6284b3842a979ce843eceb10
2022-01-27Add constants for theme styleSantiago Etchebehere
Bug: 202145221 Test: manual Change-Id: I46fc7f8e7510f8f5c4f4ea337a87a8b2e80667d3