Commit Graph

7 Commits

Author SHA1 Message Date
Ale Nijamkin
c588abbb72 Merge "Cleans up old user switcher impl. and flags." into tm-qpr-dev 2022-11-15 15:39:08 +00:00
Alejandro Nijamkin
04777dbab2 Content provider for quick affordances.
This is the content provider that wallpaper picker will be using to
query for slots, affordances, and selections, and for setting or
unsetting selections.

Fix: 254857637
Test: Manually verified the API by
issuing adb shell content commands and seeing affordances appear and
disappear on the actual lock screen.

Change-Id: Ia47a8ee322028042bb3e118ddb82a92a27eae191
Merged-In: Ia47a8ee322028042bb3e118ddb82a92a27eae191
2022-11-14 18:10:22 +00:00
Alejandro Nijamkin
bbc6083009 Cleans up old user switcher impl. and flags.
Fix: 246631653,254513286,254513102
Test: tests updated, all pass
Test: manually verified full screen and popup dialog user switchers both
still work

Change-Id: I74b09ae8d64073b7b6b9019195e9bc0fcbb2ae40
2022-11-13 09:01:34 -08:00
Alejandro Nijamkin
693f364e7c Reuses Drwable#toBitmap from AndroidX
Fix: 247540499
Test: Opened menu in User Switcher experience of the compose gallery app
Change-Id: Ibe75b594091217e356189c5976cc23434813db05
2022-10-03 16:36:03 -07:00
Alejandro Nijamkin
4066809d02 UserSwitcher in Compose.
Adds a screen to the gallery app to test it. Did not end up using the UI
screenshot diff test because the buttons are not the same in Compose as
they are in this bespoke UI. The UI is simple enough that I was able to
get close enough.

Fix: 246002091
Test: In the next CL, a screen is added to the gallery app to test it.
Change-Id: I90d871bb819ecd7bd75a3f55746a94f7a37f68c2
2022-09-13 10:17:10 -07:00
Jordan Demeulenaere
66d123f87c Implement the People UI in Compose (1/2)
This CL implements the People UI using Jetpack Compose. Note that this
implementation won't be used by SystemUI yet, and can only be viewed
using the SystemUIGallery app at the moment.

Once ag/19500380 is submitted (blocked by b/236146570), the screenshot
tests will use the Compose implementation. You can see the visual
difference between the implementations in ag/19498514. As explained in
b/238993727#comment10 the result is slightly different (and improved
over the current View implementation).

Note that the fake values of this screen have been moved from the
current PeopleSpaceScreenshotTest, and are now reused there as well (see
ag/19568794).

Bug: 238993727
Test: atest SystemUIGoogleScreenshotTests
Change-Id: I4d2f241ccf768ef3fccc01ce196418ce7fc26492
2022-08-17 11:28:38 +02:00
Jordan Demeulenaere
359df6fe7a Move the compose code to tm-qpr-dev (1/2)
This CL moves all the current Compose code from master to tm-qpr-dev,
which is possible now that all Compose dependencies have been cherry
picked to tm-qpr-dev.

Note that I used the SHA of ag/19398175 for this CL Change-Id and
Merged-In tags, which is the last CL in master that changed code in the
compose/ folder. That way, we make sure that we don't try to merge this
code back into master.

Bug: 231131244
Test: m SystemUIComposeGallery
Change-Id: Ic3efb42d371c6aac8c2a6297a0cb192a780903cd
Merged-In: Ic3efb42d371c6aac8c2a6297a0cb192a780903cd
2022-08-08 12:26:57 +02:00