Merge "Remove toggles in battery settings."

This commit is contained in:
TreeHugger Robot
2018-01-05 22:47:31 +00:00
committed by Android (Google) Code Review
3 changed files with 16 additions and 63 deletions

View File

@@ -400,18 +400,6 @@ public class PowerUsageSummaryLegacyTest {
assertThat(percent).isWithin(PRECISION).of(POWER_USAGE_PERCENTAGE);
}
@Test
public void testNonIndexableKeys_MatchPreferenceKeys() {
final Context context = RuntimeEnvironment.application;
final List<String> niks = PowerUsageSummary.SEARCH_INDEX_DATA_PROVIDER
.getNonIndexableKeys(context);
final List<String> keys = XmlTestUtils.getKeysFromPreferenceXml(context,
R.xml.power_usage_summary);
assertThat(keys).containsAllIn(niks);
}
@Test
public void testPreferenceControllers_getPreferenceKeys_existInPreferenceScreen() {
final Context context = RuntimeEnvironment.application;