aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Merge "Update changes.txt for ADT 17"Tor Norbye2012-02-152-0/+25
|\ \ \
| * | | Update changes.txt for ADT 17Tor Norbye2012-02-152-0/+25
| | | | | | | | | | | | | | | | Change-Id: I394036a7025a2cbd050aa6916204a09bcce83bae
* | | | Merge "Fix exception reported on android-developers forum: r can be null"Tor Norbye2012-02-151-1/+1
|\ \ \ \
| * | | | Fix exception reported on android-developers forum: r can be nullTor Norbye2012-02-151-1/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: Iff529a37901b62bcbc53b23189d1aaa2215dbfea
* | | | | Merge "Add suppress-this to Lint View, and preserve tree expansion state"Tor Norbye2012-02-159-38/+204
|\ \ \ \ \
| * | | | | Add suppress-this to Lint View, and preserve tree expansion stateTor Norbye2012-02-159-38/+204
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset adds a new toolbar button to the Lint View: "Suppress this error with an annotation/attribute". This is enabled when the selected warning is for a Java or XML file, and it adds the annotation or suppress attribute in the relevant source file for the warning. It also adds some handling to preserve the expanded tree state in the Lint View when the view is refreshed, which happens automatically whenever a fix is applied or a file is saved and the marker set changes. Change-Id: I393ee5f6e062a0e08a7e9457a03f37d8899a4df8
* | | | | Merge "SDK Repository: name/vendor id/display for addons."Raphael2012-02-1513-158/+340
|\ \ \ \ \
| * | | | | SDK Repository: name/vendor id/display for addons.Raphael2012-02-1513-158/+340
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SDK Bug: 21942, part 2 of 3. (part 3 is replacing manifest.ini by source.props) Change-Id: I96be0d8210120927744224d909f7ee7184ebfecf
* | | | | | Merge "SDK Manager: support forward evolution of repository-N.xml"Raphael2012-02-152-15/+46
|\ \ \ \ \ \ | |/ / / / /
| * | | | | SDK Manager: support forward evolution of repository-N.xmlRaphael2012-02-152-15/+46
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I1ec10f677d542b02d1588c43d5b40ed10d94f874
* | | | | | Merge "SDK Repository: vendor id/display name for extras."Raphael2012-02-1522-243/+1273
|\ \ \ \ \ \ | |/ / / / /
| * | | | | SDK Repository: vendor id/display name for extras.Raphael2012-02-1522-243/+1273
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SDK Bug: 21942, part 1 of 2. Change-Id: Id9c026965b365e57302c56620f4ec8f88573d633
* | | | | | Merge "SDK Repository: remove <extra> from repository.xml"Raphael2012-02-156-5/+1039
|\ \ \ \ \ \ | |/ / / / / | | | / / / | |_|/ / / |/| | | |
| * | | | SDK Repository: remove <extra> from repository.xmlRaphael2012-02-156-5/+1039
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To simplify and avoid XSD duplication, remove extra packages from the repository.xsd. Instead they should be defined via an addon.xml. Note that -repository-6.xsd is prefixed with a dash, meaning the SDK Manager 17 knows about it and can enforce it but the build server will continue creating repos in v5 for now. Once r17 is deployed, we can make the xsd v6 mandatory for r18. Change-Id: I00d4644378bcc95bfd9ceb7eede0c8c720926f74
* | | | | Merge "gltrace: Provide details view for uniform variables."Siva Velusamy2012-02-152-0/+174
|\ \ \ \ \ | |/ / / / |/| | | / | | |_|/ | |/| |
| * | | gltrace: Provide details view for uniform variables.Siva Velusamy2012-02-152-0/+174
| |/ / | | | | | | | | | | | | | | | Display uniforms rendered as a vector or a matrix. Change-Id: Ifbdaad571f71e2f4d477027548dd6951eddba8e5
* | | Merge "SDK Manager: use find_lock.exe when install dir is locked."Raphael2012-02-153-41/+172
|\ \ \
| * | | SDK Manager: use find_lock.exe when install dir is locked.Raphael2012-02-093-41/+172
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For the SDK Manager on Windows, this uses find_lock.exe to try to find the processes that are locking an existing SDK folder that cannot be moved out of the way. The result is displayed in a simple yes/no dialog or on the command-line if invoked without UI. Change-Id: I39fa7529e207e870376a30c8311440f9c240d4b3
* | | | Merge "Tweak category order"Tor Norbye2012-02-151-1/+1
|\ \ \ \ | |_|/ / |/| | |
| * | | Tweak category orderTor Norbye2012-02-141-1/+1
| | | | | | | | | | | | | | | | Change-Id: If83a942f99da90d061529092feaab3be94a8e0ad
* | | | gltrace: Add support for shader uniforms.Siva Velusamy2012-02-147-7/+357
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds the necessary state and transformations to support uniforms used in shaders. Change-Id: Ibf93098977d8f8a733d6572b1524ff50eda28b6f
* | | | Merge "Fix HTML export category handling"Tor Norbye2012-02-144-11/+14
|\ \ \ \ | |/ / /
| * | | Fix HTML export category handlingTor Norbye2012-02-144-11/+14
| | | | | | | | | | | | | | | | Change-Id: Ia8f0c1aebb4e797352a0513b8113b5d6b75ef0dc
* | | | Merge "Fix ant issue where annotations.jar causes problems."Xavier Ducrohet2012-02-142-5/+7
|\ \ \ \ | |/ / / |/| | |
| * | | Fix ant issue where annotations.jar causes problems.Xavier Ducrohet2012-02-142-5/+7
| | | | | | | | | | | | | | | | Change-Id: Id08c9d187c75ff0e8e6998ef85204f28cf1ed252
* | | | Merge "Add lint check for custom attributes in library projects"Tor Norbye2012-02-149-105/+319
|\ \ \ \
| * | | | Add lint check for custom attributes in library projectsTor Norbye2012-02-149-105/+319
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also adds a lint check for unused namespace declarations, and migrates the TypoDetector code into this new namespace detector. Change-Id: I5ec2214ea4c59e14194f8eaecef422ea19baa35e
* | | | | Fix JavaPerformanceDetector to only report enabled issuesTor Norbye2012-02-141-8/+17
|/ / / / | | | | | | | | | | | | Change-Id: I6a68b28b610ebdfc31b779b7b66e49a70a5e1a01
* | | | Fix for lint cli relative output pathsTor Norbye2012-02-141-1/+4
| | | | | | | | | | | | | | | | Change-Id: I4e37e68661007a825c97948e6258201babcd2b79
* | | | Merge "gltrace: Fix formatter issue with enum arguments."Siva Velusamy2012-02-142-2/+29
|\ \ \ \ | |/ / / |/| | |
| * | | gltrace: Fix formatter issue with enum arguments.Siva Velusamy2012-02-132-2/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enum arguments are passed along in the protocol buffer with an integer type. This patch fixes the formatter to take care of this case. Change-Id: I1efeaa955b87b57b0da805ae5942d138bbce1544
* | | | Warn when there are more uses sdk elements than oneTor Norbye2012-02-144-5/+88
| | | | | | | | | | | | | | | | Change-Id: Iecad10d5c33f6b7649e686633c9ff9f5541e9799
* | | | Merge "Add Java performance lint checks"Tor Norbye2012-02-1415-13/+653
|\ \ \ \ | |/ / / |/| | |
| * | | Add Java performance lint checksTor Norbye2012-02-1315-13/+653
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset adds two new checks for Java performance suggestions: (1) It identifies object allocation within draw methods (onDraw(Canvas)) and warns that it's a bad idea. It also looks for certain factory methods, such as Bitmap.createBitmap(), which have the same issue. The lint detector also checks to make sure that the allocation isn't part of lazy initialization: if the return value is stored into a field, it checks that the allocation is surrounded by a null check on that field. (2) It identifies usages of HashMap<Integer, X> and suggests replacing it with SparseArray (or SparseIntArray or SparseBooleanArray, depending on the second type variable of the map initialization). Change-Id: I3bcbb182404b1eeaaa8c9e5209d889694d88f216
* | | | Merge "gltrace: fix search for tree view"Siva Velusamy2012-02-131-2/+18
|\ \ \ \ | |/ / / |/| | |
| * | | gltrace: fix search for tree viewSiva Velusamy2012-02-131-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When using a tree widget, the ViewerFilter#select method should search not just the given node, but also all its children if the node is a tree node. Change-Id: I2ff9896067e75521f5d654d27b8b2a5787410d56
* | | | Merge "Add per-node ignore handling for more lint checks"Tor Norbye2012-02-134-12/+83
|\ \ \ \
| * | | | Add per-node ignore handling for more lint checksTor Norbye2012-02-134-12/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A handful of lint checks still don't support per-node suppress checking (because the computation does not have node information at the time when the final warnigns are produced). This checkin uses the new location client data facility to add scope checking for a few more of the lint checks. Change-Id: I0ca48e91441dcd753834ad4777959f728b74ac71
* | | | | Merge "Add Fatal severity"Tor Norbye2012-02-1314-16/+32
|\ \ \ \ \ | |/ / / / | | / / / | |/ / / |/| | |
| * | | Add Fatal severityTor Norbye2012-02-1314-16/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset adds a new severity, "Fatal", and shifts the abort-on- export feature from using the Error severity to the Fatal severity. This gives the user (and lint check developers) a bit more control over which errors should fail a build. You can now leave some issues as "error", but not have it block export. This can be useful for checks which are extremely slow, or for checks that generally represent errors but where the rule cannot know for sure (such as attempts to figure out reflection calls in Java). Change-Id: Ie44d5efcb605091ba8c1c67aa720edbbde416ca5
* | | | Merge "gltrace: use DetailsView to display state details."Siva Velusamy2012-02-1313-245/+571
|\ \ \ \
| * | | | gltrace: use DetailsView to display state details.Siva Velusamy2012-02-1013-245/+571
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL replaces the texture view with a generic details view that can be used to show the details for any state property. The details view is structured as a page book view that has a stack layout capable of showing different controls. It has a list of IStateDetailsProviders to which it delegates the task of providing details for a given GL property. Currently, there are 2 such details providers - one for texture images and one for shader source. Change-Id: I1ead8848116b0a5889d272f69b49610590937a8f
* | | | | Merge "Add namespace-typo detector"Tor Norbye2012-02-138-1/+261
|\ \ \ \ \
| * | | | | Add namespace-typo detectorTor Norbye2012-02-138-1/+261
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset adds a new lint detector which looks for typos in the namespace declaration for Android. If it sees the prefix "android" it ensures that the URI matches exactly (and case-sensitively) http://schemas.android.com/apk/res/android If the prefix is "a", it also checks for the above prefix, but only warns if the difference is "close" (edit distance <= 3) such that it belives it's a typo, not some unrelated prefix bound to "a". (This was requested in http://b.android.com/25449) Change-Id: Ic6dee77a300fc048cb9bee3e455f533b858ef6bb
* | | | | | Merge "Add superclass support to Lint"Tor Norbye2012-02-1316-127/+361
|\ \ \ \ \ \ | | |_|/ / / | |/| | | |
| * | | | | Add superclass support to LintTor Norbye2012-02-1316-127/+361
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset adds a preprocessing state to the class handling. Instead of processing each class sequentially, all the class byte arrays are read in first, and then a lightweight class visitor (skipping methods and debug symbols) skims through all the classes to build up a superclass map up front. The byte arrays are then processed sequentially as before, but the detectors can now query the lint driver for class hierarchies. A couple of lint checks are now taking advantage of this. For eexample, the API checker can properly handle virtual methods where a local class extends some other local (or library) class which eventually extends an Android API class. (Until this checkin, only classes directly extending an Android API class were supported). Change-Id: I972172a61268dd2530979a93b2f289c1dcf94d63
* | | | | | Merge "Make lint process Java jar dependencies"Tor Norbye2012-02-1315-24/+232
|\ \ \ \ \ \ | |/ / / / /
| * | | | | Make lint process Java jar dependenciesTor Norbye2012-02-1315-24/+232
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset makes lint properly handle the jar dependency scope for issues. It also tweaks the API in a few minor ways. Change-Id: Ibd7b943c9d3ce361e091af8f1e990709bb94d183
* | | | | Merge "Fix typo in security check (and add regression unit test)"Tor Norbye2012-02-133-1/+34
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Fix typo in security check (and add regression unit test)Tor Norbye2012-02-103-1/+34
| | | | | | | | | | | | | | | | | | | | Change-Id: I52662287ff86925629ea8f6f5bc13855d403b3e8