Handler-ize InstrumentationListener and related code

We are going to be making instrumentation listeners that can cause
suspensions during their running. We explicitly handler-ize all the
instrumentation listener functions in order to ensure this is safe.

Bug: 34414073
Test: ./test.py --host --ntrace --trace -j40
Change-Id: Ic719080d0991b104d41b7757df8d1f332c72cd04
diff --git a/test/Instrumentation/Instrumentation.java b/test/Instrumentation/Instrumentation.java
index 09d4342..b44f78f 100644
--- a/test/Instrumentation/Instrumentation.java
+++ b/test/Instrumentation/Instrumentation.java
@@ -15,8 +15,21 @@
  */
 
 public class Instrumentation {
+  private static int primitiveField;
+  private static Object referenceField;
+
   // Direct method
   private void instanceMethod() {
     System.out.println("instanceMethod");
   }
+
+  private Object returnReference() {
+    System.out.println("returnReference");
+    return null;
+  }
+
+  private int returnPrimitive() {
+    System.out.println("returnPrimitive");
+    return 0;
+  }
 }