• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

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

development


Commit MetaInfo

Révisiond271d9a503b181b240250ce2664ff22fbf4e763b (tree)
l'heure2009-08-19 07:49:12
AuteurAndroid (Google) Code Review <android-gerrit@goog...>
CommiterAndroid (Google) Code Review

Message de Log

Merge change 21763 into donut

* changes:

Enable adb forwarding and starting up of monkey server

Change Summary

Modification

--- a/tools/monkeyrunner/src/com/android/monkeyrunner/MonkeyRunner.java
+++ b/tools/monkeyrunner/src/com/android/monkeyrunner/MonkeyRunner.java
@@ -45,8 +45,8 @@ import javax.imageio.ImageIO;
4545 */
4646 public class MonkeyRunner {
4747
48- static String monkeyServer = null;
49- static int monkeyPort;
48+ static String monkeyServer = "127.0.0.1";
49+ static int monkeyPort = 1080;
5050 static Socket monkeySocket = null;
5151
5252 static IDevice monkeyDevice;
@@ -62,7 +62,7 @@ public class MonkeyRunner {
6262 public static void main(String[] args) {
6363
6464 processOptions(args);
65-
65+
6666 initAdbConnection();
6767 openMonkeyConnection();
6868
@@ -150,9 +150,13 @@ public class MonkeyRunner {
150150 monkeyDevice = devices[0];
151151 }
152152
153- } finally {
154- }
153+ monkeyDevice.createForward(monkeyPort, monkeyPort);
154+ String command = "monkey --port " + monkeyPort;
155+ monkeyDevice.executeShellCommand(command, new NullOutputReceiver());
155156
157+ } catch(IOException e) {
158+ e.printStackTrace();
159+ }
156160 }
157161
158162 /**