Renames customization content provider (2/7).

KeyguardQuickAffordanceProvider has started to be used for more than
just lock screen shortcuts. This collection of CLs updates its name,
authority, and table schema to become more generically about "system UI
customization".

Fix: 262879277
Test: manually verified Settings > Display > Lock screen shows the
"shortcuts" item
Test: manually verified that the Wallpaper picker properly renders the
preview and can change the quick affordances
Test: manually verified that system UI displays the right lock screen
shortcuts

Change-Id: Idc0765a8c3fe50c82689d2ca7f9d19b41a62baf2
This commit is contained in:
Alejandro Nijamkin
2022-12-24 08:08:02 -08:00
committed by Ale Nijamkin
parent fec083b2cd
commit 6f77562412
2 changed files with 6 additions and 4 deletions

View File

@@ -125,8 +125,8 @@
<uses-permission android:name="android.permission.READ_SAFETY_CENTER_STATUS" />
<uses-permission android:name="android.permission.SEND_SAFETY_CENTER_UPDATE" />
<uses-permission android:name="android.permission.START_VIEW_APP_FEATURES" />
<uses-permission android:name="android.permission.ACCESS_KEYGUARD_QUICK_AFFORDANCES" />
<uses-permission android:name="android.permission.LIST_ENABLED_CREDENTIAL_PROVIDERS" />
<uses-permission android:name="android.permission.CUSTOMIZE_SYSTEM_UI" />
<application
android:name=".SettingsApplication"

View File

@@ -37,7 +37,7 @@ public final class CustomizableLockScreenUtils {
private static final String TAG = "CustomizableLockScreenUtils";
private static final Uri BASE_URI = new Uri.Builder()
.scheme(ContentResolver.SCHEME_CONTENT)
.authority("com.android.systemui.keyguard.quickaffordance")
.authority("com.android.systemui.customization")
.build();
@VisibleForTesting
static final Uri FLAGS_URI = BASE_URI.buildUpon()
@@ -45,14 +45,16 @@ public final class CustomizableLockScreenUtils {
.build();
@VisibleForTesting
static final Uri SELECTIONS_URI = BASE_URI.buildUpon()
.path("selections")
.appendPath("lockscreen_quickaffordance")
.appendPath("selections")
.build();
@VisibleForTesting
static final String NAME = "name";
@VisibleForTesting
static final String VALUE = "value";
@VisibleForTesting
static final String ENABLED_FLAG = "is_feature_enabled";
static final String ENABLED_FLAG =
"is_custom_lock_screen_quick_affordances_feature_enabled";
@VisibleForTesting
static final String AFFORDANCE_NAME = "affordance_name";