Commit Graph

174 Commits

Author SHA1 Message Date
songjinshi
86190d02f2 Merge \"Fixes the system server hang forever issue caused by the monkey not read completed the sync pipe.\"
am: e85e33cfd7

Change-Id: Ic3a4d45b844cb8661b4287bdac26c65d6281ad17
2016-07-06 17:50:07 +00:00
songjinshi
f032537cea Fixes the system server hang forever issue caused by
the monkey not read completed the sync pipe.

- Incorrect exception handle.

When no space left on the device the write will
occurs an I/O exception, so we needed to catch it
and continue to read the data of the sync pipe to
aviod the bugreport hang forever.

https://code.google.com/p/android/issues/detail?id=211970

Change-Id: I80c6548434587bcc17b50f0c246a5887cdd339cf
Signed-off-by: songjinshi <songjinshi@xiaomi.com>
2016-06-30 00:55:45 +00:00
Dan Willemsen
15348ea4aa Merge "Replace custom rules, remove ACP"
am: a279b12

* commit 'a279b12905f31231a8f3c36c52abcd1224449c1a':
  Replace custom rules, remove ACP
2016-03-23 22:02:06 +00:00
Dan Willemsen
f230a38299 Replace custom rules, remove ACP
A few LOCAL_ADDITIONAL_DEPENDENCIES were required, where
LOCAL_REQUIRED_MODULES would be nicer, but you can't require a module of
the same name. It would create a dependency loop with the current
require implementation, so it's filtered by the build system.

Also translate monkey from ALL_PREBUILTS to a prebuilt like the rest of
the tools. This doesn't change anything, since 'monkey' is already in
build/target/product/base.mk.

ACP is being removed, so use the standard build system macros to copy
files.

Change-Id: I4f73c6b35c0d7ae25467145b0a9d5c32ba4578d2
2016-03-23 13:22:38 -07:00
Jeff Sharkey
ff1a33d591 Follow framework refactoring.
Bug: 27391893
Change-Id: Ia56279a5fb3c1e65ee9e70615e71045cba2c0348
2016-03-04 16:28:00 -07:00
Dianne Hackborn
952cb1f15a Fix issue #27385109: control activity behavior without triggering...
...isUserAMonkey for testing purpose

Change-Id: If261bc860d3974796ec382dcd5f625d40ab093a5
2016-02-29 15:15:05 -08:00
Michael Wright
6be53d1e30 Blacklist KEYCODE_SOFT_SLEEP from random key generation
Change-Id: Ibaddfa0cc6f6bee24f27f919c7cf4b1fa38a331b
2015-09-16 23:42:40 +00:00
Dianne Hackborn
d574af02c8 Track reason for screen turning on.
Change-Id: I1ab64b6d29d7e2c6f9006587d41a318289f13227
2015-07-15 10:08:36 -07:00
Guang Zhu
973ecb6108 fix slotting of permission category
Per convention, event categories that are not key events should
be inserted before the block of key event categories.

Change-Id: I2cbe4a34231462dbdee1f8b97270fdd0b3354690
2015-06-23 11:25:56 -07:00
Guang Zhu
403be1157f teach monkey to flip permissions on apps
1. added a new MonkeyEvent type for permission events
2. added monkey permission utility for randomized permission
   events generation against targeted packages
3. refactored package whitelist/blacklist into MonkeyUtils class

Change-Id: I8f7998d74c3e28d02f5bcd47a0f9cc6167b93c93
2015-06-21 12:32:22 -07:00
Jeff Hao
016fc167ac Update call to IActivityManager.startActivity.
Multi-project change to go with
https://googleplex-android-review.git.corp.google.com/529286

Bug: 17040932
Change-Id: I7fa018213acd71bc0f63c97399a1676bbde61d44
2014-08-26 09:59:36 -07:00
Narayan Kamath
01347d965e am 361fce55: am d9fb901d: am 479cf9ff: Merge "Track changes to IActivityManager.startInstrumentation."
* commit '361fce55866e220380fdf1c81f29e5498b5fa0a7':
  Track changes to IActivityManager.startInstrumentation.
2014-05-30 11:50:55 +00:00
Narayan Kamath
fc9e3f6878 Track changes to IActivityManager.startInstrumentation.
Change-Id: Iceaecb720c2824134a1d6d13b1f3e0a16d41d76d
2014-05-30 11:33:02 +01:00
Michael Wright
26b91ca81c Add logging for failed injections to Monkey.
Bug: 13679803
Change-Id: Iefb0073ad892b15b734b739fe036262ea60066d2
2014-04-01 00:05:37 +00:00
Guang Zhu
644b822218 blacklist KEYCODE_SLEEP in random key generation
Bug: 13583213
Change-Id: Ic0fa933440acb27a0636b2db83be08695e9df0db
2014-03-21 12:16:05 -07:00
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