Searched refs:BatteryUtils (Results 1 – 10 of 10) sorted by relevance
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryUtilsTest.java | 113 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()
|
D | AdvancedPowerUsageDetailTest.java | 154 mFragment.mBatteryUtils = new BatteryUtils(RuntimeEnvironment.application); in setUp()
|
D | PowerUsageAdvancedTest.java | 116 mPowerUsageAdvanced.setBatteryUtils(BatteryUtils.getInstance(mShadowContext)); in setUp()
|
D | PowerUsageSummaryTest.java | 204 mFragment.mBatteryUtils = spy(new BatteryUtils(mRealContext)); in setUp()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | AdvancedPowerUsageDetail.java | 88 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()
|
D | BatteryUtils.java | 42 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
|
D | PowerUsageAdvanced.java | 72 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()
|
D | PowerUsageSummary.java | 114 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/ |
D | InstalledAppDetailsTest.java | 44 import com.android.settings.fuelgauge.BatteryUtils; 111 private BatteryUtils mBatteryUtils;
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | InstalledAppDetails.java | 95 import com.android.settings.fuelgauge.BatteryUtils; 201 BatteryUtils mBatteryUtils; 397 mBatteryUtils = BatteryUtils.getInstance(getContext()); in onCreate()
|