Home
last modified time | relevance | path

Searched refs:EPSILON (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/tools/powermodel/test/com/android/powermodel/
DPowerProfileTest.java45 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 …]
DPowerReportTest.java33 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/
DAutomaticBrightnessControllerTest.java75 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 …]
DHighBrightnessModeControllerTest.java95 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 …]
DBrightnessThrottlerTest.java63 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/
DTextLanguageTest.java40 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()
DTextClassificationTest.java62 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/
DBinderCallHeavyHitterWatcher.java133 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/
DValidatorResultTests.java34 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/
DPipUtils.java47 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/
DHeavyHitterSketchTest.java37 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/
DGlassView.kt64 private val EPSILON = 0.000001f constant
82 if (omegaMagnitude > EPSILON) { in onSensorChanged()
/frameworks/base/core/java/com/android/internal/display/
DBrightnessSynchronizer.java58 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/
DInputReader_test.cpp94 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/
DVibrationEffect.java1194 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()
DSystemVibrator.java314 private static final float EPSILON = 1e-5f; field in SystemVibrator.MultiVibratorInfo
549 if ((frequencyDelta % frequencyResolution) > EPSILON) { in frequencyRangeIntersection()
/frameworks/base/core/java/android/util/
DHalf.java105 public static final @HalfFloat short EPSILON = (short) 0x1400; field in Half
/frameworks/base/core/java/android/widget/
DEdgeEffect.java174 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/
DBrightnessSynchronizerTest.java59 private static final float EPSILON = 0.00001f; field in BrightnessSynchronizerTest
/frameworks/native/libs/ui/
DTransform.cpp44 static const float EPSILON = 0.0f; variable
47 return fabs(f) <= EPSILON; in isZero()
/frameworks/base/services/core/java/com/android/server/wm/
DTaskLaunchParamsModifier.java70 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/
DMatrix.cpp34 static const float EPSILON = 0.0000001f; variable
70 return fabs(f) <= EPSILON; in isZero()
/frameworks/av/media/libeffects/dynamicsproc/dsp/
DDPFrequency.cpp34 static constexpr float EPSILON = 0.0000001f; variable
37 return fabs(f) <= EPSILON; in isZero()
/frameworks/native/libs/math/tests/
Dmat_test.cpp374 #define TEST_MATRIX_INVERSE(MATRIX, EPSILON) \ argument
382 EXPECT_NEAR(ident1[row][col], IDENTITY[row][col], EPSILON); \
/frameworks/native/libs/binder/rust/src/parcel/
Dparcelable.rs1164 std::f32::EPSILON, in test_slice_parcelables()
1185 std::f64::EPSILON, in test_slice_parcelables()

12