/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryInfoTest.java | 104 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 …]
|
D | PowerUsageSummaryTest.java | 126 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()
|
D | TopLevelBatteryPreferenceControllerTest.java | 58 BatteryInfo info = new BatteryInfo(); in getDashboardLabel_returnsCorrectLabel()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/ |
D | PowerUsageSummary.java | 94 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 …]
|
D | BatteryInfo.java | 40 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 …]
|
D | DebugEstimatesLoader.java | 32 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()
|
D | BatteryInfoLoader.java | 30 public class BatteryInfoLoader extends AsyncLoaderCompat<BatteryInfo>{ 45 protected void onDiscardResult(BatteryInfo result) { in onDiscardResult() 50 public BatteryInfo loadInBackground() { in loadInBackground()
|
D | TopLevelBatteryPreferenceController.java | 36 private BatteryInfo mBatteryInfo; 42 BatteryInfo.getBatteryInfo(mContext, info -> { in TopLevelBatteryPreferenceController() 77 static CharSequence getDashboardLabel(Context context, BatteryInfo info) { in getDashboardLabel()
|
D | BatteryHistoryPreference.java | 45 BatteryInfo mBatteryInfo; 54 BatteryInfo.getBatteryInfo(getContext(), info -> { in setStats()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | PowerUsageSummary.java | 101 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 …]
|
D | BatteryInfo.java | 42 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 …]
|
D | DebugEstimatesLoader.java | 34 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()
|
D | BatteryInfoLoader.java | 30 public class BatteryInfoLoader extends AsyncLoaderCompat<BatteryInfo>{ 45 protected void onDiscardResult(BatteryInfo result) { in onDiscardResult() 50 public BatteryInfo loadInBackground() { in loadInBackground()
|
D | TopLevelBatteryPreferenceController.java | 36 private BatteryInfo mBatteryInfo; 42 BatteryInfo.getBatteryInfo(mContext, info -> { in TopLevelBatteryPreferenceController() 77 static CharSequence getDashboardLabel(Context context, BatteryInfo info) { in getDashboardLabel()
|
D | BatteryHistoryPreference.java | 45 BatteryInfo mBatteryInfo; 54 BatteryInfo.getBatteryInfo(getContext(), info -> { in setStats()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/detectors/ |
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 | 28 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/ |
D | LowBatteryDetector.java | 22 import com.android.car.developeroptions.fuelgauge.BatteryInfo; 33 private BatteryInfo mBatteryInfo; 38 public LowBatteryDetector(Context context, BatteryTipPolicy policy, BatteryInfo batteryInfo) { in LowBatteryDetector()
|
D | HighUsageDetector.java | 29 import com.android.car.developeroptions.fuelgauge.BatteryInfo; 112 BatteryInfo.parse(mBatteryStatsHelper.getStats(), mDataParser); in parseBatteryData()
|
/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; 68 final BatteryInfo batteryInfo = mBatteryUtils.getBatteryInfo(mBatteryStatsHelper, TAG); in loadInBackground()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/ |
D | HighUsageDataParser.java | 21 import com.android.car.developeroptions.fuelgauge.BatteryInfo; 27 public class HighUsageDataParser implements BatteryInfo.BatteryDataParser {
|
D | BatteryTipLoader.java | 24 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/ |
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; 69 private BatteryInfo mBatteryInfo;
|