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.java70 @IntDef({StatusType.SCREEN_USAGE,
71 StatusType.FOREGROUND,
72 StatusType.BACKGROUND,
73 StatusType.ALL
75 public @interface StatusType { annotation in BatteryUtils
108 public long getProcessTimeMs(@StatusType int type, @Nullable BatteryStats.Uid uid, in getProcessTimeMs()
115 case StatusType.SCREEN_USAGE: in getProcessTimeMs()
117 case StatusType.FOREGROUND: in getProcessTimeMs()
119 case StatusType.BACKGROUND: in getProcessTimeMs()
121 case StatusType.ALL: in getProcessTimeMs()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryUtilsTest.java186 final long time = mBatteryUtils.getProcessTimeMs(BatteryUtils.StatusType.FOREGROUND, mUid, in testGetProcessTimeMs_typeForeground_timeCorrect()
194 final long time = mBatteryUtils.getProcessTimeMs(BatteryUtils.StatusType.BACKGROUND, mUid, in testGetProcessTimeMs_typeBackground_timeCorrect()
205 final long time = mBatteryUtils.getProcessTimeMs(BatteryUtils.StatusType.ALL, mUid, in testGetProcessTimeMs_typeAll_timeCorrect()
213 final long time = mBatteryUtils.getProcessTimeMs(BatteryUtils.StatusType.ALL, null, in testGetProcessTimeMs_uidNull_returnZero()