/frameworks/base/tools/powermodel/test/com/android/powermodel/ |
D | PowerProfileTest.java | 45 private static final float EPSILON = 0.00001f; field in PowerProfileTest 58 Assert.assertEquals(12.0f, audio.onMa, EPSILON); in testReadGood() 63 Assert.assertEquals(0.02f, bluetooth.idleMa, EPSILON); in testReadGood() 64 Assert.assertEquals(3.0f, bluetooth.rxMa, EPSILON); in testReadGood() 65 Assert.assertEquals(5.0f, bluetooth.txMa, EPSILON); in testReadGood() 69 Assert.assertEquals(941.0f, camera.onMa, EPSILON); in testReadGood() 73 Assert.assertEquals(1.3f, cpu.suspendMa, EPSILON); in testReadGood() 74 Assert.assertEquals(3.9f, cpu.idleMa, EPSILON); in testReadGood() 75 Assert.assertEquals(18.33f, cpu.activeMa, EPSILON); in testReadGood() 79 Assert.assertEquals(2.41f, cpu.clusters[0].onMa, EPSILON); in testReadGood() [all …]
|
D | PowerReportTest.java | 33 private static final double EPSILON = 0.001; field in PowerReportTest 77 Assert.assertEquals(GMAIL_MODEM_MAH, modem.powerMah, EPSILON); in testModemApp() 96 modem.strengthMah, EPSILON); in testModemRemainder() 97 Assert.assertEquals(2443805 * 12 / MS_PER_HR, modem.scanningMah, EPSILON); in testModemRemainder() 98 Assert.assertEquals(4923676 * AVERAGE_MODEM_POWER / MS_PER_HR, modem.activeMah, EPSILON); in testModemRemainder() 100 Assert.assertEquals(REMAINDER_MODEM_MAH, modem.powerMah, EPSILON); in testModemRemainder() 110 Assert.assertEquals(GMAIL_MAH, gmail.getAppPowerMah(), EPSILON); in testAppTotal() 119 Assert.assertEquals(REMAINDER_MAH, remainder.getAppPowerMah(), EPSILON); in testRemainderTotal() 125 Assert.assertEquals(TOTAL_MAH, report.getTotalPowerMah(), EPSILON); in testTotal()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
D | AutomaticBrightnessControllerTest.java | 75 private static final float EPSILON = 0.001f; field in AutomaticBrightnessControllerTest 186 assertEquals(normalizedBrightness1, mController.getAutomaticScreenBrightness(), EPSILON); in testNoHysteresisAtMinBrightness() 200 assertEquals(normalizedBrightness2, mController.getAutomaticScreenBrightness(), EPSILON); in testNoHysteresisAtMinBrightness() 229 assertEquals(normalizedBrightness1, mController.getAutomaticScreenBrightness(), EPSILON); in testNoHysteresisAtMaxBrightness() 244 assertEquals(normalizedBrightness2, mController.getAutomaticScreenBrightness(), EPSILON); in testNoHysteresisAtMaxBrightness() 364 assertEquals(0.0f, mController.getAmbientLux(), EPSILON); in testAmbientLightHorizon() 369 assertEquals(0.0f, mController.getAmbientLux(), EPSILON); in testAmbientLightHorizon() 375 assertEquals(0.0f, mController.getAmbientLux(), EPSILON); in testAmbientLightHorizon() 397 assertEquals(10000.0f, mController.getAmbientLux(), EPSILON); in testAmbientLightHorizon() 403 assertEquals(10000.0f, mController.getAmbientLux(), EPSILON); in testAmbientLightHorizon() [all …]
|
D | HighBrightnessModeControllerTest.java | 95 private static final float EPSILON = 0.000001f; field in HighBrightnessModeControllerTest 403 assertEquals(DEFAULT_MAX, hbmc.getCurrentBrightnessMax(), EPSILON); in testHdrTrumpsSunlight() 410 assertEquals(TRANSITION_POINT, hbmc.getCurrentBrightnessMax(), EPSILON); in testHdrTrumpsSunlight() 422 assertEquals(TRANSITION_POINT, hbmc.getCurrentBrightnessMax(), EPSILON); in testHdrBrightnessLimitSameAsNormalLimit() 429 assertEquals(TRANSITION_POINT, hbmc.getCurrentBrightnessMax(), EPSILON); in testHdrBrightnessLimitSameAsNormalLimit() 447 assertEquals(expectedHdrBrightness, hbmc.getHdrBrightnessValue(), EPSILON); in testHdrBrightnessScaledNormalBrightness() 455 assertEquals(expectedHdrBrightness, hbmc.getHdrBrightnessValue(), EPSILON); in testHdrBrightnessScaledNormalBrightness() 462 assertEquals(expectedHdrBrightness, hbmc.getHdrBrightnessValue(), EPSILON); in testHdrBrightnessScaledNormalBrightness() 469 assertEquals(expectedHdrBrightness, hbmc.getHdrBrightnessValue(), EPSILON); in testHdrBrightnessScaledNormalBrightness() 698 assertEquals(brightnessMin, hbmc.getCurrentBrightnessMin(), EPSILON); in assertState() [all …]
|
D | BrightnessThrottlerTest.java | 63 private static final float EPSILON = 0.000001f; field in BrightnessThrottlerTest 120 PowerManager.BRIGHTNESS_MAX + EPSILON)); in testBrightnessThrottlingData()
|
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/ |
D | TextLanguageTest.java | 40 private static final float EPSILON = 0.000001f; field in TextLanguageTest 64 assertEquals(0.8f, result.getConfidenceScore(ULocale.ENGLISH), EPSILON); in testParcel() 66 assertEquals(0.2f, result.getConfidenceScore(ULocale.GERMAN), EPSILON); in testParcel()
|
D | TextClassificationTest.java | 62 private static final float EPSILON = 1e-7f; field in TextClassificationTest 134 assertEquals(0.7f, result.getConfidenceScore(TextClassifier.TYPE_PHONE), EPSILON); in testParcel() 135 assertEquals(0.3f, result.getConfidenceScore(TextClassifier.TYPE_ADDRESS), EPSILON); in testParcel() 269 EPSILON); in testToBuilder() local 273 EPSILON); in testToBuilder() local
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BinderCallHeavyHitterWatcher.java | 133 private static final float EPSILON = 0.00001f; field in BinderCallHeavyHitterWatcher 196 && Math.abs(this.mFrequency - o.mFrequency) < EPSILON; in equals() 259 if (threshold < EPSILON || threshold > 1.0f) { in setConfig() 263 if (batchSize == mTotalInputSize && Math.abs(threshold - mThreshold) < EPSILON) { in setConfig()
|
/frameworks/layoutlib/bridge/tests/src/com/android/tools/idea/validator/ |
D | ValidatorResultTests.java | 34 private static final long EPSILON = 10L; field in ValidatorResultTests 89 assertTrue(diff < EPSILON); in testMetricRecordHierarchyCreationTime()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/ |
D | PipUtils.java | 47 private static final double EPSILON = 1e-7; field in PipUtils 86 return Math.abs(aspectRatio1 - aspectRatio2) > EPSILON; in aspectRatioChanged()
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | HeavyHitterSketchTest.java | 37 private static final float EPSILON = 0.00001f; field in HeavyHitterSketchTest 88 assertTrue(Math.abs(pair.second - freqs.get(i)) < EPSILON); in getTopHeavyHitters() 122 assertTrue(Math.abs(freqs[i] - pair.second) < EPSILON);
|
/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/materials/ |
D | GlassView.kt | 64 private val EPSILON = 0.000001f constant 82 if (omegaMagnitude > EPSILON) { in onSensorChanged()
|
/frameworks/base/core/java/com/android/internal/display/ |
D | BrightnessSynchronizer.java | 58 public static final float EPSILON = 0.001f; field in BrightnessSynchronizer 279 } else if (Math.abs(a - b) < EPSILON) { in floatEquals()
|
/frameworks/native/services/inputflinger/tests/ |
D | InputReader_test.cpp | 94 static const float EPSILON = 0.001f; variable 152 ASSERT_NEAR(motionRange->resolution, resolution, EPSILON); in assertAxisResolution() 3072 ASSERT_NEAR(min, range->min, EPSILON) << "Axis: " << axis << " Source: " << source; in assertMotionRange() 3073 ASSERT_NEAR(max, range->max, EPSILON) << "Axis: " << axis << " Source: " << source; in assertMotionRange() 3074 ASSERT_NEAR(flat, range->flat, EPSILON) << "Axis: " << axis << " Source: " << source; in assertMotionRange() 3075 ASSERT_NEAR(fuzz, range->fuzz, EPSILON) << "Axis: " << axis << " Source: " << source; in assertMotionRange() 3084 ASSERT_NEAR(pressure, coords.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE), EPSILON); in assertPointerCoords() 3085 ASSERT_NEAR(size, coords.getAxisValue(AMOTION_EVENT_AXIS_SIZE), EPSILON); in assertPointerCoords() 3094 ASSERT_NEAR(orientation, coords.getAxisValue(AMOTION_EVENT_AXIS_ORIENTATION), EPSILON); in assertPointerCoords() 3095 ASSERT_NEAR(distance, coords.getAxisValue(AMOTION_EVENT_AXIS_DISTANCE), EPSILON); in assertPointerCoords() [all …]
|
/frameworks/base/core/java/android/os/ |
D | VibrationEffect.java | 1194 private static final float EPSILON = 1e-5f; field in VibrationEffect.WaveformBuilder 1348 if ((Math.abs(mLastAmplitude - targetAmplitude) < EPSILON) in addTransitionSegment() 1349 && (Math.abs(mLastFrequencyHz - targetFrequency) < EPSILON)) { in addTransitionSegment()
|
D | SystemVibrator.java | 314 private static final float EPSILON = 1e-5f; field in SystemVibrator.MultiVibratorInfo 549 if ((frequencyDelta % frequencyResolution) > EPSILON) { in frequencyRangeIntersection()
|
/frameworks/base/core/java/android/util/ |
D | Half.java | 105 public static final @HalfFloat short EPSILON = (short) 0x1400; field in Half
|
/frameworks/base/core/java/android/widget/ |
D | EdgeEffect.java | 174 private static final float EPSILON = 0.001f; field in EdgeEffect 713 if (t >= 1.f - EPSILON) { in update()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/display/ |
D | BrightnessSynchronizerTest.java | 59 private static final float EPSILON = 0.00001f; field in BrightnessSynchronizerTest
|
/frameworks/native/libs/ui/ |
D | Transform.cpp | 44 static const float EPSILON = 0.0f; variable 47 return fabs(f) <= EPSILON; in isZero()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskLaunchParamsModifier.java | 70 private static final int EPSILON = 2; field in TaskLaunchParamsModifier 1027 return (Math.abs(right.width() - left.width()) < EPSILON) 1028 && (Math.abs(right.height() - left.height()) < EPSILON);
|
/frameworks/base/libs/hwui/ |
D | Matrix.cpp | 34 static const float EPSILON = 0.0000001f; variable 70 return fabs(f) <= EPSILON; in isZero()
|
/frameworks/av/media/libeffects/dynamicsproc/dsp/ |
D | DPFrequency.cpp | 34 static constexpr float EPSILON = 0.0000001f; variable 37 return fabs(f) <= EPSILON; in isZero()
|
/frameworks/native/libs/math/tests/ |
D | mat_test.cpp | 374 #define TEST_MATRIX_INVERSE(MATRIX, EPSILON) \ argument 382 EXPECT_NEAR(ident1[row][col], IDENTITY[row][col], EPSILON); \
|
/frameworks/native/libs/binder/rust/src/parcel/ |
D | parcelable.rs | 1164 std::f32::EPSILON, in test_slice_parcelables() 1185 std::f64::EPSILON, in test_slice_parcelables()
|