Commit Graph

38 Commits

Author SHA1 Message Date
Ying Wang
9731732fe6 Move potentially blocking operation out of the activity controller.
http://b/viewIssue?id=2497953
before this CL, call to reportProcRank() in the controller waited for the
procrank process to finish, which potentially would block the activity
manager and cause deadlock between the activity manager and the window manager.

Change-Id: Ie5a6aae7c8dbe43ac725abdb04f2426f54dd6740
2010-04-01 14:12:25 -07:00
Ying Wang
df78cdf2d3 Support for ignoring or exit running when native crashes.
http://b/issue?id=2359586
with this CL, if --monitor-native-crashes is set and --ignore-native-crashes
is not set, monkey will exit when a native crash occurs.

Change-Id: I07ab17b5430ed090d8fb6286fdc793bac1b2caa9
2010-03-09 15:21:26 -08:00
Ying Wang
a08e19c3f9 Fix bug.
Bug due to code migration.
2010-02-01 16:15:59 -08:00
Ying Wang
bae4515153 Add support for random throttle.
See http://b/1716328
2010-02-01 11:41:29 -08:00
Ying Wang
9a7ff5b7ce resolved conflicts for merge of 494d8698 to master 2010-01-08 20:47:07 -08:00
Ying Wang
7e3d678570 Fixes bug of the number of injected monkey events.
Returns the actual events number that has been injected,
if any system error has occurred.
2010-01-08 18:26:53 -08:00
Ying Wang
36d415e122 am 19e2f60e: am 9c7692aa: Set ro.monkey if it\'s not set yet.
Merge commit '19e2f60e4f850661342ff24a87c11f81cb2f2dea'

* commit '19e2f60e4f850661342ff24a87c11f81cb2f2dea':
  Set ro.monkey if it's not set yet.
2010-01-06 13:56:06 -08:00
Ying Wang
9c7692aabb Set ro.monkey if it's not set yet.
http://b/issue?id=1681101
2010-01-06 10:16:55 -08:00
Ying Wang
60dc137675 resolved conflicts for merge of e3b115d0 to master 2010-01-04 13:37:36 -08:00
Ying Wang
48f0d8993b Annouce that Monkey is running.
http://b/issue?id=1681101
2010-01-04 11:51:56 -08:00
Dan Egnor
1e9eb6722c Add some more buttons to Bad Behavior:
- crash system server
- report a Log.wtf()

Update Monkey for changes to IActivityController interface.
2009-12-21 15:32:57 -08:00
Ying Wang
dc388c565b Merge commit 'goog/eclair-mr2' into play-with-monkey
Conflicts:

	cmds/monkey/src/com/android/commands/monkey/Monkey.java
2009-12-14 16:23:32 -08:00
Dan Egnor
d0225ee63f Remove the old Dev Tools exception browser (since it relies on
now eliminated checkin database crash storage functionality).

Add a new test app to Dev Tools, "Bad Behavior", which has
buttons to crash and generate an ANR on command.

Update the Monkey to follow changed APIs.
2009-12-11 13:26:46 -08:00
Ying Wang
a35897da6f Package blacklist/whitelist file support for Monkey.
With this CL, you can specify a package whitelist file or a package blacklist file,
but not both. You can not specify both individual packages via -p and blacklist file,
either. But you can specify both whitelist file and individual packages via -p and they
will be summed up.
2009-12-10 10:55:50 -08:00
Eric Rowe
80de953874 Fix bug where monkey always tries to run multiple scripts.
Change condition so MonkeySourceRandromScript is only triggered on multiple
scripts.
2009-11-03 18:28:51 -08:00
Eric Rowe
20a74d7966 Create way to run monkey with multiple scripts.
By giving multiple -f arguments, the monkey will randomly choose between the
scripts.  Also, add the --setup argument which will run a setup script before
starting to play the other scripts in random order.
2009-10-28 15:36:34 -07:00
Eric Rowe
65440eb58d Fix how the monkey counts events for scripts.
Instead of the monkey counting up to the count times the number of events in the
script, the monkey will now only increment the count when the script reaches the
end of the file.  This allows us to have multiple script files with differing
event counts in each.
2009-10-22 14:13:27 -07:00
Eric Rowe
20e7a15bb7 Modify Monkey so that scripts can use raw and user events.
Fix javadoc comment in MonkeySourceRandom.java and combine raw events and user
events in MonkeySourceScript.java.  Also, fix bug where too few arguments in
the script causes a RuntimeException.
2009-10-20 10:38:56 -07:00
Dianne Hackborn
42abc11092 Fix build.
Change-Id: I6b6180942d102745bd5717fcc5d0ea9e00211f18
2009-10-05 17:35:26 -07:00
Yu Shan Emily Lau
b1cc0de3c8 modified: src/com/android/commands/monkey/MonkeySourceScript.java
Added the long press keyword and event.

	modified:   src/com/android/commands/monkey/MonkeySourceScript.java

	modified:   src/com/android/commands/monkey/MonkeySourceScript.java

	modified:   src/com/android/commands/monkey/MonkeySourceScript.java
2009-09-14 19:06:18 -07:00
Yu Shan Emily Lau
68e2fd5272 modified: MonkeySourceScript.java 2009-09-10 14:24:02 -07:00
Bill Napier
f94816017e Add getvar and listvar commands to monkey to allow inspection of properties on the device. 2009-08-17 11:20:15 -07:00
Bill Napier
9d8557c4b3 Squashed commit of the following:
commit d36aba1463cf8dca9dea7b4e436a71c6821f341a
Author: Bill Napier <napier@google.com>
Date:   Tue Aug 11 16:36:07 2009 -0700

    Change disconnect to be the same as if the user had issued a done command.

commit 4ab3ef149e815188105e10febd5a00ee5d0574fc
Author: Bill Napier <napier@google.com>
Date:   Tue Aug 11 16:31:16 2009 -0700

    Add "done" command to allow multiple sessions.
2009-08-12 09:31:33 -07:00
Bill Napier
3faef17986 Add "type" command to allow strings to be more easily typed. 2009-08-11 16:07:38 -07:00
Bill Napier
bdc2220af4 Add press/tap and also a command queue for returning multiple events. 2009-08-10 20:50:30 -07:00
Bill Napier
ad90429149 Add "wake" command to wake device up. Run wake command at first connection. 2009-08-10 13:27:32 -07:00
Bill Napier
0b1f5a9484 Update monkey network readme. 2009-08-10 09:56:08 -07:00
Bill Napier
a68dbdb1c3 Added in simple command scripting to monkey over a TCP socket.
This allows a host program to talk to the monkey over TCP (via adb) and script up specific commands to run.
2009-08-07 11:34:12 -07:00
Dianne Hackborn
aa5574f97d Rename IActivityWatcher to IActivityController 2009-07-13 15:53:12 -07:00
Suchi Amalapurapu
57b6feb5ef Change import for IIntentReceiver since the class has been refactored from android.app to android.content 2009-06-17 12:02:04 -07:00
Jim Miller
3e456daa45 Add network statistics collection to monkey runs. 2009-04-23 13:48:45 -07:00
Evan Millar
565067aeb0 AI 144927: Fix throttling in scripted monkeys (bug #1739843).
BUG=1739843

Automated import of CL 144927
2009-04-07 17:21:32 -07:00
Evan Millar
62c4d9bfc5 AI 143190: am: CL 142951 Change the way we handle monkey throttling. We now will only sleep after complete down/[move]/up sequences. This avoids unwanted long pressing. We will need to add code to explicitly long press at some point.
Original author: emillar
  Merged from: //branches/cupcake/...

Automated import of CL 143190
2009-03-27 17:10:47 -07:00
The Android Open Source Project
52d4c30ca5 auto import from //depot/cupcake/@135843 2009-03-03 19:29:09 -08:00
The Android Open Source Project
d4aee0c0ca auto import from //depot/cupcake/@135843 2009-03-03 18:28:16 -08:00
The Android Open Source Project
74a996a2c7 auto import from //branches/cupcake/...@132569 2009-02-20 07:38:28 -08:00
The Android Open Source Project
e943f2fd8e Code drop from //branches/cupcake/...@124589 2008-12-17 18:04:04 -08:00
The Android Open Source Project
5c11852110 Initial Contribution 2008-10-21 07:00:00 -07:00