• R/O
  • HTTP
  • SSH
  • HTTPS

提交

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

development


Commit MetaInfo

修订版8ad7359b2f61d0be4bfca700393179e61c8d68a4 (tree)
时间2011-01-10 09:29:57
作者Brett Chabot <brettchabot@andr...>
CommiterAndroid (Google) Code Review

Log Message

Merge "Replace use of ro.monkey with ro.test_harness." into honeycomb

更改概述

差异

--- a/cmds/monkey/src/com/android/commands/monkey/Monkey.java
+++ b/cmds/monkey/src/com/android/commands/monkey/Monkey.java
@@ -452,9 +452,6 @@ public class Monkey {
452452 * @param args The command-line arguments
453453 */
454454 public static void main(String[] args) {
455- // Set ro.monkey if it's not set yet.
456- SystemProperties.set("ro.monkey", "true");
457-
458455 // Set the process name showing in "ps" or "top"
459456 Process.setArgV0("com.android.commands.monkey");
460457
@@ -551,13 +548,13 @@ public class Monkey {
551548 mCountEvents = false;
552549 } else if (mScriptFileNames != null && mScriptFileNames.size() > 1) {
553550 if (mSetupFileName != null) {
554- mEventSource = new MonkeySourceRandomScript(mSetupFileName,
551+ mEventSource = new MonkeySourceRandomScript(mSetupFileName,
555552 mScriptFileNames, mThrottle, mRandomizeThrottle, mRandom,
556553 mProfileWaitTime, mDeviceSleepTime, mRandomizeScript);
557554 mCount++;
558555 } else {
559556 mEventSource = new MonkeySourceRandomScript(mScriptFileNames,
560- mThrottle, mRandomizeThrottle, mRandom,
557+ mThrottle, mRandomizeThrottle, mRandom,
561558 mProfileWaitTime, mDeviceSleepTime, mRandomizeScript);
562559 }
563560 mEventSource.setVerbose(mVerbose);
--- a/testrunner/adb_interface.py
+++ b/testrunner/adb_interface.py
@@ -465,7 +465,7 @@ class AdbInterface:
465465 output = ""
466466 error = None
467467 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)
469469 # manual rest bootcomplete flag
470470 self.SendShellCommand("setprop dev.bootcomplete 0",
471471 retry_count=retry_count)
--- a/tools/labpretest/labpretest.sh
+++ b/tools/labpretest/labpretest.sh
@@ -531,8 +531,8 @@ for ((loop=1 ; loop <= $COUNT ; loop++ )) ; do
531531 #preping device for monkey run
532532 log_print "setting adb root"
533533 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
536536
537537 log_print "waiting for device to finish booting"
538538 result=$($ADB -s $device shell getprop dev.bootcomplete)