summaryrefslogtreecommitdiffstats
path: root/cmds/monkey
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2009-07-13 15:53:12 -0700
committerDianne Hackborn <hackbod@google.com>2009-07-13 15:53:12 -0700
commitaa5574f97ddfdfe7077930555965ab944ce1067f (patch)
tree4168fcef0f0ac729ca2b1a7d2464d79b6a04282f /cmds/monkey
parentac50c3aedfd4e18a3770315708ac4de47906eec4 (diff)
downloadandroid_development-aa5574f97ddfdfe7077930555965ab944ce1067f.tar.gz
android_development-aa5574f97ddfdfe7077930555965ab944ce1067f.tar.bz2
android_development-aa5574f97ddfdfe7077930555965ab944ce1067f.zip
Rename IActivityWatcher to IActivityController
Diffstat (limited to 'cmds/monkey')
-rw-r--r--cmds/monkey/src/com/android/commands/monkey/Monkey.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/cmds/monkey/src/com/android/commands/monkey/Monkey.java b/cmds/monkey/src/com/android/commands/monkey/Monkey.java
index 5e9f07c8c..7ebd7274f 100644
--- a/cmds/monkey/src/com/android/commands/monkey/Monkey.java
+++ b/cmds/monkey/src/com/android/commands/monkey/Monkey.java
@@ -19,7 +19,7 @@ package com.android.commands.monkey;
import android.app.ActivityManagerNative;
import android.app.IActivityManager;
-import android.app.IActivityWatcher;
+import android.app.IActivityController;
import android.content.ComponentName;
import android.content.Intent;
import android.content.pm.IPackageManager;
@@ -88,10 +88,10 @@ public class Monkey {
/** This is set when we would like to abort the running of the monkey. */
private boolean mAbort;
- /** This is set by the ActivityWatcher thread to request collection of ANR trace files */
+ /** This is set by the ActivityController thread to request collection of ANR trace files */
private boolean mRequestAnrTraces = false;
- /** This is set by the ActivityWatcher thread to request a "dumpsys meminfo" */
+ /** This is set by the ActivityController thread to request a "dumpsys meminfo" */
private boolean mRequestDumpsysMemInfo = false;
/** Kill the process after a timeout or crash. */
@@ -135,7 +135,7 @@ public class Monkey {
/**
* Monitor operations happening in the system.
*/
- private class ActivityWatcher extends IActivityWatcher.Stub {
+ private class ActivityController extends IActivityController.Stub {
public boolean activityStarting(Intent intent, String pkg) {
boolean allow = checkEnteringPackage(pkg) || (DEBUG_ALLOW_ANY_STARTS != 0);
if (mVerbose > 0) {
@@ -246,7 +246,7 @@ public class Monkey {
/**
* Run "dumpsys meminfo"
*
- * NOTE: You cannot perform a dumpsys call from the ActivityWatcher callback, as it will
+ * NOTE: You cannot perform a dumpsys call from the ActivityController callback, as it will
* deadlock. This should only be called from the main loop of the monkey.
*/
private void reportDumpsysMemInfo() {
@@ -425,7 +425,7 @@ public class Monkey {
}
try {
- mAm.setActivityWatcher(null);
+ mAm.setActivityController(null);
mNetworkMonitor.unregister(mAm);
} catch (RemoteException e) {
// just in case this was latent (after mCount cycles), make sure
@@ -608,7 +608,7 @@ public class Monkey {
}
try {
- mAm.setActivityWatcher(new ActivityWatcher());
+ mAm.setActivityController(new ActivityController());
mNetworkMonitor.register(mAm);
} catch (RemoteException e) {
System.err.println("** Failed talking with activity manager!");