Home
last modified time | relevance | path

Searched refs:MonkeyEvent (Results 1 – 24 of 24) sorted by relevance

/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeyWaitEvent.java26 public class MonkeyWaitEvent extends MonkeyEvent {
30 super(MonkeyEvent.EVENT_TYPE_THROTTLE); in MonkeyWaitEvent()
43 return MonkeyEvent.INJECT_FAIL; in injectEvent()
46 return MonkeyEvent.INJECT_SUCCESS; in injectEvent()
DMonkeyThrottleEvent.java28 public class MonkeyThrottleEvent extends MonkeyEvent {
32 super(MonkeyEvent.EVENT_TYPE_THROTTLE); in MonkeyThrottleEvent()
46 return MonkeyEvent.INJECT_FAIL; in injectEvent()
49 return MonkeyEvent.INJECT_SUCCESS; in injectEvent()
DMonkeyNoopEvent.java28 public class MonkeyNoopEvent extends MonkeyEvent {
31 super(MonkeyEvent.EVENT_TYPE_NOOP); in MonkeyNoopEvent()
40 return MonkeyEvent.INJECT_SUCCESS; in injectEvent()
DMonkeyRotationEvent.java25 public class MonkeyRotationEvent extends MonkeyEvent {
57 return MonkeyEvent.INJECT_SUCCESS; in injectEvent()
59 return MonkeyEvent.INJECT_ERROR_REMOTE_EXCEPTION; in injectEvent()
DMonkeyFlipEvent.java27 public class MonkeyFlipEvent extends MonkeyEvent {
70 return MonkeyEvent.INJECT_SUCCESS; in injectEvent()
73 return MonkeyEvent.INJECT_FAIL; in injectEvent()
DMonkeyActivityEvent.java30 public class MonkeyActivityEvent extends MonkeyEvent {
74 return MonkeyEvent.INJECT_ERROR_REMOTE_EXCEPTION; in injectEvent()
80 return MonkeyEvent.INJECT_ERROR_SECURITY_EXCEPTION; in injectEvent()
82 return MonkeyEvent.INJECT_SUCCESS; in injectEvent()
DMonkeyInstrumentationEvent.java29 public class MonkeyInstrumentationEvent extends MonkeyEvent {
51 return MonkeyEvent.INJECT_ERROR_REMOTE_EXCEPTION; in injectEvent()
53 return MonkeyEvent.INJECT_SUCCESS; in injectEvent()
DMonkeyPermissionEvent.java28 public class MonkeyPermissionEvent extends MonkeyEvent {
54 return MonkeyEvent.INJECT_SUCCESS; in injectEvent()
56 return MonkeyEvent.INJECT_ERROR_REMOTE_EXCEPTION; in injectEvent()
DMonkeyEvent.java25 public abstract class MonkeyEvent { class
45 public MonkeyEvent(int type) { in MonkeyEvent() method in MonkeyEvent
DMonkeyEventQueue.java26 public class MonkeyEventQueue extends LinkedList<MonkeyEvent> {
40 public void addLast(MonkeyEvent e) { in addLast()
DMonkeyCommandEvent.java27 public class MonkeyCommandEvent extends MonkeyEvent {
49 return MonkeyEvent.INJECT_SUCCESS; in injectEvent()
DMonkeyKeyEvent.java29 public class MonkeyKeyEvent extends MonkeyEvent {
135 return MonkeyEvent.INJECT_FAIL; in injectEvent()
137 return MonkeyEvent.INJECT_SUCCESS; in injectEvent()
DMonkeyEventSource.java26 public MonkeyEvent getNextEvent(); in getNextEvent()
DMonkeyTouchEvent.java27 super(MonkeyEvent.EVENT_TYPE_TOUCH, InputDevice.SOURCE_TOUCHSCREEN, action); in MonkeyTouchEvent()
DMonkeyTrackballEvent.java26 super(MonkeyEvent.EVENT_TYPE_TRACKBALL, InputDevice.SOURCE_TRACKBALL, action); in MonkeyTrackballEvent()
DMonkeySourceRandomScript.java95 public MonkeyEvent getNextEvent() { in getNextEvent()
111 MonkeyEvent nextEvent = mCurrentSource.getNextEvent(); in getNextEvent()
DMonkeyMotionEvent.java30 public abstract class MonkeyMotionEvent extends MonkeyEvent {
190 return MonkeyEvent.INJECT_FAIL; in injectEvent()
195 return MonkeyEvent.INJECT_SUCCESS; in injectEvent()
DMonkeySourceNetwork.java493 public void enqueueEvent(MonkeyEvent e); in enqueueEvent()
499 private final Queue<MonkeyEvent> queuedEvents = new LinkedList<MonkeyEvent>();
501 public void enqueueEvent(MonkeyEvent e) { in enqueueEvent()
510 public MonkeyEvent getNextQueuedEvent() { in getNextQueuedEvent()
685 public MonkeyEvent getNextEvent() { in getNextEvent()
702 MonkeyEvent queuedEvent = commandQueue.getNextQueuedEvent(); in getNextEvent()
DMonkeyPowerEvent.java32 public class MonkeyPowerEvent extends MonkeyEvent {
142 return MonkeyEvent.INJECT_SUCCESS; in injectEvent()
DMonkeyGetFrameRateEvent.java38 public class MonkeyGetFrameRateEvent extends MonkeyEvent {
152 return MonkeyEvent.INJECT_SUCCESS; in injectEvent()
DMonkeyGetAppFrameRateEvent.java38 public class MonkeyGetAppFrameRateEvent extends MonkeyEvent {
165 return MonkeyEvent.INJECT_SUCCESS; in injectEvent()
DMonkeySourceScript.java956 public MonkeyEvent getNextEvent() { in getNextEvent()
958 MonkeyEvent ev; in getNextEvent()
975 if (ev.getEventType() == MonkeyEvent.EVENT_TYPE_KEY) { in getNextEvent()
977 } else if (ev.getEventType() == MonkeyEvent.EVENT_TYPE_TOUCH in getNextEvent()
978 || ev.getEventType() == MonkeyEvent.EVENT_TYPE_TRACKBALL) { in getNextEvent()
DMonkeySourceRandom.java491 public MonkeyEvent getNextEvent() { in getNextEvent()
496 MonkeyEvent e = mQ.getFirst(); in getNextEvent()
DMonkey.java1204 MonkeyEvent ev = mEventSource.getNextEvent(); in runMonkeyCycles()
1207 if (injectCode == MonkeyEvent.INJECT_FAIL) { in runMonkeyCycles()
1218 } else if (injectCode == MonkeyEvent.INJECT_ERROR_REMOTE_EXCEPTION) { in runMonkeyCycles()
1221 } else if (injectCode == MonkeyEvent.INJECT_ERROR_SECURITY_EXCEPTION) { in runMonkeyCycles()