Home
last modified time | relevance | path

Searched refs:BatteryUtils (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryUtilsTest.java113 private BatteryUtils mBatteryUtils;
158 mBatteryUtils = BatteryUtils.getInstance(RuntimeEnvironment.application); in setUp()
161 mBatteryUtils = spy(new BatteryUtils(RuntimeEnvironment.application)); in setUp()
166 final long time = mBatteryUtils.getProcessTimeMs(BatteryUtils.StatusType.FOREGROUND, mUid, in testGetProcessTimeMs_typeForeground_timeCorrect()
174 final long time = mBatteryUtils.getProcessTimeMs(BatteryUtils.StatusType.BACKGROUND, mUid, in testGetProcessTimeMs_typeBackground_timeCorrect()
182 final long time = mBatteryUtils.getProcessTimeMs(BatteryUtils.StatusType.ALL, mUid, in testGetProcessTimeMs_typeAll_timeCorrect()
190 final long time = mBatteryUtils.getProcessTimeMs(BatteryUtils.StatusType.ALL, null, in testGetProcessTimeMs_uidNull_returnZero()
DAdvancedPowerUsageDetailTest.java154 mFragment.mBatteryUtils = new BatteryUtils(RuntimeEnvironment.application); in setUp()
DPowerUsageAdvancedTest.java116 mPowerUsageAdvanced.setBatteryUtils(BatteryUtils.getInstance(mShadowContext)); in setUp()
DPowerUsageSummaryTest.java204 mFragment.mBatteryUtils = spy(new BatteryUtils(mRealContext)); in setUp()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DAdvancedPowerUsageDetail.java88 BatteryUtils mBatteryUtils;
107 final BatteryUtils batteryUtils = BatteryUtils.getInstance(caller); in startBatteryDetailPage()
111 BatteryUtils.StatusType.FOREGROUND, uid, which) : sipper.usageTimeMs; in startBatteryDetailPage()
113 BatteryUtils.StatusType.BACKGROUND, uid, which) : 0; in startBatteryDetailPage()
155 mBatteryUtils = BatteryUtils.getInstance(getContext()); in onAttach()
DBatteryUtils.java42 public class BatteryUtils { class
58 private static BatteryUtils sInstance;
64 public static BatteryUtils getInstance(Context context) { in getInstance()
66 sInstance = new BatteryUtils(context); in getInstance()
72 BatteryUtils(Context context) { in BatteryUtils() method in BatteryUtils
DPowerUsageAdvanced.java72 private BatteryUtils mBatteryUtils;
122 mBatteryUtils = BatteryUtils.getInstance(context); in onCreate()
253 BatteryUtils.StatusType.FOREGROUND, sipper.uidObj, STATUS_TYPE); in parsePowerUsageData()
344 void setBatteryUtils(BatteryUtils batteryUtils) { in setBatteryUtils()
DPowerUsageSummary.java114 BatteryUtils mBatteryUtils;
133 mBatteryUtils = BatteryUtils.getInstance(getContext()); in onCreate()
510 BatteryUtils.StatusType.FOREGROUND, sipper.uidObj, mStatsType); in refreshUi()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DInstalledAppDetailsTest.java44 import com.android.settings.fuelgauge.BatteryUtils;
111 private BatteryUtils mBatteryUtils;
/packages/apps/Settings/src/com/android/settings/applications/
DInstalledAppDetails.java95 import com.android.settings.fuelgauge.BatteryUtils;
201 BatteryUtils mBatteryUtils;
397 mBatteryUtils = BatteryUtils.getInstance(getContext()); in onCreate()