Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBluetoothPowerCalculatorTest.java53 BluetoothPowerCalculator calculator = in testTimerBasedModel() local
56 mStatsRule.apply(BatteryUsageStatsRule.POWER_PROFILE_MODEL_ONLY, calculator); in testTimerBasedModel()
66 BluetoothPowerCalculator calculator = in testReportedEnergyBasedModel() local
70 calculator); in testReportedEnergyBasedModel()
81 final BluetoothPowerCalculator calculator = in testMeasuredEnergyBasedModel() local
84 mStatsRule.apply(calculator); in testMeasuredEnergyBasedModel()
95 BluetoothPowerCalculator calculator = in testIgnoreMeasuredEnergyBasedModel() local
98 mStatsRule.apply(BatteryUsageStatsRule.POWER_PROFILE_MODEL_ONLY, calculator); in testIgnoreMeasuredEnergyBasedModel()
DWifiPowerCalculatorTest.java85 WifiPowerCalculator calculator = new WifiPowerCalculator(mStatsRule.getPowerProfile()); in testPowerControllerBasedModel_nonMeasured() local
86 mStatsRule.apply(BatteryUsageStatsRule.POWER_PROFILE_MODEL_ONLY, calculator); in testPowerControllerBasedModel_nonMeasured()
118 WifiPowerCalculator calculator = new WifiPowerCalculator(mStatsRule.getPowerProfile()); in testPowerControllerBasedModel_measured() local
119 mStatsRule.apply(calculator); in testPowerControllerBasedModel_measured()
165 WifiPowerCalculator calculator = new WifiPowerCalculator(mStatsRule.getPowerProfile()); in testTimerBasedModel_nonMeasured() local
166 mStatsRule.apply(BatteryUsageStatsRule.POWER_PROFILE_MODEL_ONLY, calculator); in testTimerBasedModel_nonMeasured()
185 WifiPowerCalculator calculator = new WifiPowerCalculator(mStatsRule.getPowerProfile()); in testTimerBasedModel_measured() local
186 mStatsRule.apply(calculator); in testTimerBasedModel_measured()
DBatteryChargeCalculatorTest.java57 BatteryChargeCalculator calculator = new BatteryChargeCalculator(); in testDischargeTotals() local
58 BatteryUsageStats batteryUsageStats = mStatsRule.apply(calculator); in testDischargeTotals()
75 batteryUsageStats = mStatsRule.apply(calculator); in testDischargeTotals()
96 BatteryChargeCalculator calculator = new BatteryChargeCalculator(); in testDischargeTotals_chargeUahUnavailable() local
97 BatteryUsageStats batteryUsageStats = mStatsRule.apply(calculator); in testDischargeTotals_chargeUahUnavailable()
DAmbientDisplayPowerCalculatorTest.java60 AmbientDisplayPowerCalculator calculator = in testMeasuredEnergyBasedModel() local
63 mStatsRule.apply(calculator); in testMeasuredEnergyBasedModel()
84 AmbientDisplayPowerCalculator calculator = in testPowerProfileBasedModel() local
87 mStatsRule.apply(BatteryUsageStatsRule.POWER_PROFILE_MODEL_ONLY, calculator); in testPowerProfileBasedModel()
DGnssPowerCalculatorTest.java53 GnssPowerCalculator calculator = in testTimerBasedModel() local
56 mStatsRule.apply(BatteryUsageStatsRule.POWER_PROFILE_MODEL_ONLY, calculator); in testTimerBasedModel()
92 GnssPowerCalculator calculator = in testMeasuredEnergyBasedModel() local
95 mStatsRule.apply(calculator); in testMeasuredEnergyBasedModel()
DMemoryPowerCalculatorTest.java50 MemoryPowerCalculator calculator = in testTimerBasedModel() local
53 mStatsRule.apply(calculator); in testTimerBasedModel()
DUserPowerCalculatorTest.java53 UserPowerCalculator calculator = new UserPowerCalculator(); in testAllUsers() local
55 mStatsRule.apply(BatteryUsageStatsQuery.DEFAULT, calculator, new FakeAudioPowerCalculator(), in testAllUsers()
77 UserPowerCalculator calculator = new UserPowerCalculator(); in testSpecificUser() local
80 calculator, new FakeAudioPowerCalculator(), new FakeVideoPowerCalculator()); in testSpecificUser()
DMobileRadioPowerCalculatorTest.java97 MobileRadioPowerCalculator calculator = in testCounterBasedModel() local
100 mStatsRule.apply(BatteryUsageStatsRule.POWER_PROFILE_MODEL_ONLY, calculator); in testCounterBasedModel()
157 MobileRadioPowerCalculator calculator = in testMeasuredEnergyBasedModel() local
160 mStatsRule.apply(calculator); in testMeasuredEnergyBasedModel()
DFlashlightPowerCalculatorTest.java49 FlashlightPowerCalculator calculator = in testTimerBasedModel() local
52 mStatsRule.apply(calculator); in testTimerBasedModel()
DIdlePowerCalculatorTest.java44 IdlePowerCalculator calculator = new IdlePowerCalculator(mStatsRule.getPowerProfile()); in testTimerBasedModel() local
46 mStatsRule.apply(calculator); in testTimerBasedModel()
DVideoPowerCalculatorTest.java49 VideoPowerCalculator calculator = in testTimerBasedModel() local
52 mStatsRule.apply(calculator); in testTimerBasedModel()
DAudioPowerCalculatorTest.java49 AudioPowerCalculator calculator = in testTimerBasedModel() local
52 mStatsRule.apply(calculator); in testTimerBasedModel()
DCameraPowerCalculatorTest.java49 CameraPowerCalculator calculator = in testTimerBasedModel() local
52 mStatsRule.apply(calculator); in testTimerBasedModel()
DSystemServicePowerCalculatorTest.java106 SystemServicePowerCalculator calculator = new SystemServicePowerCalculator( in testPowerProfileBasedModel() local
109 mStatsRule.apply(new CpuPowerCalculator(mStatsRule.getPowerProfile()), calculator); in testPowerProfileBasedModel()
138 SystemServicePowerCalculator calculator = new SystemServicePowerCalculator( in testMeasuredEnergyBasedModel() local
141 mStatsRule.apply(new CpuPowerCalculator(mStatsRule.getPowerProfile()), calculator); in testMeasuredEnergyBasedModel()
DScreenPowerCalculatorTest.java80 ScreenPowerCalculator calculator = in testMeasuredEnergyBasedModel() local
83 mStatsRule.apply(calculator); in testMeasuredEnergyBasedModel()
153 ScreenPowerCalculator calculator = in testPowerProfileBasedModel() local
156 mStatsRule.apply(BatteryUsageStatsRule.POWER_PROFILE_MODEL_ONLY, calculator); in testPowerProfileBasedModel()
DCustomMeasuredPowerCalculatorTest.java58 CustomMeasuredPowerCalculator calculator = in testMeasuredEnergyCopiedIntoBatteryConsumers() local
61 mStatsRule.apply(calculator); in testMeasuredEnergyCopiedIntoBatteryConsumers()
DWakelockPowerCalculatorTest.java59 WakelockPowerCalculator calculator = in testTimerBasedModel() local
62 mStatsRule.apply(calculator); in testTimerBasedModel()
DSensorPowerCalculatorTest.java68 SensorPowerCalculator calculator = new SensorPowerCalculator(sensorManager); in testTimerBasedModel() local
70 mStatsRule.apply(calculator); in testTimerBasedModel()
DCpuPowerCalculatorTest.java141 CpuPowerCalculator calculator = in testTimerBasedModel() local
144 mStatsRule.apply(BatteryUsageStatsRule.POWER_PROFILE_MODEL_ONLY, calculator); in testTimerBasedModel()
217 CpuPowerCalculator calculator = in testMeasuredEnergyBasedModel() local
220 mStatsRule.apply(calculator); in testMeasuredEnergyBasedModel()
DBatteryUsageStatsRule.java193 for (PowerCalculator calculator : calculators) {
194 calculator.calculate(builder, mBatteryStats, mMockClocks.realtime, mMockClocks.uptime,
/frameworks/base/core/java/android/text/format/
DTime.java164 private TimeCalculator calculator; field in Time
208 calculator = new TimeCalculator(timezoneId); in initialize()
230 calculator.copyFieldsFromTime(this); in normalize()
231 long timeInMillis = calculator.toMillis(ignoreDst); in normalize()
232 calculator.copyFieldsToTime(this); in normalize()
244 calculator.copyFieldsFromTime(this); in switchTimezone()
245 calculator.switchTimeZone(timezone); in switchTimezone()
246 calculator.copyFieldsToTime(this); in switchTimezone()
342 a.calculator.copyFieldsFromTime(a); in compare()
343 b.calculator.copyFieldsFromTime(b); in compare()
[all …]
/frameworks/base/core/java/com/android/internal/graphics/
DColorUtils.java178 float minContrastRatio, ContrastCalculator calculator) { in binaryAlphaSearch() argument
188 final double testRatio = calculator.calculateContrast(foreground, background, in binaryAlphaSearch()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsHelper.java463 final PowerCalculator calculator = mPowerCalculators.get(i); in processAppUsage() local
464 calculator.calculate(sippers, mStats, mRawRealtimeUs, mRawUptimeUs, mStatsType, in processAppUsage()
DBatteryStatsImpl.java12866 CpuDeltaPowerAccumulator(CpuPowerCalculator calculator, int nClusters) { in CpuDeltaPowerAccumulator() argument
12867 mCalculator = calculator; in CpuDeltaPowerAccumulator()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt59418 Landroid/text/format/Time;->calculator:Landroid/text/format/Time$TimeCalculator;