summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/people/PeopleTileViewHelper.java
Commit message (Collapse)AuthorAgeFilesLines
* Make the PeopleSpaceActivity screenshot testableJordan Demeulenaere2022-07-191-8/+19
| | | | | | | | | | | | | | | | | This CL makes the PeopleSpaceActivity screenshot testable by extracting a ViewModel and ViewBinder out of it. See ag/19289788 for the associated screenshot tests. Note that I tried to change the code inflating and updating the View as less as possible, to avoid introducing bugs. Once this CL and the associated screenshots are submitted, I will go ahead and refactor this code even more. This CL is meant to be an example of the kind of refactoring required to make a UI screenshot testable, so I tried to not make it too big. Bug: 238993727 Test: atest PeopleSpaceScreenshotTest Change-Id: Ib792bd5da41c9e8bdab6cba7108a249bab10ebd2
* Fix SystemUI crashJulia Reynolds2022-04-131-2/+2
| | | | | | | Test: PeopleTileViewHelperTest Fixes: 211345973 Change-Id: I20aa6781d46459e0ad3d1321198083f3f9a292f4 Merged-In: I20aa6781d46459e0ad3d1321198083f3f9a292f4
* Updating icon badging logicSunny Goyal2021-11-301-18/+8
| | | | | | Bug: 201682172 Test: Manual Change-Id: Id19f1bdabbfa0c203052f63245f0f4ede462429a
* Merge "Ensure content shows before/after name" into sc-devAnna Zappone2021-07-141-5/+25
|\
| * Ensure content shows before/after nameAnna Zappone2021-07-131-5/+25
| | | | | | | | | | | | | | | | RTL handling broke long name handling for LTR. This logic works for both RTL & LTR. Test: locally Fixes: 193269905 Change-Id: I2abcfea4849066fe56be7a8d5659809169748e21
* | Merge "Prevent any SecurityExceptions on Uri resolution" into sc-devAnna Zappone2021-07-131-4/+50
|\|
| * Prevent any SecurityExceptions on Uri resolutionAnna Zappone2021-07-131-4/+50
| | | | | | | | | | | | | | | | | | | | | | By deferring resolution of the Uri to Launcher, we risk a SecurityException. This is extremely important to avoid as if we the SecurityException is thrown, we can no longer make any updates to the widget. Bug: 192986188 Test: locally with Signal Change-Id: I5421ff5494b405ab9d48afd678fd72dc570a655b
* | Add available description for talkbackAnna Zappone2021-07-081-0/+2
|/ | | | | | Bug: 189908609 Test: PeopleTileViewHelperTest and local Change-Id: I5b00dfdb8aa04b84aa71d37adfbd06f134bcf5a9
* Update a11y content descriptionsAnna Zappone2021-07-011-43/+152
| | | | | | | | Align DND layouts better with status/empty layouts. Fixes: 187384903, 182920218, 189896324, 189906264 Test: PeopleTileViewHelperTest Change-Id: Id806de7e2d8e4a55982b8cb2a48de53730bcc04a
* Merge "Add landscape support" into sc-devAnna Zappone2021-07-011-10/+25
|\
| * Add landscape supportAnna Zappone2021-06-301-10/+25
| | | | | | | | | | | | Bug: 183966288 Test: locally Change-Id: Ie49eb8d81ce79634de9dac82b9933c916e156a38
* | Add cake background to upcoming birthday statusFlavio Fiszman2021-06-301-1/+2
| | | | | | | | | | | | Change-Id: I9eb5f6a5d6c3dd0d6b476e97c70192682a4a61a8 Test: manual Bug: 188905255
* | Conversations Widget - Backup and RestoreFlavio Fiszman2021-06-291-6/+16
| | | | | | | | | | | | Change-Id: I46a8359ffd4b462add31f5cecce70ff05870db6f Bug: 183084949 Test: PeopleBackupHelperTest, PeopleSpaceWidgetManagerTest..
* | Merge "Add birthday status emoji decoration" into sc-devFlavio Fiszman2021-06-281-0/+6
|\ \ | |/ |/|
| * Add birthday status emoji decorationFlavio Fiszman2021-06-281-0/+6
| | | | | | | | | | | | Change-Id: Ice86fcfc8d08f34c9f06959aa161d02172664421 Test: manual Bug: 188905255
* | Merge "Create RemoteViews for all supported app widget sizes" into sc-devAnna Zappone2021-06-281-15/+54
|\ \ | |/ |/|
| * Create RemoteViews for all supported app widget sizesStevie Kideckel2021-06-251-15/+54
| | | | | | | | | | | | | | | | | | This ensures the correct size measuring for rotation and for devices with multiple screens. Fix: 183966288 Test: verified locally Change-Id: I5d2bf55ad779a535a8b69917672192018ba11dbc
* | Add clipToOutline to the background views in people tile layoutsStevie Kideckel2021-06-251-3/+2
|/ | | | | | | | | | | | Also, add missing theme values to the dnd suppressed layouts For the resize handles to use the different corner radius, android.R.id.background needs to be used for the clipped background View. Bug: 180580427 Test: verified locally Change-Id: I466003d1b5b37226f28ef146a62ce5fd5102188c
* Add a people tile state for dndStevie Kideckel2021-06-241-5/+180
| | | | | | Bug: 189459297 Test: verified locally Change-Id: I21bf30e37f0fd7111f0eb04e1256e9dc186850eb
* Update on reboots, package uninstallsAnna Zappone2021-06-181-1/+1
| | | | | | | | Update contacts query to include Birthdays stored without a year value. Fixes: 188880741, 184006507 Test: local Change-Id: I9af2801a06a3f1f021b0b2775709a2a495a19003
* Update text, colors, and suppressionAnna Zappone2021-06-111-5/+10
| | | | | | | Bug: 190496101 Fixes: 188900924, 189147129 Test: PeopleSpaceWidgetManagerTest, local Change-Id: Idc1cd72d698d4eccea0ea2dca9bcbada58463e87
* Fix LTR & conversation updates on main threadAnna Zappone2021-06-081-4/+4
| | | | | | | Test: locally tried LTR Bug: 190498032 Fixes: 189092212, 187526637 Change-Id: I8816ade464b12104c6cce37cc723753bef470f1f
* Fixes for Test App e2e working and UX polish.Anna Zappone2021-05-241-14/+43
| | | | | | | | | | | | | | - Clears binder identity before scheduling status expiry to avoid SecurityException crash. - Fixes duplicate "days days" on last interaction. - Allows the "name" to wrap lines on 2x1 if there is no last interaciton time showing. - Update story ring to correct colors Bug: 183084168 Fixes: 189095017, 180839900 Test: PeopleTileViewHelperTest Change-Id: I7adc3d6608ffe8c3626b03f411650271de10cb8b
* UX polish updatesAnna Zappone2021-05-181-43/+122
| | | | | | | | | Padding, color, and dynamic text resizing. See full details in b/183084168. Bug: 185131475, 183084168, 1804014433 Test: PeopleTileViewHelperTest Change-Id: Ie6a4da771b9735ccce7b0549acfea4c17231d915
* Add status scrim for full-bleed and update emptyAnna Zappone2021-05-121-48/+46
| | | | | | Bug: 180113387, 182891880, 185894289 Test: PeopleTileViewHelperTest Change-Id: If5e246207fa34f27ad103971b32018f2c7863931
* Update last interaction storage notification clearAnna Zappone2021-05-061-1/+1
| | | | | | | | | Add debug logging as well, and mimic the same logic in PeopleSpaceWidgetManager to avoid the extra Binder call Bug: 182195735 Test: DataManagerTest Change-Id: I4d042e26d00f421a24203cc659fb3a376f9df033
* Handle work profile, DND state, app pausesAnna Zappone2021-05-031-9/+91
| | | | | | | | | | | | Listen and respond to changes in state on background thread. Store in-memory to avoid requerying frequently Test: PeopleSpaceWidgetManagerTest, PeopleTileViewHelperTest, PeopleSpaceUtilsTest Bug: 182891880 Change-Id: Id0142b02bb549275c77d8940cda4eb1f0bf4e947 Change-Id: I65712a7a43d8956499533689fe77afbeeac5bd6e
* Decorating People Tile backgroundFlavio Fiszman2021-04-301-22/+119
| | | | | | Change-Id: Ie88ad8482e0dcd6b5f1640827fe71b9d9137cf0c Test: manual and PeopleTileViewHelperTest Bug: 184741504
* Handling group chat senderFlavio Fiszman2021-04-261-7/+14
| | | | | | Change-Id: I4e4ff94e3452f3eb74bf8d7af2969e0ce2d3ac91 Test: manual and people/ Bug: 183084944
* Merge "Adding logging to People Tiles" into sc-devFlavio Fiszman2021-04-261-0/+3
|\
| * Adding logging to People TilesFlavio Fiszman2021-04-231-0/+3
| | | | | | | | | | | | Change-Id: I94d99467b1d40bc629406eb6a5bce8a1a78dd0a4 Test: manual Bug: 186127384
* | Merge "Check if username is null" into sc-devFlavio Fiszman2021-04-231-1/+3
|\ \
| * | Check if username is nullFlavio Fiszman2021-04-231-1/+3
| |/ | | | | | | | | | | Change-Id: If5409e98f9e5a9bca4fea111af3a463bdf86324b Test: manual Bug: 185916268
* / Change message count overflow to 6Flavio Fiszman2021-04-221-2/+2
|/ | | | | | Change-Id: Idb12d332ec971db0879499251b272761c6328444 Bug: 183382000 Test: manual
* Calculate People Tiles messages count properlyFlavio Fiszman2021-04-191-3/+5
| | | | | | Change-Id: If072e43e1c827ebbf7250f832b969118df81755a Test: manual Bug: 183382000
* Fix some UX polish bugsAnna Zappone2021-04-151-17/+74
| | | | | | | | | | Remove last chatted to for 1 day and under Try to adaptively add more outer padding to 2x1 with a max of 16dp Let small layout match parent height Test: PeopleSpaceUtilsTest Bug: 184606325, 182471248, 185138047 Change-Id: I08a305dacf2b249475ffe0231f0412e694c2922a
* Merge "Set theme and support dark mode in People widgets" into sc-devAnna Zappone2021-04-131-9/+12
|\
| * Set theme and support dark mode in People widgetsAnna Zappone2021-04-121-9/+12
| | | | | | | | | | | | Change-Id: Ib0e60b2aa613a515a5371694fae933e122c1666d Bug: 184022942 Test: locally
* | Fix notification count showing on 1x1Flavio Fiszman2021-04-071-0/+3
|/ | | | | | Change-Id: I0a57c6311fdc6a93efb3ff8ba459a7ebce981321 Test: manual and PeopleTileViewHelperTest Bug: 184229123
* Uses PeopleStoryIconFactory in config activityFlavio Fiszman2021-04-011-17/+27
| | | | | | Change-Id: I485b6a994e41f19dd9a2ec49ee87ee2db686bb3d Test: manual Bug: 183721209
* Add messages count to all layoutsFlavio Fiszman2021-03-241-1/+4
| | | | | | Change-Id: I4a93cfe263fe3486d1a83587606c7661089e6cd3 Test: manual Bug: 183382000
* Show messages count in People TileFlavio Fiszman2021-03-231-0/+30
| | | | | | Change-Id: I85b262dda92227cbea2672d9725bda163a5bb42a Test: manual Bug: 183382000
* Implement 2x2 layout and text resizingAnna Zappone2021-03-221-0/+553
Expand text to best-fit the layout by calculating maxLines for medium and large layout. Bug: 182377480 Test: PeopleSpaceUtils Change-Id: I980ef776dfdf6e3007b8761ec7e1db3ec5fe5b7d