Move allowed list definition in the battery usage to feature provider
Bug: 199367609 Test: make SettingsRoboTests Change-Id: I321426e6ff1b9586ee493792f1d39aed35ecc34d Signed-off-by: ykhung <ykhung@google.com>
This commit is contained in:
@@ -103,7 +103,8 @@ public final class BatteryChartPreferenceControllerTest {
|
||||
resources.getConfiguration().setLocales(new LocaleList(new Locale("en_US")));
|
||||
doReturn(resources).when(mContext).getResources();
|
||||
doReturn(new String[] {"com.android.googlequicksearchbox"})
|
||||
.when(resources).getTextArray(R.array.allowlist_hide_summary_in_battery_usage);
|
||||
.when(mFeatureFactory.powerUsageFeatureProvider)
|
||||
.getHideApplicationSummary(mContext);
|
||||
mBatteryChartPreferenceController = createController();
|
||||
mBatteryChartPreferenceController.mPrefContext = mContext;
|
||||
mBatteryChartPreferenceController.mAppListPrefGroup = mAppListGroup;
|
||||
|
Reference in New Issue
Block a user