More device policy work: clarify password modes, monkeying.

Clarifies what the password modes mean, renaming them to "quality"
and updating their documentation and the implementation to follow.

Also adds a facility to find out if a monkey is running, which I
need for the api demo to avoid letting it wipe the device.
This commit is contained in:
Dianne Hackborn
2010-01-29 10:38:29 -08:00
parent 7912a29cf2
commit 9327f4f671
11 changed files with 238 additions and 99 deletions

View File

@@ -8081,6 +8081,14 @@ public final class ActivityManagerService extends ActivityManagerNative implemen
}
}
public boolean isUserAMonkey() {
// For now the fact that there is a controller implies
// we have a monkey.
synchronized (this) {
return mController != null;
}
}
public void registerActivityWatcher(IActivityWatcher watcher) {
mWatchers.register(watcher);
}