Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7877e1b7 authored by Colin Cross's avatar Colin Cross Committed by Xin Li
Browse files

Fix kotlin nullable errors in perftests

Fix kotlin nullable errors that were exposed by setting the retention
of android.annotation.NonNull and android.annotation.Nullable to
class retention.

Bug: 294110802
Test: builds
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:2522501d5b4b4eab8d20986aa1c4b6ed36640211)
Merged-In: Icfec5d0e20b534d7af9aeb1b539a711db76d5e5c
Merged-In: I79b5d963079237b70012b4db717620fb757bfa0d

Change-Id: Icfec5d0e20b534d7af9aeb1b539a711db76d5e5c
parent 897aa00c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -130,7 +130,7 @@ class MotionPredictorBenchmark {
                eventTime, ACTION_MOVE, /*x=*/eventPosition, /*y=*/eventPosition)
            predictor.record(moveEvent)
            val predictionTime = eventTime + eventInterval
            val predicted = predictor.predict(predictionTime.toNanos())
            val predicted = checkNotNull(predictor.predict(predictionTime.toNanos()))
            assertTrue(predicted.eventTime <= (predictionTime + offset).toMillis())
        }
    }