Commit Graph

55 Commits

Author SHA1 Message Date
Yu Shan Emily Lau
6035a57a97 Add the new option for the scripted monkey profile testing.
Change-Id: I1013a1a0daed948f509d9a29077f0e282baf1a10
2010-08-24 19:49:38 -07:00
Yu Shan Emily Lau
39b0199222 Added the new keyword tap for the scripted monkey.
Change-Id: Iabfc462f8fc853b3235aa0d742fa46c97e980b77
2010-08-19 15:01:38 -07:00
Yu Shan Emily Lau
4fbc8db891 Add the monkey event which allows the scripted monkey to execute the shell command.
Change-Id: Id5548fc42fc5c7bee6879fffc580e134a75572ab
2010-08-19 11:03:34 -07:00
Ying Wang
8fc778984c Fix keycode. [Cherry-pick from master]
see frameworks/base/core/java/android/view/KeyEvent.java.

Change-Id: Ic9a355b36815c4ac7db9c57c14bfe933585cf963
http://b/issue?id=2830562
2010-08-12 11:30:41 -07:00
Ying Wang
5ce45c93ad Fix keycode
4 new key codes were added since gingerbread.
bug: http://b/issue?id=2830562

Change-Id: I91a55ef6ca9244bc053e25b6dd8d514cb3f106e9
2010-07-09 15:07:19 -07:00
Yu Shan Emily Lau
ec87ca5f3a am 34ca4b64: Merge "Add the support for the alarmManager and force the device to wake up." into froyo
Merge commit '34ca4b646b20cc209b06fec482e6c77dbc92d220' into gingerbread

* commit '34ca4b646b20cc209b06fec482e6c77dbc92d220':
  Add the support for the alarmManager and force the device to wake up.
2010-07-08 11:31:07 -07:00
Yu Shan Emily Lau
52bbaa3052 Add the support for the alarmManager and force the device to wake up.
Change-Id: Ib4a2f9cb580eadf6771b103399e14f932d50cb1c
2010-07-07 12:13:32 -07:00
Yu Shan Emily Lau
3bacdf9300 am 1a132581: Merge "Add the AUTOTEST_TEST_BEGIN_DELAY keyword to the scripted monkey which allow the power log to start 10 seconds after the event was send out." into froyo
Merge commit '1a132581a5ce6188989d8522d227392c05cb42f6' into gingerbread

* commit '1a132581a5ce6188989d8522d227392c05cb42f6':
  Add the AUTOTEST_TEST_BEGIN_DELAY keyword to the scripted monkey which allow the power log to start 10 seconds after the event was send out.
2010-06-24 15:41:10 -07:00
Yu Shan Emily Lau
07aeb8c358 Add the AUTOTEST_TEST_BEGIN_DELAY keyword to the scripted monkey which allow the power log to start 10 seconds after the event was send out.
Change-Id: I3d98d56128b8a96ba712c7e11280e3ab88a7cc4a
2010-06-24 14:20:16 -07:00
Yu Shan Emily Lau
59b6dce0d5 am 39d7a745: Merge "Added the instrumentation and power log monkey events fro the new power framework." into froyo
Merge commit '39d7a7451b7e43dc1d71ac983821e76c88775a81' into froyo-plus-aosp

* commit '39d7a7451b7e43dc1d71ac983821e76c88775a81':
  Added the instrumentation and power log monkey events fro the new power framework.
2010-05-28 15:50:23 -07:00
Yu Shan Emily Lau
2952b49c7c Added the instrumentation and power log monkey events fro the new power framework.
Change-Id: I3102e6caaba8763a2197ff80f13c8d127ea42316
2010-05-28 13:48:42 -07:00
The Android Open Source Project
99096976d0 merge from open-source master
Change-Id: I4bbf0fccef174a7f0eb8241b422f846ea21c3349
2010-05-12 09:27:49 -07:00
Johan Alfven
f515f1a6c8 Added missing --pct-syskeys to processOptions in Monkey
According to the developer guidelines
http://developer.android.com/guide/developing/tools/monkey.html
it should be possible to run monkey with option --pct-syskeys <percent>
to adjust percentage of "system" key events. (These are keys that are
generally reserved for use by the system, such as Home, Back,
Start Call, End Call, or Volume controls.) However, when trying
to run monkey with that option it fails with:
** Error: Unknown option: --pct-syskeys
The function processOptions in file Monkey.java was missing the
option --pct-syskeys.

Change-Id: I5d328fc93dfe67ed7a905735d6762c7f91c69838
2010-05-11 09:11:43 +02:00
Ying Wang
84086578bb Add timestamp to monkey log
Change-Id: Ia477aca8b00d06049621d848f5792c291e3db040
2010-04-14 19:25:27 -07:00
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
Eric Rowe
d98ba32eef DO NOT MERGE Fix bug where monkey always tries to run multiple scripts.
Change condition so MonkeySourceRandromScript is only triggered on multiple
scripts.
2010-01-14 17:09:19 -08:00
Eric Rowe
7d961f8620 DO NOT MERGE 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.
2010-01-14 17:04:27 -08:00
Eric Rowe
66e263baed 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.

Conflicts:

	cmds/monkey/src/com/android/commands/monkey/Monkey.java
2010-01-13 18:22:32 -08:00
Eric Rowe
b2fa770013 DO NOT MERGE 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.
2010-01-13 15:07:08 -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
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