/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryInfoTest.java | 104 BatteryInfo info = BatteryInfo.getBatteryInfoOld(mContext, in testGetBatteryInfo_hasStatusLabel() 115 BatteryInfo info = BatteryInfo.getBatteryInfoOld(mContext, mChargingBatteryBroadcast, in testGetBatteryInfo_doNotShowChargingMethod_hasRemainingTime() 124 BatteryInfo info = BatteryInfo.getBatteryInfoOld(mContext, mChargingBatteryBroadcast, in testGetBatteryInfo_doNotShowChargingMethod_noRemainingTime() 134 BatteryInfo info = BatteryInfo.getBatteryInfoOld(mContext, mChargingBatteryBroadcast, in testGetBatteryInfo_pluggedInUsingShortString_usesCorrectData() 146 BatteryInfo info = BatteryInfo.getBatteryInfo(mContext, mDisChargingBatteryBroadcast, in testGetBatteryInfo_basedOnUsageTrueMoreThanFifteenMinutes_usesCorrectString() 149 BatteryInfo info2 = BatteryInfo.getBatteryInfo(mContext, mDisChargingBatteryBroadcast, in testGetBatteryInfo_basedOnUsageTrueMoreThanFifteenMinutes_usesCorrectString() 165 BatteryInfo info = BatteryInfo.getBatteryInfo(mContext, mDisChargingBatteryBroadcast, in testGetBatteryInfo_basedOnUsageTrueLessThanSevenMinutes_usesCorrectString() 168 BatteryInfo info2 = BatteryInfo.getBatteryInfo(mContext, mDisChargingBatteryBroadcast, in testGetBatteryInfo_basedOnUsageTrueLessThanSevenMinutes_usesCorrectString() 185 BatteryInfo info = BatteryInfo.getBatteryInfo(mContext, mDisChargingBatteryBroadcast, in getBatteryInfo_MoreThanOneDay_suggestionLabelIsCorrectString() 198 BatteryInfo info = BatteryInfo.getBatteryInfo(mContext, mDisChargingBatteryBroadcast, in testGetBatteryInfo_basedOnUsageTrueBetweenSevenAndFifteenMinutes_usesCorrectString() [all …]
|
D | TopLevelBatteryPreferenceControllerTest.java | 159 BatteryInfo info = new BatteryInfo(); in getDashboardLabel_returnsCorrectLabel()
|
D | BatteryInfoLoaderTest.java | 78 BatteryInfo info = loader.loadInBackground(); in test_loadInBackground_dischargingOldEstimate_dischargingLabelNotNull()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | DebugEstimatesLoader.java | 36 public class DebugEstimatesLoader extends AsyncLoaderCompat<List<BatteryInfo>> { 45 protected void onDiscardResult(List<BatteryInfo> result) { in onDiscardResult() 50 public List<BatteryInfo> loadInBackground() { in loadInBackground() 63 BatteryInfo oldinfo = BatteryInfo.getBatteryInfoOld(getContext(), batteryBroadcast, in loadInBackground() 70 BatteryInfo newInfo = BatteryInfo.getBatteryInfo(getContext(), batteryBroadcast, in loadInBackground() 74 List<BatteryInfo> infos = new ArrayList<>(); in loadInBackground()
|
D | BatteryInfo.java | 44 public class BatteryInfo { class 63 void onBatteryInfoLoaded(BatteryInfo info); in onBatteryInfoLoaded() 145 BatteryInfo.getBatteryInfo(context, callback, /* batteryUsageStats */ null, shortString); in getBatteryInfo() 151 new AsyncTask<Void, Void, BatteryInfo>() { in getBatteryInfo() 153 protected BatteryInfo doInBackground(Void... params) { in getBatteryInfo() 165 protected void onPostExecute(BatteryInfo batteryInfo) { in getBatteryInfo() 177 public static BatteryInfo getBatteryInfo(final Context context, in getBatteryInfo() 201 return BatteryInfo.getBatteryInfo(context, batteryBroadcast, batteryUsageStats, in getBatteryInfo() 211 return BatteryInfo.getBatteryInfo(context, batteryBroadcast, batteryUsageStats, in getBatteryInfo() 216 public static BatteryInfo getBatteryInfoOld(Context context, Intent batteryBroadcast, in getBatteryInfoOld() [all …]
|
D | PowerUsageSummary.java | 74 BatteryInfo mBatteryInfo; 96 LoaderManager.LoaderCallbacks<BatteryInfo> mBatteryInfoLoaderCallbacks = 97 new LoaderManager.LoaderCallbacks<BatteryInfo>() { 100 public Loader<BatteryInfo> onCreateLoader(int i, Bundle bundle) { 105 public void onLoadFinished(Loader<BatteryInfo> loader, BatteryInfo batteryInfo) { 113 public void onLoaderReset(Loader<BatteryInfo> loader) {
|
D | TopLevelBatteryPreferenceController.java | 43 private BatteryInfo mBatteryInfo; 58 BatteryInfo.getBatteryInfo(mContext, info -> { in TopLevelBatteryPreferenceController() 136 protected CharSequence getDashboardLabel(Context context, BatteryInfo info, in getDashboardLabel() 151 private CharSequence generateLabel(BatteryInfo info) { in generateLabel() 166 public void updateBatteryStatus(String label, BatteryInfo info) { in updateBatteryStatus()
|
D | BatteryInfoLoader.java | 29 public class BatteryInfoLoader extends AsyncLoaderCompat<BatteryInfo>{ 41 protected void onDiscardResult(BatteryInfo result) { in onDiscardResult() 46 public BatteryInfo loadInBackground() { in loadInBackground()
|
D | BatteryHeaderPreferenceController.java | 111 private CharSequence generateLabel(BatteryInfo info) { in generateLabel() 140 public void updateHeaderPreference(BatteryInfo info) { in updateHeaderPreference() 153 public void updateBatteryStatus(String label, BatteryInfo info) { in updateBatteryStatus() 171 public void updateHeaderByBatteryTips(BatteryTip batteryTip, BatteryInfo batteryInfo) { in updateHeaderByBatteryTips()
|
D | BatteryUtils.java | 309 public static boolean isBatteryDefenderOn(BatteryInfo batteryInfo) { in isBatteryDefenderOn() 368 public BatteryInfo getBatteryInfo(final String tag) { in getBatteryInfo() 383 BatteryInfo batteryInfo; in getBatteryInfo() 395 batteryInfo = BatteryInfo.getBatteryInfo(mContext, batteryBroadcast, in getBatteryInfo()
|
D | BatteryHistoryPreference.java | 42 @VisibleForTesting BatteryInfo mBatteryInfo; 81 BatteryInfo.getBatteryInfo(getContext(), info -> { in setBatteryUsageStats()
|
D | BatteryPreferenceController.java | 29 void updateBatteryStatus(String label, BatteryInfo info); in updateBatteryStatus()
|
D | BatteryStatusFeatureProvider.java | 28 BatteryPreferenceController controller, BatteryInfo info); in triggerBatteryStatusUpdate()
|
D | BatteryStatusFeatureProviderImpl.java | 34 BatteryPreferenceController controller, BatteryInfo info) { in triggerBatteryStatusUpdate()
|
D | BatteryFlagParser.java | 23 public class BatteryFlagParser implements BatteryInfo.BatteryDataParser, BatteryActiveProvider {
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/detectors/ |
D | BatteryDefenderDetector.java | 19 import com.android.settings.fuelgauge.BatteryInfo; 28 private BatteryInfo mBatteryInfo; 30 public BatteryDefenderDetector(BatteryInfo batteryInfo) { in BatteryDefenderDetector()
|
D | SmartBatteryDetector.java | 24 import com.android.settings.fuelgauge.BatteryInfo; 35 private BatteryInfo mBatteryInfo; 40 public SmartBatteryDetector(Context context, BatteryTipPolicy policy, BatteryInfo batteryInfo, in SmartBatteryDetector()
|
D | LowBatteryDetector.java | 22 import com.android.settings.fuelgauge.BatteryInfo; 33 private BatteryInfo mBatteryInfo; 38 public LowBatteryDetector(Context context, BatteryTipPolicy policy, BatteryInfo batteryInfo) { in LowBatteryDetector()
|
D | HighUsageDetector.java | 27 import com.android.settings.fuelgauge.BatteryInfo; 46 private final BatteryInfo mBatteryInfo; 56 BatteryUsageStats batteryUsageStats, BatteryInfo batteryInfo) { in HighUsageDetector()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/ |
D | HighUsageDataParser.java | 21 import com.android.settings.fuelgauge.BatteryInfo; 27 public class HighUsageDataParser implements BatteryInfo.BatteryDataParser {
|
D | BatteryTipLoader.java | 24 import com.android.settings.fuelgauge.BatteryInfo; 67 final BatteryInfo batteryInfo = mBatteryUtils.getBatteryInfo(TAG); in loadInBackground()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/detectors/ |
D | BatteryDefenderDetectorTest.java | 21 import com.android.settings.fuelgauge.BatteryInfo; 35 private BatteryInfo mBatteryInfo;
|
D | SmartBatteryDetectorTest.java | 28 import com.android.settings.fuelgauge.BatteryInfo; 55 private BatteryInfo mBatteryInfo;
|
D | LowBatteryDetectorTest.java | 26 import com.android.settings.fuelgauge.BatteryInfo; 47 private BatteryInfo mBatteryInfo;
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/ |
D | BatteryTipLoaderTest.java | 30 import com.android.settings.fuelgauge.BatteryInfo; 67 private BatteryInfo mBatteryInfo;
|