Fix resetTiles not marking CustomTile as removed

When calling `CustomTileInteractor.resetTiles`, any custom tiles that
are removed should be marked as removed in the repository (and
onTileRemoved` should be sent to the tile). This was missing, and was
causing the tiles not get `onTileAdded` when they were added again.

This change fixes that. Additionally, we add an upgrade step for
CustomTileAddedRepository to mark tiles that at the time of the upgrade
are not present as removed.

Test: atest com.android.systemui.qs.pipeline
Test: manual, reset tiles
Test: manual, observe upgrade state
Flag: com.android.systemui.reset_tiles_removes_custom_tiles
Fixes: 431235255

Change-Id: If8186dc00f4ec2718e48d43ea71f800a860a06d1
22 files changed