Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/gestural/
DFloatingRotationButtonPositionCalculatorTest.kt24 val position = testCase.calculator.calculatePosition( in calculatePosition()
33 val calculator: FloatingRotationButtonPositionCalculator, constant in com.android.systemui.navigationbar.gestural.FloatingRotationButtonPositionCalculatorTest.TestCase
42 append(when (calculator) { in toString()
45 else -> error("Unknown calculator: $calculator") in toString()
72 calculator = posLeftCalculator,
83 calculator = posLeftCalculator,
94 calculator = posLeftCalculator,
105 calculator = posLeftCalculator,
116 calculator = posLeftCalculator,
127 calculator = posLeftCalculator,
[all …]
/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/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DLetterboxAppearanceCalculatorTest.kt58 private lateinit var calculator: LetterboxAppearanceCalculator variable in com.android.systemui.statusbar.phone.LetterboxAppearanceCalculatorTest
63 calculator = in setUp()
76 calculator.getLetterboxAppearance( in getLetterboxAppearance_overlapStartSide_returnsOriginalWithScrim()
92 calculator.getLetterboxAppearance( in getLetterboxAppearance_overlapEndSide_returnsOriginalWithScrim()
111 calculator.getLetterboxAppearance( in getLetterboxAppearance_withOverlap_doesNotMutateOriginalBounds()
131 calculator.getLetterboxAppearance( in getLetterboxAppearance_noOverlap_BackgroundMultiColor_returnsAppearanceWithScrim()
147 calculator.getLetterboxAppearance( in getLetterboxAppearance_noOverlap_returnsAppearanceWithoutScrim()
160 calculator.getLetterboxAppearance( in getLetterboxAppearance_letterboxContainsStartSide_returnsAppearanceWithoutScrim()
173 calculator.getLetterboxAppearance( in getLetterboxAppearance_letterboxContainsEndSide_returnsAppearanceWithoutScrim()
186 calculator.getLetterboxAppearance( in getLetterboxAppearance_letterboxContainsEntireStatusBar_returnsAppearanceWithoutScrim()
[all …]
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DAmbientDisplayPowerCalculatorTest.java71 AmbientDisplayPowerCalculator calculator = in testMeasuredEnergyBasedModel() local
74 mStatsRule.apply(calculator); in testMeasuredEnergyBasedModel()
131 AmbientDisplayPowerCalculator calculator = in testMeasuredEnergyBasedModel_multiDisplay() local
134 mStatsRule.apply(calculator); in testMeasuredEnergyBasedModel_multiDisplay()
156 AmbientDisplayPowerCalculator calculator = in testPowerProfileBasedModel() local
159 mStatsRule.apply(BatteryUsageStatsRule.POWER_PROFILE_MODEL_ONLY, calculator); in testPowerProfileBasedModel()
187 AmbientDisplayPowerCalculator calculator = in testPowerProfileBasedModel_multiDisplay() local
190 mStatsRule.apply(BatteryUsageStatsRule.POWER_PROFILE_MODEL_ONLY, calculator); in testPowerProfileBasedModel_multiDisplay()
DBluetoothPowerCalculatorTest.java78 BluetoothPowerCalculator calculator = in testTimerBasedModel() local
81 mStatsRule.apply(BatteryUsageStatsRule.POWER_PROFILE_MODEL_ONLY, calculator); in testTimerBasedModel()
133 BluetoothPowerCalculator calculator = in testTimerBasedModel_byProcessState() local
140 .build(), calculator); in testTimerBasedModel_byProcessState()
173 BluetoothPowerCalculator calculator = in testReportedEnergyBasedModel() local
177 calculator); in testReportedEnergyBasedModel()
198 final BluetoothPowerCalculator calculator = in testMeasuredEnergyBasedModel() local
201 mStatsRule.apply(calculator); in testMeasuredEnergyBasedModel()
254 BluetoothPowerCalculator calculator = in testMeasuredEnergyBasedModel_byProcessState() local
260 .build(), calculator); in testMeasuredEnergyBasedModel_byProcessState()
[all …]
DBatteryChargeCalculatorTest.java76 BatteryChargeCalculator calculator = new BatteryChargeCalculator(); in testDischargeTotals() local
77 BatteryUsageStats batteryUsageStats = mStatsRule.apply(calculator); in testDischargeTotals()
97 batteryUsageStats = mStatsRule.apply(calculator); in testDischargeTotals()
118 BatteryChargeCalculator calculator = new BatteryChargeCalculator(); in testDischargeTotals_chargeUahUnavailable() local
119 BatteryUsageStats batteryUsageStats = mStatsRule.apply(calculator); in testDischargeTotals_chargeUahUnavailable()
DWifiPowerCalculatorTest.java154 WifiPowerCalculator calculator = new WifiPowerCalculator(mStatsRule.getPowerProfile()); in testPowerControllerBasedModel_nonMeasured() local
155 mStatsRule.apply(BatteryUsageStatsRule.POWER_PROFILE_MODEL_ONLY, calculator); in testPowerControllerBasedModel_nonMeasured()
205 WifiPowerCalculator calculator = new WifiPowerCalculator(mStatsRule.getPowerProfile()); in testPowerControllerBasedModel_powerProfile_byProcessState() local
210 .build(), calculator); in testPowerControllerBasedModel_powerProfile_byProcessState()
242 WifiPowerCalculator calculator = new WifiPowerCalculator(mStatsRule.getPowerProfile()); in testPowerControllerBasedModel_measured() local
243 mStatsRule.apply(calculator); in testPowerControllerBasedModel_measured()
294 WifiPowerCalculator calculator = new WifiPowerCalculator(mStatsRule.getPowerProfile()); in testPowerControllerBasedModel_measured_byProcessState() local
298 .build(), calculator); in testPowerControllerBasedModel_measured_byProcessState()
344 WifiPowerCalculator calculator = new WifiPowerCalculator(mStatsRule.getPowerProfile()); in testTimerBasedModel_nonMeasured() local
345 mStatsRule.apply(BatteryUsageStatsRule.POWER_PROFILE_MODEL_ONLY, calculator); in testTimerBasedModel_nonMeasured()
[all …]
DGnssPowerCalculatorTest.java61 GnssPowerCalculator calculator = in testTimerBasedModel() local
64 mStatsRule.apply(BatteryUsageStatsRule.POWER_PROFILE_MODEL_ONLY, calculator); in testTimerBasedModel()
100 GnssPowerCalculator calculator = in testMeasuredEnergyBasedModel() local
103 mStatsRule.apply(calculator); in testMeasuredEnergyBasedModel()
DCameraPowerCalculatorTest.java63 CameraPowerCalculator calculator = in testTimerBasedModel() local
66 mStatsRule.apply(BatteryUsageStatsRule.POWER_PROFILE_MODEL_ONLY, calculator); in testTimerBasedModel()
115 CameraPowerCalculator calculator = in testEnergyConsumptionBasedModel() local
118 mStatsRule.apply(calculator); in testEnergyConsumptionBasedModel()
DScreenPowerCalculatorTest.java92 ScreenPowerCalculator calculator = in testMeasuredEnergyBasedModel() local
95 mStatsRule.apply(calculator); in testMeasuredEnergyBasedModel()
191 ScreenPowerCalculator calculator = in testMeasuredEnergyBasedModel_multiDisplay() local
194 mStatsRule.apply(calculator); in testMeasuredEnergyBasedModel_multiDisplay()
263 ScreenPowerCalculator calculator = in testPowerProfileBasedModel() local
266 mStatsRule.apply(BatteryUsageStatsRule.POWER_PROFILE_MODEL_ONLY, calculator); in testPowerProfileBasedModel()
345 ScreenPowerCalculator calculator = in testPowerProfileBasedModel_multiDisplay() local
348 mStatsRule.apply(BatteryUsageStatsRule.POWER_PROFILE_MODEL_ONLY, calculator); in testPowerProfileBasedModel_multiDisplay()
DMemoryPowerCalculatorTest.java58 MemoryPowerCalculator calculator = in testTimerBasedModel() local
61 mStatsRule.apply(calculator); in testTimerBasedModel()
DFlashlightPowerCalculatorTest.java57 FlashlightPowerCalculator calculator = in testTimerBasedModel() local
60 mStatsRule.apply(calculator); in testTimerBasedModel()
DUserPowerCalculatorTest.java59 UserPowerCalculator calculator = new UserPowerCalculator(); in testAllUsers() local
61 mStatsRule.apply(BatteryUsageStatsQuery.DEFAULT, calculator, new FakeAudioPowerCalculator(), in testAllUsers()
83 UserPowerCalculator calculator = new UserPowerCalculator(); in testSpecificUser() local
86 calculator, new FakeAudioPowerCalculator(), new FakeVideoPowerCalculator()); in testSpecificUser()
DIdlePowerCalculatorTest.java52 IdlePowerCalculator calculator = new IdlePowerCalculator(mStatsRule.getPowerProfile()); in testTimerBasedModel() local
54 mStatsRule.apply(calculator); in testTimerBasedModel()
DVideoPowerCalculatorTest.java57 VideoPowerCalculator calculator = in testTimerBasedModel() local
60 mStatsRule.apply(calculator); in testTimerBasedModel()
DAudioPowerCalculatorTest.java57 AudioPowerCalculator calculator = in testTimerBasedModel() local
60 mStatsRule.apply(calculator); in testTimerBasedModel()
DCustomEnergyConsumerPowerCalculatorTest.java65 CustomEnergyConsumerPowerCalculator calculator = in testMeasuredEnergyCopiedIntoBatteryConsumers() local
68 mStatsRule.apply(calculator); in testMeasuredEnergyCopiedIntoBatteryConsumers()
DCpuPowerCalculatorTest.java184 CpuPowerCalculator calculator = in testTimerBasedModel() local
188 mStatsRule.apply(BatteryUsageStatsRule.POWER_PROFILE_MODEL_ONLY, calculator); in testTimerBasedModel()
257 CpuPowerCalculator calculator = new CpuPowerCalculator(mStatsRule.getCpuScalingPolicies(), in testMeasuredEnergyBasedModel() local
260 mStatsRule.apply(calculator); in testMeasuredEnergyBasedModel()
363 CpuPowerCalculator calculator = new CpuPowerCalculator(mStatsRule.getCpuScalingPolicies(), in testTimerBasedModel_byProcessState() local
370 .build(), calculator); in testTimerBasedModel_byProcessState()
475 CpuPowerCalculator calculator = new CpuPowerCalculator(mStatsRule.getCpuScalingPolicies(), in testMeasuredEnergyBasedModel_perProcessState() local
481 .build(), calculator); in testMeasuredEnergyBasedModel_perProcessState()
DWakelockPowerCalculatorTest.java69 WakelockPowerCalculator calculator = in testTimerBasedModel() local
72 mStatsRule.apply(calculator); in testTimerBasedModel()
DSensorPowerCalculatorTest.java76 SensorPowerCalculator calculator = new SensorPowerCalculator(sensorManager); in testTimerBasedModel() local
78 mStatsRule.apply(calculator); in testTimerBasedModel()
DSystemServicePowerCalculatorTest.java125 SystemServicePowerCalculator calculator = new SystemServicePowerCalculator( in testPowerProfileBasedModel() local
129 mStatsRule.getPowerProfile()), calculator); in testPowerProfileBasedModel()
159 SystemServicePowerCalculator calculator = new SystemServicePowerCalculator( in testMeasuredEnergyBasedModel() local
163 mStatsRule.getPowerProfile()), calculator); in testMeasuredEnergyBasedModel()
DMobileRadioPowerCalculatorTest.java149 MobileRadioPowerCalculator calculator = in testCounterBasedModel() local
152 mStatsRule.apply(BatteryUsageStatsRule.POWER_PROFILE_MODEL_ONLY, calculator); in testCounterBasedModel()
293 MobileRadioPowerCalculator calculator = in testCounterBasedModel_multipleDefinedRat() local
296 mStatsRule.apply(BatteryUsageStatsRule.POWER_PROFILE_MODEL_ONLY, calculator); in testCounterBasedModel_multipleDefinedRat()
426 MobileRadioPowerCalculator calculator = in testCounterBasedModel_legacyPowerProfile() local
429 mStatsRule.apply(BatteryUsageStatsRule.POWER_PROFILE_MODEL_ONLY, calculator); in testCounterBasedModel_legacyPowerProfile()
561 MobileRadioPowerCalculator calculator = in testTimerBasedModel_byProcessState() local
570 .build(), calculator); in testTimerBasedModel_byProcessState()
1024 MobileRadioPowerCalculator calculator = in testMeasuredEnergyBasedModel_byProcessState() local
1030 .build(), calculator); in testMeasuredEnergyBasedModel_byProcessState()
DBatteryUsageStatsRule.java409 for (PowerCalculator calculator : calculators) {
410 calculator.calculate(builder, mBatteryStats, mMockClock.realtime * 1000,
/frameworks/base/core/java/com/android/internal/graphics/
DColorUtils.java181 float minContrastRatio, ContrastCalculator calculator) { in binaryAlphaSearch() argument
191 final double testRatio = calculator.calculateContrast(foreground, background, in binaryAlphaSearch()
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/embedding/
DSplitPresenter.java783 final Function<SplitAttributesCalculatorParams, SplitAttributes> calculator = in computeSplitAttributes() local
786 if (calculator == null) { in computeSplitAttributes()
799 final SplitAttributes splitAttributes = calculator.apply(params); in computeSplitAttributes()

12