aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Merge "Fix false positives in field getter lint check"Tor Norbye2012-09-114-0/+73
|\ \ \ \ | |_|/ / |/| | |
| * | | Fix false positives in field getter lint checkTor Norbye2012-09-104-0/+73
| |/ / | | | | | | | | | Change-Id: If341cde0f0600c5975c6e847e228d72f5deefb23
* | | Merge "ddms: report user id if available"Siva Velusamy2012-09-104-1/+78
|\ \ \ | |/ / |/| |
| * | ddms: report user id if availableSiva Velusamy2012-09-104-1/+78
| | | | | | | | | | | | | | | | | | | | | | | | The HELO and APNM packets may append the user id at the end of the packet. If that data is available, display it as part of the application name. Change-Id: Ie353c2cc2895db649fc6ab6054f1c88f5d2f247f
* | | Merge "Don't report unused resources in projects with errors"Tor Norbye2012-09-105-2/+48
|\ \ \
| * | | Don't report unused resources in projects with errorsTor Norbye2012-09-105-2/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a project contains errors in the source code, lint won't be able to parse the source code, and in that case it might draw the wrong conclusions about unused resources. This can also happen if there's an actual bug in the Java parser, which is sometimes the case; see for example http://code.google.com/p/projectlombok/issues/detail?id=415 http://code.google.com/p/projectlombok/issues/detail?id=311 In both cases, when we encounter a failure to parse a Java file, we record the fact that not all Java files were properly processed, and rules, such as the UnusedResource detector, can (and now does) use this to for example skip reporting unused resources in this case since it is operating with incomplete data. Change-Id: I00991c10d05965ce151fb0dd322f32229dcd12cd
* | | | Merge "Collapse layout properties by default"Tor Norbye2012-09-101-0/+1
|\ \ \ \ | |/ / / |/| | |
| * | | Collapse layout properties by defaultTor Norbye2012-09-101-0/+1
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset collapses the layout property category by default in the property sheet. If you for example select a button in a RelativeLayout, the entire property sheet would be filled with the various layout parameters in a RelativeLayout, which meant you'd need to collapse or scroll immediately anyway. Even in other layouts, you typically only see properties such as width and height there, which can usually be better manipulated in the layout actions bar. This just makes the property sheet more useful since it shows the other common attributes closer to the top. Change-Id: I27d27f0453ac1b6897b80b0001e56e8690198bbb
* | | Merge "37001: Lint check: non existing Activity/Service/Receiver"Tor Norbye2012-09-1016-10/+661
|\ \ \ | |/ / |/| |
| * | 37001: Lint check: non existing Activity/Service/ReceiverTor Norbye2012-09-1016-10/+661
|/ / | | | | | | Change-Id: I6c281183a176210a6991e81497d9fb242c3851bd
* | Merge "Avd Creation Dialog: Enable sdcard if user asks for it."Siva Velusamy2012-09-073-15/+64
|\ \
| * | Avd Creation Dialog: Enable sdcard if user asks for it.Siva Velusamy2012-09-073-15/+64
|/ / | | | | | | Change-Id: Ia5a57139cf76cec559c557011a2acee2af58457a
* | Merge "Support systrace in monitor."Siva Velusamy2012-09-076-3/+828
|\ \
| * | Support systrace in monitor.Siva Velusamy2012-09-076-3/+828
| | | | | | | | | | | | | | | | | | | | | | | | Provides the ability to obtain user options for systrace, launch systrace with those options and save the results in an HTML file. Change-Id: I4564421b86ebb384e5bd2b3e2329249abd3771aa
* | | Merge "36829: Unused resource check does not handle merged manifests"Tor Norbye2012-09-076-2/+110
|\ \ \
| * | | 36829: Unused resource check does not handle merged manifestsTor Norbye2012-09-066-2/+110
| | |/ | |/| | | | | | | Change-Id: I88cfbb3c497cc65e3d16c3ba1fe9ceeaf2613103
* | | Merge "Make some libraries be buildable with Gradle."Xavier Ducrohet2012-09-0617-28/+211
|\ \ \
| * | | Make some libraries be buildable with Gradle.Xavier Ducrohet2012-09-0617-28/+211
| | | | | | | | | | | | | | | | | | | | | | | | They all output into out/host/repo Change-Id: I78a1a976f0a99860a66248492da7fd9c6593b1c2
* | | | Merge "Remove obsolete stuff."Xavier Ducrohet2012-09-063-177/+3
|\ \ \ \ | |/ / / | | / / | |/ / |/| |
| * | Remove obsolete stuff.Xavier Ducrohet2012-08-313-177/+3
| | | | | | | | | | | | Change-Id: Ib3a4f7c0c479b4c8c7f2e27d47ba756969d4f0b4
* | | Merge "Default action for view rules."Tor Norbye2012-09-059-17/+259
|\ \ \
| * | | Default action for view rules.Tor Norbye2012-09-049-17/+259
| | |/ | |/| | | | | | | | | | | | | | | | | | | For now, text-oriented widgets declare their default action to be to set the text attribute. Also hook up the default rename keybinding to setting the id. Change-Id: I14e8e06d0842759b1ac05e7e9494deb30b3cc40f
* | | Merge "Refactor SDK Manager into "core" vs "ui" packages."Raphael Moll2012-09-0530-54/+78
|\ \ \
| * | | Refactor SDK Manager into "core" vs "ui" packages.Raphael Moll2012-09-0430-54/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is just a refactor to move classes around. No functionality is actually changed. The sdkman2 package contains classes that are now sorted between "ui" and "core" packages. The core stuff has no UI dependency and can be used in unit tests, whereas the ui stuff needs SWT somehow. In a later CL some of the UI stuff will be changed to make it easier to mock for testing. Change-Id: I86606df7992de6ca6ae1df95f7b712cbba4fd3b6
* | | | Merge "SDK: fix sed filter in monitor makefile."Raphael Moll2012-09-051-1/+1
|\ \ \ \ | |_|/ / |/| | |
| * | | SDK: fix sed filter in monitor makefile.Raphael Moll2012-09-051-1/+1
|/ / / | | | | | | | | | | | | | | | Fix the sed filter so that it work on MacOS. Change-Id: I920e5e713bd48c47c9b9c99ba52be64bcefaa69c
* | | Merge "Suppress errors for missing markers"Tor Norbye2012-09-041-2/+5
|\ \ \
| * | | Suppress errors for missing markersTor Norbye2012-09-041-2/+5
| |/ / | | | | | | | | | Change-Id: I2d34f5a4ebeaff0a75abc7cdbb41132d860c95eb
* | | Merge "Improve render exception error messages"Tor Norbye2012-09-046-11/+218
|\ \ \ | |/ / |/| |
| * | Improve render exception error messagesTor Norbye2012-08-316-11/+218
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When exceptions are encountered during layout rendering, the user experience isn't very good - the exceptions are sent to the IDE log, and the layout editor view adds the error message from the exception (which can sometimes be something like just "2", which is the case for an ArrayIndexOutOfBoundsException for example). This changeset improves this a bit: * First, when the error message is just an exception error message, it's prefixed by a message stating that an exception was raised during layout rendering. * Second, the first exception encountered is now shown in the layout editor itself. Only the frames that are part of the android view hierarchy is shown; all the frames from layoutlib and on down into the IDE are omitted. Frames that are probably part of the user's code (meaning they're not in the android.* or java.* namespaces) are hyperlinkable. * This also includes exceptions encountered during class initialization. In this case, the tip message that View#isInEditMode can be used to do conditional code is displayed in bold. This changeset also fixes some bugs in the SourceRevealer such that it can handle constructors, and such that it will use the line number to pinpoint a line within a method (as long as the line number is in the correct range). Change-Id: I43b635eb24b8e0e64988958c56bdb7dbc1af7221
* | Merge "36951: Lint API Level Warnings for Enums are Confusing"Tor Norbye2012-09-046-14/+281
|\ \
| * | 36951: Lint API Level Warnings for Enums are ConfusingTor Norbye2012-09-046-14/+281
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When using switch statements on enums, the compiler will generate extra code to make the switch invocation efficient. For example, it generates a method which looks up all the values in the enum, calls ordinal() on each, and then creates an array which has all the enum values indexed by ordinal. The problem is that this helper code will end up referencing fields which may have a higher API requirement than is currently being used, and Lint would flag these as illegal API references. That's not correct in this case; as long as the corresponding jump table does not actually use these references, there's no problem. This changeset makes lint aware of this pattern, and when it encounters an invalid field reference inside one of these synthetic switch constant lookup methods, it will search for the corresponding table lookup, check whether the actual key is used, and only in that case complain. It also makes error messages associated with enums in general a bit better, when the whole enum class itself requires a higher API. (This would generate a message related to invocation of ordinal() which might not be obvious to everybody.) Finally, it cleans up class name formatting such that we never reference inner classes using "$" in error messages. Change-Id: I28a14084c160866e69f63f62b5bc8f21ee50215c
* | | Merge "36942: tools:ignore="DuplicateActivity" just doesn't"Tor Norbye2012-09-047-8/+41
|\ \ \
| * | | 36942: tools:ignore="DuplicateActivity" just doesn'tTor Norbye2012-09-037-8/+41
| | |/ | |/| | | | | | | Change-Id: Iffd270a227a8a76636cbfa5d19c6e0330a8391fb
* | | Merge "36987: TaskHelper can't parse the tools revision number "21 rc3""Tor Norbye2012-09-041-0/+5
|\ \ \ | |_|/ |/| |
| * | 36987: TaskHelper can't parse the tools revision number "21 rc3"Tor Norbye2012-09-041-0/+5
| |/ | | | | | | Change-Id: I4286930a2d36d21d9eb60a1c96c70276b77b9d4a
* | Merge "SDK Manager: fix support for file:// URLs in UrlOpener."Raphael Moll2012-08-313-7/+136
|\ \ | |/ |/|
| * SDK Manager: fix support for file:// URLs in UrlOpener.Raphael Moll2012-08-313-7/+136
|/ | | | Change-Id: I5996187d0ccd002d9ec3fe8c0fa5d17a96671431
* Merge "Avoid "Marker id: 123456789 not found" errors"Tor Norbye2012-08-312-5/+18
|\
| * Avoid "Marker id: 123456789 not found" errorsTor Norbye2012-08-312-5/+18
| | | | | | | | | | | | | | | | | | | | We have some code which runs asynchronously to add or clean up error markers. In some cases this code runs after a project has been closed or deleted, which results in errors. Guard these marker access points with an IResource.isAccessible() check (which performs both exists(), and for projects, isOpen()). Change-Id: Ie4884db13b1e00236c1c219d95c3544fcdee9610
* | Merge "Close XML editors when files are deleted or projects are closed"Tor Norbye2012-08-316-194/+202
|\ \ | |/
| * Close XML editors when files are deleted or projects are closedTor Norbye2012-08-316-194/+202
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The existing hooks for closing the editor when the underlying file is deleted was not working correctly, and was inefficient (since each editor added their own global resource listener, so every editor would find out about every other editor's file changes). Instead, this generalizes the single editor listener which was used to initialize editor types such that it also listens for deletion, and then finds any open editor mapped to that file. It also hooks up to the pre-close events for projects and closes all files related to the project as well. This will hopefully fix this issue as well: 20836: Can't delete a layout XML via Package Explorer > Delete if it has an error Finally, it removes a bunch of now obsolete logging code for an issue which seems to be permanently fixed. Change-Id: I90b38984639a605755f2d67ca2413cc925f730d1
* | Merge "Let ApkBuilder package bitcode library into APK."Shih-wei Liao2012-08-301-1/+5
|\ \ | |/ |/|
| * Let ApkBuilder package bitcode library into APK.Shih-wei Liao2012-08-271-1/+5
| | | | | | | | Change-Id: I54e99cff338a62147af3247446148d88a73a4ddb
* | Merge "Add Translation dialog"Tor Norbye2012-08-308-35/+742
|\ \
| * | Add Translation dialogTor Norbye2012-08-308-35/+742
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL adds a dialog to the locale menu in the configuration chooser which makes it easy to add a new language into the set of languages used by the project. Also add some null annotations. Change-Id: I70ea2f623e6c56684e7b2a51b391f472bf31529b
* | | Merge "Suggest using SparseIntArray instead of SparseArray<Integer>"Tor Norbye2012-08-303-3/+40
|\ \ \
| * | | Suggest using SparseIntArray instead of SparseArray<Integer>Tor Norbye2012-08-293-3/+40
| |/ / | | | | | | | | | Change-Id: I95bf3bc87e4378af6ef866df0a1ffb69f8fd7a41
* | | Merge "Also check SimpleDateFormat calls for explicit locale"Tor Norbye2012-08-306-13/+79
|\ \ \
| * | | Also check SimpleDateFormat calls for explicit localeTor Norbye2012-08-306-13/+79
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset expands on the lint check for calling String convenience methods that are locale sensitive without an explicit locale (issue 36822). It checks whether a SimpleDateFormat constructor that uses the default locale is called, and if so suggests either specifying a locale or using one of the pre-configured locale sensitive instances of SimpleDateFormat. Change-Id: Ic4fcb72c2ee6b31d1534b4d909493fef7dcff867