Home
last modified time | relevance | path

Searched refs:DELTA (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/util/
DFloatMathTest.java28 private static float DELTA = 0.0f; field in FloatMathTest
43 assertEquals((float) Math.sqrt(value), FloatMath.sqrt(value), DELTA); in testSqrt() local
50 assertEquals((float) Math.floor(value), FloatMath.floor(value), DELTA); in testFloor() local
57 assertEquals((float) Math.ceil(value), FloatMath.ceil(value), DELTA); in testCeil() local
64 assertEquals((float) Math.cos(value), FloatMath.cos(value), DELTA); in testCos() local
71 assertEquals((float) Math.sin(value), FloatMath.sin(value), DELTA); in testSin() local
78 assertEquals((float) Math.exp(value), FloatMath.exp(value), DELTA); in testExp() local
85 assertEquals((float) Math.pow(value, value), FloatMath.pow(value, value), DELTA); in testPow() local
92 assertEquals((float) Math.hypot(value, value), FloatMath.hypot(value, value), DELTA); in testHypot() local
/frameworks/base/services/tests/servicestests/src/com/android/server/people/prediction/
DSharesheetModelScorerTest.java61 private static final double DELTA = 1e-6; field in SharesheetModelScorerTest
203 assertEquals(0.514f, mShareTarget1.getScore(), DELTA); in testComputeScore()
204 assertEquals(0.475125f, mShareTarget2.getScore(), DELTA); in testComputeScore()
205 assertEquals(0.33f, mShareTarget3.getScore(), DELTA); in testComputeScore()
206 assertEquals(0.4411f, mShareTarget4.getScore(), DELTA); in testComputeScore()
207 assertEquals(0f, mShareTarget5.getScore(), DELTA); in testComputeScore()
208 assertEquals(0f, mShareTarget6.getScore(), DELTA); in testComputeScore()
253 assertEquals(0.514f, mShareTarget1.getScore(), DELTA); in testComputeScoreForAppShare()
254 assertEquals(0.475125f, mShareTarget2.getScore(), DELTA); in testComputeScoreForAppShare()
255 assertEquals(0.33f, mShareTarget3.getScore(), DELTA); in testComputeScoreForAppShare()
[all …]
/frameworks/base/tests/Input/src/com/android/test/input/
DInputDeviceTest.java33 private static final float DELTA = 0.01f; field in InputDeviceTest
40 assertEquals(range.getMin(), outRange.getMin(), DELTA); in assertMotionRangeEquals() local
41 assertEquals(range.getMax(), outRange.getMax(), DELTA); in assertMotionRangeEquals() local
42 assertEquals(range.getFlat(), outRange.getFlat(), DELTA); in assertMotionRangeEquals() local
43 assertEquals(range.getFuzz(), outRange.getFuzz(), DELTA); in assertMotionRangeEquals() local
44 assertEquals(range.getResolution(), outRange.getResolution(), DELTA); in assertMotionRangeEquals() local
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskSnapshotPersisterLoaderTest.java66 private static final float DELTA = 0.00001f; field in TaskSnapshotPersisterLoaderTest
187 assertEquals(highResConf.mScale, 0.6f, DELTA); in testLegacyPLowRamConfig()
193 assertEquals(lowResConf.mScale, 0.6f, DELTA); in testLegacyPLowRamConfig()
217 assertEquals(highResConf.mScale, 1.0f, DELTA); in testLegacyPNonLowRamConfig()
223 assertEquals(lowResConf.mScale, 0.5f, DELTA); in testLegacyPNonLowRamConfig()
247 assertEquals(highResConf.mScale, legacyScale, DELTA); in testLegacyQLowRamConfig()
248 assertEquals(highResConf.mScale, 0.6f, DELTA); in testLegacyQLowRamConfig()
254 assertEquals(lowResConf.mScale, legacyScale, DELTA); in testLegacyQLowRamConfig()
255 assertEquals(lowResConf.mScale, 0.6f, DELTA); in testLegacyQLowRamConfig()
279 assertEquals(highResConf.mScale, legacyScale, DELTA); in testLegacyQNonLowRamConfig()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/os/
DDisplayPerfTest.java38 private static final float DELTA = 0.001f; field in DisplayPerfTest
78 DELTA)); in setAndWaitToChangeBrightness()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DJobStatusTest.java86 private static final double DELTA = 0.00001; field in JobStatusTest
434 assertEquals(1, createJobStatus(0, Long.MAX_VALUE).getFractionRunTime(), DELTA); in testFraction()
436 assertEquals(1, createJobStatus(0, now - 1000).getFractionRunTime(), DELTA); in testFraction()
437 assertEquals(0, createJobStatus(0, now + 1000).getFractionRunTime(), DELTA); in testFraction()
439 assertEquals(1, createJobStatus(now - 1000, Long.MAX_VALUE).getFractionRunTime(), DELTA); in testFraction()
440 assertEquals(0, createJobStatus(now + 1000, Long.MAX_VALUE).getFractionRunTime(), DELTA); in testFraction()
442 assertEquals(0, createJobStatus(now, now + 2000).getFractionRunTime(), DELTA); in testFraction()
443 assertEquals(0.25, createJobStatus(now - 500, now + 1500).getFractionRunTime(), DELTA); in testFraction()
444 assertEquals(0.5, createJobStatus(now - 1000, now + 1000).getFractionRunTime(), DELTA); in testFraction()
445 assertEquals(0.75, createJobStatus(now - 1500, now + 500).getFractionRunTime(), DELTA); in testFraction()
[all …]
/frameworks/proto_logging/stats/enums/stats/otaupdate/
Dupdateengine_enums.proto23 DELTA = 10001; enumerator
/frameworks/native/include/input/
DVelocityTracker.h201 DELTA, enumerator
/frameworks/native/libs/input/
DVelocityTracker.cpp188 Weighting::DELTA); in createStrategy()
696 case Weighting::DELTA: { in chooseWeight()
/frameworks/proto_logging/stats/
Datoms.proto13928 DELTA = 1; enumerator