Home
last modified time | relevance | path

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

123

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DAdvancedPowerUsageDetail.java93 BatteryUtils mBatteryUtils;
105 static void startBatteryDetailPage(Activity caller, BatteryUtils batteryUtils, in startBatteryDetailPage()
117 BatteryUtils.StatusType.FOREGROUND, uid, which) : sipper.usageTimeMs; in startBatteryDetailPage()
119 BatteryUtils.StatusType.BACKGROUND, uid, which) : 0; in startBatteryDetailPage()
159 startBatteryDetailPage(caller, BatteryUtils.getInstance(caller), fragment, helper, which, in startBatteryDetailPage()
188 mBatteryUtils = BatteryUtils.getInstance(getContext()); in onAttach()
DBatteryUtils.java63 public class BatteryUtils { class
85 private static BatteryUtils sInstance;
93 public static BatteryUtils getInstance(Context context) { in getInstance()
95 sInstance = new BatteryUtils(context.getApplicationContext()); in getInstance()
101 BatteryUtils(Context context) { in BatteryUtils() method in BatteryUtils
466 BatteryUtils.logRuntime(tag, "BatteryInfoLoader post query", startTime); in getBatteryInfo()
469 BatteryUtils.logRuntime(tag, "BatteryInfoLoader.loadInBackground", startTime); in getBatteryInfo()
DBatteryInfo.java159 BatteryUtils.logRuntime(LOG_TAG, "time for callback", startTime); in getBatteryInfo()
176 BatteryUtils.logRuntime(LOG_TAG, "time for getStats", batteryStatsTime); in getBatteryInfo()
194 BatteryUtils in getBatteryInfo()
206 BatteryUtils.logRuntime(LOG_TAG, "time for regular BatteryInfo", startTime); in getBatteryInfo()
240 BatteryUtils.logRuntime(LOG_TAG, "time for getBatteryInfo", startTime); in getBatteryInfo()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DAdvancedPowerUsageDetail.java93 BatteryUtils mBatteryUtils;
105 static void startBatteryDetailPage(Activity caller, BatteryUtils batteryUtils, in startBatteryDetailPage()
117 BatteryUtils.StatusType.FOREGROUND, uid, which) : sipper.usageTimeMs; in startBatteryDetailPage()
119 BatteryUtils.StatusType.BACKGROUND, uid, which) : 0; in startBatteryDetailPage()
159 startBatteryDetailPage(caller, BatteryUtils.getInstance(caller), fragment, helper, which, in startBatteryDetailPage()
188 mBatteryUtils = BatteryUtils.getInstance(getContext()); in onAttach()
DBatteryUtils.java68 public class BatteryUtils { class
90 private static BatteryUtils sInstance;
98 public static BatteryUtils getInstance(Context context) { in getInstance()
100 sInstance = new BatteryUtils(context.getApplicationContext()); in getInstance()
106 BatteryUtils(Context context) { in BatteryUtils() method in BatteryUtils
488 BatteryUtils.logRuntime(tag, "BatteryInfoLoader post query", startTime); in getBatteryInfo()
491 BatteryUtils.logRuntime(tag, "BatteryInfoLoader.loadInBackground", startTime); in getBatteryInfo()
DBatteryInfo.java161 BatteryUtils.logRuntime(LOG_TAG, "time for callback", startTime); in getBatteryInfo()
178 BatteryUtils.logRuntime(LOG_TAG, "time for getStats", batteryStatsTime); in getBatteryInfo()
197 BatteryUtils in getBatteryInfo()
209 BatteryUtils.logRuntime(LOG_TAG, "time for regular BatteryInfo", startTime); in getBatteryInfo()
243 BatteryUtils.logRuntime(LOG_TAG, "time for getBatteryInfo", startTime); in getBatteryInfo()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DUsageGraph.java40 import com.android.car.developeroptions.fuelgauge.BatteryUtils;
122 BatteryUtils.logRuntime(LOG_TAG, "setMax", startTime); in setMax()
152 BatteryUtils.logRuntime(LOG_TAG, "addPathAndUpdate", startTime); in addPathAndUpdate()
168 BatteryUtils.logRuntime(LOG_TAG, "onSizeChanged", startTime); in onSizeChanged()
217 BatteryUtils.logRuntime(LOG_TAG, "calculateLocalPaths", startTime); in calculateLocalPaths()
268 BatteryUtils.logRuntime(LOG_TAG, "onDraw", startTime); in onDraw()
/packages/apps/Settings/src/com/android/settings/widget/
DUsageGraph.java40 import com.android.settings.fuelgauge.BatteryUtils;
122 BatteryUtils.logRuntime(LOG_TAG, "setMax", startTime); in setMax()
152 BatteryUtils.logRuntime(LOG_TAG, "addPathAndUpdate", startTime); in addPathAndUpdate()
168 BatteryUtils.logRuntime(LOG_TAG, "onSizeChanged", startTime); in onSizeChanged()
217 BatteryUtils.logRuntime(LOG_TAG, "calculateLocalPaths", startTime); in calculateLocalPaths()
268 BatteryUtils.logRuntime(LOG_TAG, "onDraw", startTime); in onDraw()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/detectors/
DHighUsageDetector.java30 import com.android.car.developeroptions.fuelgauge.BatteryUtils;
53 BatteryUtils mBatteryUtils;
62 mBatteryUtils = BatteryUtils.getInstance(context); in HighUsageDetector()
80 BatteryUtils.StatusType.FOREGROUND, batterySipper.uidObj, in detect()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/actions/
DUnrestrictAppAction.java25 import com.android.settings.fuelgauge.BatteryUtils;
35 BatteryUtils mBatteryUtils;
40 mBatteryUtils = BatteryUtils.getInstance(context); in UnrestrictAppAction()
DRestrictAppAction.java26 import com.android.settings.fuelgauge.BatteryUtils;
42 BatteryUtils mBatteryUtils;
47 mBatteryUtils = BatteryUtils.getInstance(context); in RestrictAppAction()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/actions/
DUnrestrictAppAction.java25 import com.android.car.developeroptions.fuelgauge.BatteryUtils;
35 BatteryUtils mBatteryUtils;
40 mBatteryUtils = BatteryUtils.getInstance(context); in UnrestrictAppAction()
DRestrictAppAction.java26 import com.android.car.developeroptions.fuelgauge.BatteryUtils;
42 BatteryUtils mBatteryUtils;
47 mBatteryUtils = BatteryUtils.getInstance(context); in RestrictAppAction()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryUtilsTest.java166 private BatteryUtils mBatteryUtils;
228 mBatteryUtils = spy(new BatteryUtils(mContext)); in setUp()
252 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()
483 BatteryUtils.SDK_NULL); in testGetTargetSdkVersion_packageNotExist_returnSdkNull()
513 eq(BatteryUtils.StatusType.SCREEN_USAGE), eq(uid), anyInt()); in createTestSmearBatterySipper()
713 when(mBatteryUtils.getPackageUid(PACKAGE_NAME)).thenReturn(BatteryUtils.UID_NULL); in clearForceAppStandby_appInvalid_returnFalse()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/
DAnomalyDetectionJobService.java45 import com.android.car.developeroptions.fuelgauge.BatteryUtils;
96 final BatteryUtils batteryUtils = BatteryUtils.getInstance(this); in onStartJob()
129 BatteryDatabaseManager databaseManager, BatteryUtils batteryUtils, in saveAnomalyToDatabase()
DBatteryTipLoader.java25 import com.android.car.developeroptions.fuelgauge.BatteryUtils;
53 BatteryUtils mBatteryUtils;
58 mBatteryUtils = BatteryUtils.getInstance(context); in BatteryTipLoader()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DAnomalyDetectionJobService.java45 import com.android.settings.fuelgauge.BatteryUtils;
96 final BatteryUtils batteryUtils = BatteryUtils.getInstance(this); in onStartJob()
129 BatteryDatabaseManager databaseManager, BatteryUtils batteryUtils, in saveAnomalyToDatabase()
DBatteryTipLoader.java25 import com.android.settings.fuelgauge.BatteryUtils;
53 BatteryUtils mBatteryUtils;
58 mBatteryUtils = BatteryUtils.getInstance(context); in BatteryTipLoader()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/deviceadmin/
DDeviceAdminAddTest.java33 import com.android.settings.fuelgauge.BatteryUtils;
53 private BatteryUtils mBatteryUtils;
61 mBatteryUtils = spy(BatteryUtils.getInstance(RuntimeEnvironment.application)); in setUp()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/detectors/
DHighUsageDetector.java29 import com.android.settings.fuelgauge.BatteryUtils;
52 BatteryUtils mBatteryUtils;
61 mBatteryUtils = BatteryUtils.getInstance(context); in HighUsageDetector()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/defaultapps/
DDefaultAppPickerFragment.java34 import com.android.car.developeroptions.fuelgauge.BatteryUtils;
46 protected BatteryUtils mBatteryUtils;
52 mBatteryUtils = BatteryUtils.getInstance(context); in onAttach()
/packages/apps/Settings/src/com/android/settings/applications/defaultapps/
DDefaultAppPickerFragment.java34 import com.android.settings.fuelgauge.BatteryUtils;
46 protected BatteryUtils mBatteryUtils;
52 mBatteryUtils = BatteryUtils.getInstance(context); in onAttach()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppBatteryPreferenceController.java39 import com.android.settings.fuelgauge.BatteryUtils;
59 BatteryUtils mBatteryUtils;
70 mBatteryUtils = BatteryUtils.getInstance(mContext); in AppBatteryPreferenceController()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/
DAppBatteryPreferenceController.java39 import com.android.car.developeroptions.fuelgauge.BatteryUtils;
59 BatteryUtils mBatteryUtils;
70 mBatteryUtils = BatteryUtils.getInstance(mContext); in AppBatteryPreferenceController()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/detectors/
DHighUsageDetectorTest.java34 import com.android.settings.fuelgauge.BatteryUtils;
75 private BatteryUtils mBatteryUtils;
85 mBatteryUtils = spy(BatteryUtils.getInstance(mContext)); in setUp()

123