Commit Graph

1215 Commits

Author SHA1 Message Date
Bill Napier
8fa0d4ef97 Merge "Change help test generation to use clearsilver templates just like the rest of the system. This should more easily allow customization of the generated output." 2010-06-14 13:37:35 -07:00
Bill Napier
44ab7d8406 Change help test generation to use clearsilver templates just like the rest of the system. This should more easily allow customization of the generated output.
Change-Id: I5c51f3781aab3ce85653ecb69c1f10fd76d8c172
2010-06-14 13:32:08 -07:00
Bill Napier
fc4835e80f Add in a help script to generate text and html formats of the MonkeyRunner help.
Change-Id: I757cd716f67f9d376113274922e8bbf7ef97f663
2010-06-14 13:17:21 -07:00
Bill Napier
ac3f5485c8 Merge "fix build (again). Even more sneaky @Overrides" 2010-06-11 14:04:41 -07:00
Bill Napier
95ceb13852 fix build (again). Even more sneaky @Overrides
Change-Id: I370a3d6372ac8425959ce71c5e564a2bac04dc03
2010-06-11 14:04:02 -07:00
Bill Napier
4f6ff05e8c Fix build. @Override
Change-Id: Iecc821e610f671f6e08aa98e433a31990af40855
2010-06-11 13:01:02 -07:00
Bill Napier
675b718ebf Add in some more useful MonkeyRunner commands:
- Add in device "drag" command to simulate a finger moving across the touch screen
 - Add in some pixel operation on MonkeyImage to scripts can do pixel level tests and comparisons.
 - Fix up the help command to no longer loop forever.
 - Start MonkeyRunner in interactive mode if no script file is specified.

Change-Id: Ifd2655d3291dcc9dc355d4c2efa9019dc38bee5d
2010-06-10 16:54:26 -07:00
Bill Napier
d42aa3310e - Improve ScriptRunner command line parsing to actually pass more of the arguments. (And a unit test to go with it).
- Set __name__ inside the scriptfile runner so python scripts expecting it get it.
- Propagate sys.exit error codes so monkeyrunner will actually return those error codes.
- Better handle PyExceptions thrown by the script to actually terminate monkeyrunner.
- Bubble up installPackage and removePackage error codes so callers can tell if they worked or not.

Change-Id: Ia4717b1ad2c9b4cccd607aba00211f2f85dfb412
2010-05-25 14:42:32 -07:00
Bill Napier
66cfd4bfe8 Add in python unit tests and fix up java unit tests.
Change-Id: I3930946364d5ca8a5d18e4a2b36a7afa298ef2de
2010-05-25 09:49:42 -07:00
Bill Napier
06a839ddbe Add in "plugin" support to allow users to add their own plugin's via JAR files and the -plugin command line argument.
Also make sure that the arguments passed on the command line correctly get set in sys.argv.

Change-Id: I35014adc95ac9e5e5c777dc17749ee2b9b155c57
2010-05-24 12:12:17 -07:00
Bill Napier
4ef0789134 Merge "Add in stub backend to be used for jython unit tests." 2010-05-21 10:29:40 -07:00
Bill Napier
9bfa27ffe6 Add in stub backend to be used for jython unit tests.
Change-Id: Idb7a18ce1ddeb8621c688d5580515d10db6edf19
2010-05-21 10:20:56 -07:00
Bill Napier
ccfc305b5a Merge "Add in the help command implementation to return the "help" string to the caller." 2010-05-21 10:00:37 -07:00
Bill Napier
d97211f0d2 Add in the help command implementation to return the "help" string to the caller.
Change-Id: Icb350e4c1cb5ce219ea5ae90272dd7bbaba283e3
2010-05-20 14:41:26 -07:00
Bill Napier
d1a8d5384a remove DebugBridge as it has been replaced with AdbBackend
Change-Id: I52270f2d4ee137932a32309812a8a20503839035
2010-05-20 14:32:36 -07:00
Bill Napier
133e0118fe Refactor MonkeyRunner and add in a lot of API operations.
Change-Id: I96ad1da5dc94c86c1e47ff1acf6843d282bb4724
2010-05-20 11:16:28 -07:00
Bill Napier
73b2f1902c Add in method to ScriptRunner to also get a variable result from the interpreter.
Change-Id: Ib14d48992b66371a6702a7dac621bf3a62d1a936
2010-05-18 11:22:18 -07:00
Bill Napier
423b66f5ca Add proper dependencies for Test target.
Change-Id: I44cd7b13d0d96181908826423cd2b3a320b9cc65
2010-05-17 21:17:41 -07:00
Bill Napier
8d34ed1098 Update ScriptRunner to correctly pass in the name of the sript being started (so jython's sys.argv will work).
Add in JythinUtils Unit Tests to validate JythonUtils correctness.

Change-Id: I41ea78b3efbb8649840b46c279f3e91f12b960ac
2010-05-17 11:11:15 -07:00
Bill Napier
4a70a96512 Add in a collection of useful functions for interacting with the Jython Interpreter.
Change-Id: I1cef598fe8f057ed050452e4928196f815e574b5
2010-05-14 13:34:04 -07:00
Bill Napier
18b698912a Annotation to allow auto-documenting of jython language bindings for MonkeyRunner API's.
Change-Id: Ia0af839df646036a7ecd9f9c6ba02f98dc911f45
2010-05-14 12:42:50 -07:00
Bill Napier
397028f8ed Refactor ImageUtils to eliminate extra copy of image data that was being done. This yields a small
(but noticable) performance improvement.

Add in unit tests to validate that ImageUtils works correctly.

Change-Id: I3f5a8512534c0193f99c0e514066dbd02746a6bc
2010-04-27 10:48:13 -07:00
Bill Napier
d66f9370e1 The rest of the refactor to make MonkeyRunner cleaner.
Change-Id: Iac08f166755abd0d3b439023cac8c7d354fdb439
Note: this removes the MonkeyRecorder functionality.  This will be re-added in a later change.
2010-04-21 17:23:34 -07:00
Bill Napier
addb02a320 Start refactoring MonkeyRunner to be a bit easier to understand.
- Add in ImageUtils (which is basically a copy from HierarchyViewer)
- Encapsulate ADB communications inside DebugBridge.
- Encapsulate Network Monkey protocol inside MonkeyMananger

Most of this code is currenlty duplicated in MonkeyRunner.java.  Deletions of that code
will come in a subsequent change.

Change-Id: Ia33eeae9b12d97371781c5d2a0292b738130b4d3
2010-04-21 10:12:09 -07:00
Raphael
0db059b4c8 Fix etc1tool on Mac SDK: -lz was missing.
Change-Id: I50f5500493be638182d3302cae2e2385722da22d
2010-04-15 22:02:08 -07:00
Raphael
39884388ed Fix etc1tool to build in Windows SDK under Linux
Change-Id: Ib38a019becfeb9e227089b18e04e3f7c28a4af53
2010-04-14 20:03:19 -07:00
Andy McFadden
fbef7e0b85 Merge "Minor improvements to apkcheck." 2010-02-19 16:52:49 -08:00
Andy McFadden
4fbfbb3914 Minor improvements to apkcheck.
It turns out annotation classes aren't spelled out in the public API
file, so we now emit warnings instead of errors on unrecognized method
calls into annotation classes.

The <angle bracket> stripper wasn't working quite right, and did the
wrong thing on nested brackets and stuff like "java.lang.Class<?>[]".
2010-02-19 16:15:27 -08:00
Michael Chan
8d014167ec Modified to work with Mac. Apparently the | operator doesn't work in sed.
Change-Id: I4d29f7f13e08b8daacc2aeb661774d4ba23ec2d1
2010-02-19 15:48:08 -08:00
Andy McFadden
a4707b1709 Add --ignore-package option.
Easier but ultimately less useful than generating API XML for stuff.
2010-02-19 14:44:14 -08:00
Andy McFadden
0a6204684e Updated README.
Document the trouble cases while I still remember what they are.
2010-02-19 12:53:31 -08:00
Andy McFadden
07efa81059 Merge "APK checker." 2010-02-19 12:01:25 -08:00
Marco Nelissen
69b04ff53b Add 's' option to grep so it doesn't complain about stuff under .git 2010-02-19 10:59:54 -08:00
Andy McFadden
2eceaea745 APK checker.
Compares the fields and methods accessed by an APK against the public
API files generated by the build.  See the README for details.
2010-02-19 10:18:04 -08:00
Brett Chabot
6f89b4e6fe Refactor out a DeviceConnector helper class from hosttestlib for reuse. 2010-01-28 18:44:22 -08:00
Marco Nelissen
291bb9f468 Force LANG to C in the findunusedresources script, otherwise it takes forever to run. 2010-01-14 16:06:38 -08:00
Dan Egnor
8aa948e7e0 Fix build (was broken by bad up merge) 2010-01-11 14:24:45 -08:00
Xavier Ducrohet
052720a94c am 7f5c515c: am ef54fe9a: Fix compilation error by declaring stride before the first goto
Merge commit '7f5c515c64a62c400f692ec2c3670a7b16a01a91'

* commit '7f5c515c64a62c400f692ec2c3670a7b16a01a91':
  Fix compilation error by declaring stride before the first goto
2010-01-11 13:51:21 -08:00
Xavier Ducrohet
ef54fe9aaa Fix compilation error by declaring stride before the first goto
Change-Id: I242601038dc7290eac0e4745abaa1ec35d859c09
2010-01-11 12:03:02 -08:00
Jack Palevich
30d42878b3 DO NOT MERGE Tool for compressing/decompressing ETC1 textures.
The ETC1 texture format is commonly supported by
OpenGL ES 2.0-capable GPUs.

For historical reasons ETC1 texture files have the
default extension .PKM

This tool relies on the libETC1 library to
compress and decompress the image data.
2010-01-08 14:52:08 +08:00
Jack Palevich
df2b196c75 Fix compiler error by ensuring a variable is always initialized. 2009-12-31 14:29:37 +08:00
Jack Palevich
c1645153e7 Tool for compressing/decompressing ETC1 textures.
The ETC1 texture format is commonly supported by
OpenGL ES 2.0-capable GPUs.

For historical reasons ETC1 texture files have the
default extension .PKM

This tool relies on the libETC1 library to
compress and decompress the image data.
2009-12-31 13:19:21 +08:00
Doug Zongker
4c95917590 add one script to make release keys
This script can replace the copies of mkkey.sh sprinkled all over the
tree.  It prompts nicely for passwords, avoids writing the raw private
key to disk, and always generates certs that use sha1WithRSAEncryption.
2009-12-01 12:32:00 -08:00
Eric Fischer
78cab8038a am 0d6684c8: Merge change I44da0c8f into eclair
Merge commit '0d6684c86f152dabf7476d269fdaa3de1eb8fcac' into eclair-mr2

* commit '0d6684c86f152dabf7476d269fdaa3de1eb8fcac':
  Correct the raw offsets in the time zone index for a few zones.
2009-11-23 17:04:10 -08:00
Eric Fischer
1f9f586c83 Correct the raw offsets in the time zone index for a few zones.
ZoneCompactor was using the system time zone database to get the offsets
instead of using the data it was compiling, so for newly added or recently
changed zones the index could be inconsistent with the data.

Affected zones: San_Luis, Casey, Davis, Mawson, Kathmandu, Novokuznetsk
2009-11-23 16:45:09 -08:00
Eric Fischer
7c91ccfe14 am 2ddbd568: Update zoneinfo time zone data to version 2009s
Merge commit '2ddbd5682b60c8604b0b85ccb280624f8845e22d' into eclair-mr2

* commit '2ddbd5682b60c8604b0b85ccb280624f8845e22d':
  Update zoneinfo time zone data to version 2009s
2009-11-20 15:42:04 -08:00
Eric Fischer
2ddbd5682b Update zoneinfo time zone data to version 2009s
http://b/issue?id=2272477
2009-11-20 14:37:35 -08:00
Xavier Ducrohet
8915fd90cf am 01d2087c: resolved conflicts for merge of 19cb54ea to eclair
Merge commit '01d2087c87627df5bfc7e684f62466e0a662197a' into eclair-mr2

* commit '01d2087c87627df5bfc7e684f62466e0a662197a':
  Remove components that were moved to sdk.git and update build scripts.
2009-11-18 17:14:02 -08:00
Xavier Ducrohet
19cb54ea7d Remove components that were moved to sdk.git and update build scripts. 2009-11-17 15:17:25 -08:00
Raphael
6ae0010c61 am 20d03274: Merge change I6809bd44 into eclair
Merge commit '20d0327492490b676a0a1036754e7742fb92bb69' into eclair-mr2

* commit '20d0327492490b676a0a1036754e7742fb92bb69':
  SDK Manager: XML Schema for sdk-repository v2
2009-11-16 19:56:59 -08:00