| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Change-Id: I7f592876b02c8859781a3b52e422dbebfa92ae8d
|
|
|
|
| |
Change-Id: Ia36cbcc9b1a8d8ac29a54d610310b1d3e7b63223
|
|\ |
|
| |
| |
| |
| | |
Change-Id: I48f74d5d3ff5237388915cb3823be5168903d417
|
|/
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: Ifcc1d88dabb07dc05b2e5c934743ad52f9b6dc1d
|
|
|
|
|
|
| |
(cherry picked from commit e4a6ff53047bba14cf1f6770f20f6d9844ec9817)
Change-Id: I01d4d3749b9d724e6db07739f29b8cf2138403bb
|
|
|
|
| |
Change-Id: I802058210b60e20c9cde1cfeda5dc66d273508b5
|
|\ |
|
| |
| |
| |
| | |
Change-Id: Ia6dc357106aa49fa5c27c6283eac62c4cc19967b
|
|/
|
|
| |
Change-Id: Id81b52ade324fde1c7316b522d482bee83ede840
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: Ifaa1b4653ea6c1b311e711bd285d08afb0d3e12c
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Bug 5249969
Change-Id: I47c8672da6ab40a9ecb9e5e64b42d5f5f8924381
|
|
|
|
| |
Change-Id: I181655095b2562cf8ddca81678d907ef9233c9bc
|
|
|
|
| |
Change-Id: If430e817dc82b361c275a98ee38ecbc38348e1ce
|
|
|
|
|
|
|
|
|
| |
Also fixes the fact the Windows SDK wasn't building emulator-arm
nor emulator-x86.
SDK BUG: 4377649
Change-Id: I1450a8c73e0078e69ccd28b220bf37ecd0a6fd5c
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: I09946be68f244922de0ad89d970e53165957fa2b
|
|
|
|
| |
This reverts commit 253acabecba0d9f649f04499f6dda980fbe7bf49.
|
|
|
|
| |
Change-Id: Idba9f5b5724926209bbb96bfd75e04dbffa3760c
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Change-Id: I7d589782bf898d1ce09d0e29108566f7560019f1
|
|
|
|
|
| |
Change-Id: I6f526b920f1d671e016ff8a2cde6f11843283e99
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
|
|
|
|
|
| |
Change-Id: Ieb0aa637c44ff2b9d386b6927c0b8564d1b50621
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
|
|
|
|
| |
Change-Id: Idf2ce283466dcc92ba8877d4e8166f2d64b319f4
|
|
|
|
|
|
| |
Also respect 'Wipe User Data' by disabling snapshot launch, and support 'Edit AVD'.
Change-Id: I5bc94c316e550b2585ca80185a02ffbe6d3e8401
|
|
|
|
| |
Change-Id: I861a1b02a3abb1bb1f9120bbd25f3d4ffd949e9e
|
|
|
|
|
|
| |
Needed by draw9patch
Change-Id: I677e4ba5230aa5a8bfc1d497ec2381131c3940d7
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
| |
Change-Id: I75d082fc2c69f994197f5887c3f38ad30cfe7bfb
|
|
|
|
|
|
|
|
| |
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
|
|
Change-Id: I7a71f4d91993c48c147bc080c08f830457a23ef1
|