/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | CustomMeasuredPowerCalculatorTest.java | 36 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()
|
D | BatteryChargeCalculatorTest.java | 35 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()
|
D | GnssPowerCalculatorTest.java | 35 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()
|
D | SystemServicePowerCalculatorTest.java | 52 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 …]
|
D | WifiPowerCalculatorTest.java | 42 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()
|
D | WakelockPowerCalculatorTest.java | 37 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()
|
D | ScreenPowerCalculatorTest.java | 37 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()
|
D | VideoPowerCalculatorTest.java | 35 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()
|
D | AudioPowerCalculatorTest.java | 35 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()
|
D | CameraPowerCalculatorTest.java | 35 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()
|
D | MobileRadioPowerCalculatorTest.java | 47 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()
|
D | CpuPowerCalculatorTest.java | 47 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()
|
D | SensorPowerCalculatorTest.java | 43 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()
|
D | IdlePowerCalculatorTest.java | 33 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()
|
D | AmbientDisplayPowerCalculatorTest.java | 34 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()
|
D | MemoryPowerCalculatorTest.java | 33 private static final double PRECISION = 0.00001; field in MemoryPowerCalculatorTest 59 .isWithin(PRECISION).of(0.7); in testTimerBasedModel()
|
D | FlashlightPowerCalculatorTest.java | 35 private static final double PRECISION = 0.00001; field in FlashlightPowerCalculatorTest 58 .isWithin(PRECISION).of(0.1); in testTimerBasedModel()
|
D | BatteryStatsHelperTest.java | 74 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()
|
D | BluetoothPowerCalculatorTest.java | 39 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/ |
D | SparseDoubleArrayTest.java | 39 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/ |
D | PathInterpolatorBuilder.java | 24 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/ |
D | PathInterpolator.java | 52 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/ |
D | CachedPathIteratorFactory.java | 42 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/ |
D | BatterySaverPolicyTest.java | 48 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/ |
D | PowerManagerServiceTest.java | 118 private static final float PRECISION = 0.001f; field in PowerManagerServiceTest 393 .isWithin(PRECISION).of(BRIGHTNESS_FACTOR); in testUpdatePowerScreenPolicy_UpdateDisplayPowerRequest()
|