Commit Graph

132 Commits

Author SHA1 Message Date
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
Svetoslav Ganov
33a93ebfe3 Update required due to framework API change.
Change-Id: I0c297c978415e2a23df1fc2e70ebfa3e6e00715d
2011-08-24 16:35:09 -07:00
Dianne Hackborn
b4ac2b3b35 Update to follow framework change.
Change-Id: I4ce9cadc9a3a5e34bc0fc4cf01ebb0cd1447f913
2011-08-15 18:25:56 -07:00
Michael Wright
c6c89b994e Added deferreturn command
Change-Id: Id84ac667d42dab4648b24cc335917c3d15ec1de4
2011-07-20 14:27:10 -07:00
Michael Wright
b36bed5899 Added view introspection functionality to Monkey
Change-Id: Ica8439d8c5694dc6ecc5c64d8ce52d16f51cbb25
2011-07-20 14:21:04 -07:00
Yu Shan Emily Lau
921d82fcdc Add the Tap duration in the scripted monkey.
Change-Id: Ie18872f6ab7934458f45fb2ac573a90a2c12319a
2011-07-14 16:59:45 -07:00
Yu Shan Emily Lau
3de6f45822 Add the pinch and zoom action in the
scripted monkey.

Change-Id: I658ee5954bc6c994e2206e7bde4aec382a66caea
2011-07-13 14:35:40 -07:00
Dianne Hackborn
5480519835 Follow internal impl change.
Change-Id: I61e545306182e106723e74f28650c165dcdab19a
2011-06-30 11:23:55 -07:00
Yu Shan Emily Lau
d099c144ed Add the framerate catpure tool. The change
introduce two new keywords - StartCaptureFramerate and
EndCaptureFramerate. This will call the adb shell call
service call SurfaceFlinger 1013 to get the actual fps.
The system property - viewancestor.profile_rendering
must be set to true before running this test.

Change-Id: I0fd1940ac94c77fc2bbf3c8048d7d5d68571590e
2011-06-15 18:39:39 -07:00
Yu Shan Emily Lau
5f8f4e8d21 Added the Drag action to the scripted moneky
Change-Id: Ib7f4f09cd07029c7332f99813c97ed0fc8dfa66a
2011-02-09 15:32:46 -08:00
Yu Shan Emily Lau
ebbef932a7 Added the periodic bugreport option for the Auotmated profile test.
Added the press and hold keyword in the scripted monkey.
Bug#3426961

Change-Id: I18f84520ef37c9b5cb300f62df3540d0d774c62b
2011-02-07 20:46:25 -08:00
The Android Automerger
902bc7bcea resolved conflicts for merge of 42f87e1b to honeycomb-plus-aosp
Change-Id: Ic0ea8910670567e1725e42de76e6da0cd09decac
2011-01-24 23:45:43 -08:00
Yu Shan Emily Lau
d391ae2098 Fixed the appCrashBugreport reset flag. Bug# 3383876
Change-Id: I51d06ad30ed43789943cc99744898028e11b8466
2011-01-24 11:57:32 -08:00
Dianne Hackborn
42f87e1b47 am e6354845: Merge "Monkey: request am to show the ANR dialog"
* commit 'e635484562dc7f21aa16de3147a100210708c8f8':
  Monkey: request am to show the ANR dialog
2011-01-22 11:52:53 -08:00
Vairavan Srinivasan
af5e575643 Monkey: request am to show the ANR dialog
Default return value of 1 from appNotResponding was to show the
ANR dialog in eclair. However, recent version of android's am
interpret 1 as to wait. Fix is to change the default return
value from 1 to 0.

Change-Id: I6620ef54309f1d30ef18a2b60d73b346c2446f93
2011-01-21 18:00:52 -08:00
Jeff Brown
f40ea5cfd9 am 98ab3219: Prevent monkey from turning off the screen. (DO NOT MERGE)
* commit '98ab321927f1ea9ebb7ba6b5506ac6748b005555':
  Prevent monkey from turning off the screen. (DO NOT MERGE)
2011-01-20 21:46:27 -08:00
Ed Heyl
fd6a2b4d25 Merge "Really don't send POWER or ENDCALL." into honeycomb 2011-01-20 19:10:22 -08:00
Jeff Brown
98ab321927 Prevent monkey from turning off the screen. (DO NOT MERGE)
Bug: 3371251
Change-Id: I33005005fadc0f994f39fded10faafe21116f82a
2011-01-20 17:54:53 -08:00
Jeff Brown
82df76b040 Really don't send POWER or ENDCALL.
Change-Id: If55c6bc7565a9a6b493da16fac5c7ad3c621684f
2011-01-20 17:41:18 -08:00
Yu Shan Emily Lau
080c237638 Merge "Fixed the monkey option - killProcessAfterError is not beging checked in ANR. bug#3146736" into honeycomb 2011-01-20 10:21:37 -08:00
Jeff Brown
8a2659dc0d Prevent monkey from turning off the screen.
Bug: 3371251
Change-Id: Iadae29e8e4a67052746b8e2d2f5f542e4ee6dcc5
2011-01-19 19:43:49 -08:00
Yu Shan Emily Lau
bf86c3e1ce Fixed the monkey option - killProcessAfterError is not beging checked in ANR. bug#3146736
Change-Id: I82dc5d28a218f8e2a6e7c13f27a4aca398cd904d
2011-01-14 19:25:11 -08:00
Brett Chabot
b45644eac0 Replace use of ro.monkey with ro.test_harness.
Bug 3329873

Change-Id: Ia681803c3d0b0afeceb178b8314c9d7227d99355
2011-01-09 14:11:50 -08:00
Jeff Brown
585ab96950 Add support for multitouch pinch-zoom gesture to monkey.
Change-Id: Ib28f2ede95dbe01eae4d9c72906b6fdfeda44ce4
2010-12-14 13:42:22 -08:00
Yu Shan Emily Lau
af2fc1a4e2 Adjusted the motionEvent time to the acutal time when then event is send out to the queue.
Change-Id: I722508829c79028a7345a4dea0517fc1117b8fa5
2010-12-09 18:36:39 -08:00
Dima Zavin
9f8e7b45b2 monkey: trap SIGHUP in shell before launching
Change-Id: Ia79361858baa72970ba15d2d1ce0290d0bd38967
Signed-off-by: Dima Zavin <dima@android.com>
2010-12-09 14:22:21 -08:00
Jeff Brown
f083bd43a0 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
2010-11-23 15:51:40 -08:00
Yu Shan Emily Lau
05cd1145d4 am 35ccee0b: am 9bfa6f90: Merge "1) add the bugreport option which allow the scripted monkey to capature the bugrepor and save it to the sdcard wherenever there is a ANR, java crash and native crash. 2) Add a new option in the scripted monkey which can enter a string
Merge commit '35ccee0b22501feda0249dfcaaff2a9fdcd363b6'

* commit '35ccee0b22501feda0249dfcaaff2a9fdcd363b6':
  1) add the bugreport option which allow the scripted monkey to capature the bugrepor and save it to the sdcard wherenever there is a ANR, java crash and native crash.
2010-10-21 13:44:36 -07:00