Commit Graph

113 Commits

Author SHA1 Message Date
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
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
Yu Shan Emily Lau
35ccee0b22 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 through the s
Merge commit '9bfa6f90b8c56ed7404c0c07a70e27a9fbad3c23' into gingerbread-plus-aosp

* commit '9bfa6f90b8c56ed7404c0c07a70e27a9fbad3c23':
  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-20 14:06:56 -07:00
Yu Shan Emily Lau
e8b416049b 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 through the shell command input text <string>

Change-Id: Iab7478fdc594c07e5166091d29dc644e430e43cb
2010-10-19 22:04:33 -07:00
Jeff Brown
b0b841029a 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
2010-10-14 23:02:59 -07:00
Ying Wang
cbe0d5b963 resolved conflicts for merge of de14fbd4 to gingerbread-plus-aosp
Change-Id: I53302710ca0698daa5fe8ca3ce631a70d1578463
2010-10-07 14:59:03 -07:00
Ying Wang
de14fbd4b1 Set monkey process name
So you can find it easily with "ps" or "top".

Change-Id: Id52cb8bb1680bd2cc24043d08a94f0a304f1e436
2010-10-07 13:04:24 -07:00
Brad Fitzpatrick
feebca8ba2 am 9c1a73ba: Update Monkey to new StrictMode API.
Merge commit '9c1a73ba8a6b6cee05f235ef71975c427a9f3a3c' into gingerbread-plus-aosp

* commit '9c1a73ba8a6b6cee05f235ef71975c427a9f3a3c':
  Update Monkey to new StrictMode API.
2010-10-01 13:07:42 -07:00
Ying Wang
58c636c9bc am 45550faa: Merge "Don\'t send non-existent system keys." into gingerbread
Merge commit '45550faad0f683d1393ea20144246ed43fc19899' into gingerbread-plus-aosp

* commit '45550faad0f683d1393ea20144246ed43fc19899':
  Don't send non-existent system keys.
2010-10-01 10:48:30 -07:00
Brad Fitzpatrick
9c1a73ba8a Update Monkey to new StrictMode API.
Change-Id: I0f2e90496c4dece8ee3766170d8a1fe2d22a7ff4
2010-10-01 10:48:01 -07:00
Ying Wang
5ee69f6f2c Don't send non-existent system keys.
Send only if the system key physically exists.

Change-Id: I8fa102db679c55e5bfba1c9a68ecf2bc196021cd
2010-09-29 13:23:56 -07:00
Dianne Hackborn
ebb0b03e17 am d424b8d9: Prepare for a new IActivityController method.
Merge commit 'd424b8d9ccb569c4a2f01de248068fd130e3bd82' into gingerbread-plus-aosp

* commit 'd424b8d9ccb569c4a2f01de248068fd130e3bd82':
  Prepare for a new IActivityController method.
2010-09-23 16:02:22 -07:00
Dianne Hackborn
d424b8d9cc Prepare for a new IActivityController method.
Change-Id: I30823fe0c06aef35a2773760ec938e7979cd1037
2010-09-23 14:51:56 -07:00
Yu Shan Emily Lau
64a1698a30 am 67aad2d8: Merge "Add the simple script log for the statbility stress test. Add the randomize script option." into gingerbread
Merge commit '67aad2d8d51e9d48730f0c6e4848c60b1a9d0798' into gingerbread-plus-aosp

* commit '67aad2d8d51e9d48730f0c6e4848c60b1a9d0798':
  Add the simple script log for the statbility stress test.
2010-08-30 15:56:38 -07:00
Yu Shan Emily Lau
6a6c533129 Add the simple script log for the statbility stress test.
Add the randomize script option.

Change-Id: I7fbbd3b78a2fc5fe5300ac4811540d0cd2070688
2010-08-30 15:31:33 -07:00
Yu Shan Emily Lau
f1598c4cf4 am ea7d6e8e: Merge "Add the new option for the device sleep time. This is only for the scripted monkey." into gingerbread
Merge commit 'ea7d6e8e6568b777693c52183e9abf973786a6b5' into gingerbread-plus-aosp

* commit 'ea7d6e8e6568b777693c52183e9abf973786a6b5':
  Add the new option for the device sleep time. This is only for the scripted monkey.
2010-08-26 15:27:57 -07:00
Yu Shan Emily Lau
9ab015751d Add the new option for the device sleep time. This is only for the scripted monkey.
Change-Id: I4a6bd7133bbd2da9594a47e1f5529c5358cd9aed
2010-08-26 14:18:18 -07:00
Brad Fitzpatrick
616acdb9cd am 06bcd705: Quiet harmless StrictMode violations caused by the Monkey.
Merge commit '06bcd705606070aa71425fc557e72592a2405a0a' into gingerbread-plus-aosp

* commit '06bcd705606070aa71425fc557e72592a2405a0a':
  Quiet harmless StrictMode violations caused by the Monkey.
2010-08-25 10:10:40 -07:00
Brad Fitzpatrick
06bcd70560 Quiet harmless StrictMode violations caused by the Monkey.
The monkey writes to System.out which is effectively a file and is
caught by StrictMode.

BUG=2947447

Change-Id: Iab38917f18baa319dad34d0c788bc9a10a041796
2010-08-25 09:45:49 -07:00
Yu Shan Emily Lau
6fae0ba472 am 27d0ec1e: Merge "Add the new option for the scripted monkey profile testing." into gingerbread
Merge commit '27d0ec1e87dcf41960f87f203c1822e88f99ea38' into gingerbread-plus-aosp

* commit '27d0ec1e87dcf41960f87f203c1822e88f99ea38':
  Add the new option for the scripted monkey profile testing.
2010-08-24 20:10:38 -07:00
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