Merge "Add communal settings category key." into tm-qpr-dev

This commit is contained in:
Darrell Shi
2022-12-21 08:03:49 +00:00
committed by Android (Google) Code Review
2 changed files with 4 additions and 1 deletions

View File

@@ -66,6 +66,8 @@ public final class CategoryKey {
"com.android.settings.category.ia.battery_saver_settings"; "com.android.settings.category.ia.battery_saver_settings";
public static final String CATEGORY_SMART_BATTERY_SETTINGS = public static final String CATEGORY_SMART_BATTERY_SETTINGS =
"com.android.settings.category.ia.smart_battery_settings"; "com.android.settings.category.ia.smart_battery_settings";
public static final String CATEGORY_COMMUNAL_SETTINGS =
"com.android.settings.category.ia.communal";
public static final Map<String, String> KEY_COMPAT_MAP; public static final Map<String, String> KEY_COMPAT_MAP;

View File

@@ -60,8 +60,9 @@ public class CategoryKeyTest {
allKeys.add(CategoryKey.CATEGORY_GESTURES); allKeys.add(CategoryKey.CATEGORY_GESTURES);
allKeys.add(CategoryKey.CATEGORY_NIGHT_DISPLAY); allKeys.add(CategoryKey.CATEGORY_NIGHT_DISPLAY);
allKeys.add(CategoryKey.CATEGORY_SMART_BATTERY_SETTINGS); allKeys.add(CategoryKey.CATEGORY_SMART_BATTERY_SETTINGS);
allKeys.add(CategoryKey.CATEGORY_COMMUNAL_SETTINGS);
// DO NOT REMOVE ANYTHING ABOVE // DO NOT REMOVE ANYTHING ABOVE
assertThat(allKeys.size()).isEqualTo(19); assertThat(allKeys.size()).isEqualTo(20);
} }
} }