History log of /development/cmds/monkey/src/com/android/commands/monkey/MonkeySourceRandom.java
Revision Date Author Comments
fe1522a4543e85047221b3417ebd3016c3a750c7 11-Jun-2013 Ying Wang <wangying@google.com> Revert "Monkey support for swipes from the sides of a device."

This reverts commit 47937eb6b2669060da7526cf66a3d9e4f6e35244

Change-Id: I788739c7a70132afb1f1ca13b71fff7d89ad200f
056d0a598a6a2e53256005a0c8722e02749d37f2 11-Jun-2013 Ying Wang <wangying@google.com> Revert "Monkey support for swipes from the sides of a device."

This reverts commit 47937eb6b2669060da7526cf66a3d9e4f6e35244

Change-Id: I788739c7a70132afb1f1ca13b71fff7d89ad200f
47937eb6b2669060da7526cf66a3d9e4f6e35244 11-May-2013 Ying Wang <wangying@google.com> Monkey support for swipes from the sides of a device.

Bug: 8446772
Change-Id: I875f7bd083e275cce877e2168b5f580dd1d03dcd
60df6ce6b8e1f9519aafb5f87c21e07259b463d0 29-Aug-2012 Jeff Brown <jeffbrown@google.com> Use new display manager API.

Change-Id: Ia7a19413d201532d8cf22bee6bcedd4af1657831
f9fc2a56f18b5d9684b48f0fe7a4e3b24eab5847 20-Aug-2012 Jeff Brown <jeffbrown@google.com> Use new display manager API.

Also deleted some dead code.

Change-Id: I4d070b6642caf2c143eeacceeb678c102e5da19c
46b674174bfded2506d4017ea8c8f3649245e7c1 15-Mar-2012 Ying Wang <wangying@google.com> Support to generate screen rotation events.

Bug: 6086016
Use "--pct-rotation <percentage>" to set the percentage.

Change-Id: If16fac45399ad50b25e211f2788a02fdc03c44b4
3d3d64250d93c63feef732e873632a67995e242f 17-Feb-2012 Bill Napier <napier@google.com> Fix UNKNOWN keycode parsing in monkey.

Reported here: http://code.google.com/p/android/issues/detail?id=25369

Change the monkey's keycode parsing code to check
KeyEvent.KEYCODE_UNKNOWN instead of -1.

Change-Id: I2caa82980b83c49614a318d38c0257a5587c16cd
98ab321927f1ea9ebb7ba6b5506ac6748b005555 20-Jan-2011 Jeff Brown <jeffbrown@google.com> Prevent monkey from turning off the screen. (DO NOT MERGE)

Bug: 3371251
Change-Id: I33005005fadc0f994f39fded10faafe21116f82a
82df76b040cc13c2df4be141edfb2d29e439f57a 21-Jan-2011 Jeff Brown <jeffbrown@google.com> Really don't send POWER or ENDCALL.

Change-Id: If55c6bc7565a9a6b493da16fac5c7ad3c621684f
8a2659dc0db131ec6c01e5bfc25185dd51aa1275 20-Jan-2011 Jeff Brown <jeffbrown@google.com> Prevent monkey from turning off the screen.

Bug: 3371251
Change-Id: Iadae29e8e4a67052746b8e2d2f5f542e4ee6dcc5
585ab9695077b48436032def57ff50f9d9ec316b 05-Oct-2010 Jeff Brown <jeffbrown@google.com> Add support for multitouch pinch-zoom gesture to monkey.

Change-Id: Ib28f2ede95dbe01eae4d9c72906b6fdfeda44ce4
f083bd43a0c6b7bf1b88775ac0f1d0bec1281a75 02-Nov-2010 Jeff Brown <jeffbrown@google.com> Monkey updates for new keyboard features.

Add the new volume mute key as a system key.
Use virtual keyboard during injection.
Also fixed a deprecation warning for using an old Intent API.

Bug: 2912307
Bug: 3221301
Change-Id: I056844509112727aa3541223f090cc500c55fc41
b0b841029ad7592e8082e59e56645f84b06c558d 13-Oct-2010 Jeff Brown <jeffbrown@google.com> Use framework-supplied keycode symbols.

KeyEvent now offers an (@hidden) method to map keycodes to symbolic names
in a way that is compatible with what Monkey was already doing itself.
Now we shouldn't need to change monkey each time we add new keycodes.

Bug: 2912307
Change-Id: I9cd729b17c3f19505a4d3afcce465dad0c64cce0
5ee69f6f2c35a6e68bb0428bfb853b873313cbb4 29-Sep-2010 Ying Wang <wangying@google.com> Don't send non-existent system keys.

Send only if the system key physically exists.

Change-Id: I8fa102db679c55e5bfba1c9a68ecf2bc196021cd
15aeae14a79ca02d9fc4c4a9c155b17210dd69e9 12-Aug-2010 Ying Wang <wangying@google.com> Fix keycode. [Cherry-pick from master]

see frameworks/base/core/java/android/view/KeyEvent.java.

Change-Id: Ic9a355b36815c4ac7db9c57c14bfe933585cf963
http://b/issue?id=2830562
8fc778984cd0b737df102fca14be7c1815505b80 12-Aug-2010 Ying Wang <wangying@google.com> Fix keycode. [Cherry-pick from master]

see frameworks/base/core/java/android/view/KeyEvent.java.

Change-Id: Ic9a355b36815c4ac7db9c57c14bfe933585cf963
http://b/issue?id=2830562
35c24ce6ea99da3b78311ee3176b8697d0763196 12-Aug-2010 Ying Wang <wangying@google.com> Fix keycode.

see frameworks/base/core/java/android/view/KeyEvent.java.

http://b/issue?id=2830562
Change-Id: I36676066e0e3e749e30625e81398e53b403aed1c
5ce45c93ad1dc5f3e836be865ca25a043f7f4ced 10-Jul-2010 Ying Wang <wangying@google.com> Fix keycode

4 new key codes were added since gingerbread.
bug: http://b/issue?id=2830562

Change-Id: I91a55ef6ca9244bc053e25b6dd8d514cb3f106e9
bae45151532d761e6ca61c86ab1ecebfbb685b39 01-Feb-2010 Ying Wang <wangying@google.com> Add support for random throttle.

See http://b/1716328
66e263baed854acd93a8b17ac5a820abca55c54a 14-Jan-2010 Eric Rowe <erowe@google.com> 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
b2fa770013cf1b6b8bf0619a946a54feafec5197 20-Oct-2009 Eric Rowe <erowe@google.com> 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.
65440eb58d5ff9c728003e1d5420380c3a0af455 22-Oct-2009 Eric Rowe <erowe@google.com> 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.
20e7a15bb74d7349ee879bb311a0607325f49aaf 20-Oct-2009 Eric Rowe <erowe@google.com> 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.
a68dbdb1c31c486f489f38291eea05b3c621ae36 07-Aug-2009 Bill Napier <napier@google.com> 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.
fb7c34758a7a326721632b41aa2e4ce3929e4964 08-Apr-2009 Evan Millar <> AI 145122: am: CL 144927 Fix throttling in scripted monkeys (bug #1739843).
Original author: emillar

Automated import of CL 145122
565067aeb01670c05692e087ec214f8dd1a426ed 08-Apr-2009 Evan Millar <> AI 144927: Fix throttling in scripted monkeys (bug #1739843).
BUG=1739843

Automated import of CL 144927
84426e4d3f7a05981cfbe9a03c317c3c7805f7dc 28-Mar-2009 Evan Millar <> AI 143341: am: CL 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/...
Original author: android-build
Merged from: //branches/donutburger/...

Automated import of CL 143341
62c4d9bfc5eca4a7bd160e8fb67c0bbc066d9ce8 28-Mar-2009 Evan Millar <> 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
4d88b72e476429b72a9c5aca76f04dccc6fe3301 26-Mar-2009 Evan Millar <> Automated import from //branches/cupcake/...@142951,142951
52d4c30ca52320ec92d1d1ddc8db3f07f69c4f98 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
d4aee0c0caa00aa02d4c50ed28151591ac0456b5 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
74a996a2c7251790ab3cc6a10358c31ad0fed828 20-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132569
e943f2fd8e7623ba3ea12bb65294d30446db4174 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589