aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge "SDK: Relative AVD root path."Raphael Moll2012-11-293-10/+195
|\
| * SDK: Relative AVD root path.Raphael Moll2012-11-293-10/+195
|/ | | | | | | | | | | | | | | | | | | AVD have a root ini file in .android/avds/name.ini with a "path" absolute path to the avd config directory. This does 2 things: - force the file to use ISO-8859-1 (aka Latin1) encoding. - add a "path.rel" key with a relative path to the .android folder if the avd directory is at its typical location. The loading logic is: - try to use the "path" key if it points to an existing directory (as an absolute path). - otherwise use the "path.rel" key as a path relative to the .android folder if present. SDK Bug: 40498 Change-Id: I2364c2ee69f48816f3e6f6f33c9fa43170e05587
* Merge "Check for unsupported Java packages"Tor Norbye2012-11-288-17/+480
|\
| * Check for unsupported Java packagesTor Norbye2012-11-288-17/+480
|/ | | | | | | | | | | | | | | | | | | If you include a library in your class path which was not built as an Android project it's possible for it to include references to classes in the java.* and javax.* namespace which are not valid in Android. This changeset adds a new lint detector for this. It augments the API database used by the API Checker to record the set of platform packages, and to be able to quickly query whether an internal class reference is in one of the valid packages. The new lint check runs only on libraries (since tools will typically set up the right classpath to give immediate errors if you try to access invalid packages from your own code). This was requested in issue 39109. Change-Id: Id1ce7982e683bae9a484e7b75d7e77a256ca4414
* Merge "Add lint check ensuring that buttons in bars are borderless"Tor Norbye2012-11-285-4/+188
|\
| * Add lint check ensuring that buttons in bars are borderlessTor Norbye2012-11-285-4/+188
|/ | | | Change-Id: Ie99e3e7b75f1ac8cf6447c70afc5901437e2d600
* Merge "Don't report missing layout_width/height if set in theme"Tor Norbye2012-11-284-3/+115
|\
| * Don't report missing layout_width/height if set in themeTor Norbye2012-11-284-3/+115
| | | | | | | | Change-Id: I48ecfea6304abedb942161bf2fec1d9867ddf0c6
* | Merge "Build fix"Tor Norbye2012-11-281-0/+1
|\ \
| * | Build fixTor Norbye2012-11-281-0/+1
| |/ | | | | | | Change-Id: I6a0118bd67c15d4f359d68f744da23223f4aa3df
* | Merge "Add a listener that can save test results as an ant XML file."Brett Chabot2012-11-286-0/+873
|\ \
| * | Add a listener that can save test results as an ant XML file.Brett Chabot2012-11-156-0/+873
| | | | | | | | | | | | | | | | | | Bug 7408179 Change-Id: I7c25c70996f98b3a7fc1ec6c4e3c3422626954cb
* | | Merge "Build fix"Tor Norbye2012-11-281-0/+1
|\ \ \
| * | | Build fixTor Norbye2012-11-281-0/+1
| | |/ | |/| | | | | | | Change-Id: I7cc2adbb127eaa3472f80451a0d0f7cffcce0473
* | | Merge "SDK Manager: copy guava*.jar in android.bat"Raphael Moll2012-11-281-6/+7
|\ \ \ | |/ / |/| |
| * | SDK Manager: copy guava*.jar in android.batRaphael Moll2012-11-271-6/+7
| | | | | | | | | | | | Change-Id: Ifb1ff2f6e432828f6584f03666e141ed64c82a72
* | | Merge "Add lint check for cut & paste errors in findViewById calls"Tor Norbye2012-11-288-37/+428
|\ \ \
| * | | Add lint check for cut & paste errors in findViewById callsTor Norbye2012-11-278-37/+428
| | | | | | | | | | | | | | | | Change-Id: Ie8ff6629a3e787587516f6fa88c70dfdb7a92d0d
* | | | Merge "Add support for specifying default language in res/values"Tor Norbye2012-11-2811-11/+132
|\ \ \ \
| * | | | Add support for specifying default language in res/valuesTor Norbye2012-11-2811-11/+132
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset adds support for a tools:locale attribute in resource files where you can declare which language is actually the default. This is used both by the missing translation detector (such that it won't complain if for example values-en-rUS is intended to supplement res/values/), as well as the typo detector (to allow you to specify which language's dictionary should be used to look for typos in the default resource file.) This addresses 33845: lint is wrong about translation regions Change-Id: Icb16cf11407c333845b56b6d105c99a8661430b0
* | | | Merge "40170: Fix namespace handling in resource file template merging"Tor Norbye2012-11-281-8/+25
|\ \ \ \
| * | | | 40170: Fix namespace handling in resource file template mergingTor Norbye2012-11-261-8/+25
| | | | | | | | | | | | | | | | | | | | Change-Id: If96987025accac0a11b860580a6935020044e0d9
* | | | | Merge "40368: Support a root vertical LinearLayout in graphical editor"Tor Norbye2012-11-284-10/+24
|\ \ \ \ \
| * | | | | 40368: Support a root vertical LinearLayout in graphical editorTor Norbye2012-11-264-10/+24
| |/ / / / | | | | | | | | | | | | | | | Change-Id: I7b156f1f8b8f939f9f940962e50c34595b9fa3b7
* | | | | Merge "Fix 40136: Lint "tools:ignore" does not work in xml"Tor Norbye2012-11-2813-7/+197
|\ \ \ \ \
| * | | | | Fix 40136: Lint "tools:ignore" does not work in xmlTor Norbye2012-11-2813-9/+203
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also fix suppress check for a couple of different detectors. Also fix typo in TooManyViewsDetector (issue 40496). Change-Id: Ia2e90ceea0dcae749581bd5704d169c5b2b3f1b6
* | | | | | Merge "3767: XML file gets compiled to out.xml in Eclipse"Tor Norbye2012-11-281-6/+18
|\ \ \ \ \ \
| * | | | | | 3767: XML file gets compiled to out.xml in EclipseTor Norbye2012-11-281-6/+18
| | |_|/ / / | |/| | | | | | | | | | | | | | | | Change-Id: I2e4fa88e9bc2a858cca6cc21cf88c502b9594ad8
* | | | | | Merge "Fixes for go to declaration for theme references"Tor Norbye2012-11-284-16/+73
|\ \ \ \ \ \
| * | | | | | Fixes for go to declaration for theme referencesTor Norbye2012-11-284-16/+73
|/ / / / / / | | | | | | | | | | | | | | | | | | Change-Id: I80116bce331b9504bc35ec6cf461479a135eaad6
* | | | | | Merge "40161: Make the new names for imported projects editable"Tor Norbye2012-11-282-40/+187
|\ \ \ \ \ \
| * | | | | | 40161: Make the new names for imported projects editableTor Norbye2012-11-212-40/+187
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also pick up the old Eclipse project name if importing an Eclipse project. Change-Id: I138195f89a1631f5b9b332973a3a2b655ae5c2de
* | | | | | Merge "Adjust the build and target comboboxes to ensure >= minSdkVersion"Tor Norbye2012-11-281-3/+47
|\ \ \ \ \ \
| * | | | | | Adjust the build and target comboboxes to ensure >= minSdkVersionTor Norbye2012-11-211-3/+47
| |/ / / / / | | | | | | | | | | | | | | | | | | Change-Id: Ia0b0d611dfb5aa1952ebae573355be1726b4f342
* | | | | | Merge "Fix rename package refactoring"Tor Norbye2012-11-288-132/+710
|\ \ \ \ \ \
| * | | | | | Fix rename package refactoringTor Norbye2012-11-288-132/+710
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset fixes a couple of bugs in the package rename refactoring code, including 34466: Android refactoring participant gives NPE It also fixes a bug in the move type refactoring, and adds unit tests for package rename, move type, and rename type. Change-Id: I4f43aabbcf1aeddc6c27011bfcffbe5a49c42372
* | | | | | Merge "Add sdktestutils package and consolidate some test utility code"Tor Norbye2012-11-28119-1824/+2584
|\ \ \ \ \ \
| * | | | | | Add sdktestutils package and consolidate some test utility codeTor Norbye2012-11-26119-1824/+2584
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL creates a new project, sdk/testutils, which is added to the test projects for ADT and lint. It contains various test utility code, some from ADT tests, some from lint tests, and some duplicated in both, and some new utility code such as a better diff-er. The CL also updates a bunch of tests; many golden files are updated to the new test file diff output format, and some golden files were out of date, and in a couple of cases I fixed some bugs I noticed in the output. Change-Id: I98c49c929916ae9bad24db45602e10ded6c526da
* | | | | | | Merge "Use unicode escapes in LocaleManager"Tor Norbye2012-11-282-9/+51
|\ \ \ \ \ \ \
| * | | | | | | Use unicode escapes in LocaleManagerTor Norbye2012-11-162-9/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This ensures that when the plugin is built outside of Eclipse (where the source file is marked as being in UTF-8 encoding), the special characters are handled correctly. Change-Id: I94d70bd3fb9d8a6bbf37e83eb30f161a2fc24016
* | | | | | | | Merge "40424: Wakelock Release check not quite correct"Tor Norbye2012-11-284-0/+55
|\ \ \ \ \ \ \ \
| * | | | | | | | 40424: Wakelock Release check not quite correctTor Norbye2012-11-264-0/+55
| | |_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | Change-Id: I1ad6483a23728b0896d4824feba533e2f607e8c5
* | | | | | | | Merge "40222: Cannot render strings starting with "\@""Tor Norbye2012-11-281-0/+3
|\ \ \ \ \ \ \ \
| * | | | | | | | 40222: Cannot render strings starting with "\@"Tor Norbye2012-11-221-0/+3
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I47d41ea2436a13a83e666471397c631a893dda02
* | | | | | | | Merge "Add resource renaming support"Tor Norbye2012-11-2825-88/+2972
|\ \ \ \ \ \ \ \ | | |_|/ / / / / | |/| | / / / / | |_|_|/ / / / |/| | | | | |
| * | | | | | Add resource renaming supportTor Norbye2012-11-2625-88/+2972
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset adds support for renaming resources. There are several new hooks for initiating a resource rename: (1) You can use the same keybinding as in Java files from XML files to initiate refactoring; for example, place the caret somewhere in @+id/foo or @string/bar and hit the refactoring keybinding, and a rename resource refactoring dialog shows up. (2) Invoking Quick Assistant in an XML file (Ctrl/Cmd 1) will offer to rename the resource, if the caret is over a resource name. (3) Renaming an XML or bitmap resource file, such as res/drawable-hdpi/foo.png, will now initiate the same XML resource naming machinery as above to update all resource references, plus it will also update all the other versions of the same file (e.g. in res/drawable-mdpi, res/drawable-xhdpi, etc.). Assuming an R field exists (e.g. the project has been built), it will also optionally update all Java field references. (4) Invoking renaming in the layout editor (via the rename keybinding, or via the context menu, or via the property sheet's "..." button) will also initiate id resource refactoring. Editing the id directly in the inline editor for the id will pop up a dialog asking whether to update references as well, along with a "Do not ask again" checkbox. (5) Finally, there is a renaming participant registered which will discover whether an R field is renamed, so if you go and rename R.layout.foo from Java, this will also kick in all of the above machinery - renaming layout files, updating resource references, etc. If the renamed resource is in a library project, the refactoring will also look at all the including projects and offer to update references there as well. Finally, this CL goes and fixes a few bugs in the existing refactoring operations; in particular, making sure that they not only look at files in layout/ but in all folder configurations containing layout files. It also adds refactoring unit tests. Change-Id: Ie88511a571b414fdc5be048e781fe29a34063cbf
* | | | | | | Merge "Add lint launcher icon shape check"Tor Norbye2012-11-274-2/+96
|\ \ \ \ \ \ \
| * | | | | | | Add lint launcher icon shape checkTor Norbye2012-11-274-2/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I789e74b667afbaea4089a62060b7138dadd8da6b
* | | | | | | | Merge "Add lint comment checker"Tor Norbye2012-11-274-1/+266
|\ \ \ \ \ \ \ \ | |/ / / / / / /
| * | | | | | | Add lint comment checkerTor Norbye2012-11-274-1/+266
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | Change-Id: I5ba847838e0035ab8ad44967779fdf814d1901a6