Searched refs:TOLERANCE (Results 1 – 5 of 5) sorted by relevance
30 private static final float TOLERANCE = 1e-6f; field in Vector3Test45 assertEquals(56f, dotProduct, TOLERANCE); in testDot()61 assertEquals(F_HALF_PI, angle, TOLERANCE); in testAngleBetweenVectors()
29 private static final float TOLERANCE = 5.0f; field in CanvasView85 if (dx >= TOLERANCE || dy >= TOLERANCE) { in moveTouch()
104 private val TOLERANCE = 1.3 in <lambda>() constant in com.android.server.net.integrationtests.NetworkStatsIntegrationTest276 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>()
94 public static final int TOLERANCE = 500; field in ReportingJobServiceTest197 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()
111 private static final float TOLERANCE = 0.1f; field in FilmstripView2081 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) {