Home
last modified time | relevance | path

Searched refs:USE_FAKE_DATA (Results 1 – 8 of 8) sorted by relevance

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryAppListPreferenceController.java66 static final boolean USE_FAKE_DATA = false; field in BatteryAppListPreferenceController
67 private static final int MAX_ITEMS_TO_LIST = USE_FAKE_DATA ? 30 : 20;
183 final int dischargeAmount = USE_FAKE_DATA ? 5000 in refreshAppListGroup()
189 if (averagePower >= MIN_AVERAGE_POWER_THRESHOLD_MILLI_AMP || USE_FAKE_DATA) { in refreshAppListGroup()
191 USE_FAKE_DATA ? getFakeStats() : statsHelper.getUsageList()); in refreshAppListGroup()
199 double totalPower = USE_FAKE_DATA ? 4000 : statsHelper.getTotalPower(); in refreshAppListGroup()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryAppListPreferenceController.java66 static final boolean USE_FAKE_DATA = false; field in BatteryAppListPreferenceController
67 private static final int MAX_ITEMS_TO_LIST = USE_FAKE_DATA ? 30 : 20;
183 final int dischargeAmount = USE_FAKE_DATA ? 5000 in refreshAppListGroup()
189 if (averagePower >= MIN_AVERAGE_POWER_THRESHOLD_MILLI_AMP || USE_FAKE_DATA) { in refreshAppListGroup()
191 USE_FAKE_DATA ? getFakeStats() : statsHelper.getUsageList()); in refreshAppListGroup()
199 double totalPower = USE_FAKE_DATA ? 4000 : statsHelper.getTotalPower(); in refreshAppListGroup()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/detectors/
DRestrictAppDetector.java45 static final boolean USE_FAKE_DATA = false; field in RestrictAppDetector
64 if (USE_FAKE_DATA) { in detect()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/detectors/
DRestrictAppDetector.java45 static final boolean USE_FAKE_DATA = false; field in RestrictAppDetector
64 if (USE_FAKE_DATA) { in detect()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipLoader.java49 private static final boolean USE_FAKE_DATA = false; field in BatteryTipLoader
63 if (USE_FAKE_DATA) { in loadInBackground()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/
DBatteryTipLoader.java49 private static final boolean USE_FAKE_DATA = false; field in BatteryTipLoader
63 if (USE_FAKE_DATA) { in loadInBackground()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryAppListPreferenceControllerTest.java216 assertThat(BatteryAppListPreferenceController.USE_FAKE_DATA).isFalse(); in testNeverUseFakeData()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/detectors/
DRestrictAppDetectorTest.java206 assertThat(RestrictAppDetector.USE_FAKE_DATA).isFalse(); in testUseFakeData_alwaysFalse()