List of usage examples for android.app Instrumentation sendTrackballEventSync
public void sendTrackballEventSync(MotionEvent event)
From source file:love.juhe.androidmonkey.MonkeyTrackballEvent.java
@Override public int fireEvent(Instrumentation inst) { try {/*w w w .j ava 2 s.c o m*/ event = getEvent(); // System.out.println(":Touching Key (" + getTypeLabel() + "): "); printInfo(); inst.sendTrackballEventSync(event); } catch (Exception e) { MonkeyLog.l(":Touching Key (" + getTypeLabel() + ") rejected "); return MonkeyEvent.INJECT_FAIL; } finally { event.recycle(); } return MonkeyEvent.INJECT_SUCCESS; }