aboutsummaryrefslogtreecommitdiffstats
path: root/build/tools.atree
Commit message (Collapse)AuthorAgeFilesLines
* Support annotations for backward compatibility.Xavier Ducrohet2012-01-271-0/+3
| | | | Change-Id: I7f592876b02c8859781a3b52e422dbebfa92ae8d
* Fix build: disable tests for manifest-merger.Raphael Moll2012-01-151-2/+3
| | | | Change-Id: Ia36cbcc9b1a8d8ac29a54d610310b1d3e7b63223
* Merge "SDK: Enable tests for manifest-merger."Raphael Moll2012-01-131-7/+10
|\
| * SDK: Enable tests for manifest-merger.Raphael Moll2012-01-121-7/+10
| | | | | | | | Change-Id: I48f74d5d3ff5237388915cb3823be5168903d417
* | Upgrade bundled Proguard to version 4.7Tor Norbye2012-01-111-11/+11
|/ | | | | | | | | | | This changeset switches the build script from picking up the platform version of Proguard (in external/) to the new Proguard 4.7 library in the prebuilts/tools repository. (We now also include examples/ and docs/, but exclude src/ and build/ from the 4.7 distribution.) Change-Id: I6fd32cb568252bc80e85ddb7ae821bc02c22711a
* Lint Java source supportTor Norbye2012-01-091-0/+1
| | | | | | | | | | | | | | | | | This changeset adds Java AST support to Lint. There are new interfaces for Java parser and specialized Java detectors. Java detectors can either visit a full parse tree, or they can register interest in specific methods, or Android resource references, or specific AST node types -- or a combination of these. They will then be invoked during an AST visit with the relevant info. This changeset also rewrites the existing detectors that were using String-based pattern checking on Java files to using real AST traversal instead (and it removes the custom Eclipse-specific unused resource detector since the plain one now does the same AST-based analysis that the Eclipse one did.) Change-Id: I4d85f8b785bf41a88dbb29e7017b9c0f588880bc
* Add the Guava library to the toolsTor Norbye2011-12-051-0/+1
| | | | | | | | | | | | This changeset adds the Guava library to ADT and lint. (It is also a prerequisite for the Lombok AST library which is added by a later CL.) This changeset also uses the library in a few simple ways: It replaces some custom I/O and collections code with calls into the equivalent Guava methods, and it also adds the @Beta annotation on the various "API" classes which are not yet stable. Change-Id: I2f50febfa075c32818404e888578a2e1e447d408
* Add Java Classfile supportTor Norbye2011-12-051-0/+2
| | | | Change-Id: Ifcc1d88dabb07dc05b2e5c934743ad52f9b6dc1d
* Add the SdkController app to the tools component.Xavier Ducrohet2011-11-291-0/+4
| | | | | | (cherry picked from commit e4a6ff53047bba14cf1f6770f20f6d9844ec9817) Change-Id: I01d4d3749b9d724e6db07739f29b8cf2138403bb
* Remove uix from the sdk build as it was part of layoutopt.Xavier Ducrohet2011-10-261-1/+0
| | | | Change-Id: I802058210b60e20c9cde1cfeda5dc66d273508b5
* Merge "Remove layoutopt; replaced by the more generic "lint" tool."Tor Norbye2011-10-261-3/+0
|\
| * Remove layoutopt; replaced by the more generic "lint" tool.Tor Norbye2011-10-261-3/+0
| | | | | | | | Change-Id: Ia6dc357106aa49fa5c27c6283eac62c4cc19967b
* | Fix ClassNotFoundException on MonkeyRunner startup.Bill Napier2011-10-211-0/+1
|/ | | | Change-Id: Id81b52ade324fde1c7316b522d482bee83ede840
* Static analyzerTor Norbye2011-10-201-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset adds a static analyzer, "lint", which looks for various potential bugs in Android projects. It has 3 parts: (1) A library which performs the actual static checks. This library is standalone: it does not depend on Eclipse. (Technically the library has two halves: an API half, for use by third party developers to write additional detectors, and an actual implementation of a bunch of built-in checks.) (2) A command line driver, "lint", which runs the static checks and emits any warnings to standard out. This can be thought of as a replacement for the layoutopt tool. (3) Eclipse integration. Lint errors are added to the Problems view as well as shown as editor annotations. There's an options panel for controlling which detectors are enabled. There's also a quickfix for disabling errors directly within the editor and a marker resolution for disabling them via the Problems view. The static checks are run on an XML file right after it has been saved. (This is optional via a toggle on the same preference page as the detector list.) The static checks are also run when you export an APK, and if any fatal errors are found the export is abandoned. (This is also optional via an option). Finally you can run a full lint through the Android Tools menu, and there's also an action to clear all the lint markers there. There's also a new indicator on the layout editor which shows whether there are lint errors on the associated file, and when clicked brings up a dialog listing the specific errors. This changeset also includes a number of checks: * An accessibility detector which warns about images missing contentDescriptions * A drawable selector detector which warns about state lists where not all states are reachable (e.g. it is not the case that only the last item in the list omits a state qualifier) * A detector finding duplicate ids, not just in the current layout but across included layouts (transitively) as well * All the layoutopt ones ported to Java + DOM * Unit tests for the above. The focus here is on getting the infrastructure in place, and it currently focuses on XML resource files and analyzing them efficiently. See the comment in XmlVisitor for details on that. Change-Id: Ic5f5f37d92bfb96ff901b959aaac24db33552ff7
* Add support to make identity files from the command line.Xavier Ducrohet2011-09-231-0/+1
| | | | Change-Id: Ifaa1b4653ea6c1b311e711bd285d08afb0d3e12c
* Use atree for the Windows SDK. Strip binaries.Raphael2011-09-151-13/+13
| | | | | | | | | | | | | | | | This moves the copy/strip/rm logic for the Windows SDK fro mthe patch_windows_sdk.sh to a regular tools.windows.atree. The bash script is still here to invoke atree and do whatever cleanup we might want to do later. This should make it easier to maintain the Windows SDK by providing a structure similar to tools.atree. This change requires build.git Change-Id: I22aae7a8 to have rm/strip support in atree. Change-Id: Ie6c30979454fb71fc1cb26ab3f6c38acd47bae57
* Copy OpenGLES emulation libraries to SDK installation.David 'Digit' Turner2011-09-131-0/+6
| | | | | | | | | | | | | | | | | This patch ensures that the following host shared libraries are copies to $SDK/tools/lib, when building the SDK: - libOpenglRender - libEGL_translator - libGLES_CM_translator - libGLES_V2_translator Note that the Windows DLL must be copied manually in patch_windows_sdk.sh I didn't find a way to make it work using tools.atree. This has been tested to build the Linux, Windows and OS X SDK images. Change-Id: Idae8fe705befbbcc31e8d4ff71998ea0803b32f1
* Add layoutlib_api.jar to sdk/tests/libtests.Brett Chabot2011-09-011-0/+1
| | | | | | Bug 5249969 Change-Id: I47c8672da6ab40a9ecb9e5e64b42d5f5f8924381
* Remove from tools.atree a file I just removed.Xavier Ducrohet2011-08-171-1/+0
| | | | Change-Id: I181655095b2562cf8ddca81678d907ef9233c9bc
* Package in tools/lib all the new libs required by the new SDKManager.Xavier Ducrohet2011-08-171-0/+5
| | | | Change-Id: If430e817dc82b361c275a98ee38ecbc38348e1ce
* Add emulator-arm to SDK, including Windows SDK.Raphael Moll2011-05-041-5/+6
| | | | | | | | | Also fixes the fact the Windows SDK wasn't building emulator-arm nor emulator-x86. SDK BUG: 4377649 Change-Id: I1450a8c73e0078e69ccd28b220bf37ecd0a6fd5c
* swtmenubar library for the SDK.Raphael Moll2011-04-151-0/+1
| | | | | | | | | | | | | | | | | This little EPL library provides a way for the SDK apps to integrate with the Mac menu bar -- that is correctly hook into the About and Preferences menu items. On other platforms (Windows, Linux), corresponding items are added to the provided menu. The library provides both a Carbon and a Cocoa implementation. However the Cocoa implemented is currently commented out since we only link with a Carbon-aware version of SWT.jar. Added a README that explain how to use this. Change-Id: I4b8457f0269946df056b5dd597c7263da1c4e784
* Add more sdk lib tests to sdk build.Brett Chabot2011-03-241-0/+4
| | | | Change-Id: I09946be68f244922de0ad89d970e53165957fa2b
* Revert "build/tools.atree: Move x86-specific changes to tools.x86.atree"Raphael Moll2011-03-241-3/+4
| | | | This reverts commit 253acabecba0d9f649f04499f6dda980fbe7bf49.
* Add ddmlib-tests to sdk build in a tests/libtests dir.Brett Chabot2011-03-231-0/+1
| | | | Change-Id: Idba9f5b5724926209bbb96bfd75e04dbffa3760c
* build/tools.atree: Move x86-specific changes to tools.x86.atreeDavid 'Digit' Turner2011-03-231-4/+3
| | | | | | | | | | | | | Unfortunately, the latest x86-specific changes to tools.atree break internal Android builds that depend on this file. This change moves the changes to a different file that is only parsed for x86-specific SDK builds (sdk_x86-eng). It depends on https://review.source.android.com/#change,21957 to allow the AOSP build to pick up tools.x86.atree properly. Change-Id: I163d7fb43aa06609d9b0e4bfbaf56311958ea25e
* Revert "DISABLED 2 lines that break the SDK build (bios.bin in sdk/tools.atree)"Bruce Beare2011-03-221-3/+2
| | | | | | | This reverts commit 147e8b73aefa28ef599628c718060450539b6102. The original commit was merged out of sequence - thus the need for the original revert. All dependent commits are now complete so we can put back in place the original change.
* DISABLED 2 lines that break the SDK build (bios.bin in sdk/tools.atree)Raphael Moll2011-03-071-2/+3
| | | | Change-Id: I7d589782bf898d1ce09d0e29108566f7560019f1
* Add qemu emulator bios filesBruce Beare2011-02-241-0/+2
| | | | | Change-Id: I6f526b920f1d671e016ff8a2cde6f11843283e99 Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
* x86 and arm emulators have distinct pathsBruce Beare2011-02-241-1/+2
| | | | | Change-Id: Ieb0aa637c44ff2b9d386b6927c0b8564d1b50621 Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
* Add common.jar to the SDK build.Xavier Ducrohet2011-02-081-0/+1
| | | | Change-Id: Idf2ce283466dcc92ba8877d4e8166f2d64b319f4
* Add snapshot handling for AVD creation, details, and launchTim Baverstock2011-01-121-0/+1
| | | | | | Also respect 'Wipe User Data' by disabling snapshot launch, and support 'Edit AVD'. Change-Id: I5bc94c316e550b2585ca80185a02ffbe6d3e8401
* Add readme regarding move of adb to platform-toolsRaphael Moll2010-12-231-0/+3
| | | | Change-Id: I861a1b02a3abb1bb1f9120bbd25f3d4ffd949e9e
* Add swingworker back to the sdk.Xavier Ducrohet2010-12-081-0/+1
| | | | | | Needed by draw9patch Change-Id: I677e4ba5230aa5a8bfc1d497ec2381131c3940d7
* Update test apps and bundle them in the meta sdk.Xavier Ducrohet2010-12-061-0/+6
| | | | | | | | - make it so that layout display something about the project, and possibly the result of calling out to class coming from jar files. - make the activity names on the launcher to be the name of the projects. Change-Id: I318255c3284337be28220df509630cfff4eae38b
* Add MonkeyRunner script (and libs) to SDK.Bill Napier2010-10-101-1/+5
| | | | Change-Id: I75d082fc2c69f994197f5887c3f38ad30cfe7bfb
* Proguard default config file.Xavier Ducrohet2010-10-081-0/+1
| | | | | | | | It is located in $SDK/tools/lib/proguard.cfg and automatically put in Ant project (create and update if project is not already setup for proguard). Change-Id: I9bcb2a5aafec1329b0c001799f4ba34c61569c3a
* Tools specific atree file.Xavier Ducrohet2010-09-281-0/+112
Change-Id: I7a71f4d91993c48c147bc080c08f830457a23ef1