/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/ |
D | AdvancedPowerUsageDetail.java | 93 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()
|
D | BatteryUtils.java | 63 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()
|
D | BatteryInfo.java | 159 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/ |
D | AdvancedPowerUsageDetail.java | 93 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()
|
D | BatteryUtils.java | 68 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()
|
D | BatteryInfo.java | 161 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/ |
D | UsageGraph.java | 40 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/ |
D | UsageGraph.java | 40 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/ |
D | HighUsageDetector.java | 30 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/ |
D | UnrestrictAppAction.java | 25 import com.android.settings.fuelgauge.BatteryUtils; 35 BatteryUtils mBatteryUtils; 40 mBatteryUtils = BatteryUtils.getInstance(context); in UnrestrictAppAction()
|
D | RestrictAppAction.java | 26 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/ |
D | UnrestrictAppAction.java | 25 import com.android.car.developeroptions.fuelgauge.BatteryUtils; 35 BatteryUtils mBatteryUtils; 40 mBatteryUtils = BatteryUtils.getInstance(context); in UnrestrictAppAction()
|
D | RestrictAppAction.java | 26 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/ |
D | BatteryUtilsTest.java | 166 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/ |
D | AnomalyDetectionJobService.java | 45 import com.android.car.developeroptions.fuelgauge.BatteryUtils; 96 final BatteryUtils batteryUtils = BatteryUtils.getInstance(this); in onStartJob() 129 BatteryDatabaseManager databaseManager, BatteryUtils batteryUtils, in saveAnomalyToDatabase()
|
D | BatteryTipLoader.java | 25 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/ |
D | AnomalyDetectionJobService.java | 45 import com.android.settings.fuelgauge.BatteryUtils; 96 final BatteryUtils batteryUtils = BatteryUtils.getInstance(this); in onStartJob() 129 BatteryDatabaseManager databaseManager, BatteryUtils batteryUtils, in saveAnomalyToDatabase()
|
D | BatteryTipLoader.java | 25 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/ |
D | DeviceAdminAddTest.java | 33 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/ |
D | HighUsageDetector.java | 29 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/ |
D | DefaultAppPickerFragment.java | 34 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/ |
D | DefaultAppPickerFragment.java | 34 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/ |
D | AppBatteryPreferenceController.java | 39 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/ |
D | AppBatteryPreferenceController.java | 39 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/ |
D | HighUsageDetectorTest.java | 34 import com.android.settings.fuelgauge.BatteryUtils; 75 private BatteryUtils mBatteryUtils; 85 mBatteryUtils = spy(BatteryUtils.getInstance(mContext)); in setUp()
|