From 3684036eed4f707953c8543814a5c4d651e6915b Mon Sep 17 00:00:00 2001 From: Kurt Partridge Date: Wed, 10 Apr 2013 16:26:37 -0700 Subject: [PATCH] Preserve a class for testing Addresses b/8583091 Change-Id: I89605223784312d9572dfc7c8aaa7e5eba44c4f6 --- .../com/android/inputmethod/research/MotionEventReader.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/java/src/com/android/inputmethod/research/MotionEventReader.java b/java/src/com/android/inputmethod/research/MotionEventReader.java index e1cc2da73..fbfd9b531 100644 --- a/java/src/com/android/inputmethod/research/MotionEventReader.java +++ b/java/src/com/android/inputmethod/research/MotionEventReader.java @@ -22,6 +22,7 @@ import android.view.MotionEvent; import android.view.MotionEvent.PointerCoords; import android.view.MotionEvent.PointerProperties; +import com.android.inputmethod.annotations.UsedForTesting; import com.android.inputmethod.latin.define.ProductionFlag; import java.io.BufferedReader; @@ -64,6 +65,7 @@ public class MotionEventReader { return replayData; } + @UsedForTesting static class ReplayData { final ArrayList mActions = new ArrayList(); final ArrayList mPointerPropertiesArrays @@ -134,6 +136,7 @@ public class MotionEventReader { * }, * */ + @UsedForTesting /* package for test */ void readLogStatement(final JsonReader jsonReader, final ReplayData replayData) throws IOException { String logStatementType = null;