/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/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/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatteryUtils.java | 65 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()
|
D | BatteryOptimizeUtils.java | 33 @VisibleForTesting BatteryUtils mBatteryUtils; 55 mBatteryUtils = BatteryUtils.getInstance(context); in BatteryOptimizeUtils() 99 return mBatteryUtils.getPackageUid(mPackageName) != BatteryUtils.UID_NULL; in isValidPackageName()
|
D | BatteryInfo.java | 168 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()
|
D | BatteryInfoLoader.java | 33 BatteryUtils mBatteryUtils; 37 mBatteryUtils = BatteryUtils.getInstance(context); in BatteryInfoLoader()
|
D | BackgroundActivityPreferenceController.java | 54 BatteryUtils mBatteryUtils; 75 mBatteryUtils = BatteryUtils.getInstance(context); in BackgroundActivityPreferenceController()
|
D | PowerUsageSummary.java | 70 BatteryUtils mBatteryUtils; 164 mBatteryUtils = BatteryUtils.getInstance(getContext()); in onCreate()
|
D | HighPowerDetail.java | 51 BatteryUtils mBatteryUtils; 72 mBatteryUtils = BatteryUtils.getInstance(context); in onCreate()
|
D | RestrictedAppDetails.java | 75 BatteryUtils mBatteryUtils; 105 mBatteryUtils = BatteryUtils.getInstance(context); in onCreate()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryUtilsTest.java | 136 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()
|
D | BackgroundActivityPreferenceControllerTest.java | 86 private BatteryUtils mBatteryUtils; 110 mBatteryUtils = spy(new BatteryUtils(mShadowContext)); in setUp()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/ |
D | BatteryTipLoader.java | 25 import com.android.settings.fuelgauge.BatteryUtils; 52 BatteryUtils mBatteryUtils; 57 mBatteryUtils = BatteryUtils.getInstance(context); in BatteryTipLoader()
|
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()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/detectors/ |
D | HighUsageDetector.java | 28 import com.android.settings.fuelgauge.BatteryUtils; 51 BatteryUtils mBatteryUtils; 61 mBatteryUtils = BatteryUtils.getInstance(context); in HighUsageDetector()
|
D | BatteryDefenderDetector.java | 20 import com.android.settings.fuelgauge.BatteryUtils; 37 BatteryUtils.isBatteryDefenderOn(mBatteryInfo) in detect()
|
/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/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/tests/robotests/src/com/android/settings/fuelgauge/batterytip/detectors/ |
D | HighUsageDetectorTest.java | 36 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/ |
D | UnrestrictAppActionTest.java | 24 import com.android.settings.fuelgauge.BatteryUtils; 48 private BatteryUtils mBatteryUtils;
|
D | RestrictAppActionTest.java | 24 import com.android.settings.fuelgauge.BatteryUtils; 55 private BatteryUtils mBatteryUtils;
|
/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
D | AppBatteryPreferenceController.java | 45 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/ |
D | BatteryTipLoaderTest.java | 31 import com.android.settings.fuelgauge.BatteryUtils; 65 private BatteryUtils mBatteryUtils;
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | AppBatteryPreferenceControllerTest.java | 43 import com.android.settings.fuelgauge.BatteryUtils; 67 private BatteryUtils mBatteryUtils;
|