Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DCustomMeasuredPowerCalculatorTest.java36 private static final double PRECISION = 0.00001; field in CustomMeasuredPowerCalculatorTest
66 .isWithin(PRECISION).of(8.333333); in testMeasuredEnergyCopiedIntoBatteryConsumers()
69 .isWithin(PRECISION).of(33.33333); in testMeasuredEnergyCopiedIntoBatteryConsumers()
74 .isWithin(PRECISION).of(27.77777); in testMeasuredEnergyCopiedIntoBatteryConsumers()
77 .isWithin(PRECISION).of(55.55555); in testMeasuredEnergyCopiedIntoBatteryConsumers()
82 .isWithin(PRECISION).of(27.77777); in testMeasuredEnergyCopiedIntoBatteryConsumers()
85 .isWithin(PRECISION).of(55.55555); in testMeasuredEnergyCopiedIntoBatteryConsumers()
DBatteryChargeCalculatorTest.java35 private static final double PRECISION = 0.00001; field in BatteryChargeCalculatorTest
61 .isWithin(PRECISION).of(1200.0); // 3,600 - 2,400 in testDischargeTotals()
64 .isWithin(PRECISION).of(360.0); in testDischargeTotals()
66 .isWithin(PRECISION).of(400.0); in testDischargeTotals()
100 .isWithin(PRECISION).of(380.0); // 9.5% of 4,000. in testDischargeTotals_chargeUahUnavailable()
103 .isWithin(PRECISION).of(360.0); // 9% of 4,000 in testDischargeTotals_chargeUahUnavailable()
105 .isWithin(PRECISION).of(400.0); // 10% of 4,000 in testDischargeTotals_chargeUahUnavailable()
DGnssPowerCalculatorTest.java35 private static final double PRECISION = 0.00001; field in GnssPowerCalculatorTest
62 .isWithin(PRECISION).of(0.1); in testTimerBasedModel()
68 .isWithin(PRECISION).of(0.1); in testTimerBasedModel()
74 .isWithin(PRECISION).of(0.1); in testTimerBasedModel()
101 .isWithin(PRECISION).of(2.77777); in testMeasuredEnergyBasedModel()
109 .isWithin(PRECISION).of(5.55555); in testMeasuredEnergyBasedModel()
115 .isWithin(PRECISION).of(8.333333); in testMeasuredEnergyBasedModel()
121 .isWithin(PRECISION).of(8.333333); in testMeasuredEnergyBasedModel()
DSystemServicePowerCalculatorTest.java52 private static final double PRECISION = 0.000001; field in SystemServicePowerCalculatorTest
113 .isWithin(PRECISION).of(1.888888); in testPowerProfileBasedModel()
116 .isWithin(PRECISION).of(17.0); in testPowerProfileBasedModel()
119 .isWithin(PRECISION).of(-18.888888); in testPowerProfileBasedModel()
122 .isWithin(PRECISION).of(18.888888); in testPowerProfileBasedModel()
125 .isWithin(PRECISION).of(18.888888); in testPowerProfileBasedModel()
145 .isWithin(PRECISION).of(1.979351); in testMeasuredEnergyBasedModel()
148 .isWithin(PRECISION).of(17.814165); in testMeasuredEnergyBasedModel()
151 .isWithin(PRECISION).of(-19.793517); in testMeasuredEnergyBasedModel()
154 .isWithin(PRECISION).of(19.793517); in testMeasuredEnergyBasedModel()
[all …]
DWifiPowerCalculatorTest.java42 private static final double PRECISION = 0.00001; field in WifiPowerCalculatorTest
92 .isWithin(PRECISION).of(0.2214666); in testPowerControllerBasedModel_nonMeasured()
100 .isWithin(PRECISION).of(0.86666); in testPowerControllerBasedModel_nonMeasured()
106 .isWithin(PRECISION).of(0.866666); in testPowerControllerBasedModel_nonMeasured()
126 .isWithin(PRECISION).of(0.2214666 / (0.2214666 + 0.645200) * 1_000_000 / 3600000); in testPowerControllerBasedModel_measured()
134 .isWithin(PRECISION).of(0.27777); in testPowerControllerBasedModel_measured()
140 .isWithin(PRECISION).of(0.277777); in testPowerControllerBasedModel_measured()
172 .isWithin(PRECISION).of(0.8231573); in testTimerBasedModel_nonMeasured()
193 .isWithin(PRECISION).of(0.8231573 / (0.8231573 + 0.8759216) * 1_000_000 / 3600000); in testTimerBasedModel_measured()
DWakelockPowerCalculatorTest.java37 private static final double PRECISION = 0.00001; field in WakelockPowerCalculatorTest
68 .isWithin(PRECISION).of(0.1); in testTimerBasedModel()
74 .isWithin(PRECISION).of(0.5); in testTimerBasedModel()
80 .isWithin(PRECISION).of(0.6); in testTimerBasedModel()
84 .isWithin(PRECISION).of(0.1); in testTimerBasedModel()
DScreenPowerCalculatorTest.java37 private static final double PRECISION = 0.00001; field in ScreenPowerCalculatorTest
93 .isWithin(PRECISION).of(64.81481); in testMeasuredEnergyBasedModel()
105 .isWithin(PRECISION).of(101.85185); in testMeasuredEnergyBasedModel()
115 .isWithin(PRECISION).of(166.66666); in testMeasuredEnergyBasedModel()
124 .isWithin(PRECISION).of(166.66666); in testMeasuredEnergyBasedModel()
165 .isWithin(PRECISION).of(23.0); in testPowerProfileBasedModel()
176 .isWithin(PRECISION).of(69.0); in testPowerProfileBasedModel()
184 .isWithin(PRECISION).of(92); in testPowerProfileBasedModel()
192 .isWithin(PRECISION).of(92); in testPowerProfileBasedModel()
DVideoPowerCalculatorTest.java35 private static final double PRECISION = 0.00001; field in VideoPowerCalculatorTest
58 .isWithin(PRECISION).of(0.1); in testTimerBasedModel()
65 .isWithin(PRECISION).of(0.1); in testTimerBasedModel()
72 .isWithin(PRECISION).of(0.1); in testTimerBasedModel()
DAudioPowerCalculatorTest.java35 private static final double PRECISION = 0.00001; field in AudioPowerCalculatorTest
58 .isWithin(PRECISION).of(0.1); in testTimerBasedModel()
65 .isWithin(PRECISION).of(0.1); in testTimerBasedModel()
72 .isWithin(PRECISION).of(0.1); in testTimerBasedModel()
DCameraPowerCalculatorTest.java35 private static final double PRECISION = 0.00001; field in CameraPowerCalculatorTest
58 .isWithin(PRECISION).of(0.1); in testTimerBasedModel()
65 .isWithin(PRECISION).of(0.1); in testTimerBasedModel()
72 .isWithin(PRECISION).of(0.1); in testTimerBasedModel()
DMobileRadioPowerCalculatorTest.java47 private static final double PRECISION = 0.00001; field in MobileRadioPowerCalculatorTest
104 .isWithin(PRECISION).of(0.8); in testCounterBasedModel()
110 .isWithin(PRECISION).of(2.2444); in testCounterBasedModel()
116 .isWithin(PRECISION).of(0.8); in testCounterBasedModel()
164 .isWithin(PRECISION).of(1.53934); in testMeasuredEnergyBasedModel()
170 .isWithin(PRECISION).of(4.31711); in testMeasuredEnergyBasedModel()
176 .isWithin(PRECISION).of(1.53934); in testMeasuredEnergyBasedModel()
DCpuPowerCalculatorTest.java47 private static final double PRECISION = 0.00001; field in CpuPowerCalculatorTest
150 .isWithin(PRECISION).of(1.092233); in testTimerBasedModel()
159 .isWithin(PRECISION).of(2.672322); in testTimerBasedModel()
166 .isWithin(PRECISION).of(3.76455); in testTimerBasedModel()
172 .isWithin(PRECISION).of(3.76455); in testTimerBasedModel()
226 .isWithin(PRECISION).of(3.18877); in testMeasuredEnergyBasedModel()
235 .isWithin(PRECISION).of(7.44072); in testMeasuredEnergyBasedModel()
242 .isWithin(PRECISION).of(10.62949); in testMeasuredEnergyBasedModel()
248 .isWithin(PRECISION).of(10.62949); in testMeasuredEnergyBasedModel()
DSensorPowerCalculatorTest.java43 private static final double PRECISION = 0.00001; field in SensorPowerCalculatorTest
76 .isWithin(PRECISION).of(0.5); in testTimerBasedModel()
80 .isWithin(PRECISION).of(0.5); in testTimerBasedModel()
84 .isWithin(PRECISION).of(0.5); in testTimerBasedModel()
DIdlePowerCalculatorTest.java33 private static final double PRECISION = 0.00001; field in IdlePowerCalculatorTest
52 .isWithin(PRECISION).of(0.7); in testTimerBasedModel()
58 .isWithin(PRECISION).of(0); in testTimerBasedModel()
DAmbientDisplayPowerCalculatorTest.java34 private static final double PRECISION = 0.00001; field in AmbientDisplayPowerCalculatorTest
70 .isWithin(PRECISION).of(27.777778); in testMeasuredEnergyBasedModel()
93 .isWithin(PRECISION).of(15.0); in testPowerProfileBasedModel()
DMemoryPowerCalculatorTest.java33 private static final double PRECISION = 0.00001; field in MemoryPowerCalculatorTest
59 .isWithin(PRECISION).of(0.7); in testTimerBasedModel()
DFlashlightPowerCalculatorTest.java35 private static final double PRECISION = 0.00001; field in FlashlightPowerCalculatorTest
58 .isWithin(PRECISION).of(0.1); in testTimerBasedModel()
DBatteryStatsHelperTest.java74 private static final double PRECISION = 0.001; field in BatteryStatsHelperTest
203 assertThat(totalUsage).isWithin(PRECISION).of(BATTERY_SYSTEM_USAGE); in testRemoveHiddenBatterySippers_ContainsHiddenSippers_RemoveAndReturnValue()
223 assertThat(sipperNull.screenPowerMah).isWithin(PRECISION).of(0); in testSmearScreenBatterySipper()
224 assertThat(sipperBg.screenPowerMah).isWithin(PRECISION).of(0); in testSmearScreenBatterySipper()
225 assertThat(sipperFg.screenPowerMah).isWithin(PRECISION).of(BATTERY_SCREEN_USAGE); in testSmearScreenBatterySipper()
DBluetoothPowerCalculatorTest.java39 private static final double PRECISION = 0.00001; field in BluetoothPowerCalculatorTest
138 assertThat(consumedPower).isWithin(PRECISION).of(powerMah); in assertBluetoothPowerAndDuration()
/frameworks/base/core/tests/coretests/src/android/util/
DSparseDoubleArrayTest.java39 private static final double PRECISION = 0.000000001; field in SparseDoubleArrayTest
74 assertEquals(6.1 - 1.2, sda.get(4), PRECISION); in testAdd()
75 assertEquals(-1.2, sda.get(2), PRECISION); in testAdd()
104 assertEquals("Wrong key at index " + i, expectedKey, sda.keyAt(i), PRECISION); in testKeyValueAt()
105 assertEquals("Wrong value at index " + i, expectedValue, sda.valueAt(i), PRECISION); in testKeyValueAt()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DPathInterpolatorBuilder.java24 private static final float PRECISION = 0.002f; field in PathInterpolatorBuilder
58 float[] pointComponents = path.approximate(PRECISION); in initPath()
/frameworks/base/core/java/android/view/animation/
DPathInterpolator.java52 private static final float PRECISION = 0.002f; field in PathInterpolator
162 float[] pointComponents = path.approximate(PRECISION); in initPath()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
DCachedPathIteratorFactory.java42 private static final float PRECISION = 0.002f; field in CachedPathIteratorFactory
91 getFlatPathLength(cubicCurve.getPathIterator(null, PRECISION)); in CachedPathIteratorFactory()
97 getFlatPathLength(quadCurve.getPathIterator(null, PRECISION)); in CachedPathIteratorFactory()
/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/
DBatterySaverPolicyTest.java48 private static final float PRECISION = 0.001f; field in BatterySaverPolicyTest
232 assertThat(screenState.brightnessFactor).isWithin(PRECISION).of(BRIGHTNESS_FACTOR); in verifyBatterySaverConstantsUpdated()
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DPowerManagerServiceTest.java118 private static final float PRECISION = 0.001f; field in PowerManagerServiceTest
393 .isWithin(PRECISION).of(BRIGHTNESS_FACTOR); in testUpdatePowerScreenPolicy_UpdateDisplayPowerRequest()

12