/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/gestural/ |
D | FloatingRotationButtonPositionCalculatorTest.kt | 24 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/ |
D | Time.java | 164 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/ |
D | LetterboxAppearanceCalculatorTest.kt | 58 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/ |
D | AmbientDisplayPowerCalculatorTest.java | 71 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()
|
D | BluetoothPowerCalculatorTest.java | 78 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 …]
|
D | BatteryChargeCalculatorTest.java | 76 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()
|
D | WifiPowerCalculatorTest.java | 154 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 …]
|
D | GnssPowerCalculatorTest.java | 61 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()
|
D | CameraPowerCalculatorTest.java | 63 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()
|
D | ScreenPowerCalculatorTest.java | 92 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()
|
D | MemoryPowerCalculatorTest.java | 58 MemoryPowerCalculator calculator = in testTimerBasedModel() local 61 mStatsRule.apply(calculator); in testTimerBasedModel()
|
D | FlashlightPowerCalculatorTest.java | 57 FlashlightPowerCalculator calculator = in testTimerBasedModel() local 60 mStatsRule.apply(calculator); in testTimerBasedModel()
|
D | UserPowerCalculatorTest.java | 59 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()
|
D | IdlePowerCalculatorTest.java | 52 IdlePowerCalculator calculator = new IdlePowerCalculator(mStatsRule.getPowerProfile()); in testTimerBasedModel() local 54 mStatsRule.apply(calculator); in testTimerBasedModel()
|
D | VideoPowerCalculatorTest.java | 57 VideoPowerCalculator calculator = in testTimerBasedModel() local 60 mStatsRule.apply(calculator); in testTimerBasedModel()
|
D | AudioPowerCalculatorTest.java | 57 AudioPowerCalculator calculator = in testTimerBasedModel() local 60 mStatsRule.apply(calculator); in testTimerBasedModel()
|
D | CustomEnergyConsumerPowerCalculatorTest.java | 65 CustomEnergyConsumerPowerCalculator calculator = in testMeasuredEnergyCopiedIntoBatteryConsumers() local 68 mStatsRule.apply(calculator); in testMeasuredEnergyCopiedIntoBatteryConsumers()
|
D | CpuPowerCalculatorTest.java | 184 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()
|
D | WakelockPowerCalculatorTest.java | 69 WakelockPowerCalculator calculator = in testTimerBasedModel() local 72 mStatsRule.apply(calculator); in testTimerBasedModel()
|
D | SensorPowerCalculatorTest.java | 76 SensorPowerCalculator calculator = new SensorPowerCalculator(sensorManager); in testTimerBasedModel() local 78 mStatsRule.apply(calculator); in testTimerBasedModel()
|
D | SystemServicePowerCalculatorTest.java | 125 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()
|
D | MobileRadioPowerCalculatorTest.java | 149 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()
|
D | BatteryUsageStatsRule.java | 409 for (PowerCalculator calculator : calculators) { 410 calculator.calculate(builder, mBatteryStats, mMockClock.realtime * 1000,
|
/frameworks/base/core/java/com/android/internal/graphics/ |
D | ColorUtils.java | 181 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/ |
D | SplitPresenter.java | 783 final Function<SplitAttributesCalculatorParams, SplitAttributes> calculator = in computeSplitAttributes() local 786 if (calculator == null) { in computeSplitAttributes() 799 final SplitAttributes splitAttributes = calculator.apply(params); in computeSplitAttributes()
|