Home
last modified time | relevance | path

Searched refs:UsageType (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Settings/src/com/android/settings/fuelgauge/
DPowerUsageAdvanced.java44 import com.android.settings.fuelgauge.PowerUsageAdvanced.PowerUsageData.UsageType;
66 UsageType.WIFI,
67 UsageType.CELL,
68 UsageType.SYSTEM,
69 UsageType.BLUETOOTH,
70 UsageType.USER,
71 UsageType.IDLE,
72 UsageType.APP,
73 UsageType.UNACCOUNTED,
74 UsageType.OVERCOUNTED};
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DPowerUsageAdvancedTest.java50 import com.android.settings.fuelgauge.PowerUsageAdvanced.PowerUsageData.UsageType;
136 mPowerUsageData = new PowerUsageData(UsageType.USER); in setUp()
163 .isEqualTo(UsageType.SYSTEM); in testExtractUsageType_TypeSystem_ReturnSystem()
170 final int usageTypes[] = {UsageType.WIFI, UsageType.BLUETOOTH, UsageType.IDLE, in testExtractUsageType_TypeEqualsToDrainType_ReturnRelevantType()
171 UsageType.USER, UsageType.CELL, UsageType.UNACCOUNTED}; in testExtractUsageType_TypeEqualsToDrainType_ReturnRelevantType()
188 .isEqualTo(UsageType.SYSTEM); in testExtractUsageType_TypeService_ReturnSystem()
201 case UsageType.WIFI: in testParsePowerUsageData_PercentageCalculatedCorrectly()
204 case UsageType.APP: in testParsePowerUsageData_PercentageCalculatedCorrectly()
207 case UsageType.BLUETOOTH: in testParsePowerUsageData_PercentageCalculatedCorrectly()
228 mPowerUsageData.usageType = UsageType.IDLE; in testUpdateUsageDataSummary_typeIdle_showUsageTime()
[all …]