Motion prediction final API for beta version

This CL adds the necessary changes for the final API of the prediction API.
It documents that an exception may be thrown while recording events
if that motion event stream is inconsistent; this will generally never
happen, but we're futureproofing as there are some changes planned that
could cause the developer to use the wrong source of MotionEvents.

Bug: 232941452
Test: builds
Relnote: Finalized MotionEventPredictor API
Change-Id: I5b554149842a9df4488c5d7355c5e9731ee44d2c
diff --git a/input/input-motionprediction/src/main/java/androidx/input/motionprediction/MotionEventPredictor.java b/input/input-motionprediction/src/main/java/androidx/input/motionprediction/MotionEventPredictor.java
index 39e1c14..d51dbf4 100644
--- a/input/input-motionprediction/src/main/java/androidx/input/motionprediction/MotionEventPredictor.java
+++ b/input/input-motionprediction/src/main/java/androidx/input/motionprediction/MotionEventPredictor.java
@@ -40,6 +40,7 @@
      * {@link android.view.View}.
      * @param event the {@link android.view.MotionEvent} the associated view received and that
      *              needs to be recorded.
+     * @throws IllegalArgumentException if an inconsistent MotionEvent stream is sent.
      */
     void record(@NonNull MotionEvent event);