Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryUtils.java88 @IntDef({StatusType.SCREEN_USAGE, StatusType.FOREGROUND, StatusType.BACKGROUND, StatusType.ALL})
89 public @interface StatusType { annotation in BatteryUtils
142 public long getProcessTimeMs(@StatusType int type, @Nullable BatteryStats.Uid uid, int which) { in getProcessTimeMs()
148 case StatusType.SCREEN_USAGE: in getProcessTimeMs()
150 case StatusType.FOREGROUND: in getProcessTimeMs()
152 case StatusType.BACKGROUND: in getProcessTimeMs()
154 case StatusType.ALL: in getProcessTimeMs()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryUtilsTest.java177 BatteryUtils.StatusType.FOREGROUND, mUid, BatteryStats.STATS_SINCE_CHARGED); in testGetProcessTimeMs_typeForeground_timeCorrect()
186 BatteryUtils.StatusType.BACKGROUND, mUid, BatteryStats.STATS_SINCE_CHARGED); in testGetProcessTimeMs_typeBackground_timeCorrect()
199 BatteryUtils.StatusType.ALL, mUid, BatteryStats.STATS_SINCE_CHARGED); in testGetProcessTimeMs_typeAll_timeCorrect()
208 BatteryUtils.StatusType.ALL, null, BatteryStats.STATS_SINCE_CHARGED); in testGetProcessTimeMs_uidNull_returnZero()