Home
last modified time | relevance | path

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

12

/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/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/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryUtils.java65 public class BatteryUtils { class
84 private static BatteryUtils sInstance;
92 public static BatteryUtils getInstance(Context context) { in getInstance()
94 sInstance = new BatteryUtils(context.getApplicationContext()); in getInstance()
100 public BatteryUtils(Context context) { in BatteryUtils() method in BatteryUtils
394 BatteryUtils.logRuntime(tag, "BatteryInfoLoader post query", startTime); in getBatteryInfo()
397 BatteryUtils.logRuntime(tag, "BatteryInfoLoader.loadInBackground", startTime); in getBatteryInfo()
DBatteryOptimizeUtils.java33 @VisibleForTesting BatteryUtils mBatteryUtils;
55 mBatteryUtils = BatteryUtils.getInstance(context); in BatteryOptimizeUtils()
99 return mBatteryUtils.getPackageUid(mPackageName) != BatteryUtils.UID_NULL; in isValidPackageName()
DBatteryInfo.java168 BatteryUtils.logRuntime(LOG_TAG, "time for callback", startTime); in getBatteryInfo()
180 BatteryUtils.logRuntime(LOG_TAG, "time for getStats", batteryStatsTime); in getBatteryInfo()
199 BatteryUtils in getBatteryInfo()
210 BatteryUtils.logRuntime(LOG_TAG, "time for regular BatteryInfo", startTime); in getBatteryInfo()
250 BatteryUtils.logRuntime(LOG_TAG, "time for getBatteryInfo", startTime); in getBatteryInfo()
DBatteryInfoLoader.java33 BatteryUtils mBatteryUtils;
37 mBatteryUtils = BatteryUtils.getInstance(context); in BatteryInfoLoader()
DBackgroundActivityPreferenceController.java54 BatteryUtils mBatteryUtils;
75 mBatteryUtils = BatteryUtils.getInstance(context); in BackgroundActivityPreferenceController()
DPowerUsageSummary.java70 BatteryUtils mBatteryUtils;
164 mBatteryUtils = BatteryUtils.getInstance(getContext()); in onCreate()
DHighPowerDetail.java51 BatteryUtils mBatteryUtils;
72 mBatteryUtils = BatteryUtils.getInstance(context); in onCreate()
DRestrictedAppDetails.java75 BatteryUtils mBatteryUtils;
105 mBatteryUtils = BatteryUtils.getInstance(context); in onCreate()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryUtilsTest.java136 private BatteryUtils mBatteryUtils;
171 mBatteryUtils = spy(new BatteryUtils(mContext)); in setUp()
186 final long time = mBatteryUtils.getProcessTimeMs(BatteryUtils.StatusType.FOREGROUND, mUid, in testGetProcessTimeMs_typeForeground_timeCorrect()
194 final long time = mBatteryUtils.getProcessTimeMs(BatteryUtils.StatusType.BACKGROUND, mUid, in testGetProcessTimeMs_typeBackground_timeCorrect()
205 final long time = mBatteryUtils.getProcessTimeMs(BatteryUtils.StatusType.ALL, mUid, in testGetProcessTimeMs_typeAll_timeCorrect()
213 final long time = mBatteryUtils.getProcessTimeMs(BatteryUtils.StatusType.ALL, null, in testGetProcessTimeMs_uidNull_returnZero()
299 BatteryUtils.SDK_NULL); in testGetTargetSdkVersion_packageNotExist_returnSdkNull()
481 when(mBatteryUtils.getPackageUid(PACKAGE_NAME)).thenReturn(BatteryUtils.UID_NULL); in clearForceAppStandby_appInvalid_returnFalse()
DBackgroundActivityPreferenceControllerTest.java86 private BatteryUtils mBatteryUtils;
110 mBatteryUtils = spy(new BatteryUtils(mShadowContext)); in setUp()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipLoader.java25 import com.android.settings.fuelgauge.BatteryUtils;
52 BatteryUtils mBatteryUtils;
57 mBatteryUtils = BatteryUtils.getInstance(context); in BatteryTipLoader()
DAnomalyDetectionJobService.java45 import com.android.settings.fuelgauge.BatteryUtils;
96 final BatteryUtils batteryUtils = BatteryUtils.getInstance(this); in onStartJob()
129 BatteryDatabaseManager databaseManager, BatteryUtils batteryUtils, in saveAnomalyToDatabase()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/detectors/
DHighUsageDetector.java28 import com.android.settings.fuelgauge.BatteryUtils;
51 BatteryUtils mBatteryUtils;
61 mBatteryUtils = BatteryUtils.getInstance(context); in HighUsageDetector()
DBatteryDefenderDetector.java20 import com.android.settings.fuelgauge.BatteryUtils;
37 BatteryUtils.isBatteryDefenderOn(mBatteryInfo) in detect()
/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/applications/defaultapps/
DDefaultAppPickerFragment.java34 import com.android.settings.fuelgauge.BatteryUtils;
46 protected BatteryUtils mBatteryUtils;
52 mBatteryUtils = BatteryUtils.getInstance(context); in onAttach()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/detectors/
DHighUsageDetectorTest.java36 import com.android.settings.fuelgauge.BatteryUtils;
81 private BatteryUtils mBatteryUtils;
90 mBatteryUtils = spy(new BatteryUtils(mContext)); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/actions/
DUnrestrictAppActionTest.java24 import com.android.settings.fuelgauge.BatteryUtils;
48 private BatteryUtils mBatteryUtils;
DRestrictAppActionTest.java24 import com.android.settings.fuelgauge.BatteryUtils;
55 private BatteryUtils mBatteryUtils;
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppBatteryPreferenceController.java45 import com.android.settings.fuelgauge.BatteryUtils;
66 BatteryUtils mBatteryUtils;
89 mBatteryUtils = BatteryUtils.getInstance(mContext); in AppBatteryPreferenceController()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipLoaderTest.java31 import com.android.settings.fuelgauge.BatteryUtils;
65 private BatteryUtils mBatteryUtils;
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppBatteryPreferenceControllerTest.java43 import com.android.settings.fuelgauge.BatteryUtils;
67 private BatteryUtils mBatteryUtils;

12