@Override
 public void sendStatus(int resultCode, Bundle status) {
   mInstrumentation.sendStatus(resultCode, status);
 }
 // This function writes the result of the layout test to
 // Am status so that it can be picked up from a script.
 public void passOrFailCallback(String file, boolean result) {
   Instrumentation inst = getInstrumentation();
   Bundle bundle = new Bundle();
   bundle.putBoolean(file, result);
   inst.sendStatus(0, bundle);
 }