Home
last modified time | relevance | path

Searched refs:BatteryInfo (Results 1 – 25 of 28) sorted by relevance

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryInfoTest.java104 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 …]
DTopLevelBatteryPreferenceControllerTest.java159 BatteryInfo info = new BatteryInfo(); in getDashboardLabel_returnsCorrectLabel()
DBatteryInfoLoaderTest.java78 BatteryInfo info = loader.loadInBackground(); in test_loadInBackground_dischargingOldEstimate_dischargingLabelNotNull()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DDebugEstimatesLoader.java36 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()
DBatteryInfo.java44 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 …]
DPowerUsageSummary.java74 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) {
DTopLevelBatteryPreferenceController.java43 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()
DBatteryInfoLoader.java29 public class BatteryInfoLoader extends AsyncLoaderCompat<BatteryInfo>{
41 protected void onDiscardResult(BatteryInfo result) { in onDiscardResult()
46 public BatteryInfo loadInBackground() { in loadInBackground()
DBatteryHeaderPreferenceController.java111 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()
DBatteryUtils.java309 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()
DBatteryHistoryPreference.java42 @VisibleForTesting BatteryInfo mBatteryInfo;
81 BatteryInfo.getBatteryInfo(getContext(), info -> { in setBatteryUsageStats()
DBatteryPreferenceController.java29 void updateBatteryStatus(String label, BatteryInfo info); in updateBatteryStatus()
DBatteryStatusFeatureProvider.java28 BatteryPreferenceController controller, BatteryInfo info); in triggerBatteryStatusUpdate()
DBatteryStatusFeatureProviderImpl.java34 BatteryPreferenceController controller, BatteryInfo info) { in triggerBatteryStatusUpdate()
DBatteryFlagParser.java23 public class BatteryFlagParser implements BatteryInfo.BatteryDataParser, BatteryActiveProvider {
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/detectors/
DBatteryDefenderDetector.java19 import com.android.settings.fuelgauge.BatteryInfo;
28 private BatteryInfo mBatteryInfo;
30 public BatteryDefenderDetector(BatteryInfo batteryInfo) { in BatteryDefenderDetector()
DSmartBatteryDetector.java24 import com.android.settings.fuelgauge.BatteryInfo;
35 private BatteryInfo mBatteryInfo;
40 public SmartBatteryDetector(Context context, BatteryTipPolicy policy, BatteryInfo batteryInfo, in SmartBatteryDetector()
DLowBatteryDetector.java22 import com.android.settings.fuelgauge.BatteryInfo;
33 private BatteryInfo mBatteryInfo;
38 public LowBatteryDetector(Context context, BatteryTipPolicy policy, BatteryInfo batteryInfo) { in LowBatteryDetector()
DHighUsageDetector.java27 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/
DHighUsageDataParser.java21 import com.android.settings.fuelgauge.BatteryInfo;
27 public class HighUsageDataParser implements BatteryInfo.BatteryDataParser {
DBatteryTipLoader.java24 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/
DBatteryDefenderDetectorTest.java21 import com.android.settings.fuelgauge.BatteryInfo;
35 private BatteryInfo mBatteryInfo;
DSmartBatteryDetectorTest.java28 import com.android.settings.fuelgauge.BatteryInfo;
55 private BatteryInfo mBatteryInfo;
DLowBatteryDetectorTest.java26 import com.android.settings.fuelgauge.BatteryInfo;
47 private BatteryInfo mBatteryInfo;
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipLoaderTest.java30 import com.android.settings.fuelgauge.BatteryInfo;
67 private BatteryInfo mBatteryInfo;

12