/development/cmds/monkey/src/com/android/commands/monkey/ |
D | MonkeySourceScriptTest.kt | 37 private fun receiveEvent(script: MonkeySourceScript, type: Int): MonkeyEvent { in <lambda>() 45 val motionEvent = receiveEvent(script, MonkeyEvent.EVENT_TYPE_TOUCH) as MonkeyMotionEvent in assertTouchEvent() 82 receiveEvent(script, MonkeyEvent.EVENT_TYPE_THROTTLE) in pinchZoom() 104 receiveEvent(script, MonkeyEvent.EVENT_TYPE_THROTTLE) in pressAndHoldTwice() 105 receiveEvent(script, MonkeyEvent.EVENT_TYPE_THROTTLE) in pressAndHoldTwice() 107 receiveEvent(script, MonkeyEvent.EVENT_TYPE_THROTTLE) in pressAndHoldTwice() 110 receiveEvent(script, MonkeyEvent.EVENT_TYPE_THROTTLE) in pressAndHoldTwice() 111 receiveEvent(script, MonkeyEvent.EVENT_TYPE_THROTTLE) in pressAndHoldTwice() 113 receiveEvent(script, MonkeyEvent.EVENT_TYPE_THROTTLE) in pressAndHoldTwice()
|
D | MonkeyWaitEvent.java | 26 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()
|
D | MonkeyThrottleEvent.java | 28 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()
|
D | MonkeyNoopEvent.java | 28 public class MonkeyNoopEvent extends MonkeyEvent { 31 super(MonkeyEvent.EVENT_TYPE_NOOP); in MonkeyNoopEvent() 40 return MonkeyEvent.INJECT_SUCCESS; in injectEvent()
|
D | MonkeyRotationEvent.java | 25 public class MonkeyRotationEvent extends MonkeyEvent { 57 return MonkeyEvent.INJECT_SUCCESS; in injectEvent() 59 return MonkeyEvent.INJECT_ERROR_REMOTE_EXCEPTION; in injectEvent()
|
D | MonkeyFlipEvent.java | 27 public class MonkeyFlipEvent extends MonkeyEvent { 70 return MonkeyEvent.INJECT_SUCCESS; in injectEvent() 73 return MonkeyEvent.INJECT_FAIL; in injectEvent()
|
D | MonkeyInstrumentationEvent.java | 29 public class MonkeyInstrumentationEvent extends MonkeyEvent { 51 return MonkeyEvent.INJECT_ERROR_REMOTE_EXCEPTION; in injectEvent() 53 return MonkeyEvent.INJECT_SUCCESS; in injectEvent()
|
D | MonkeyActivityEvent.java | 35 public class MonkeyActivityEvent extends MonkeyEvent { 91 return MonkeyEvent.INJECT_ERROR_REMOTE_EXCEPTION; in injectEvent() 97 return MonkeyEvent.INJECT_ERROR_SECURITY_EXCEPTION; in injectEvent() 99 return MonkeyEvent.INJECT_SUCCESS; in injectEvent()
|
D | MonkeyPermissionEvent.java | 30 public class MonkeyPermissionEvent extends MonkeyEvent { 59 return MonkeyEvent.INJECT_SUCCESS; in injectEvent() 61 return MonkeyEvent.INJECT_ERROR_REMOTE_EXCEPTION; in injectEvent()
|
D | MonkeyEvent.java | 25 public abstract class MonkeyEvent { class 45 public MonkeyEvent(int type) { in MonkeyEvent() method in MonkeyEvent
|
D | MonkeyEventQueue.java | 26 public class MonkeyEventQueue extends LinkedList<MonkeyEvent> { 40 public void addLast(MonkeyEvent e) { in addLast()
|
D | MonkeyCommandEvent.java | 27 public class MonkeyCommandEvent extends MonkeyEvent { 49 return MonkeyEvent.INJECT_SUCCESS; in injectEvent()
|
D | MonkeyKeyEvent.java | 30 public class MonkeyKeyEvent extends MonkeyEvent { 136 return MonkeyEvent.INJECT_FAIL; in injectEvent() 138 return MonkeyEvent.INJECT_SUCCESS; in injectEvent()
|
D | MonkeyEventSource.java | 26 public MonkeyEvent getNextEvent(); in getNextEvent()
|
D | MonkeySourceRandomScript.java | 95 public MonkeyEvent getNextEvent() { in getNextEvent() 111 MonkeyEvent nextEvent = mCurrentSource.getNextEvent(); in getNextEvent()
|
D | MonkeyMotionEvent.java | 31 public abstract class MonkeyMotionEvent extends MonkeyEvent { 191 return MonkeyEvent.INJECT_FAIL; in injectEvent() 196 return MonkeyEvent.INJECT_SUCCESS; in injectEvent()
|
D | MonkeyTouchEvent.java | 27 super(MonkeyEvent.EVENT_TYPE_TOUCH, InputDevice.SOURCE_TOUCHSCREEN, action); in MonkeyTouchEvent()
|
D | MonkeyTrackballEvent.java | 26 super(MonkeyEvent.EVENT_TYPE_TRACKBALL, InputDevice.SOURCE_TRACKBALL, action); in MonkeyTrackballEvent()
|
D | MonkeySourceNetwork.java | 493 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()
|
D | MonkeyPowerEvent.java | 32 public class MonkeyPowerEvent extends MonkeyEvent { 142 return MonkeyEvent.INJECT_SUCCESS; in injectEvent()
|
D | MonkeyGetFrameRateEvent.java | 38 public class MonkeyGetFrameRateEvent extends MonkeyEvent { 152 return MonkeyEvent.INJECT_SUCCESS; in injectEvent()
|
D | MonkeyGetAppFrameRateEvent.java | 38 public class MonkeyGetAppFrameRateEvent extends MonkeyEvent { 165 return MonkeyEvent.INJECT_SUCCESS; in injectEvent()
|
D | MonkeySourceScript.java | 959 public MonkeyEvent getNextEvent() { in getNextEvent() 961 MonkeyEvent ev; in getNextEvent() 978 if (ev.getEventType() == MonkeyEvent.EVENT_TYPE_KEY) { in getNextEvent() 980 } else if (ev.getEventType() == MonkeyEvent.EVENT_TYPE_TOUCH in getNextEvent() 981 || ev.getEventType() == MonkeyEvent.EVENT_TYPE_TRACKBALL) { in getNextEvent()
|
D | MonkeySourceRandom.java | 492 public MonkeyEvent getNextEvent() { in getNextEvent() 497 MonkeyEvent e = mQ.getFirst(); in getNextEvent()
|
D | Monkey.java | 1209 MonkeyEvent ev = mEventSource.getNextEvent(); in runMonkeyCycles() 1212 if (injectCode == MonkeyEvent.INJECT_FAIL) { in runMonkeyCycles() 1223 } else if (injectCode == MonkeyEvent.INJECT_ERROR_REMOTE_EXCEPTION) { in runMonkeyCycles() 1226 } else if (injectCode == MonkeyEvent.INJECT_ERROR_SECURITY_EXCEPTION) { in runMonkeyCycles()
|