AI 145122: am: CL 144927 Fix throttling in scripted monkeys (bug #1739843).

Original author: emillar

Automated import of CL 145122
This commit is contained in:
Evan Millar
2009-04-08 13:28:35 -07:00
committed by The Android Open Source Project
parent d4e48c3aa4
commit fb7c34758a
8 changed files with 74 additions and 22 deletions

View File

@@ -16,11 +16,10 @@
package com.android.commands.monkey;
import java.util.List;
import android.app.IActivityManager;
import android.os.RemoteException;
import android.os.SystemClock;
import android.view.IWindowManager;
import android.view.MotionEvent;
/**
@@ -29,8 +28,8 @@ import android.view.MotionEvent;
public class MonkeyThrottleEvent extends MonkeyEvent {
private long mThrottle;
public MonkeyThrottleEvent(int type, long throttle) {
super(type);
public MonkeyThrottleEvent(long throttle) {
super(MonkeyEvent.EVENT_TYPE_THROTTLE);
mThrottle = throttle;
}