FileDocCategorySizeDatePackage
MonkeyEvent.javaAPI DocAndroid 1.5 API2161Wed May 06 22:41:08 BST 2009com.android.commands.monkey

MonkeyEvent

public abstract class MonkeyEvent extends Object
abstract class for monkey event

Fields Summary
protected int
eventType
public static final int
EVENT_TYPE_KEY
public static final int
EVENT_TYPE_POINTER
public static final int
EVENT_TYPE_TRACKBALL
public static final int
EVENT_TYPE_ACTIVITY
public static final int
EVENT_TYPE_FLIP
public static final int
EVENT_TYPE_THROTTLE
public static final int
INJECT_SUCCESS
public static final int
INJECT_FAIL
public static final int
INJECT_ERROR_REMOTE_EXCEPTION
public static final int
INJECT_ERROR_SECURITY_EXCEPTION
Constructors Summary
public MonkeyEvent(int type)

        
       
        eventType = type;
    
Methods Summary
public intgetEventType()

return
event type

        return eventType;
    
public abstract intinjectEvent(android.view.IWindowManager iwm, android.app.IActivityManager iam, int verbose)
a method for injecting event

param
iwm wires to current window manager
param
iam wires to current activity manager
param
verbose a log switch
return
INJECT_SUCCESS if it goes through, and INJECT_FAIL if it fails in the case of exceptions, return its corresponding error code