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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user