Home
last modified time | relevance | path

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

/packages/modules/Uwb/service/tests/src/com/android/server/uwb/correction/math/
DVector3Test.java30 private static final float TOLERANCE = 1e-6f; field in Vector3Test
45 assertEquals(56f, dotProduct, TOLERANCE); in testDot()
61 assertEquals(F_HALF_PI, angle, TOLERANCE); in testAngleBetweenVectors()
/packages/services/Car/tests/MultiDisplayTest/src/com/google/android/car/multidisplaytest/draw/
DCanvasView.java29 private static final float TOLERANCE = 5.0f; field in CanvasView
85 if (dx >= TOLERANCE || dy >= TOLERANCE) { in moveTouch()
/packages/modules/Connectivity/tests/integration/src/com/android/server/net/integrationtests/
DNetworkStatsIntegrationTest.kt104 private val TOLERANCE = 1.3 in <lambda>() constant in com.android.server.net.integrationtests.NetworkStatsIntegrationTest
276 val txBytesUpper = (transmittedSize * TOLERANCE).toLong() in <lambda>()
277 val txPacketsLower = txBytesLower / mtu + (CONSTANT_PACKET_OVERHEAD / TOLERANCE).toLong() in <lambda>()
280 (CONSTANT_PACKET_OVERHEAD * TOLERANCE).toLong() in <lambda>()
282 val rxPacketsLower = 1L + (CONSTANT_PACKET_OVERHEAD / TOLERANCE).toLong() in <lambda>()
285 val rxBytesLower = 1L * TCP_ACK_SIZE + (CONSTANT_BYTES_OVERHEAD / TOLERANCE).toLong() in <lambda>()
287 (CONSTANT_BYTES_OVERHEAD * TOLERANCE).toLong() in <lambda>()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/reporting/
DReportingJobServiceTest.java94 public static final int TOLERANCE = 500; field in ReportingJobServiceTest
197 assertTrue(timeToNextReport - TOLERANCE < minLatencyMs && minLatencyMs <= timeToNextReport); in scheduleIfNeeded_nextReportInFuture_noPendingJobs_schedule()
240 timeToNextReport - TOLERANCE <= minLatencyMs && minLatencyMs <= timeToNextReport); in scheduleIfNeeded_nextReportInFuture_onePendingJob_reschedule()
315 timeToMinInvocationWindow - TOLERANCE <= minLatencyMs in scheduleIfNeeded_nextReportInMinExecutionWindow_schedule()
381 timeToNextReport - TOLERANCE <= minLatencyMs && minLatencyMs <= timeToNextReport); in scheduleIfNeeded_nextReportInMinExecutionWindow_noPendingJob_forceSchedule_schedule()
418 assertTrue(timeToNextReport - TOLERANCE < minLatencyMs && minLatencyMs <= timeToNextReport); in scheduleIfNeeded_modifyFlags_jobInfoIsModified()
/packages/apps/Camera2/src/com/android/camera/widget/
DFilmstripView.java111 private static final float TOLERANCE = 0.1f; field in FilmstripView
2081 final float endScale = mScale < maxScale - maxScale * TOLERANCE in zoomAt()
3016 if (mScale > FULL_SCREEN_SCALE + TOLERANCE) {
3020 if (mScale <= FILM_STRIP_SCALE + TOLERANCE) {
3022 } else if (mScaleTrend > 1f || mScale > FULL_SCREEN_SCALE - TOLERANCE) {