Hide subtitle for wifi and bluetooth
Hide it for now because the usage time is not accurate. We may revisit it in the future. Bug: 37912143 Test: RunSettingsRoboTests Change-Id: I37b9dca6a188f2973a7a83641d12b24001d629ae
This commit is contained in:
@@ -278,6 +278,20 @@ public class PowerUsageAdvancedTest {
|
||||
assertThat(mPowerUsageAdvanced.shouldHideSummary(mPowerUsageData)).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testShouldHideSummary_typeWifi_returnTrue() {
|
||||
mPowerUsageData.usageType = UsageType.WIFI;
|
||||
|
||||
assertThat(mPowerUsageAdvanced.shouldHideSummary(mPowerUsageData)).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testShouldHideSummary_typeBluetooth_returnTrue() {
|
||||
mPowerUsageData.usageType = UsageType.BLUETOOTH;
|
||||
|
||||
assertThat(mPowerUsageAdvanced.shouldHideSummary(mPowerUsageData)).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testShouldHideSummary_typeNormal_returnFalse() {
|
||||
mPowerUsageData.usageType = UsageType.APP;
|
||||
|
Reference in New Issue
Block a user