Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/people/prediction/
DSharesheetModelScorerTest.java60 private static final double DELTA = 1e-6; field in SharesheetModelScorerTest
202 assertEquals(0.514f, mShareTarget1.getScore(), DELTA); in testComputeScore()
203 assertEquals(0.475125f, mShareTarget2.getScore(), DELTA); in testComputeScore()
204 assertEquals(0.33f, mShareTarget3.getScore(), DELTA); in testComputeScore()
205 assertEquals(0.4411f, mShareTarget4.getScore(), DELTA); in testComputeScore()
206 assertEquals(0f, mShareTarget5.getScore(), DELTA); in testComputeScore()
207 assertEquals(0f, mShareTarget6.getScore(), DELTA); in testComputeScore()
252 assertEquals(0.514f, mShareTarget1.getScore(), DELTA); in testComputeScoreForAppShare()
253 assertEquals(0.475125f, mShareTarget2.getScore(), DELTA); in testComputeScoreForAppShare()
254 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.java64 private static final float DELTA = 0.00001f; field in TaskSnapshotPersisterLoaderTest
173 assertEquals(highResConf.mScale, 0.6f, DELTA); in testLegacyPLowRamConfig()
179 assertEquals(lowResConf.mScale, 0.6f, DELTA); in testLegacyPLowRamConfig()
203 assertEquals(highResConf.mScale, 1.0f, DELTA); in testLegacyPNonLowRamConfig()
209 assertEquals(lowResConf.mScale, 0.5f, DELTA); in testLegacyPNonLowRamConfig()
233 assertEquals(highResConf.mScale, legacyScale, DELTA); in testLegacyQLowRamConfig()
234 assertEquals(highResConf.mScale, 0.6f, DELTA); in testLegacyQLowRamConfig()
240 assertEquals(lowResConf.mScale, legacyScale, DELTA); in testLegacyQLowRamConfig()
241 assertEquals(lowResConf.mScale, 0.6f, DELTA); in testLegacyQLowRamConfig()
265 assertEquals(highResConf.mScale, legacyScale, DELTA); in testLegacyQNonLowRamConfig()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DJobStatusTest.java75 private static final double DELTA = 0.00001; field in JobStatusTest
210 assertEquals(1, createJobStatus(0, Long.MAX_VALUE).getFractionRunTime(), DELTA); in testFraction()
212 assertEquals(1, createJobStatus(0, now - 1000).getFractionRunTime(), DELTA); in testFraction()
213 assertEquals(0, createJobStatus(0, now + 1000).getFractionRunTime(), DELTA); in testFraction()
215 assertEquals(1, createJobStatus(now - 1000, Long.MAX_VALUE).getFractionRunTime(), DELTA); in testFraction()
216 assertEquals(0, createJobStatus(now + 1000, Long.MAX_VALUE).getFractionRunTime(), DELTA); in testFraction()
218 assertEquals(0, createJobStatus(now, now + 2000).getFractionRunTime(), DELTA); in testFraction()
219 assertEquals(0.25, createJobStatus(now - 500, now + 1500).getFractionRunTime(), DELTA); in testFraction()
220 assertEquals(0.5, createJobStatus(now - 1000, now + 1000).getFractionRunTime(), DELTA); in testFraction()
221 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