Rename ro.monkey to monkey.running

So that Monkey can set it before running and reset it after running.
This commit is contained in:
Ying Wang
2010-01-04 12:04:25 -08:00
parent d8eec52a37
commit 50cb76f585
4 changed files with 9 additions and 9 deletions

View File

@@ -76,7 +76,7 @@ public class DevelopmentSettings extends PreferenceActivity
// Those monkeys kept committing suicide, so we add this property // Those monkeys kept committing suicide, so we add this property
// to disable this functionality // to disable this functionality
if (!TextUtils.isEmpty(SystemProperties.get("ro.monkey"))) { if (!TextUtils.isEmpty(SystemProperties.get("monkey.running"))) {
return false; return false;
} }

View File

@@ -206,7 +206,7 @@ public class LanguageSettings extends PreferenceActivity {
// Input Method stuff // Input Method stuff
// Those monkeys kept committing suicide, so we add this property // Those monkeys kept committing suicide, so we add this property
// to disable this functionality // to disable this functionality
if (!TextUtils.isEmpty(SystemProperties.get("ro.monkey"))) { if (!TextUtils.isEmpty(SystemProperties.get("monkey.running"))) {
return false; return false;
} }

View File

@@ -63,7 +63,7 @@ public class MasterClear extends Activity {
// Those monkeys kept committing suicide, so we add this property // Those monkeys kept committing suicide, so we add this property
// to disable going through with the master clear // to disable going through with the master clear
if (!TextUtils.isEmpty(SystemProperties.get("ro.monkey"))) { if (!TextUtils.isEmpty(SystemProperties.get("monkey.running"))) {
return; return;
} }

View File

@@ -63,7 +63,7 @@ public class MediaFormat extends Activity {
// Those monkeys kept committing suicide, so we add this property // Those monkeys kept committing suicide, so we add this property
// to disable going through with the format // to disable going through with the format
if (!TextUtils.isEmpty(SystemProperties.get("ro.monkey"))) { if (!TextUtils.isEmpty(SystemProperties.get("monkey.running"))) {
return; return;
} }
IMountService service = IMountService service =