Home
last modified time | relevance | path

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

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryInfoTest.java104 BatteryInfo info = BatteryInfo.getBatteryInfoOld(mContext, in testGetBatteryInfo_hasStatusLabel()
114 BatteryInfo info = BatteryInfo.getBatteryInfoOld(mContext, mChargingBatteryBroadcast, in testGetBatteryInfo_doNotShowChargingMethod_hasRemainingTime()
123 BatteryInfo info = BatteryInfo.getBatteryInfoOld(mContext, mChargingBatteryBroadcast, in testGetBatteryInfo_doNotShowChargingMethod_noRemainingTime()
133 BatteryInfo info = BatteryInfo.getBatteryInfoOld(mContext, mChargingBatteryBroadcast, in testGetBatteryInfo_pluggedInUsingShortString_usesCorrectData()
145 BatteryInfo info = BatteryInfo.getBatteryInfo(mContext, mDisChargingBatteryBroadcast, in testGetBatteryInfo_basedOnUsageTrueMoreThanFifteenMinutes_usesCorrectString()
148 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 …]
DPowerUsageSummaryTest.java126 private BatteryInfo mBatteryInfo;
408 List<BatteryInfo> fakeBatteryInfo = new ArrayList<>(2); in showBothEstimates()
409 BatteryInfo info1 = new BatteryInfo(); in showBothEstimates()
414 BatteryInfo info2 = new BatteryInfo(); in showBothEstimates()
DTopLevelBatteryPreferenceControllerTest.java58 BatteryInfo info = new BatteryInfo(); in getDashboardLabel_returnsCorrectLabel()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DPowerUsageSummary.java94 BatteryInfo mBatteryInfo;
105 LoaderManager.LoaderCallbacks<BatteryInfo> mBatteryInfoLoaderCallbacks =
106 new LoaderManager.LoaderCallbacks<BatteryInfo>() {
109 public Loader<BatteryInfo> onCreateLoader(int i, Bundle bundle) {
114 public void onLoadFinished(Loader<BatteryInfo> loader, BatteryInfo batteryInfo) {
121 public void onLoaderReset(Loader<BatteryInfo> loader) {
126 LoaderManager.LoaderCallbacks<List<BatteryInfo>> mBatteryInfoDebugLoaderCallbacks =
127 new LoaderCallbacks<List<BatteryInfo>>() {
129 public Loader<List<BatteryInfo>> onCreateLoader(int i, Bundle bundle) {
134 public void onLoadFinished(Loader<List<BatteryInfo>> loader,
[all …]
DBatteryInfo.java40 public class BatteryInfo { class
57 void onBatteryInfoLoaded(BatteryInfo info); in onBatteryInfoLoaded()
138 BatteryInfo.getBatteryInfo(context, callback, null /* statsHelper */, in getBatteryInfo()
144 BatteryInfo.getBatteryInfo(context, callback, null /* statsHelper */, shortString); in getBatteryInfo()
149 new AsyncTask<Void, Void, BatteryInfo>() { in getBatteryInfo()
151 protected BatteryInfo doInBackground(Void... params) { in getBatteryInfo()
156 protected void onPostExecute(BatteryInfo batteryInfo) { in getBatteryInfo()
164 public static BatteryInfo getBatteryInfo(final Context context, in getBatteryInfo()
196 return BatteryInfo.getBatteryInfo(context, batteryBroadcast, stats, in getBatteryInfo()
207 return BatteryInfo.getBatteryInfo(context, batteryBroadcast, stats, in getBatteryInfo()
[all …]
DDebugEstimatesLoader.java32 public class DebugEstimatesLoader extends AsyncLoaderCompat<List<BatteryInfo>> {
41 protected void onDiscardResult(List<BatteryInfo> result) { in onDiscardResult()
46 public List<BatteryInfo> loadInBackground() { in loadInBackground()
58 BatteryInfo oldinfo = BatteryInfo.getBatteryInfoOld(getContext(), batteryBroadcast, in loadInBackground()
65 BatteryInfo newInfo = BatteryInfo.getBatteryInfo(getContext(), batteryBroadcast, stats, in loadInBackground()
68 List<BatteryInfo> infos = new ArrayList<>(); in loadInBackground()
DBatteryInfoLoader.java30 public class BatteryInfoLoader extends AsyncLoaderCompat<BatteryInfo>{
45 protected void onDiscardResult(BatteryInfo result) { in onDiscardResult()
50 public BatteryInfo loadInBackground() { in loadInBackground()
DTopLevelBatteryPreferenceController.java36 private BatteryInfo mBatteryInfo;
42 BatteryInfo.getBatteryInfo(mContext, info -> { in TopLevelBatteryPreferenceController()
77 static CharSequence getDashboardLabel(Context context, BatteryInfo info) { in getDashboardLabel()
DBatteryHistoryPreference.java45 BatteryInfo mBatteryInfo;
54 BatteryInfo.getBatteryInfo(getContext(), info -> { in setStats()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DPowerUsageSummary.java101 BatteryInfo mBatteryInfo;
120 LoaderManager.LoaderCallbacks<BatteryInfo> mBatteryInfoLoaderCallbacks =
121 new LoaderManager.LoaderCallbacks<BatteryInfo>() {
124 public Loader<BatteryInfo> onCreateLoader(int i, Bundle bundle) {
129 public void onLoadFinished(Loader<BatteryInfo> loader, BatteryInfo batteryInfo) {
136 public void onLoaderReset(Loader<BatteryInfo> loader) {
141 LoaderManager.LoaderCallbacks<List<BatteryInfo>> mBatteryInfoDebugLoaderCallbacks =
142 new LoaderCallbacks<List<BatteryInfo>>() {
144 public Loader<List<BatteryInfo>> onCreateLoader(int i, Bundle bundle) {
149 public void onLoadFinished(Loader<List<BatteryInfo>> loader,
[all …]
DBatteryInfo.java42 public class BatteryInfo { class
59 void onBatteryInfoLoaded(BatteryInfo info); in onBatteryInfoLoaded()
140 BatteryInfo.getBatteryInfo(context, callback, null /* statsHelper */, in getBatteryInfo()
146 BatteryInfo.getBatteryInfo(context, callback, null /* statsHelper */, shortString); in getBatteryInfo()
151 new AsyncTask<Void, Void, BatteryInfo>() { in getBatteryInfo()
153 protected BatteryInfo doInBackground(Void... params) { in getBatteryInfo()
158 protected void onPostExecute(BatteryInfo batteryInfo) { in getBatteryInfo()
166 public static BatteryInfo getBatteryInfo(final Context context, in getBatteryInfo()
199 return BatteryInfo.getBatteryInfo(context, batteryBroadcast, stats, in getBatteryInfo()
210 return BatteryInfo.getBatteryInfo(context, batteryBroadcast, stats, in getBatteryInfo()
[all …]
DDebugEstimatesLoader.java34 public class DebugEstimatesLoader extends AsyncLoaderCompat<List<BatteryInfo>> {
43 protected void onDiscardResult(List<BatteryInfo> result) { in onDiscardResult()
48 public List<BatteryInfo> loadInBackground() { in loadInBackground()
60 BatteryInfo oldinfo = BatteryInfo.getBatteryInfoOld(getContext(), batteryBroadcast, in loadInBackground()
67 BatteryInfo newInfo = BatteryInfo.getBatteryInfo(getContext(), batteryBroadcast, stats, in loadInBackground()
70 List<BatteryInfo> infos = new ArrayList<>(); in loadInBackground()
DBatteryInfoLoader.java30 public class BatteryInfoLoader extends AsyncLoaderCompat<BatteryInfo>{
45 protected void onDiscardResult(BatteryInfo result) { in onDiscardResult()
50 public BatteryInfo loadInBackground() { in loadInBackground()
DTopLevelBatteryPreferenceController.java36 private BatteryInfo mBatteryInfo;
42 BatteryInfo.getBatteryInfo(mContext, info -> { in TopLevelBatteryPreferenceController()
77 static CharSequence getDashboardLabel(Context context, BatteryInfo info) { in getDashboardLabel()
DBatteryHistoryPreference.java45 BatteryInfo mBatteryInfo;
54 BatteryInfo.getBatteryInfo(getContext(), info -> { in setStats()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/detectors/
DLowBatteryDetector.java22 import com.android.settings.fuelgauge.BatteryInfo;
33 private BatteryInfo mBatteryInfo;
38 public LowBatteryDetector(Context context, BatteryTipPolicy policy, BatteryInfo batteryInfo) { in LowBatteryDetector()
DHighUsageDetector.java28 import com.android.settings.fuelgauge.BatteryInfo;
118 BatteryInfo.parse(mBatteryStatsHelper.getStats(), mDataParser); in parseBatteryData()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/detectors/
DLowBatteryDetector.java22 import com.android.car.developeroptions.fuelgauge.BatteryInfo;
33 private BatteryInfo mBatteryInfo;
38 public LowBatteryDetector(Context context, BatteryTipPolicy policy, BatteryInfo batteryInfo) { in LowBatteryDetector()
DHighUsageDetector.java29 import com.android.car.developeroptions.fuelgauge.BatteryInfo;
112 BatteryInfo.parse(mBatteryStatsHelper.getStats(), mDataParser); in parseBatteryData()
/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;
68 final BatteryInfo batteryInfo = mBatteryUtils.getBatteryInfo(mBatteryStatsHelper, TAG); in loadInBackground()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/
DHighUsageDataParser.java21 import com.android.car.developeroptions.fuelgauge.BatteryInfo;
27 public class HighUsageDataParser implements BatteryInfo.BatteryDataParser {
DBatteryTipLoader.java24 import com.android.car.developeroptions.fuelgauge.BatteryInfo;
68 final BatteryInfo batteryInfo = mBatteryUtils.getBatteryInfo(mBatteryStatsHelper, TAG); in loadInBackground()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/detectors/
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;
69 private BatteryInfo mBatteryInfo;

12