aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix case where testRunEnded was called twice.Brett Chabot2010-10-041-2/+11
| | | | Change-Id: I14be6641c020baf0ad90f2f036e35fb854aed2ab
* Merge "Fixing ADT features"Xavier Ducrohet2010-10-0415-5/+594
|\
| * Fixing ADT featuressnpe2010-09-2915-5/+594
| | | | | | | | Change-Id: Idc4223a43ef6505e55fb2b62cb2514763959bc53
* | Merge "Add drawing styles to the layout helper API"Raphaƫl Moll2010-10-049-108/+476
|\ \
| * | Add drawing styles to the layout helper APITor Norbye2010-10-049-108/+476
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pull color constants out of the specific layout helper classes (groovy scripts) and the canvas editor and use a generic style enum instead in the interface, and associate the visual attributes (color, line style, thickness, alpha) with a swt-specific enum on the editor side. There is a single new API method which takes an enum parameter, which should let us add drawing styles over time. By having the color definitions on the tool side rather in the specific layout helpers it's not only easier to change the colors but also easier to ensure that the different helper all stay consistent as we change color schemes. In the immediate term (next integration) I'll change some of the colors; after that we should make the colors adapt to the chosen theme, and eventually these should be provided via the SDK from the themes themselves. This changeset doesn't actually change the colors used for the various types of visual feedback (selection, hover, drop-zone, etc) - I'll investigate that next. For that reason I also didn't replace all the various client-side color usage in the RelativeLayout. Change-Id: Iddf4ace9006ec02d9907c3c37d539ab7414f1371
* | | Make ddmlb-tests optional.Brett Chabot2010-10-011-0/+1
| | | | | | | | | | | | Change-Id: Ia584549aae4bffe0ca9ddee860337cb20fa0e313
* | | Merge "In some cases release build is actually a debug build."Xavier Ducrohet2010-09-306-23/+110
|\ \ \
| * | | In some cases release build is actually a debug build.Xavier Ducrohet2010-09-296-23/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | If the manifest sets debuggable=true then this override the release build to be a debug build instead. Change-Id: Ib66bf9053cecfa7c19a02cefdbf187a20bd6da37
* | | | Merge "Fix ddmlib test run failure and metric reporting."Brett Chabot2010-09-3010-452/+301
|\ \ \ \
| * | | | Fix ddmlib test run failure and metric reporting.Brett Chabot2010-09-3010-452/+301
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This submit fixes two bugs: 1) Test run failures were not getting reported correctly in some scenarios, and in others testRunFailed was being called before testRunStarted was called. With this submit, the order of ITestRunListener callbacks is documented and strictly adhered to. 2) test metrics were getting reported for regularly occuring instrumentation output such as 'stream' and 'id'. Also cleaned up the associated unit tests and changed them to use easymock. Change-Id: I4cee3abebdf1c607ac1dc51a240c92ca9611ca31
* | | | | Merge "Add in support for the sys.executable variable."Bill Napier2010-09-302-17/+28
|\ \ \ \ \
| * | | | | Add in support for the sys.executable variable.Bill Napier2010-09-302-17/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows things like pydoc to work. Change-Id: I16206a17099f7a3785ebcb303bd760b65db36b68
* | | | | | Merge "ADT: Fix attributes UI in Android Manifest Editor."Raphael Moll2010-09-309-98/+177
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | |
| * | | | | ADT: Fix attributes UI in Android Manifest Editor.Raphael Moll2010-09-299-98/+177
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | External bug: http://b.android.com/11392 Issue: all customized fields were showing as regular "string" references (with the default string browser) instead of having customized pre-selected choices, etc. The core issue is that the UI widgets were created using reflection but I changed the base class constructor of the default TextAttributeDescriptor recently and forgot to update DescriptorUtils accordingly. Since it was failing to create a custom widget it was reverting to the default UI for a string reference. The long-term fix is to stop using reflection. Creator pattern to the rescue! Instead there's a new ITextAttributeCreator interface and the override map uses a static "creator" instance that will instantiate the correct UI widget when needed. Change-Id: Ie7afbf682a2aa8ae18565d08445e73a8c051a6c7
* | | | | Add missing dependency in the ddms manifest.Xavier Ducrohet2010-09-291-1/+1
|/ / / / | | | | | | | | | | | | Change-Id: Ifdfb8bbabf2b2aadf46ce0b27dcf99ef428d1ec9
* | | | Tools specific atree file.Xavier Ducrohet2010-09-281-0/+112
| |_|/ |/| | | | | | | | Change-Id: I7a71f4d91993c48c147bc080c08f830457a23ef1
* | | Make the tools work with the new location of adb.Xavier Ducrohet2010-09-275-7/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | adb has been moved to the platform-tools folder. This changes ADT, DDMS, HierarchyViewer which all care where adb is (to launch it). Also fixed the local SDK parser of the SDK Updater to find the platform-tools package. Change-Id: I3c869159d7b0e0ad9aaea06f376b7ba3e53bfc7f
* | | Ant doc on how to replace proguard.Xavier Ducrohet2010-09-271-0/+17
| | | | | | | | | | | | Change-Id: I27faad2282fbe6cff565d945c2b64d42d31db1fe
* | | Make it easier to use a different obfuscator.Xavier Ducrohet2010-09-241-37/+34
| | | | | | | | | | | | Change-Id: I3fb80a8b91482de5117a9e093b2d50010bb99546
* | | Use proguard for release builds through Ant.Xavier Ducrohet2010-09-2430-59/+602
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is only activated if default.properties contains a property "proguard.config" with the name of a proguard config file. Some clean-up in the Ant tasks and in the name of the properties used by the rules and the custom tasks to make them clearer. Added a new test app with a project using a jar file as well as a library using a jar file. Change-Id: Ia8f4d873025993d454c0a484e61d47ae679ea79c
* | | Work around a bug in the jar verifier of Android.Xavier Ducrohet2010-09-241-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | up to Android 1.6, if the signature file of an apk was a multiple of 1024 the jar verification failed. This make sure the signing code in ADT/Ant does not generate such a signature file by adding an extra CRLF at the end. See http://b.android.com/830 Change-Id: Ia9ec0563d2abfaa6402ca4d19ca27335e9ba57a3
* | | Merge "Make javac ant options configurable."Xavier Ducrohet2010-09-242-1/+10
|\ \ \
| * | | Make javac ant options configurable.Xavier Ducrohet2010-09-242-1/+10
| | | | | | | | | | | | | | | | Change-Id: I303acdb4fc8de6ba5d8de7c18e020e97fe01e3de
* | | | Merge "Don't force a workspace build on launch."Xavier Ducrohet2010-09-242-14/+12
|\ \ \ \ | |/ / / |/| | |
| * | | Don't force a workspace build on launch.Xavier Ducrohet2010-09-242-14/+12
| | | | | | | | | | | | | | | | | | | | Bug: http://b.android.com/11452 Change-Id: Ibbb8b15ef448694fc8975f6fb32b1703e9edd54f
* | | | Fix target loading when sdk.properties is not present.Xavier Ducrohet2010-09-241-2/+4
|/ / / | | | | | | | | | | | | | | | | | | | | | Older (obsolete) targets would fail to load if sdk.properties was not present. Since the content is optional anyway, it's ok to load the target. Change-Id: I6539be1450e72096de7b651e1c9137b41060e315
* | | Merge "Improve waitForConnection for booting devices."Bill Napier2010-09-232-2/+10
|\ \ \
| * | | Improve waitForConnection for booting devices.Bill Napier2010-09-232-2/+10
| |/ / | | | | | | | | | | | | | | | | | | Have waitForConnection actually wait until the device is ONLINE before returning it. Also give the on device monkey some more time to startup. Change-Id: I86193a8532a84d64dddd9a60012af4f3ef507841
* | | merge from tools_r7Jean-Baptiste Queru2010-09-230-0/+0
|\ \ \ | | | | | | | | | | | | Change-Id: I15581b778be83b662b23994e53ff9c22ab796667
| * | | ADT: change to 0.9.9 (fix for ADT removing source folders)Raphael Moll2010-09-229-11/+14
| | | | | | | | | | | | | | | | Change-Id: I0a177531edd35d91a7994760881474f285dc7832
* | | | merge from tools_r7Jean-Baptiste Queru2010-09-230-0/+0
|\ \ \ \ | |/ / / | | / / | |/ / |/| | Change-Id: Iea8ce7b939b70244eaf10cf716770ab8f1659d38
| * | Fix an issue where src files can be deleted in ADT.Xavier Ducrohet2010-09-221-5/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Older projects generated the java class (R, aidl) into the main src folder. There is code in ADT to migrate them to the new model (where generated classes go in gen/) by removing derived resources from the source folder. This is also used by the clean feature of the pre-compiler builder to clean the content of gen. To make it better, in ADT 0.9.8, we added something to delete the folder containing the derived resources. Except this doesn't check if the folder is not empty after the derived resources have been deleted (or not if it contained non-derived resources). this means importing older projects (or possibly team projects -- see http://b.android.com/11347) would delete the whole content of the source folder. This change makes sure that only folders for which all members have been deleted are deleted. Change-Id: I1ddbb3bd4c37859c7ddbf660377c598bae246269
* | | Merge "Fix an issue where src files can be deleted in ADT."Xavier Ducrohet2010-09-221-5/+18
|\ \ \ | |_|/ |/| |
| * | Fix an issue where src files can be deleted in ADT.Xavier Ducrohet2010-09-221-5/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Older projects generated the java class (R, aidl) into the main src folder. There is code in ADT to migrate them to the new model (where generated classes go in gen/) by removing derived resources from the source folder. This is also used by the clean feature of the pre-compiler builder to clean the content of gen. To make it better, in ADT 0.9.8, we added something to delete the folder containing the derived resources. Except this doesn't check if the folder is not empty after the derived resources have been deleted (or not if it contained non-derived resources). this means importing older projects (or possibly team projects -- see http://b.android.com/11347) would delete the whole content of the source folder. This change makes sure that only folders for which all members have been deleted are deleted. Change-Id: I04b6d986fb3e454a259213fcda197400e9e7c974
* | | Merge "Add a runName parameter to ITestRunListener#testRunStarted."Brett Chabot2010-09-217-28/+29
|\ \ \ | |/ / |/| |
| * | Add a runName parameter to ITestRunListener#testRunStarted.Brett Chabot2010-09-167-28/+29
| | | | | | | | | | | | Change-Id: Ibaab85879f5432a24f8d44dc8d22aa6b0965a0c2
* | | Merge "GLE2: fix layout editor not properly closed when dirty."Raphael Moll2010-09-176-165/+184
|\ \ \ | |/ / |/| |
| * | GLE2: fix layout editor not properly closed when dirty.Raphael Moll2010-09-156-165/+184
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The symptom was that once the layout editor had a modification and was in the "dirty" mode, closing it would keep the model around and re-opening would show the previous state. That was a red herring. The actual issue is that the undo begin/end wrapper methods were calling getModelForEdit() without doing a proper releaseFromEdit() call after the fact. Somewhere down in the overly complex code that disposes the EditorPart there is a test that would not purge the model if it is still locked. The fix is thus in the begin/endUndoRecording of the base AndroidXmlEditor. This CL also cleans up some IFile usage; when fixing the code above I noticed we can now get the model without first getting an SSE internal document, instead we can use the editor's IFile. However I doubt SSE for 3.3 would have the API, I need to check that in another CL. Later, it's a P3. Change-Id: I2437475dfeee9d6689b7b604782ae140d7aff1c3
* | | Fix var path name generation.Xavier Ducrohet2010-09-151-1/+4
|/ / | | | | | | | | | | | | | | The hashcode can be a negative int. Convert it to an always positive long and convert to hexadecimal. Change-Id: Ia655dd92ef1986834680cb942ac004eb7374916f
* | Ensure the library path variable is valid.Xavier Ducrohet2010-09-151-1/+13
| | | | | | | | | | | | | | Remove all non-valid characters and attempt to reduce collisions. Change-Id: Ie36924b80f9ed02dd46bfc12f211036257451014
* | GLE2: fix RelativeLayout insert bad attributes sometimes.Raphael Moll2010-09-151-1/+4
| | | | | | | | | | | | | | | | | | | | | | When RelativeLayout drops new elements, it filters the attributes and the filter is supposed to return false to indicate some attribute is not needed. Unfortunately the filtering code was assigning this to a String type and thus the false value was auto-converted to "false", thus failing the test and ending up as-is in the XML. Change-Id: Ife48ad9214a48016b7eb616950660deb3c962f6d
* | ADT: remove obsolete GEF-related method.Raphael Moll2010-09-142-13/+0
| | | | | | | | | | | | | | Remove the GEF selection synchronizer which was necessary only for the obsolete GLE1. Change-Id: I9ca4b1ac125e071fb3e19b69879df880c0b4be2c
* | ADT XML Wizard: auto-select single android project.Raphael Moll2010-09-141-0/+19
| | | | | | | | | | | | | | | | | | When opening the XML creation wizard, we try to auto-select the project based on the selection. If the selection is empty but there's only one accessible (i.e. open) Android project, just auto-select it. Change-Id: Ibdcabd7ed7e4f96602c5cb65c999db0645f9fad4
* | ADT: XML wizard creates layouts in fill_parent by default.Raphael Moll2010-09-141-65/+68
| | | | | | | | | | | | | | | | | | Change the XML wizard to create the root layout of new XML layouts using layout_width/height=fill_parent by default. This makes the interraction with the layout editor a lot easier. Change-Id: If8e56ffe963a914ed78e4a842d48f01d94618f4e
* | Merge "ADT: remove GLE1."Raphael Moll2010-09-1322-4591/+8
|\ \
| * | ADT: remove GLE1.Raphael Moll2010-09-1322-4591/+8
| | | | | | | | | | | | Change-Id: I80dbd00988748842b940312f4d8136e7b9187500
* | | Merge "Enhance Android Classpath Container"Xavier Ducrohet2010-09-134-25/+541
|\ \ \
| * | | Enhance Android Classpath Containersnpe2010-09-104-25/+541
| | | | | | | | | | | | | | | | Change-Id: Iaa4f1ea8766dbeb9054ca3dc1445f5154f841c44
* | | | Merge "Add alloc number in the alloc tracker."Xavier Ducrohet2010-09-133-11/+41
|\ \ \ \ | |_|/ / |/| | |
| * | | Add alloc number in the alloc tracker.Xavier Ducrohet2010-09-133-11/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This lets the user sort the allocation in the order they happened (or reverse) Change-Id: I85ca3b190f3a5d63828d78882ee833e5523c2154