Commit Graph

159 Commits

Author SHA1 Message Date
Ying Wang
695f66a7d4 Merge "Revert "Monkey support for swipes from the sides of a device."" 2013-06-11 16:45:35 +00:00
Ying Wang
056d0a598a Revert "Monkey support for swipes from the sides of a device."
This reverts commit 47937eb6b2

Change-Id: I788739c7a70132afb1f1ca13b71fff7d89ad200f
2013-06-11 16:39:09 +00:00
Svetoslav
e37f81e5a4 Optimizing AccessibilityNodeInfo caching (Monkey).
Update monkey due to an API change.

Main change:https://googleplex-android-review.googlesource.com/#/c/316822

Change-Id: Ib945c5e977925775569f2bbd78be9c7a66267480
2013-06-04 18:27:17 -07:00
Ying Wang
47937eb6b2 Monkey support for swipes from the sides of a device.
Bug: 8446772
Change-Id: I875f7bd083e275cce877e2168b5f580dd1d03dcd
2013-05-14 11:10:13 -07:00
Dianne Hackborn
cb8739c53f Debugging help for issue #8734824: WATCHDOG KILLING SYSTEM PROCESS
The monkey now gets told about system hangs, and does stuff about
it!  Most especially, it can collect a bug report.  Monkey wins!

Change-Id: Ic8350721e715ef21d1ec813c6aff9a83262d5faa
2013-05-06 11:16:34 -07:00
Dianne Hackborn
6b16feb5a0 Update to follow activity manager protocol change.
Change-Id: Iee6382c8ed35e296fe27a8fdb69e97dd8b455cc9
2013-01-31 15:17:38 -08:00
Svetoslav Ganov
00fc93c6fe Refactoring due to removing some private APIs.
Change-Id: Id00d9fa974d8cb747cebb99c5a64ed5b438b56e9
2013-01-23 00:20:07 +00:00
Brian Muramatsu
c200e94ff5 am ab8b25ff: am 03c58239: am c6fbad00: Merge "Make all monkeys do the same thing" into jb-mr1-dev
* commit 'ab8b25ff8ec856f490f5bbb95240c8fc0d24ba43':
  Make all monkeys do the same thing
2012-10-09 19:18:57 -07:00
Kenny Root
3cbf850ab6 Make all monkeys do the same thing
Monkeys were using SecureRandom, but what it really wanted was an LCRNG
that allowed it to reproduce the same output with seeds. This change
allows the monkeys to shine.

Bug: 6950454
Change-Id: Iabf0fc5e7d50b786fa32b946e85de797220ff569
2012-10-09 13:57:13 -07:00
Yu Shan Emily Lau
90bbdd2e1b am 0c8fe324: am 1e1926db: Merge "For the recent SD card access change. The non-zogyte process need to use the Environment#getLegacyExternalStorage to access the sdcard." into jb-mr1-dev
* commit '0c8fe324e579842cb04818a96016ef7b929e625a':
  For the recent SD card access change. The non-zogyte process need to use the Environment#getLegacyExternalStorage to access the sdcard.
2012-09-24 00:51:37 -07:00
Yu Shan Emily Lau
b894c71af8 For the recent SD card access change.
The non-zogyte process need to use the
Environment#getLegacyExternalStorage to access the sdcard.

Change-Id: I797d235954defe25e1bd8728f167250e4f9d0fe9
2012-09-21 16:20:12 -07:00
Dianne Hackborn
6764197565 am 6852ac74: am 077c59a0: Track multi-user change.
* commit '6852ac7430cdf909a223e6ba9d9ec9b9ca22e46a':
  Track multi-user change.
2012-09-10 17:06:25 -07:00
Dianne Hackborn
077c59a0b9 Track multi-user change.
Change-Id: I0b45ec880f6149fba5d2d83c014e1e71a6524b99
2012-09-07 13:08:27 -07:00
Dianne Hackborn
70d53bb0cc am a80e74b7: am dbb1e6af: Fix some more.
* commit 'a80e74b710e3bc262395c7dbbfa3a82eb189ceb1':
  Fix some more.
2012-09-04 11:27:30 -07:00
Dianne Hackborn
dbb1e6af7f Fix some more.
Change-Id: Ieeba0ba87f65eed25f3a0f23924fc99b90cc1d69
2012-09-04 11:20:29 -07:00
Jeff Brown
70ffc1bef0 am 75cd1b5b: am 99c82587: Merge "Use new display manager API." into jb-mr1-dev
* commit '75cd1b5bc411a599b9fbb632e96edcbdd9a0e1f8':
  Use new display manager API.
2012-08-29 15:46:37 -07:00
Jeff Brown
60df6ce6b8 Use new display manager API.
Change-Id: Ia7a19413d201532d8cf22bee6bcedd4af1657831
2012-08-29 06:15:17 -07:00
Jeff Brown
900139e605 am 3eadba67: am f9fc2a56: Use new display manager API.
* commit '3eadba67786e6e44ae17d5f6531343d95133e27d':
  Use new display manager API.
2012-08-19 23:10:35 -07:00
Jeff Brown
f9fc2a56f1 Use new display manager API.
Also deleted some dead code.

Change-Id: I4d070b6642caf2c143eeacceeb678c102e5da19c
2012-08-19 21:13:09 -07:00
Dianne Hackborn
758a8ccd5c am 846fe415: am 77201b54: Rename UserId to UserHandle.
* commit '846fe415350bd0668f8a2190d1c78cf07c97ef60':
  Rename UserId to UserHandle.
2012-08-16 12:53:44 -07:00
Dianne Hackborn
77201b5414 Rename UserId to UserHandle.
Change-Id: I701335483628d30c875d087f27287e084789f10c
2012-08-16 12:46:49 -07:00
Jeff Brown
cb54296cae am b25ebf3f: am 9bb23fd7: Use new PowerManager API.
* commit 'b25ebf3fc78c98b508f1b51278d017c070998ea8':
  Use new PowerManager API.
2012-08-15 10:30:45 -07:00
Jeff Brown
9bb23fd7f9 Use new PowerManager API.
Change-Id: I2901fd02cd5b2307e3a4d2f35b03ef7060712908
2012-08-14 17:43:33 -07:00
Xiaojun Bi
c1a8cc26fb supported multi-touch scripts and line-by-line mode in monkey, fixed some format issues
Change-Id: Ib8890bf290b11c5842f0bf7e6829231816a3bae8
2012-07-19 21:58:58 -07:00
Xia Wang
5e20670c0b Remove the WaitEvent added in Tap and Drag.
As the delay is added as WaitEvent, throttle time is applied after
the WaitEvent. This cause problem for Tap and Drag. The thorrle time
is then inserted between ACTION_DOWN and ACTION_UP, or ACTION_DOWN
and ACTION_MOVE. This broke the two actions.

Change-Id: I5a122d6cb3d99e38d9442c3de50e0360652c4baf
2012-05-18 17:04:02 -07:00
Guang Zhu
77dc0d2eab more fixes to monkey motion event timing
Last attempt to fix ACTION_MOVE ended up breaking stuff
elsewhere.

For a touch based gesture, it usually have a group of motion
events, and typically they have the same down time and individual
event times. Example: a tap should have ACTION_DOWN with same
down time and event time, and subsequent ACTION_UP should have
the same down time as previous one, but a fresh event time.
Similar situation applies to ACTION_DOWN, ACTION_MOVEs,
ACTION_UP sequence of a drag/scroll/fling gesture

In addition, a 5ms delay is added for a tap between DOWN and
UP. And a 5ms delay is added for each injected event in a drag
gesture

Change-Id: I8e65e578152b1c1ff1fa4c0f476ef45806826479
2012-05-04 14:06:50 -07:00
Guang Zhu
8749a298c0 fix how monkey adjust timestamps for motion events
Currently for motion events, monkey forces current system uptime
onto both down time and event time. This breaks ACTION_MOVE
events because the down time of it is supposed to be the time
when finger is down.

the new logic is:
* check down time, if it's invalid (<0), fill in uptime
* always update event time with a fresh uptime

Bug: 6424997

Change-Id: I0b445815a5015d48c08bebc921c572164874449d
2012-05-01 13:57:57 -07:00
Jeff Brown
f63ed9b83c Fix Monkey key events.
Monkey should not be injecting keys with metastate of -1.
Cleaned up the code to ensure it doesn't happen and to make it more
obvious what's going on.

Bug: 6397645
Change-Id: I7339b2fe14edb0578005f93af1f803a0ae3dec96
2012-04-26 12:11:50 -07:00
Tsu Chiang Chuang
fd16f3927e Merge "change the way we fetch the test result file." 2012-04-17 17:04:37 -07:00
Jeff Brown
2af3f3067a Ensure Monkey uses sane timestamps for key events.
Bug: 6323659
Change-Id: Idc14c36026bc8d1b612765e2da73e9b618d94ded
2012-04-11 16:13:34 -07:00
Jeff Brown
99e94c0d0e Use new InputManager API.
Change-Id: Ic521e4134e0aeb4d85e322b0a4f5bc925458b71f
2012-04-09 15:26:17 -07:00
Tsu Chiang Chuang
800fbe1f38 change the way we fetch the test result file.
Change-Id: I5b1863ad0a7db877e50e1d38cff4e23b95faa4b0
2012-04-09 10:55:25 -07:00
Jeff Brown
fd94c39a55 Merge "Use new input manager API." 2012-04-05 19:34:52 -07:00
Jeff Brown
001a30f89a Use new input manager API.
Bug: 6110399
Change-Id: Icc0b2bb1261ce39809af6a2b78279b28d3a758c5
2012-04-05 18:50:00 -07:00
Tsu Chiang Chuang
02b534701d Add new way to calculate FPS to monkey.
Change-Id: I7ba222bfd3c6955bfeed3fda6d4bda95c129f2dc
2012-04-02 09:30:33 -07:00
Ying Wang
46b674174b Support to generate screen rotation events.
Bug: 6086016
Use "--pct-rotation <percentage>" to set the percentage.

Change-Id: If16fac45399ad50b25e211f2788a02fdc03c44b4
2012-03-27 10:28:00 -07:00
Amith Yamasani
a277cee31d Package control per user
Change-Id: Ife6c3b223c382ca680b5fcf9b71213d0460c95b7
2012-03-20 11:48:16 -07:00
Dianne Hackborn
51cb3a4dbc Update to follow IActivityManager change.
Change-Id: I1e02418be7e6c2777662c0b4ba99b7b68c37834a
2012-03-14 12:57:15 -07:00
Siva Velusamy
fd4a73989f Fix # of arguments to startActivity
Change-Id: I01daa8efe56d6a8ba0d35f63290d50281d4723eb
2012-03-09 14:35:44 -08:00
Bill Napier
339fa32291 Merge "Fix UNKNOWN keycode parsing in monkey." 2012-03-05 09:49:27 -08:00
Guang Zhu
73421de1a0 Update the intent that monkey uses to launch application
The purpose of the monkey event is to imitate user action of
launching an app from launcher, and apparently launcher is
using one extra flag FLAG_ACTIVITY_RESET_TASK_IF_NEEDED

Bug: 6007633
Change-Id: Ie42cc84fd6235c9419b96bd9574056ed46687b25
2012-02-27 14:38:55 -08:00
Bill Napier
3d3d64250d 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
2012-02-16 16:58:19 -08:00
Svetoslav Ganov
6848f33575 Merge "Updating the monkey to use a dedicated UI test bridge." 2012-02-01 13:45:42 -08:00
Yu Shan Emily Lau
c44d7a8359 am 075783dc: am 979806b0: Regular monkey should not write script log.
* commit '075783dcd8b07c8e1e0994f1ec5d909f3977eef5':
  Regular monkey should not write script log.
2012-01-30 11:28:02 -08:00
Yu Shan Emily Lau
979806b0a8 Regular monkey should not write script log.
Change-Id: I225cb01d3fb81478ea0e13cc4a6546d71d16d251
2012-01-30 11:08:53 -08:00
Svetoslav Ganov
4ce026b4b1 Updating the monkey to use a dedicated UI test bridge.
1. The MonkeySourceNetworkViews was registering a raw event
   listener for accessibility events and hence perform
   connection and cache management in similar way to an
   AccessibilityService. This is fragile and requires
   the Monkey implementor to know internal framework
   stuff. Now the functionality required by the class
   is accessed via the new UiTestAutomationBridge.

Change-Id: Idd5820e42a4b4dfc1d9eed8977ec5ccd96485daa
2012-01-23 18:23:45 -08:00
Svetoslav Ganov
15ee96f1d5 Fising the build
Change-Id: I3bbc77a2ad4244076df01071c1093f969c9dd4e4
2011-11-30 19:37:55 -08:00
Svetoslav Ganov
bdf03ad735 Updating the Monkey commands due to framework changes.
bug:5664337

Change-Id: I7093fb8a646b9363dde6eee87955330bedec117b
2011-11-30 17:48:47 -08:00
Yu Shan Emily Lau
1baa142c06 do not merge: cherry-picked Change-Id: I094dbc4ffa42771a13dfb796761546093649481c from master branch
Change-Id: Ia54463c93a7f941d7de3cc003ce773749d1f016e
2011-11-08 15:35:28 -08:00
Yu Shan Emily Lau
08fa5ef66f Bug 5440088 Turn off the bugreport catpure
by default.

Swith the mGetPeriodicBugreport default
value to false so that the bugreport
will not be captured by default.

Change-Id: Ieae662478d865d9a49dec4f77f52046b560c8972
2011-10-10 19:40:22 -07:00