OSDN Git Service

android-x86/sdk.git
12 years agoMerge branch 'aosp/honeycomb-LTE-release' into honeycomb-mr2-x86 honeycomb-x86
Chih-Wei Huang [Sat, 5 Nov 2011 17:26:32 +0000 (01:26 +0800)]
Merge branch 'aosp/honeycomb-LTE-release' into honeycomb-mr2-x86

12 years agomerge in honeycomb-LTE-release history after reset to honeycomb-LTE
The Android Automerger [Thu, 11 Aug 2011 21:33:28 +0000 (14:33 -0700)]
merge in honeycomb-LTE-release history after reset to honeycomb-LTE

12 years agoMerge "Added view introspection to ChimpChat and MonkeyRunner"
Bill Napier [Thu, 11 Aug 2011 19:21:25 +0000 (12:21 -0700)]
Merge "Added view introspection to ChimpChat and MonkeyRunner"

12 years agoMerge "Create new project ddmuilib-tests"
Siva Velusamy [Thu, 11 Aug 2011 05:16:38 +0000 (22:16 -0700)]
Merge "Create new project ddmuilib-tests"

12 years agoMerge "Add support for filtering logcat messages."
Siva Velusamy [Thu, 11 Aug 2011 05:13:55 +0000 (22:13 -0700)]
Merge "Add support for filtering logcat messages."

12 years agoCreate new project ddmuilib-tests
Siva Velusamy [Tue, 9 Aug 2011 23:28:19 +0000 (16:28 -0700)]
Create new project ddmuilib-tests

Change-Id: I62fbf052dead8f9c4378c42c1850851c51b794fc

12 years agoAdd support for filtering logcat messages.
Siva Velusamy [Tue, 9 Aug 2011 20:31:40 +0000 (13:31 -0700)]
Add support for filtering logcat messages.

In the logcat view, add a panel on the side where users can
create/edit/delete filters for logcat messages. Users can filter
by the message tag, pid or loglevel.

Change-Id: Ic85397794e5437b761b91a74adb0dd6a58bc74ed

12 years agoMerge "Get easymock from ANDROID_OUT_FRAMEWORK"
Siva Velusamy [Wed, 10 Aug 2011 22:24:50 +0000 (15:24 -0700)]
Merge "Get easymock from ANDROID_OUT_FRAMEWORK"

12 years agoMerge "Save/Restore the width of all columns in the LogCatPanel table."
Siva Velusamy [Wed, 10 Aug 2011 22:24:11 +0000 (15:24 -0700)]
Merge "Save/Restore the width of all columns in the LogCatPanel table."

12 years agoMerge "Improve partial XML formatting"
Tor Norbye [Wed, 10 Aug 2011 22:22:24 +0000 (15:22 -0700)]
Merge "Improve partial XML formatting"

12 years agoMerge "Format newly created files"
Tor Norbye [Wed, 10 Aug 2011 22:21:54 +0000 (15:21 -0700)]
Merge "Format newly created files"

12 years agoImprove partial XML formatting
Tor Norbye [Sat, 6 Aug 2011 00:05:37 +0000 (17:05 -0700)]
Improve partial XML formatting

This changeset improves the behavior of the formatting when formatting
just a part of the document (e.g. the selected region, or more
accurately the nodes overlapping the selected region.)

First, it looks up the current indentation levels in the document of
the start node and its parent and uses that for the indentation, which
means that nodes appear to be pretty printed in line instead of
jumping to whatever the absolute indentation level would correspond
to.

Second, the formatter now has a mode where it can format only the
opening tag of an element. This is a special case of formatting a node
which is particularly useful when you enable automatic formatting by
the layout editor, since just setting a property on a root element
shouldn't reformat all the element children of the edited node.

Third, there are various tweaks to how the whitespace is handled
around the inserted node. It also fixes a couple of bugs.

Change-Id: If1dd2dc5091a08b770927cd4b9fcafe0c032a216

12 years agoFormat newly created files
Tor Norbye [Fri, 5 Aug 2011 00:15:37 +0000 (17:15 -0700)]
Format newly created files

This changeset hooks the XML formatter up to the New XML File and New
Android Project wizards such that the newly created XML files are run
through the formatter, thereby picking up whatever formatting
customizations the user has made.

It also makes it such that when you finish the New XML File wizard for
a file that does not have a graphical editor, the caret position is
shown and the view receives focus so you can start editing at the
appropriate position.

Finally, it tweaks the defaut root element for color-lists.

Change-Id: I19606a085d6df132009679ddfb4c91152cbdc453

12 years agoMerge "Ability to suppress rendering fidelity warnings"
Tor Norbye [Wed, 10 Aug 2011 22:10:25 +0000 (15:10 -0700)]
Merge "Ability to suppress rendering fidelity warnings"

12 years agoMerge "Update XML Mac keybindings for select enclosing and select last"
Tor Norbye [Wed, 10 Aug 2011 20:51:20 +0000 (13:51 -0700)]
Merge "Update XML Mac keybindings for select enclosing and select last"

12 years agoMerge "Reformat the ADT plugin.xml file"
Tor Norbye [Wed, 10 Aug 2011 20:51:12 +0000 (13:51 -0700)]
Merge "Reformat the ADT plugin.xml file"

12 years agoMerge "Make the plugin build script for for Mac OSX"
Tor Norbye [Wed, 10 Aug 2011 20:50:02 +0000 (13:50 -0700)]
Merge "Make the plugin build script for for Mac OSX"

12 years agoGet easymock from ANDROID_OUT_FRAMEWORK
Siva Velusamy [Sat, 6 Aug 2011 00:25:33 +0000 (17:25 -0700)]
Get easymock from ANDROID_OUT_FRAMEWORK

Change-Id: Ife3e5d1f5f1884a2e304dd18e109a6d7325ab90c

12 years agoSave/Restore the width of all columns in the LogCatPanel table.
Siva Velusamy [Thu, 4 Aug 2011 21:38:05 +0000 (14:38 -0700)]
Save/Restore the width of all columns in the LogCatPanel table.

Create all columns using TableHelper.createTableColumn which adds
listeners that save the column width whenever they are resized by
the user, and restores them on subsequent creations.

Change-Id: I35d09a981b94aa086899e3bf74f2243029c60b2b

12 years agoMerge "Fix template creation of ids"
Tor Norbye [Tue, 9 Aug 2011 20:10:13 +0000 (13:10 -0700)]
Merge "Fix template creation of ids"

12 years agoMerge "Fix linear layout and frame layout unit tests"
Tor Norbye [Tue, 9 Aug 2011 20:09:55 +0000 (13:09 -0700)]
Merge "Fix linear layout and frame layout unit tests"

12 years agoMake the plugin build script for for Mac OSX
Tor Norbye [Mon, 8 Aug 2011 21:01:35 +0000 (14:01 -0700)]
Make the plugin build script for for Mac OSX

The build_server script used to build the plugin zip file was Linux
specific. This changeset tweaks the scripts such that they will also
run on Mac OSX. It also adds various .gitignore filters such that the
temporary files created by the build script are ignored by git.

Change-Id: I77cfe6bfb65be86c11beb50bcab9c345433b5a8e

12 years agoMerge "SdkMan2: Correctly handle local items newer than remote."
Raphael Moll [Tue, 9 Aug 2011 01:07:04 +0000 (18:07 -0700)]
Merge "SdkMan2: Correctly handle local items newer than remote."

12 years agoSdkMan2: Correctly handle local items newer than remote.
Raphael Moll [Mon, 8 Aug 2011 22:18:19 +0000 (15:18 -0700)]
SdkMan2: Correctly handle local items newer than remote.

This fixes an edge case where a local package is newer
(e.g. has a higher revision number) than a remote one.
This typically happens during development and QA but
not in a normal user scenario.
In this case the newer local package 'hides' the remote
package so that we don't see a dup in the list.

Also fixes the source filter when merging remote packages
and add a comment on the rationale of which, namely that
if two remote repos were to publish the same packages we
DO want to see dups. This is not supposed to happen and
we would want to see it and have it fixed.

Change-Id: Iab51cfd64b4078f3233872973173465a924eac1e

12 years agoMerge "SdkMan2: Can only install remote packages, not locally installed ones."
Raphael Moll [Tue, 9 Aug 2011 00:38:38 +0000 (17:38 -0700)]
Merge "SdkMan2: Can only install remote packages, not locally installed ones."

12 years agoSdkMan2: Can only install remote packages, not locally installed ones.
Raphael Moll [Mon, 8 Aug 2011 22:00:50 +0000 (15:00 -0700)]
SdkMan2: Can only install remote packages, not locally installed ones.

Change-Id: Ia56b5f8a3458c139d79cfdb4acef45f3f89cb5e4

12 years agomerge from tools_r13
The Android Open-Source Project [Mon, 8 Aug 2011 17:46:12 +0000 (10:46 -0700)]
merge from tools_r13

Change-Id: I08d87676cbdcd2908c7157b726d7350058cc5c1e

12 years agoIgnore from tools_r13
Jean-Baptiste Queru [Mon, 8 Aug 2011 17:38:22 +0000 (10:38 -0700)]
Ignore from tools_r13

Change-Id: Ieb0d164466d88021a1c22cdbbf1794bb8fc471d9

12 years agoFix template creation of ids
Tor Norbye [Sat, 6 Aug 2011 04:28:57 +0000 (21:28 -0700)]
Fix template creation of ids

We have a quickfix for creating missing resources, such as
@string/foo.  This code was not working correctly for @id resources,
because ids use a different declaration syntax (there is no value to
be specified as a text node child of the item tag, and the type
attribute should be specified).

This changeset also fixes ResourceHelper's isFileBasedResourceType().
ResourceHelper.isFileBasedResourceType recently started returning true
for ResourceType.ID. This seems related to a change in the return
values from FolderTypeRelationship.

In any case, ids should not be treated as #isFileBasedResourceType,
because that method is used to determine whether the id is one-to-one
with a filename, which in turn means that the resource name validator
will insist that the filename can only contain -lowercase- characters
(plus digits and underscores).

Incidentally this change was caught by a unit test, yay!

Change-Id: I0c95c20d666d0744fda73e8230846d24ddd437c3

12 years agoAbility to suppress rendering fidelity warnings
Tor Norbye [Sun, 7 Aug 2011 06:03:41 +0000 (23:03 -0700)]
Ability to suppress rendering fidelity warnings

If you're working with a custom component that uses unsupported
graphics operations, the layout editor will show an error area. This
error is always there. That can be annoying since there's nothing you
can do about it after reporting a bug.

This changeset adds the ability to suppress these errors for the
current IDE session. It adds a "Ignore" hyperlink next to each
fidelity rendering error message, and when you click it, the specific
type of rendering error is suppressed and hidden for the current IDE
session.

These warnings are only suppressed for a single session and not
permanently. This is because you are suppressing an error not for a
specific layout but for any occurrence of that error. If these ignore
settings were persisted you might open some unrelated layout in the
future and be puzzled why it does not look right.

Change-Id: I2d20a36aee7767257b16ad805b0e8da36a6eb97e

12 years agoUpdate XML Mac keybindings for select enclosing and select last
Tor Norbye [Sat, 6 Aug 2011 19:41:02 +0000 (12:41 -0700)]
Update XML Mac keybindings for select enclosing and select last

One of the most useful selection operations in Eclipse Java editors is
"select enclosing" and "select last".  The keybindings on Mac are
Ctrl-Shift-Up and Ctrl-Shift-Down. However, in XML files, those
keybindings do something different (making the caret jump, without
selection, to the previous element instead of the parent).

It turns out the XML editor also implements those actions, but bound
to other keys on the Mac. The reason for this is that the Java editor
applies special mac specific keybindings for those actions, and the
XML editor does not.

This changeset updates the keybindings, for Mac only, to the same
keybindings as the Mac-only Java editor bindings for the same actions.

Change-Id: I81f7f6d14fe8dd4a79aeace757d6c25c011eedb8

12 years agoMerge "SdkMan2: Fix edge case when install/delete packages."
Raphael Moll [Sun, 7 Aug 2011 04:56:03 +0000 (21:56 -0700)]
Merge "SdkMan2: Fix edge case when install/delete packages."

12 years agoMerge "SdkMan2: Show number of packages to install/delete"
Raphael Moll [Sun, 7 Aug 2011 04:55:57 +0000 (21:55 -0700)]
Merge "SdkMan2: Show number of packages to install/delete"

12 years agoMerge "SdkMan2: Fix load when there are no remote sources."
Raphael Moll [Sun, 7 Aug 2011 04:55:52 +0000 (21:55 -0700)]
Merge "SdkMan2: Fix load when there are no remote sources."

12 years agoReformat the ADT plugin.xml file
Tor Norbye [Sat, 6 Aug 2011 19:27:24 +0000 (12:27 -0700)]
Reformat the ADT plugin.xml file

The plugin.xml file had a lot of very inconsistent formatting,
primarily because the Eclipse Format action seems to be disabled in
it, and most of the contents are the result of copy pasting in
snippets to register various services based on code samples in
documentation.

This changeset simply reformats the file (4 spaces, one attribute per
line) to make the format consistent and easier to adhere to when
inserting new content.

There are NO semantic changes - it's a pure reformat only affecting
whitespace.

Change-Id: I42237f67ada0e2ddeffc5e305a7df1083f0fdb97

12 years agoMerge "Miscellaneous XML formatting fixes"
Tor Norbye [Sat, 6 Aug 2011 04:34:24 +0000 (21:34 -0700)]
Merge "Miscellaneous XML formatting fixes"

12 years agoFix linear layout and frame layout unit tests
Tor Norbye [Sat, 6 Aug 2011 04:26:44 +0000 (21:26 -0700)]
Fix linear layout and frame layout unit tests

I changed the code which draws drop feedback recently to use a more
efficient call (calling drawRect(x1,y1,x2,y2) directly instead
of constructing a new Rectangle object and calling drawRect(Rect).
Some golden files checking graphics output needs to be updated.

Change-Id: I369fed9cb0756ff4f3aa970c1bdd552d0f55faaa

12 years agoSdkMan2: Fix edge case when install/delete packages.
Raphael Moll [Fri, 5 Aug 2011 22:33:31 +0000 (15:33 -0700)]
SdkMan2: Fix edge case when install/delete packages.

One issue when installing or deleting packages is that
sometimes after an install the display would show both
the uninstalled and installed package. And when deleting
it would also show both states.
The core issue is that it's a bad idea to rely on
Set<>.contains() when your objects equality isn't quite
what the hash code says.

Or said otherwise, there's more than one definition
of "equals()" for Package objects. That is when a
package is installed or deleted, its internal state
changes and its archive changes (it looses or gain an
OS path), which changes the overall hash code but
at that point it's the same object from the user point
of view.

Anyway, long story made short: this fixes that.

Change-Id: I6ec705cc807d96d097cf9ea7faf8234f7ed34416

12 years agoSdkMan2: Show number of packages to install/delete
Raphael Moll [Fri, 5 Aug 2011 20:12:23 +0000 (13:12 -0700)]
SdkMan2: Show number of packages to install/delete

Change-Id: I2113998c9a7274d5c468f27f4b51b8d2293d0c17

12 years agomerge in honeycomb-LTE-release history after reset to honeycomb-LTE
The Android Automerger [Fri, 5 Aug 2011 22:04:22 +0000 (15:04 -0700)]
merge in honeycomb-LTE-release history after reset to honeycomb-LTE

12 years agoSdkMan2: Fix load when there are no remote sources.
Raphael Moll [Fri, 5 Aug 2011 17:50:29 +0000 (10:50 -0700)]
SdkMan2: Fix load when there are no remote sources.

There was a bug where the package loader would not show
all locally installed packages if it didn't find any
remote source (e.g. when there's no network).
This fixes it. Also adds a UT to cover this case.

Change-Id: I5ccfd91895cfece54f2c2cdff58040c5ae8d1e98

12 years agoMerge "Fix some UT."
Xavier Ducrohet [Fri, 5 Aug 2011 17:14:22 +0000 (10:14 -0700)]
Merge "Fix some UT."

12 years agomerge in honeycomb-LTE-release history after reset to honeycomb-LTE
The Android Automerger [Fri, 5 Aug 2011 14:03:37 +0000 (07:03 -0700)]
merge in honeycomb-LTE-release history after reset to honeycomb-LTE

12 years agoMiscellaneous XML formatting fixes
Tor Norbye [Fri, 5 Aug 2011 00:14:41 +0000 (17:14 -0700)]
Miscellaneous XML formatting fixes

This changeset contains a number of tweaks to the XML formatter:

- Handle "end-of-line" comments, such as those seen in some drawable
  <selector> files:
    <item android:state_pressed="true"
          android:color="#ffff0000"/> <!-- pressed -->
    <item android:state_focused="true"
          android:color="#ff0000ff"/> <!-- focused -->
    <item android:color="#ff000000"/> <!-- default -->

  Here the comments will continue to live on the same line as the end
  tag.

- If the unformatted XML had a blank line between a comment and the
  next element, then insert a blank line there in the formatted
  XML as well

- Always place the xmlns: attribute on the same line as the opening
  element tag

- In alphabetical attribute sorting, make xmlns: attributes an
  exception and always sort them to the front just as is the case for
  logical attribute sorting

- Fix some cases where turning on "remove all lines" would still leave
  some blank lines, such as in front of the root element closing
  tag and around comments

- Fix unit tests such that they run with the default values for the
  formatter; they were accessing an uninitialized AdtPrefs instance
  (since they are not running as plugin tests) and were inadvertently
  just using "false" for all the flags.

- Add more unit tests.

Change-Id: I537f8afe4ca4d775b5f91574b895ba90a2741f5c

12 years agoFix some UT.
Xavier Ducrohet [Fri, 5 Aug 2011 00:44:25 +0000 (17:44 -0700)]
Fix some UT.

Change-Id: Ia3ca9ef68d6435a323959913a6bd9298e9bcf0c9

12 years agoMerge "Add eclipse version to usage stat ping."
Xavier Ducrohet [Thu, 4 Aug 2011 23:55:02 +0000 (16:55 -0700)]
Merge "Add eclipse version to usage stat ping."

12 years agoMerge "Add pushFile/pullFile interface for IDevice."
Xavier Ducrohet [Thu, 4 Aug 2011 23:41:18 +0000 (16:41 -0700)]
Merge "Add pushFile/pullFile interface for IDevice."

12 years agoMerge "Split PackagesPage and PackageLoader inner classes."
Raphael Moll [Thu, 4 Aug 2011 23:41:10 +0000 (16:41 -0700)]
Merge "Split PackagesPage and PackageLoader inner classes."

12 years agoMerge "SDK Manager: refactor classes for manager 1 versus 2."
Raphael Moll [Thu, 4 Aug 2011 23:41:05 +0000 (16:41 -0700)]
Merge "SDK Manager: refactor classes for manager 1 versus 2."

12 years agoMerge "SdkManager2: UTs for initial platform selection."
Raphael Moll [Thu, 4 Aug 2011 23:41:01 +0000 (16:41 -0700)]
Merge "SdkManager2: UTs for initial platform selection."

12 years agoMerge "SdkMan2: only select recent new platforms."
Raphael Moll [Thu, 4 Aug 2011 23:40:54 +0000 (16:40 -0700)]
Merge "SdkMan2: only select recent new platforms."

12 years agoMerge "Fix NPE"
Tor Norbye [Thu, 4 Aug 2011 23:30:44 +0000 (16:30 -0700)]
Merge "Fix NPE"

12 years agoFix NPE
Tor Norbye [Thu, 4 Aug 2011 23:28:51 +0000 (16:28 -0700)]
Fix NPE

Change-Id: I044342e5aa6b3aaa87efdcc79bbcb3db93190252

12 years agoAdd eclipse version to usage stat ping.
Xavier Ducrohet [Thu, 4 Aug 2011 23:27:52 +0000 (16:27 -0700)]
Add eclipse version to usage stat ping.

Change-Id: I14dba0dd7cb900c2e700e4da055aee7bb7d1f9cd

12 years agoSplit PackagesPage and PackageLoader inner classes.
Raphael Moll [Thu, 4 Aug 2011 22:16:40 +0000 (15:16 -0700)]
Split PackagesPage and PackageLoader inner classes.

PackagesPage and PackageLoader have quite a number of inner
classes. This splits them in separate package-protected
classes, making the page source a tad shorter.

This is a pure refactoring move/rename. No logic is modified.

Change-Id: I88885aed40e34bd28de4b1ea4e1de66ea2ed89b8

12 years agoSDK Manager: refactor classes for manager 1 versus 2.
Raphael Moll [Thu, 4 Aug 2011 21:47:26 +0000 (14:47 -0700)]
SDK Manager: refactor classes for manager 1 versus 2.

This moves SDK Manager 1 versus 2 classes in different
packages, ..repository.sdkman1 versus ..repository.sdkman2.

There is no change to any actual logic. Only edits to fix
imports and make some classes public.

Change-Id: Ia5ea2ef55fb6913816b27d81c496434d80a00c58

12 years agoAdd pushFile/pullFile interface for IDevice.
Wei-Ning Huang [Thu, 4 Aug 2011 21:11:08 +0000 (05:11 +0800)]
Add pushFile/pullFile interface for IDevice.

Implement pushFile/pullFile methods for Device.

Change-Id: I8491f98fc46bbfd5f476b72e002cd97f63c56228

12 years agoMerge "Fix formatting bug for formatting ranges"
Tor Norbye [Thu, 4 Aug 2011 20:10:14 +0000 (13:10 -0700)]
Merge "Fix formatting bug for formatting ranges"

12 years agoMerge "Add tag-handling for Go To Matching in XML documents"
Tor Norbye [Thu, 4 Aug 2011 20:09:56 +0000 (13:09 -0700)]
Merge "Add tag-handling for Go To Matching in XML documents"

12 years agoMerge "Improve smart-indent handling in XML files"
Tor Norbye [Thu, 4 Aug 2011 20:09:46 +0000 (13:09 -0700)]
Merge "Improve smart-indent handling in XML files"

12 years agoSdkManager2: UTs for initial platform selection.
Raphael Moll [Thu, 4 Aug 2011 19:27:44 +0000 (12:27 -0700)]
SdkManager2: UTs for initial platform selection.

Change-Id: I4aef0e6ad8993e792a20f95f37a62f44e858b426

12 years agoSdkMan2: only select recent new platforms.
Raphael Moll [Wed, 3 Aug 2011 22:26:57 +0000 (15:26 -0700)]
SdkMan2: only select recent new platforms.

Try to add some heuristic to select new/updates
so that we only select new stuff from platforms
the user has or the top most recent platform.

Change-Id: I3b4c7a3b515bdee8393a248493d2dc475f2f5745

12 years agoMerge "Initial implementation of the new logcat panel."
Siva Velusamy [Thu, 4 Aug 2011 19:00:28 +0000 (12:00 -0700)]
Merge "Initial implementation of the new logcat panel."

12 years agoInitial implementation of the new logcat panel.
Siva Velusamy [Wed, 3 Aug 2011 18:19:33 +0000 (11:19 -0700)]
Initial implementation of the new logcat panel.

This logcat panel will show up in ddms if it is launched with -Dcom.android.ddms.useNewLogCatView.
Currently, this implementation only displays a table with a list of logcat messages. It lacks
features such as filters, go-to source of exception, export to log, user preferences, etc.
Future patches should enhance the UI to achieve feature parity with older UI.

Change-Id: I3dde3c590c839318ce57bb5f005627f580ebb06c

12 years agoMerge "Conditionally create old logcat view."
Siva Velusamy [Thu, 4 Aug 2011 18:54:16 +0000 (11:54 -0700)]
Merge "Conditionally create old logcat view."

12 years agoMerge "Convert tabs to spaces"
Siva Velusamy [Thu, 4 Aug 2011 17:58:06 +0000 (10:58 -0700)]
Merge "Convert tabs to spaces"

12 years agoConditionally create old logcat view.
Siva Velusamy [Tue, 2 Aug 2011 23:18:41 +0000 (16:18 -0700)]
Conditionally create old logcat view.

As a first step towards replacing the logcat view, wrap the code that creates
and manages the current logcat view to first check which implementation to use.
The old implementation is used unless a JVM property
"com.android.ddms.useNewLogCatView" is set.

Change-Id: Idbdfcc55f0f5f28f7004b010875b89de8a4cea12

12 years agoConvert tabs to spaces
Siva Velusamy [Tue, 2 Aug 2011 22:34:25 +0000 (15:34 -0700)]
Convert tabs to spaces

Change-Id: I7032663689943b22342b49736f0656df778cd456

12 years agomerge in honeycomb-LTE-release history after reset to honeycomb-LTE
The Android Automerger [Thu, 4 Aug 2011 14:03:29 +0000 (07:03 -0700)]
merge in honeycomb-LTE-release history after reset to honeycomb-LTE

12 years agoMerge "sdkman2: if nothing selected yet, select new/updates."
Raphael Moll [Thu, 4 Aug 2011 00:53:02 +0000 (17:53 -0700)]
Merge "sdkman2: if nothing selected yet, select new/updates."

12 years agoFix formatting bug for formatting ranges
Tor Norbye [Thu, 4 Aug 2011 00:34:25 +0000 (17:34 -0700)]
Fix formatting bug for formatting ranges

Fix bug discovered by Raphael, where you select a portion of a node
and then try to format it; the bug happens if the node is indented at
column 0.  I'll add unit tests for this in the next checkin along with
wider tests for node-replacements.

Change-Id: I6488dce530e0663c83b063da906ab6a5e0bcc1d6

12 years agoAdd tag-handling for Go To Matching in XML documents
Tor Norbye [Wed, 3 Aug 2011 23:43:19 +0000 (16:43 -0700)]
Add tag-handling for Go To Matching in XML documents

Eclipse has a Go to Matching feature, bound to Ctrl-Shift-P. However,
for XML documents it only works on the character level, so if the
caret is inside a tag it does nothing, and if you place it on an angle
bracket, it just jumps to the opposite angle bracket for the same tag.

This changeset adds a new character pair matcher which works at the
tag level, so if you for example place the caret anywhere in an end
tag, it will highlight the first character of the opening tag, and if
you jump it will jump to that opening tag. Similarly, if you place the
caret next to the < or tag name of an opening tag, it will jump to the
closing tag.

Change-Id: Id25487b24616abf79c71de5eec21f8c0f07e68cc

12 years agoMerge "Properly support spaces in ant project directories." into tools_r13
Raphael Moll [Wed, 3 Aug 2011 23:31:34 +0000 (16:31 -0700)]
Merge "Properly support spaces in ant project directories." into tools_r13

12 years agoMerge "Add "android create avd --abi" parameter." into tools_r13
Raphael Moll [Wed, 3 Aug 2011 23:31:18 +0000 (16:31 -0700)]
Merge "Add "android create avd --abi" parameter." into tools_r13

12 years agoMerge "Fix android.bat for Windows SDK." into tools_r13
Raphael Moll [Wed, 3 Aug 2011 23:30:59 +0000 (16:30 -0700)]
Merge "Fix android.bat for Windows SDK." into tools_r13

12 years agoProperly support spaces in ant project directories.
Raphael Moll [Tue, 12 Jul 2011 02:11:32 +0000 (22:11 -0400)]
Properly support spaces in ant project directories.

After applying https://review.source.android.com/24515 for
the dalvik/dx change, this allows ant project to build
correctly on Windows if there's a space in their directory
path.

(cherry picked from commit a9dcfb3777eddee860ddb59f5ae77a611ffab63a)

Change-Id: I9d8a759de5491ef2439920886c4b2d5e8c4db92b

12 years agoAdd "android create avd --abi" parameter.
Raphael Moll [Fri, 8 Jul 2011 21:48:17 +0000 (17:48 -0400)]
Add "android create avd --abi" parameter.

SDK bug 4965341

(cherry picked from commit 65aa2161c1ad294ef141b479b6f49dabb2edb23b)

Change-Id: Ic401e4ca56e19e416b0331baadbf742229bf60a0

12 years agoFix android.bat for Windows SDK.
Raphael Moll [Thu, 7 Jul 2011 11:40:06 +0000 (07:40 -0400)]
Fix android.bat for Windows SDK.

android.bat was not properly copying swtmenbar.jar
to the temp folder, so it wasn't found at runtime.

Also added some debug info wrapping the menu bar usage
and a comment on how to remotely debug the swtmanager.

(cherry picked from commit 0447f74bfd36d3c458f478fa637eee377f313f3f)

Change-Id: Ib10d974a518e65ae38f66af641ccbf8cb85689d3

12 years agosdkman2: if nothing selected yet, select new/updates.
Raphael Moll [Thu, 7 Jul 2011 15:14:23 +0000 (11:14 -0400)]
sdkman2: if nothing selected yet, select new/updates.

Also synchronize selection between the sort-by-api
and the sort-by-source mode.

Updated with unit tests.

Change-Id: I714953dee219bc7a5471a347571262459f6052de

12 years agoImprove smart-indent handling in XML files
Tor Norbye [Tue, 2 Aug 2011 21:13:47 +0000 (14:13 -0700)]
Improve smart-indent handling in XML files

This changeset adds a new "auto edit strategy" for Android XML files,
which replaces the default XML auto-indenter (which just copied the
indentation of the previous line.)

The new indenter instead uses the lexical information to indent based
on the tag and bracket balance.

For example, if the | represents the caret position, then the
following shows how the edits are transformed:

    <foo name="value"/>|       =>       <foo name="value"/>
                                        |

    <foo name="value">|        =>       <foo name="value">
                                            |

    <foo                                <foo
        attr1 = "value1"|>     =>           attr1 = "value1"
                                            |>

    <foo                                <foo
        attr1 = "value1"/>|    =>           attr1 = "value1"/>
                                        |

It can also modify the text after the caret, as in the following
transformation:

    <foo>|</foo>               =>       <foo>
                                            |
                                        </foo>

See the unit test for more cases.

Change-Id: Ia99ecf6573ff4a9473970aa2fd481d2228ddf45d

12 years agoMerge "Use Windows line delimiters on Windows"
Tor Norbye [Wed, 3 Aug 2011 18:25:15 +0000 (11:25 -0700)]
Merge "Use Windows line delimiters on Windows"

12 years agoMerge "Update tools/ADT to rev 14."
Xavier Ducrohet [Wed, 3 Aug 2011 18:04:38 +0000 (11:04 -0700)]
Merge "Update tools/ADT to rev 14."

12 years agoMerge "Update tools to r13" into tools_r13
Xavier Ducrohet [Wed, 3 Aug 2011 18:04:06 +0000 (11:04 -0700)]
Merge "Update tools to r13" into tools_r13

12 years agomerge in honeycomb-LTE-release history after reset to honeycomb-LTE
The Android Automerger [Wed, 3 Aug 2011 14:03:20 +0000 (07:03 -0700)]
merge in honeycomb-LTE-release history after reset to honeycomb-LTE

12 years agoMerge "Fix magnetic field sensor string."
David Turner [Wed, 3 Aug 2011 12:20:05 +0000 (05:20 -0700)]
Merge "Fix magnetic field sensor string."

12 years agoUpdate tools/ADT to rev 14.
Xavier Ducrohet [Wed, 3 Aug 2011 01:20:38 +0000 (18:20 -0700)]
Update tools/ADT to rev 14.

Change-Id: Id29498fde61185a63812b7267b64560a8fd54dc5

12 years agoUpdate tools to r13
Xavier Ducrohet [Wed, 3 Aug 2011 01:11:27 +0000 (18:11 -0700)]
Update tools to r13

Change-Id: If3f37a98f3ebba30087672f251ba72bf2b00e497

12 years agomerge in honeycomb-LTE-release history after reset to honeycomb-LTE
The Android Automerger [Tue, 2 Aug 2011 23:23:44 +0000 (16:23 -0700)]
merge in honeycomb-LTE-release history after reset to honeycomb-LTE

12 years agoMerge "SDK Man2: Fix initial load of all sources."
Raphael Moll [Tue, 2 Aug 2011 22:11:14 +0000 (15:11 -0700)]
Merge "SDK Man2: Fix initial load of all sources."

12 years agoMerge "Add a new XML formatter, new options, and format on save"
Tor Norbye [Tue, 2 Aug 2011 21:43:03 +0000 (14:43 -0700)]
Merge "Add a new XML formatter, new options, and format on save"

12 years agoUse Windows line delimiters on Windows
Tor Norbye [Tue, 2 Aug 2011 21:41:07 +0000 (14:41 -0700)]
Use Windows line delimiters on Windows

Change-Id: I33094888432214fc5c70c4c4392d8afd932a3a7a

12 years agoMerge "Add clipart support to the asset set wizard"
Tor Norbye [Tue, 2 Aug 2011 21:25:29 +0000 (14:25 -0700)]
Merge "Add clipart support to the asset set wizard"

12 years agoAdd clipart support to the asset set wizard
Tor Norbye [Fri, 29 Jul 2011 02:33:36 +0000 (19:33 -0700)]
Add clipart support to the asset set wizard

This changeset adds clipart support to the asset set wizard. There is
only one placeholder clipart image now but the code reads the
available images from the jar dynamically.

This changeset also adds "file exists - replace yes, no, always,
never" handling for the generated icons.

Change-Id: I38d0c40957eff4a9e844e29d61f2c57493bd10f0

12 years agoSDK Man2: Fix initial load of all sources.
Raphael Moll [Tue, 2 Aug 2011 21:10:38 +0000 (14:10 -0700)]
SDK Man2: Fix initial load of all sources.

Change-Id: I54598804adad6b21ba524829570d28135f0586ca

12 years agoMerge "Fix ADT on Windows: don't use private FontData fields."
Raphael Moll [Tue, 2 Aug 2011 20:39:17 +0000 (13:39 -0700)]
Merge "Fix ADT on Windows: don't use private FontData fields."

12 years agoFix ADT on Windows: don't use private FontData fields.
Raphael Moll [Tue, 2 Aug 2011 20:17:27 +0000 (13:17 -0700)]
Fix ADT on Windows: don't use private FontData fields.

Most FontData fields must NOT be accessed directly
as they are platform-dependent.

Change-Id: I26ad9b40b9d2040931551c6f08fa033ef3c24386

12 years agoMerge "ADT Resource Repo stores IDs and Called Once"
Josiah Gaskin [Tue, 2 Aug 2011 20:02:07 +0000 (13:02 -0700)]
Merge "ADT Resource Repo stores IDs and Called Once"

12 years agomerge in honeycomb-LTE-release history after reset to honeycomb-LTE
The Android Automerger [Tue, 2 Aug 2011 14:07:00 +0000 (07:07 -0700)]
merge in honeycomb-LTE-release history after reset to honeycomb-LTE

12 years agoAdd a new XML formatter, new options, and format on save
Tor Norbye [Fri, 29 Jul 2011 20:04:31 +0000 (13:04 -0700)]
Add a new XML formatter, new options, and format on save

This changeset adds a custom XML formatter for the Android XML
editors.

There is an option for turning off this formatter and using the
standard XML formatter instead.

The new custom formatter offers the following features:

* By default, it formats files following the Android conventions for
  XML formatting. This means not only that it indents with 4 space
  characters (instead of the Eclipse default of one tab character),
  but it places attributes on a line of their own, it adds blank
  lines in certain places, and so on.

* It sorts attributes (logically, alphabetically, or none)

* It formats files with different styles depending on the context.
  For example, in layout files it always places a single blank line
  between view elements, whereas in manifest files it only places
  blank lines between elements of different types such that for
  example the <uses-permission> elements all form a logical group,
  separated from <uses-sdk> and so on.

  The fact that strings.xml and layout.xml are usually formatted with
  different flavors is one of the reasons setting up the old Eclipse
  XML formatter to do the right thing was not possible.

In addition, there are various user options added to the Editors
preference page where you can tweak the behavior of the formatter,
such as turning off blank lines completely, controlling whether there
is a space before the > or /> closing characters, and you can also
tell the formatter to use Eclipse's indentation setting (indentation
size and whether to use spaces or tabs).

Finally, there is a new "Format on Save" option which behaves just
like Format on Save for Java files: when you press Ctrl-S to save a
file, the XML content will be formatted before the file is saved.

Change-Id: Ic6f05c768ab063b09f6f0248f60fbe8722fb149d

12 years agoADT Resource Repo stores IDs and Called Once
Josiah Gaskin [Mon, 18 Jul 2011 23:54:43 +0000 (16:54 -0700)]
ADT Resource Repo stores IDs and Called Once

This change makes ADT parse out @+id declarations from layout and
menu files and store them in its ResourceRepository. This eliminates
the need to merge in IDs from the generated R.java in order to have
a complete repository of resources.

In order to do this, a new type of ResourceFile is created:
IdGeneratingResourceFile which is used for xml files in menu/ and layout/.
Also includes an IdResourceParser which finds all the declared IDs in an XML.

This change also includes a change to the ResourceMananger to process
raw deltas that can be provided either from the PreCompilerBuilder or from
the GlobalProjectManager. This is to avoid duplicate deltas being passed
to ResourceManager when autobuilding.

Change-Id: I1c705a5f5a01ce7daa3eb76f14bd6cb9e11b5248