development
修订版 | 8ad7359b2f61d0be4bfca700393179e61c8d68a4 (tree) |
---|---|
时间 | 2011-01-10 09:29:57 |
作者 | Brett Chabot <brettchabot@andr...> |
Commiter | Android (Google) Code Review |
Merge "Replace use of ro.monkey with ro.test_harness." into honeycomb
@@ -452,9 +452,6 @@ public class Monkey { | ||
452 | 452 | * @param args The command-line arguments |
453 | 453 | */ |
454 | 454 | public static void main(String[] args) { |
455 | - // Set ro.monkey if it's not set yet. | |
456 | - SystemProperties.set("ro.monkey", "true"); | |
457 | - | |
458 | 455 | // Set the process name showing in "ps" or "top" |
459 | 456 | Process.setArgV0("com.android.commands.monkey"); |
460 | 457 |
@@ -551,13 +548,13 @@ public class Monkey { | ||
551 | 548 | mCountEvents = false; |
552 | 549 | } else if (mScriptFileNames != null && mScriptFileNames.size() > 1) { |
553 | 550 | if (mSetupFileName != null) { |
554 | - mEventSource = new MonkeySourceRandomScript(mSetupFileName, | |
551 | + mEventSource = new MonkeySourceRandomScript(mSetupFileName, | |
555 | 552 | mScriptFileNames, mThrottle, mRandomizeThrottle, mRandom, |
556 | 553 | mProfileWaitTime, mDeviceSleepTime, mRandomizeScript); |
557 | 554 | mCount++; |
558 | 555 | } else { |
559 | 556 | mEventSource = new MonkeySourceRandomScript(mScriptFileNames, |
560 | - mThrottle, mRandomizeThrottle, mRandom, | |
557 | + mThrottle, mRandomizeThrottle, mRandom, | |
561 | 558 | mProfileWaitTime, mDeviceSleepTime, mRandomizeScript); |
562 | 559 | } |
563 | 560 | mEventSource.setVerbose(mVerbose); |
@@ -465,7 +465,7 @@ class AdbInterface: | ||
465 | 465 | output = "" |
466 | 466 | error = None |
467 | 467 | if runtime_restart: |
468 | - self.SendShellCommand("setprop ro.monkey 1", retry_count=retry_count) | |
468 | + self.SendShellCommand("setprop ro.test_harness 1", retry_count=retry_count) | |
469 | 469 | # manual rest bootcomplete flag |
470 | 470 | self.SendShellCommand("setprop dev.bootcomplete 0", |
471 | 471 | retry_count=retry_count) |
@@ -531,8 +531,8 @@ for ((loop=1 ; loop <= $COUNT ; loop++ )) ; do | ||
531 | 531 | #preping device for monkey run |
532 | 532 | log_print "setting adb root" |
533 | 533 | adb_command root |
534 | - log_print "setting ro.monkey property" | |
535 | - adb_command shell setprop ro.monkey 1 | |
534 | + log_print "setting ro.test_harness property" | |
535 | + adb_command shell setprop ro.test_harness 1 | |
536 | 536 | |
537 | 537 | log_print "waiting for device to finish booting" |
538 | 538 | result=$($ADB -s $device shell getprop dev.bootcomplete) |