aboutsummaryrefslogtreecommitdiffstats
path: root/eclipse/plugins
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | 42051: Subversion folder causes NPE in PreCompilerBuilderTor Norbye2013-01-031-4/+5
| | | | | | | | | | | | | | | | Change-Id: Ie2846fdd25a4ea05b798c62ec6512bffa84819f9
* | | | Ensure streams are closed after parsingTor Norbye2013-01-032-8/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Just read in full contents of XML file up front such that the stream can be closed. Also switch from InputStream to Reader since that's the native format KXml wants anyway (inside setInput() it creates one from the input stream if it doesn't already have one) Change-Id: I69e1602702ac771d29f988169cb7adafefc0198c
* | | | Merge "Template unit test fix"Tor Norbye2012-12-271-2/+2
|\ \ \ \
| * | | | Template unit test fixTor Norbye2012-12-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When iterating over all the possible API versions, include the max version too, not just all versions smaller than it. Change-Id: I8f7bfa18dafff445bc2f9080ed6275355342a6c5
* | | | | Unit test fixTor Norbye2012-12-271-1/+0
|/ / / / | | | | | | | | | | | | Change-Id: Iaaede955589ce962b33eb4e326fc012a4fa7b591
* | | | 41782: Graphical Layout Editor can't handle TabWidgetTor Norbye2012-12-211-1/+1
| | | | | | | | | | | | | | | | Change-Id: Ifc450a7ba91714be30a8fac6802fb28f72128822
* | | | Merge "ddmlib: Add controls for OpenGL tracing via jdwp"Siva Velusamy2012-12-2010-101/+432
|\ \ \ \
| * | | | ddmlib: Add controls for OpenGL tracing via jdwpSiva Velusamy2012-12-2010-101/+432
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, applications have to be launched with gltrace enabled for OpenGL tracing to work. This patch provides the host side support for dynamically enabling/disabling tracing on running apps. At a high level, the functionality is similar to traceview: - ClientData#FEATURE_OPENGL_TRACING indicates whether the VM on the device supports this feature. - If the feature is supported, then JDWP is used to send the enable or disable messages. - Users can trigger OpenGL tracing via a toolbar item in the DDMS device view. Change-Id: Icf5e5eade74f94cf6a74ff793533f75f1853731f
* | | | | Merge "New "Notification" ADT template."Roman Nurik2012-12-201-1/+1
|\ \ \ \ \
| * | | | | New "Notification" ADT template.Roman Nurik2012-12-201-1/+1
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds a new Notification template in the 'other' category, that creates a helper class to show and hide a notification with optional expanded styles for Android 4.1+ devices. The template also includes example resources relevant to notifications and leads the user through the notification icon wizard. Change-Id: I9765021ea66844f6f8887e1f1f27d6d262ee89a1
* | | | | 41681: "class|unique|nonempty" contraint doesn't check uniquenessTor Norbye2012-12-202-5/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also added unique constraint on some of the activity templates. Change-Id: I2af181d9d2d716505c80bb4f487920166594625f
* | | | | Fix package renaming for Manifest and BuildConfig classesTor Norbye2012-12-203-26/+173
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes 41685: Rename Package Breaks BuildConfig and Manifest. It also cleans up the refactoring in that it now only adds import R statements to classes that actually contain an R reference. Change-Id: Ia0e2833bc9e25f92be33994047c4527c9e3e9dc1
* | | | Update Asset Studio launcher and icon generators. Also removes LDPI.Roman Nurik2012-12-182-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change updates the Asset Studio launcher icon generator to the new visual style described in the Android Design guidelines. It also adds XXHDPI icon creation for launcher icons, which is important for some newer devices such as Nexus 10. The change also removes shape selection for notification icons, since this only affected pre-Gingerbread devices. Pre-Gingerbread icons are still generated, but they now always have a square shape for simplicity. Finally, this change removes LDPI for all icon generators. LDPI is much less relevant today than it was a few years ago, and allowing platform scaling of MDPI resources is normally an acceptable alternative to providing LDPI specific resources. Change-Id: I65afc5b38b25170604cf69ba355816288d30d6d5
* | | | Remove category explanationTor Norbye2012-12-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | It's always null. Change-Id: I2a465dd41653398fc747f531f963414964c9da14
* | | | Merge "Refactoring fixes"Tor Norbye2012-12-1113-145/+572
|\ \ \ \
| * | | | Refactoring fixesTor Norbye2012-12-1013-145/+572
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL contains a couple of tweaks to the refactoring support. First, update <declare-styleable> declarations for renamed custom views. Second, update XML in downstream projects from library projects. Third, allow invoking the rename refactoring from XML files from class attributes and custom view tags as well (until now it applied only to resource names.) Finally, update unit test golden file format to include whether each change is enabled, and tweak the code to disable R class changes to handle some additional scenarios. Change-Id: I74ccbe1b0f15ec10429f8dda7674f51f9a6f83cd
* | | | | Merge "systrace: Support newer atrace options."Siva Velusamy2012-12-107-12/+529
|\ \ \ \ \
| * | | | | systrace: Support newer atrace options.Siva Velusamy2012-12-107-12/+529
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The atrace executable on the device now provides a list of supported categories with the command atrace --list_categories. This CL first tries to determine which version of atrace is present on the device by running the list categories command and attempting to parse its output. For the older version, existing static "Capture Options" dialog is displayed. For the newer version, only the supported categories are displayed. Change-Id: I300e7e652a9ae99f47d61a1669604802b74054a4
* | | | | gltrace: Refresh tree view in a separate task.Siva Velusamy2012-12-072-32/+106
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the currently displayed frame is changed, we immediately refresh the tree displaying the list of calls, and the frame summary view displaying the frame buffer as part of the frame change event handler. This CL moves these two operations to a separate task that is scheduled after a short delay (250 ms). This allows us to combine multiple frame change events and respond just once for all of them together. Change-Id: I4edade1e55cbd7394cba03d97b2ee61ca3a258b6
* | | | Merge "monitor: Prefer using bundled SDK rather than lastSdk"Siva Velusamy2012-12-061-13/+17
|\ \ \ \
| * | | | monitor: Prefer using bundled SDK rather than lastSdkSiva Velusamy2012-12-061-13/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also fix the path to bundled SDK: monitor is in tools/lib/monitor, not tools/monitor Change-Id: Ia47112b8358076a8d93cc6492bc67490386459e7
* | | | | Merge "Findbugs cleanup"Tor Norbye2012-12-063-3/+24
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Findbugs cleanupTor Norbye2012-12-063-3/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a couple of issues found by findbugs, and some test stability fixes. Change-Id: I97390ea606ea25d6a68e5b7f8245e5e689117995
* | | | | Merge "Add sysinfo panel to monitor/ADT"Siva Velusamy2012-12-064-0/+40
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Add sysinfo panel to monitor/ADTSiva Velusamy2012-12-064-0/+40
| | | | | | | | | | | | | | | | | | | | Change-Id: If75df27e17f5ad866b4a73a8422444f82c4c7ac0
* | | | | Support layout aliases properlyTor Norbye2012-12-069-99/+14
|/ / / / | | | | | | | | | | | | Change-Id: I3c1dac7809a225118b69f1557a42051e96011198
* | | | Filter out non-launcher activity from new project activity listTor Norbye2012-12-052-8/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Also show template title rather than template directory name in the template list (issue 38955) Change-Id: Iedd3949aa5c7fce879a4d7fd11e4fa73660d6451
* | | | Merge "Grid Layout tweaks"Tor Norbye2012-12-055-33/+204
|\ \ \ \
| * | | | Grid Layout tweaksTor Norbye2012-12-045-33/+204
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This switches the grid layout rule editor over to the more traditional grid-oriented editing, and makes some tweaks to that handling (along with some bug fixes for namespace handling). This is a better editing experience than the richer but currently broken free form editing of GridLayouts. Change-Id: I4db2c604ddf34e37c6fe4dd2b8270d20c68dc12f
* | | | | Merge "Add namespace elements from code completion lazily"Tor Norbye2012-12-054-11/+61
|\ \ \ \ \
| * | | | | Add namespace elements from code completion lazilyTor Norbye2012-12-044-11/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The XmlUtils.lookupNamespace() method would unconditionally insert a namespace declaration if called with a namespace that is not already declared in the document. This had the negative effect that simply bringing up the code completion dialog on a custom view would immediately insert the app namespace declaration, even if the user didn't select one of the app namespace attributes. Furthermore, this edit would sometimes result in the caret being placed in the wrong place after insertion. This changeset adds a new parameter to the lookupNamespace() method, "create", which lets the caller deliberately decide whether the new namespace element should be created. Second, code completion now only inserts the namespace declaration as part of the completion apply handler, meaning you only get the namespace if you pick one of the custom attributes. It also uses a document position to ensure that the insert and caret positions are preserved properly and take the namespace insertion into account. Change-Id: I21cf678df454b09460139fe35d33ca88b8e91757
* | | | | | Merge "Code completion improvements for custom views and themes"Tor Norbye2012-12-0537-52/+671
|\ \ \ \ \ \ | |/ / / / /
| * | | | | Code completion improvements for custom views and themesTor Norbye2012-12-0437-52/+671
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset adds custom view completion to the content assist. Code completion for elements (e.g. from text context or inside a <) should now include custom views found in the project, and prefix typing should work as well. Similarly, code completing inside a <fragment> name attribute or a <view> class attribute should complete fragment and view classes. It will display javadocs for these classes, if available. It also hooks up class completion in manifest files, so completing <activity>, <application>, <receiver> etc android:name attributes should show matching classes corresponding to the tag being edited. The completion will also always complete theme references (?) even when there is no known metadata for the tag, such as for an arbitrary custom view. Also fix descriptor metadata such that <view> and <requestFocus> show up in code completion, works properly for layout editor palette drag (with a class selection popup) and with a suitable outline icon. Also tweak refactoring such that it handles both class= and android:name usage for <fragment> elements. Finally, for the LinearLayout automatically added inside new ScrollViews, set the vertical attribute since that's usually what you want. Change-Id: Ifc98c19607ddc4e69d7645f2720120ce72d0cd95
* | | | | Add flag to disable dex merging.Xavier Ducrohet2012-12-054-8/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with dex.disable.merger=true in the project.properties, it is now possible to revert to the old build mechanism where every jar files is always passed to dex during dex'ing instead of pre-dexing them only when they change. This is to go around some issue with dexmerger that are only triggered in some cases. Change-Id: I7288ae4e1ae02b088c2f74f2f63c819c6587016a
* | | | | Merge "Support package conflicts between app and libs."Xavier Ducrohet2012-12-051-12/+81
|\ \ \ \ \
| * | | | | Support package conflicts between app and libs.Xavier Ducrohet2012-12-051-12/+81
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If 2 libraries share the same package name, this is now a build breakage, unless all libraries share the same package. This is because the libraries R classes only contain the resources declared in the libraries themselves (plus dependencies). Since two libraries could share the same package name without depending on one another, it's possible to ensure that creating only one R class would work for both. (Merging both R class might be possible but is too risky for a quick fix like this). If all the libraries share the same package, then a single R class is created for that package that contains all the symbol of the app (simpler than merging all the symbols for now) If a library and the app share the same package name, the R class for the library is not created (since the R class for the app contains all resources). This already worked in ADT, so this changeset only fixes Ant. Change-Id: I95f0b734ba263051961268d960d59749f5b6e1a5
* | | | | Merge "Make templates handle custom namespaces properly"Tor Norbye2012-12-052-0/+7
|\ \ \ \ \
| * | | | | Make templates handle custom namespaces properlyTor Norbye2012-12-042-0/+7
| |/ / / / | | | | | | | | | | | | | | | Change-Id: Id3685aa63a1e3017b345ec28bbb454656547258c
* | | | | Fix Rename Application Package such that it doesn't touch bin/Tor Norbye2012-12-056-21/+260
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the rename application package refactoring such that it only modifies AndroidManifest.xml, not for example a copy in bin/. Also added a diagnostic information message to the plain Java package refactoring, shown when refactoring the application package, explaining that the refactoring will not actually change the manifest package, and explaining how to invoke the dedicated refactoring to change it. Also add unit tests for this refactoring. Change-Id: I13054e033b9ee44210ca341f00c633d73a4418b4
* | | | Merge "Fix goto @+id, and order layout_width before width in completion"Tor Norbye2012-12-0316-34/+148
|\ \ \ \
| * | | | Fix goto @+id, and order layout_width before width in completionTor Norbye2012-11-2916-34/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset makes two XML editing releated tweaks: * First, Go To Declaration now works on @+id/ attributes. Until now, it ignored these with a comment that we're already at the declaration. However, there are cases where these are also used as a forward reference, such as in layout parameters for a relative layout. Now Go To Declaration will allow you to jump from these layout parameters to the actual element defining the attribute. * Second, if the user types "wi" in code completion, we offer both android:width and android:layout_width. However, the layout parameters were offered second, meaning users would sometimes select width instead of layout_width, the more likely choice. This changeset tweaks the order of the results in this scenario to offer the layout parameters first. Finally, it also makes some tweaks the the unit test framework to for example wait for all Android targets to be loaded (this wasn't always the case which made the test sometimes fail when running, but not when debugged.) It also updates the target SDK used for golden files to API 16 (from API 12) so some golden files are updated with changes in available attributes and descriptions. Change-Id: I84c92961f42fe63d39b6eeff9186d66183d67d6c
* | | | | Merge "Add tools:targetApi to control local minSdk (like @TargetApi)"Tor Norbye2012-12-034-59/+78
|\ \ \ \ \
| * | | | | Add tools:targetApi to control local minSdk (like @TargetApi)Tor Norbye2012-11-304-59/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also add XML editor quickfix to set the attribute on an API violation. Change-Id: Ife95d73659656e98a6fb1a322354f5fcfcef1888
* | | | | | Merge "Fix rename type, rename package and move type refactorings"Tor Norbye2012-12-0320-2200/+1028
|\ \ \ \ \ \
| * | | | | | Fix rename type, rename package and move type refactoringsTor Norbye2012-12-0320-2200/+1028
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL updates the various refactorings to properly handle layout refactoring such that it not only updates custom views, but also updates fragment references, tool:context references etc. It also fixes missing manifest updates (such as replacing the parentActivityName attributes). Most importantly, it also fixes bugs where the wrong elements in the manifest could get updated. There are a lot of diffs in this CL because I basically replaced the old refactoring code (which had a lot of custom text change and document manipulation code) with code based on the new resource refactoring, where there is a single iteration of the XML documents. This also improves the emitted refactoring elements such that it only lists each file once. Also updated the unit tests to check additional scenarios; adding a second activity with the same prefix as the first is what revealed the broken document handling in the old code. Change-Id: I7c5959ca6b046ce3dab566663988cdd0389b0e5b
* | | | | | Merge "Add renderscript specific compilation target."Xavier Ducrohet2012-11-304-15/+35
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Add renderscript specific compilation target.Xavier Ducrohet2012-11-304-15/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The property name is "renderscript.target" and is to be located in project.properties. If not present, the minSdkVersion (or 11 if lower) is used. Change-Id: Ic243474ce1d5ce2235cbfdfc45092ed8a5ffbbf7
* | | | | | Merge "Make inefficient weight detector identify more candidates"Tor Norbye2012-11-301-2/+2
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Make inefficient weight detector identify more candidatesTor Norbye2012-11-291-2/+2
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The inefficient weight detector looks for horizontal layouts with weights where all the children are layouts. It didn't have a very good heuristic for finding out whether all children are layouts; it just looked for whether the tag name contains "Layout". This changeset generalizes this a bit, adding other layouts, as well as <fragment> tags to the lint check. It also updates the Master/Detail template to set the baseline alignment attribute to false (to avoid triggering the updated lint check), as well as android:textIsSelectable to clear another recent new lint rule. Change-Id: I887962b5e29a9ad0c5b5c01970b0c66f884125d8
* | | | | Add filterscript suppport.Xavier Ducrohet2012-11-295-26/+61
| | | | | | | | | | | | | | | | | | | | Change-Id: Iaefb640f35bdad1dc5d4be8565c2cafdc02e8324