Home
last modified time | relevance | path

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

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryUtils.java68 @IntDef({StatusType.SCREEN_USAGE,
69 StatusType.FOREGROUND,
70 StatusType.BACKGROUND,
71 StatusType.ALL
73 public @interface StatusType { annotation in BatteryUtils
109 public long getProcessTimeMs(@StatusType int type, @Nullable BatteryStats.Uid uid, in getProcessTimeMs()
116 case StatusType.SCREEN_USAGE: in getProcessTimeMs()
118 case StatusType.FOREGROUND: in getProcessTimeMs()
120 case StatusType.BACKGROUND: in getProcessTimeMs()
122 case StatusType.ALL: in getProcessTimeMs()
[all …]
DAdvancedPowerUsageDetail.java117 BatteryUtils.StatusType.FOREGROUND, uid, which) : sipper.usageTimeMs; in startBatteryDetailPage()
119 BatteryUtils.StatusType.BACKGROUND, uid, which) : 0; in startBatteryDetailPage()
DBatteryAppListPreferenceController.java233 BatteryUtils.StatusType.FOREGROUND, sipper.uidObj, STATS_TYPE); in refreshAppListGroup()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryUtils.java73 @IntDef({StatusType.SCREEN_USAGE,
74 StatusType.FOREGROUND,
75 StatusType.BACKGROUND,
76 StatusType.ALL
78 public @interface StatusType { annotation in BatteryUtils
114 public long getProcessTimeMs(@StatusType int type, @Nullable BatteryStats.Uid uid, in getProcessTimeMs()
121 case StatusType.SCREEN_USAGE: in getProcessTimeMs()
123 case StatusType.FOREGROUND: in getProcessTimeMs()
125 case StatusType.BACKGROUND: in getProcessTimeMs()
127 case StatusType.ALL: in getProcessTimeMs()
[all …]
DAdvancedPowerUsageDetail.java117 BatteryUtils.StatusType.FOREGROUND, uid, which) : sipper.usageTimeMs; in startBatteryDetailPage()
119 BatteryUtils.StatusType.BACKGROUND, uid, which) : 0; in startBatteryDetailPage()
DBatteryAppListPreferenceController.java233 BatteryUtils.StatusType.FOREGROUND, sipper.uidObj, STATS_TYPE); in refreshAppListGroup()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryUtilsTest.java252 final long time = mBatteryUtils.getProcessTimeMs(BatteryUtils.StatusType.FOREGROUND, mUid, in testGetProcessTimeMs_typeForeground_timeCorrect()
260 final long time = mBatteryUtils.getProcessTimeMs(BatteryUtils.StatusType.BACKGROUND, mUid, in testGetProcessTimeMs_typeBackground_timeCorrect()
271 final long time = mBatteryUtils.getProcessTimeMs(BatteryUtils.StatusType.ALL, mUid, in testGetProcessTimeMs_typeAll_timeCorrect()
279 final long time = mBatteryUtils.getProcessTimeMs(BatteryUtils.StatusType.ALL, null, in testGetProcessTimeMs_uidNull_returnZero()
513 eq(BatteryUtils.StatusType.SCREEN_USAGE), eq(uid), anyInt()); in createTestSmearBatterySipper()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/detectors/
DHighUsageDetector.java80 BatteryUtils.StatusType.FOREGROUND, batterySipper.uidObj, in detect()