OSDN Git Service

android-x86/sdk.git
12 years agoSDK Manager: remember window positions.
Raphael Moll [Tue, 30 Aug 2011 21:26:22 +0000 (14:26 -0700)]
SDK Manager: remember window positions.

Remember window positions & sizes for the
SDK Manager 2 and the AVD Manager 1.
When restoring the windows, make sure they
fit on the visible monitor(s) area.

Also fixed a race condition where closing the
AvdManager1 window would dispose some bitmaps
but it turns out the AVD Manager can be launched
from the SDK Manager and the latter still need
these bitmaps... Hilarity ensues.

Change-Id: I2312e760029bc32561355f557a621d23ec1b6916

12 years agoMove ant project templates files to development.git
Raphael Moll [Tue, 30 Aug 2011 20:29:02 +0000 (13:29 -0700)]
Move ant project templates files to development.git

Change-Id: I5b066d7944d04673d47fa5b9f9cba5b2077a91ad

12 years agoRepository XSD: New <old_paths> in Extra packages.
Raphael Moll [Thu, 25 Aug 2011 06:35:45 +0000 (23:35 -0700)]
Repository XSD: New <old_paths> in Extra packages.

This has some basic unit tests to check the presence
of the new schema, as well as path comparison done
by the ExtraPackage.

Tests for the ArchiveInstaller have been extracted
in a different CL to reduce the clutter here.

Change-Id: Iefadcbf950a56834ff09c0d1ce689411957b666e

12 years agoWindows: look for Java in %ProgramFiles(x86)%.
Raphael Moll [Fri, 26 Aug 2011 21:13:16 +0000 (14:13 -0700)]
Windows: look for Java in %ProgramFiles(x86)%.

Cf bug 19551.

Change-Id: Id5ce9b0e792e7e189f9fc12e0dcfc6a63e0e2704

12 years agosdkman2: don't select Win USB driver on Mac/Linux.
Raphael Moll [Fri, 26 Aug 2011 22:32:01 +0000 (15:32 -0700)]
sdkman2: don't select Win USB driver on Mac/Linux.

This is enforced by making sure we don't select packages
that do not have any archive compatible with the current
platform.

Change-Id: I5a81bbb2e868898c91f2dd77a6c1cb83b191d76a

12 years agomerge from open-source master
The Android Open-Source Project [Tue, 30 Aug 2011 00:54:36 +0000 (17:54 -0700)]
merge from open-source master

Change-Id: I7b7a0174af75b7b37b9f1c5dc0adf39ab5b9d332

12 years agoMerge "Findbugs cleanup in sdkmanager projects"
Raphaël Moll [Mon, 29 Aug 2011 23:52:21 +0000 (16:52 -0700)]
Merge "Findbugs cleanup in sdkmanager projects"

12 years agoFindbugs cleanup in sdkmanager projects
Michael Zoech [Mon, 29 Aug 2011 16:49:56 +0000 (18:49 +0200)]
Findbugs cleanup in sdkmanager projects

Change-Id: Ie9cd51cbec851667954b672a8dadd345aee7a71f

12 years agoMerge "Findbugs cleanup."
Tor Norbye [Mon, 29 Aug 2011 20:54:49 +0000 (13:54 -0700)]
Merge "Findbugs cleanup."

12 years agoFindbugs cleanup.
Tor Norbye [Sun, 28 Aug 2011 03:49:35 +0000 (20:49 -0700)]
Findbugs cleanup.

Change-Id: I82229e75e5a33baa690ea6b0993a4d407713e7e5

12 years agoMerge "SDK Manager: Fix log printf calls."
Raphael Moll [Fri, 26 Aug 2011 21:03:33 +0000 (14:03 -0700)]
Merge "SDK Manager: Fix log printf calls."

12 years agoSDK Manager: Fix log printf calls.
Raphael Moll [Fri, 26 Aug 2011 19:09:08 +0000 (12:09 -0700)]
SDK Manager: Fix log printf calls.

The SDK manager used to have log(String) calls which were
replaced by log(printfFormat, printfArgs..) calls in R12.

In a few places, we pass a string to the printf format that
comes from some user variable or URL or another method and
this string might contain % occurences that should not be
taken as formatters.

Change-Id: Ida29a18ba70d869a4f9d66f1d66edc010d9ec62d

12 years agomerge from open-source master
The Android Open-Source Project [Fri, 26 Aug 2011 19:07:40 +0000 (12:07 -0700)]
merge from open-source master

Change-Id: Ibc17c1b227a6af2ce933040260d9b4a858eeca1d

12 years agoMerge "Ensure prescaled image resources are disposed of"
Tor Norbye [Fri, 26 Aug 2011 19:02:34 +0000 (12:02 -0700)]
Merge "Ensure prescaled image resources are disposed of"

12 years agoEnsure prescaled image resources are disposed of
Tor Norbye [Fri, 26 Aug 2011 18:18:27 +0000 (11:18 -0700)]
Ensure prescaled image resources are disposed of

Change-Id: I25f49c5c30e974839cec5b26dd347737e5f04746

12 years agomerge from open-source master
The Android Open-Source Project [Thu, 25 Aug 2011 01:21:32 +0000 (18:21 -0700)]
merge from open-source master

Change-Id: I1d028cceb58c0a6604961afd4c6912ab63255e7c

12 years agoMerge "Use GridLayout state to determine exact row and column boundaries"
Tor Norbye [Thu, 25 Aug 2011 01:09:06 +0000 (18:09 -0700)]
Merge "Use GridLayout state to determine exact row and column boundaries"

12 years agomerge from open-source master
The Android Open-Source Project [Thu, 25 Aug 2011 01:09:01 +0000 (18:09 -0700)]
merge from open-source master

Change-Id: I1af4b785a3d33d86f34e8abe737051d38a5a5b7a

12 years agoMerge "Add ia32-libs hint on Linux when aapt fails to run"
Tor Norbye [Thu, 25 Aug 2011 01:00:10 +0000 (18:00 -0700)]
Merge "Add ia32-libs hint on Linux when aapt fails to run"

12 years agoAdd ia32-libs hint on Linux when aapt fails to run
Tor Norbye [Wed, 24 Aug 2011 14:24:49 +0000 (07:24 -0700)]
Add ia32-libs hint on Linux when aapt fails to run

I had difficulties getting ADT to work when I tried running it on a 64
bit Linux system.  Aapt couldn't run, even though I verified that it
was there. After searching a bit, I not only found a bunch of forums
talking about this error (and offering pretty complex solutions), it
turns out this is even discussed in the SDK Installation
Troubleshooting guide. The solution is simple: Install 32-bit
libraries using

   sudo apt-get install ia32-libs

This changeset looks for this specific scenario in the aapt error
handler and emits a second error line which suggests that this
solution might be needed.

Change-Id: I453f99df61a198352f2cea4fe5cb7c517eeaf8c8

12 years agomerge from open-source master
The Android Open-Source Project [Thu, 25 Aug 2011 00:56:18 +0000 (17:56 -0700)]
merge from open-source master

Change-Id: I84afb4b4d413abaee005b55fa69ef8aee49326b8

12 years agoMerge "Update changes.txt to reflect ADT 14 work"
Tor Norbye [Thu, 25 Aug 2011 00:55:54 +0000 (17:55 -0700)]
Merge "Update changes.txt to reflect ADT 14 work"

12 years agoMerge "Turn on skip-postcompile-on-save, change asset set name"
Tor Norbye [Thu, 25 Aug 2011 00:54:22 +0000 (17:54 -0700)]
Merge "Turn on skip-postcompile-on-save, change asset set name"

12 years agoMerge "Workaround for Linux painting issue"
Tor Norbye [Thu, 25 Aug 2011 00:50:59 +0000 (17:50 -0700)]
Merge "Workaround for Linux painting issue"

12 years agoTurn on skip-postcompile-on-save, change asset set name
Tor Norbye [Wed, 24 Aug 2011 19:31:49 +0000 (12:31 -0700)]
Turn on skip-postcompile-on-save, change asset set name

This changeset contains a couple of minor but unrelated changes:

(1) Turn on the "Skip packaging and dexing until export or launch"
    option. This option was added in ADT 12 by off by default. This
    turns it on at least for the preview build of ADT 14.

(2) Change the name of the Asset Set (which opens the asset studio
    wizard) to "Android Icon Set" to make it more obvious what it is.

(3) Tweaks some default collection sizes to avoid unnecessary growth
    copies when an SDK is loaded.

Change-Id: Ib2c575c247bbfb45345d0b067e3ea944f8a72d82

12 years agoUpdate changes.txt to reflect ADT 14 work
Tor Norbye [Sat, 20 Aug 2011 02:00:45 +0000 (19:00 -0700)]
Update changes.txt to reflect ADT 14 work

Change-Id: I7d9925cf11b5bba3985ddd68782ded243a0da20a

12 years agomerge from open-source master
The Android Open-Source Project [Wed, 24 Aug 2011 19:26:35 +0000 (12:26 -0700)]
merge from open-source master

Change-Id: I9c1cbeedb23ec54415b364fa221e06cbc91b6249

12 years agoWorkaround for Linux painting issue
Tor Norbye [Wed, 24 Aug 2011 19:04:13 +0000 (12:04 -0700)]
Workaround for Linux painting issue

This fixes:
http://code.google.com/p/android/issues/detail?id=19447

Turns out that on Linux, painting an image with a scale transform can
be extremely expensive - it can take multiple seconds, which makes for
example interactive dragging in a RelativeLayout over a zoomed canvas
appear not to work at all (because in some cases each drag update
takes up to ten seconds).

We rely on scaling image painting when the canvas is zoomed.

To work around this, we "prescale" the images instead: Using the
source AWT image, apply a scale once (whenever the image or the zoom
level has changed), and then store the scaled image as a plain SWT
image which we can then paint on each paint refresh using a normal
(not scaling) image paint.

This change also revealed that during a palette drag, the source image
would get trashed by the palette preview code because the editor XML
model was marked as modified. This is not necessary, so during preview
painting the editor is instructed to ignore XML model updates.

Change-Id: I78f3adb77754d4f9b0daaeeb662d53f1d7ed6042

12 years agoMerge "Remove some more obsolete code. again."
Xavier Ducrohet [Wed, 24 Aug 2011 17:38:09 +0000 (10:38 -0700)]
Merge "Remove some more obsolete code. again."

12 years agoMerge "Rename default.prop/build.prop to project.prop/ant.prop"
Xavier Ducrohet [Wed, 24 Aug 2011 17:38:00 +0000 (10:38 -0700)]
Merge "Rename default.prop/build.prop to project.prop/ant.prop"

12 years agoUse GridLayout state to determine exact row and column boundaries
Tor Norbye [Wed, 24 Aug 2011 03:05:32 +0000 (20:05 -0700)]
Use GridLayout state to determine exact row and column boundaries

This changeset updates the GridLayout support to consider the state of
a rendered GridLayout when deciding where the rows and columns
are. This information is already available in the GridLayout object,
so if one is provided use that data rather than inferring it from the
bounds of the views in each row and column.

This required changing the view rules API a bit to pass the view
objects in to the key entry points (drawing selection, drag & drop and
resize).

Change-Id: If8484f7f7181c65d0a2fdf629ffd515edd05448b

12 years agoMerge "Misc refactoring and test fixes"
Tor Norbye [Wed, 24 Aug 2011 02:57:59 +0000 (19:57 -0700)]
Merge "Misc refactoring and test fixes"

12 years agoRemove some more obsolete code. again.
Xavier Ducrohet [Wed, 24 Aug 2011 01:33:16 +0000 (18:33 -0700)]
Remove some more obsolete code. again.

Change-Id: If15a8521f6efc25e31cf64d984a0279fd3b153e6

12 years agoRename default.prop/build.prop to project.prop/ant.prop
Xavier Ducrohet [Tue, 23 Aug 2011 23:28:21 +0000 (16:28 -0700)]
Rename default.prop/build.prop to project.prop/ant.prop

Opening projects in Eclipse will rename the file and
"android update project" will do the same.

Change-Id: I251881897c251eb07c9704eb9c2448cab47e5b83

12 years agoMerge "Remove more obsolete code."
Xavier Ducrohet [Wed, 24 Aug 2011 01:25:59 +0000 (18:25 -0700)]
Merge "Remove more obsolete code."

12 years agoRemove more obsolete code.
Xavier Ducrohet [Tue, 23 Aug 2011 23:28:59 +0000 (16:28 -0700)]
Remove more obsolete code.

Change-Id: Ib610456aab10991818c18cd01d8680c9dc3ccd14

12 years agoMerge "Make the logcat fifo size user configurable."
Siva Velusamy [Wed, 24 Aug 2011 00:09:21 +0000 (17:09 -0700)]
Merge "Make the logcat fifo size user configurable."

12 years agoMake the logcat fifo size user configurable.
Siva Velusamy [Tue, 23 Aug 2011 16:47:27 +0000 (09:47 -0700)]
Make the logcat fifo size user configurable.

Add a preference where users can set the size of the message list.
Defaults to 1000.

Change-Id: Ia888c3802f07607274bfbdca0ade8fbda009ba55

12 years agomerge from open-source master
The Android Open-Source Project [Tue, 23 Aug 2011 23:27:40 +0000 (16:27 -0700)]
merge from open-source master

Change-Id: Idbf89698ad119d04b8a69f33e97c3d50bb8d56c6

12 years agoMerge "Prevent running debug and release targets at the same time."
Xavier Ducrohet [Tue, 23 Aug 2011 23:23:17 +0000 (16:23 -0700)]
Merge "Prevent running debug and release targets at the same time."

12 years agoMerge "Remove unused export project feature."
Xavier Ducrohet [Tue, 23 Aug 2011 23:22:54 +0000 (16:22 -0700)]
Merge "Remove unused export project feature."

12 years agoPrevent running debug and release targets at the same time.
Xavier Ducrohet [Tue, 23 Aug 2011 22:19:33 +0000 (15:19 -0700)]
Prevent running debug and release targets at the same time.

This is not possible since they rely on the same properties which
cannot be updated after they are set.

Change-Id: I2fbc0f53b656f5906c2b026d8fd41d78a4461803

12 years agoMisc refactoring and test fixes
Tor Norbye [Tue, 23 Aug 2011 00:32:40 +0000 (17:32 -0700)]
Misc refactoring and test fixes

This changeset turns on automatic formatting of the affected regions
in extract include, change layout, wrap in and style refactorings.

It also fixes a couple of minor bugs - one handling empty tags in the
change widget type refactoring, and one handling selection offsets.

It also turns on automatic formatting of GUI editor changes (there was
a previous changeset which prepared for this but forgot to actually
switch the default option.)

This changeset also makes various test infrastructure fixes: code
completion tests recently stopped working for a number of files
(something about the initialization order of editor types when running
as tests).  I also tweaked the goldenfile format of the diffs to avoid
trailing diffs on lines with just a ">" or "<" since gerrit makes thee
light up in red.

Change-Id: I78b858f0b21e5b2f25a9566ad495bad09c66a18f

12 years agoRemove unused export project feature.
Xavier Ducrohet [Tue, 23 Aug 2011 18:29:13 +0000 (11:29 -0700)]
Remove unused export project feature.

Change-Id: Ia40c3ff899c2641ab18c3aaad6edbc0856a0534e

12 years agomerge from open-source master
The Android Open-Source Project [Tue, 23 Aug 2011 18:20:49 +0000 (11:20 -0700)]
merge from open-source master

Change-Id: Ide29dfe8d457e176fe758d3998d73703bf08122b

12 years agoMerge "Use SWT Label's instead of Link's for proper wrap behavior."
Siva Velusamy [Tue, 23 Aug 2011 18:09:14 +0000 (11:09 -0700)]
Merge "Use SWT Label's instead of Link's for proper wrap behavior."

12 years agoUse SWT Label's instead of Link's for proper wrap behavior.
Siva Velusamy [Tue, 23 Aug 2011 17:21:11 +0000 (10:21 -0700)]
Use SWT Label's instead of Link's for proper wrap behavior.

On Mac, Link widgets to not enforce SWT.WRAP style. As a result,
text is just clipped instead of being wrapped. Split the privacy
policy text into two separate components - one with the text, and
one with the link, and use Label's for the longer text content.

Change-Id: Ic667b9ec62c0ce26c43611b97e0bbdc89dbc68d6

12 years agomerge from open-source master
The Android Open-Source Project [Tue, 23 Aug 2011 03:41:39 +0000 (20:41 -0700)]
merge from open-source master

Change-Id: I70b01f87703bcc71cba687fa9b8bbdf75c09a67c

12 years agoMerge "Modify android create/update project to deal with new build.xml"
Xavier Ducrohet [Tue, 23 Aug 2011 03:40:25 +0000 (20:40 -0700)]
Merge "Modify android create/update project to deal with new build.xml"

12 years agoModify android create/update project to deal with new build.xml
Xavier Ducrohet [Tue, 23 Aug 2011 03:10:38 +0000 (20:10 -0700)]
Modify android create/update project to deal with new build.xml

New mechanism to embed a build version into build.xml to figure out
whether the build.xml file is obsolete or not.
Use the version-tag: custom case to prevent erase user modifications.

Fixed some issues with the name of the project (put in build.xml) for
test projects which don't have any activity.

Change-Id: Ib0333d15ca9558fffe24a718e704fcf4176c9014

12 years agomerge from open-source master
The Android Open-Source Project [Tue, 23 Aug 2011 00:17:59 +0000 (17:17 -0700)]
merge from open-source master

Change-Id: I7a0eadee25f111092120e3798ba7463d70742e5e

12 years agoMerge "Open SDK stats dialog from an existing shell."
Siva Velusamy [Tue, 23 Aug 2011 00:06:34 +0000 (17:06 -0700)]
Merge "Open SDK stats dialog from an existing shell."

12 years agomerge from open-source master
The Android Open-Source Project [Mon, 22 Aug 2011 22:33:18 +0000 (15:33 -0700)]
merge from open-source master

Change-Id: I92c4b2b74cc08b1681e9986e89b28943bbd72e1a

12 years agoMerge "Renable test coverage from Ant."
Xavier Ducrohet [Mon, 22 Aug 2011 22:19:57 +0000 (15:19 -0700)]
Merge "Renable test coverage from Ant."

12 years agoRenable test coverage from Ant.
Xavier Ducrohet [Mon, 22 Aug 2011 21:44:50 +0000 (14:44 -0700)]
Renable test coverage from Ant.

Added a warning regarding the requirement of a rooted device.
Also made it so that the test can be run without having to build
and install the packages with just "ant emma test"

Change-Id: Id643b5f56585954b91c9c85c3eb33c4ef31c196a

12 years agoOpen SDK stats dialog from an existing shell.
Siva Velusamy [Mon, 22 Aug 2011 21:10:57 +0000 (14:10 -0700)]
Open SDK stats dialog from an existing shell.

This patch addresses Issue #15267. The primary issue is that the SDK
stats permission dialog was opened from a separate Job, and this
dialog shows up when the user opens the preference page for the
 first time. Since both of them happen to be modal dialogs, the
behavior is inconsistent, and many times results in a blocked UI.

The patch fixes this issue by opening up the stats dialog as a child
of the preference page dialog within ADT, and as a child of a new
shell within DDMS.

Change-Id: I8c9ed9e9bbfac855435690f287b4f60975f336fb

12 years agomerge from open-source master
The Android Open-Source Project [Mon, 22 Aug 2011 18:14:16 +0000 (11:14 -0700)]
merge from open-source master

Change-Id: I3c5dcd5ddc56165a211b8c2f6960d13a583e5e0f

12 years agoMerge "Move the project conversion of bin location from callback to build."
Xavier Ducrohet [Mon, 22 Aug 2011 18:05:25 +0000 (11:05 -0700)]
Merge "Move the project conversion of bin location from callback to build."

12 years agoMerge "Change how to find adb."
Bill Napier [Mon, 22 Aug 2011 18:02:15 +0000 (11:02 -0700)]
Merge "Change how to find adb."

12 years agoMerge "Fix CastClassException by using the right class."
Bill Napier [Mon, 22 Aug 2011 18:02:05 +0000 (11:02 -0700)]
Merge "Fix CastClassException by using the right class."

12 years agomerge from open-source master
The Android Open-Source Project [Mon, 22 Aug 2011 18:01:05 +0000 (11:01 -0700)]
merge from open-source master

Change-Id: I0910a47ff7fcce5d5983092b10389f0eefc8bf59

12 years agoMerge "Change way we report Eclipse version in stat ping."
Raphael Moll [Mon, 22 Aug 2011 17:54:12 +0000 (10:54 -0700)]
Merge "Change way we report Eclipse version in stat ping."

12 years agoChange how to find adb.
Bill Napier [Mon, 22 Aug 2011 17:21:52 +0000 (10:21 -0700)]
Change how to find adb.

This method is aligned with how hierarchyviewer2 finds adb.

Change-Id: I56a5a12e3e6ff592748a3afee18299d16066a537

12 years agoFix CastClassException by using the right class.
Bill Napier [Mon, 22 Aug 2011 17:21:27 +0000 (10:21 -0700)]
Fix CastClassException by using the right class.

Change-Id: I691ded197cfb47acfa1da12f48f6d7e50254bbc9

12 years agomerge from open-source master
The Android Open-Source Project [Mon, 22 Aug 2011 00:27:15 +0000 (17:27 -0700)]
merge from open-source master

Change-Id: I9aae81e2cc340af52f056712645650085c785a45

12 years agoMerge "Make variable/method names consistent."
Siva Velusamy [Sun, 21 Aug 2011 23:38:49 +0000 (16:38 -0700)]
Merge "Make variable/method names consistent."

12 years agoChange way we report Eclipse version in stat ping.
Raphael Moll [Sat, 20 Aug 2011 03:19:38 +0000 (20:19 -0700)]
Change way we report Eclipse version in stat ping.

This reverts the way Change I14dba0dd was sending
the Eclipse version. Instead of passing a new attribute,
we reuse the existing "app=>version" format, with a
specific app name of "eclipse". Since versions are
reformated in 4 parts, it will report something like
"3.5.0.0" (only major+minor and 2 zero sub parts).
We don't send more details than that (e.g. Milestones).

Change-Id: Id01e3ed6b96ea4ce4e1b4f643d08a050291a6e7b

12 years agomerge from open-source master
The Android Open-Source Project [Sat, 20 Aug 2011 01:01:51 +0000 (18:01 -0700)]
merge from open-source master

Change-Id: Ie211077d3db24be46ea19af95eccce8d8669e829

12 years agoMerge "Add Unwrap Refactoring"
Tor Norbye [Sat, 20 Aug 2011 00:58:27 +0000 (17:58 -0700)]
Merge "Add Unwrap Refactoring"

12 years agoAdd Unwrap Refactoring
Tor Norbye [Thu, 18 Aug 2011 16:31:12 +0000 (09:31 -0700)]
Add Unwrap Refactoring

This changeset adds a new visual refactoring: "Remove Container". This
is basically the reverse of the "Wrap In" refactoring (which surrounds
the selected views with a new parent layout). Instead it takes a
parent and removes it, in the process transferring the namespace
declaration (if a root element) and any layout params to the children.

Change-Id: Id535b88fcf39a8b7a83fd6feb981fff000140e8a

12 years agomerge from open-source master
The Android Open-Source Project [Fri, 19 Aug 2011 23:57:54 +0000 (16:57 -0700)]
merge from open-source master

Change-Id: I5c04b744e1dca917fec73c61110c6eecce58718b

12 years agomerge from open-source master
The Android Open-Source Project [Fri, 19 Aug 2011 23:44:59 +0000 (16:44 -0700)]
merge from open-source master

Change-Id: Ib5266e2b1538057f5859ec61ee8f3c4531acfa32

12 years agoMerge "Layout editor property menu improvements"
Tor Norbye [Fri, 19 Aug 2011 23:44:38 +0000 (16:44 -0700)]
Merge "Layout editor property menu improvements"

12 years agoLayout editor property menu improvements
Tor Norbye [Mon, 15 Aug 2011 23:38:30 +0000 (16:38 -0700)]
Layout editor property menu improvements

This changeset adds two forms of view attribute metadata:
* First, it records the most commonly used attributes for each
  view. This was determined by gathering statistics on as many layout
  files as I could find and then picking those that are used 10% or
  more.

* Second, it records in the attribute metadata which View defines a
  given attribute.

The context menu uses the above information to present the available
attributes in several ways:

* In the top level menu, where we had "Edit ID", and if applicable
  "Edit Text", it now lists the top attributes instead. For example,
  for a RatingBar the first handful of menu options are "Edit ID...",
  "Edit NumStars...", "Edit StepSize...", "Edit Style..." and
  "IsIndicator" (a boolean pull-right menu).

  Incidentally this automatically handles some cases which were
  manually handled before, so the code in LinearLayoutRule to add an
  "Orientation" menu is no longer needed; it's just one of the two
  common attributes handled by the new attribute list.

* The "Properties" menu is now called "Other Properties", and instead
  of showing all properties, it has a new level of menus:

  * "Recent". This is initially empty, but as you edit other attributes,
    it gets populated (in most recently used order, kept up to date)
    with recently edited properties.

  * One submenu for each defining View super class listing exactly
    the attributes defined by that view. This is useful for browsing
    and editing related attributes. If you are looking at a textual
    view like a Button for example, you can look at the "TextView"
    menu to find all the text related options (TextColor, TextSize,
    etc).  These menus are listed from the nearest to the further
    superclass, so for example if you right click on a CalendarView
    you'll see these menus:

       Recent                     >
       ----------------------------
       Defined by CalendarView    >
       Inherited from FrameLayout >
       Inherited from ViewGroup   >
       Inherited from View        >
       ----------------------------
       Layout Parameters          >
       ----------------------------
       All By Name                >

  * As you can see from the above, there are two more menus below the
    inherited menu items. "Layout Parameters" lists all the layout
    parameters available for the selected nodes (which is defined not
    by the view itself but the view that it is contained within).  And
    finally there is "All By Name", which is a complete menu
    containing all available attributes for the view (and this is what
    the Properties menu used to contain).

* The code which computes a display name from an attribute was also
  tweaked to capitalize not just the first letter but any first word
  letter, so for example when you look at the possible values for
  Gravity you now see "Clip Vertical" instead of "Clip vertical".

* The edit property dialog for the properties menus now uses @string
  or @style resource choosers for the text, hint and style attributes
  (used to just be a plain text box.)

Change-Id: I3b30d48b85fd13f0190c760756bf383a47b3f4a5

12 years agoMerge "Fix and turn on the auto-format XML option"
Tor Norbye [Fri, 19 Aug 2011 23:37:30 +0000 (16:37 -0700)]
Merge "Fix and turn on the auto-format XML option"

12 years agoFix and turn on the auto-format XML option
Tor Norbye [Fri, 12 Aug 2011 21:55:31 +0000 (14:55 -0700)]
Fix and turn on the auto-format XML option

This changeset turns on the option to "Automatically format the XML
edited by the visual layout editor" by default.

It also fixes several issues related to it:

- First, the auto-format code was previously hooked up to synchronous
  insert and delete node events, which meant during a larger edit it
  would apply formatting repeatedly and before the edit was complete
  (which made the DOM model keep reparsing to update document based
  back into its internal model).

- Another problem was that the auto format only applied to added and
  removed nodes; attribute edits were not considered (which made sense
  given that the old formatter did not support reordering of
  attributes, but now that it does attribute changes requires
  reformatting as well.)

- The old reformatter was trying to work with the Eclipse XML
  formatter, which does not handle partial document formats well
  (there were a bunch of workarounds, and even with those there were
  some problems). The new formatter does not, so I've changed the
  option to be tied to the custom formatter; the automatic formatting
  of layout editor changes is now enabled only when the custom editor
  is enabled.

  This also takes advantage of the new formatter's ability to only
  format the attributes section of a document, so if you just tweak
  the attribute of a node, the children's formatting is not affected.

- The formatter would apply to more than just the layout editor; any
  UI editor which used UiElementNodes would be affected. I've added a
  method, by default false, where each UI editor can opt into this.
  I'd like to get Raphael's feedback on the manifest editor before
  possibly adding it for that editor as well (and updating the option
  name to something more generic).

- The mechanism for ignoring XML document changes (already used for
  refactoring) is now also connected to reformatting, so when the
  formatter runs it sets an "ignore" flag such that there is no
  second XML model loading when the changes are just as a result
  of a formatting option.

This changeset also tweaks the formatting behavior of comments;
instead of -always- adding a blank line before line comments (other
than suffix comments), it now considers the previous document and
preserves the spacing used there (though it will collapse multiple
lines into one).

Change-Id: I04c2b80836c4d9874dca789c2f2cbc8c8c7cfa76

12 years agoMake variable/method names consistent.
Siva Velusamy [Fri, 19 Aug 2011 22:58:09 +0000 (15:58 -0700)]
Make variable/method names consistent.

Always use mixed case for pid: change PID to Pid.
Rename getPidString() to getPid().
All changes are syntactical only..

Change-Id: I85309d46ff1a14510271f6402debdc1e17747928

12 years agomerge from open-source master
The Android Open-Source Project [Fri, 19 Aug 2011 22:52:25 +0000 (15:52 -0700)]
merge from open-source master

Change-Id: I41fe3c13cb26bedd2fae87a423b6d2fe2850fa02

12 years agoMerge "Add support for filtering by application name."
Siva Velusamy [Fri, 19 Aug 2011 22:47:23 +0000 (15:47 -0700)]
Merge "Add support for filtering by application name."

12 years agoMerge "Store source application name in logcat messages."
Siva Velusamy [Fri, 19 Aug 2011 22:45:54 +0000 (15:45 -0700)]
Merge "Store source application name in logcat messages."

12 years agomerge from open-source master
The Android Open-Source Project [Fri, 19 Aug 2011 22:21:00 +0000 (15:21 -0700)]
merge from open-source master

Change-Id: I3cb18c62f34106462465d4e23c1d522fec6cce4b

12 years agoMerge "Avoid multiple R.java parsings"
Josiah Gaskin [Fri, 19 Aug 2011 22:08:18 +0000 (15:08 -0700)]
Merge "Avoid multiple R.java parsings"

12 years agoAvoid multiple R.java parsings
Josiah Gaskin [Fri, 19 Aug 2011 21:56:23 +0000 (14:56 -0700)]
Avoid multiple R.java parsings

This change lets CompiledResourceMonitor avoid multiple
parsings of the same R.java file when reacting to a compilation
of a project that has libraries by adding a better filtering
check for which file changes it reacts to.

Change-Id: I611c581200df3237217f8426d976c859d8848ade

12 years agoAdd support for filtering by application name.
Siva Velusamy [Fri, 19 Aug 2011 18:13:54 +0000 (11:13 -0700)]
Add support for filtering by application name.

Change-Id: I07be20ac89108c181cfb2793c90f5cf697a304e2

12 years agoStore source application name in logcat messages.
Siva Velusamy [Thu, 18 Aug 2011 00:40:04 +0000 (17:40 -0700)]
Store source application name in logcat messages.

logcat only provides the pid of the application that generated the
message. Map the pid back to the application's name, and store it
in the parsed logcat message.

Modify the logcat view to display the app name in addition to the pid.

Change-Id: I939ed9ca2389412473dc614bd2e0e1d302295924

12 years agomerge from open-source master
The Android Open-Source Project [Fri, 19 Aug 2011 21:55:30 +0000 (14:55 -0700)]
merge from open-source master

Change-Id: Ia5af1aa8b8a84f07c554c9fec6730bca5386f1bd

12 years agoMerge "Dispose of font properly."
Siva Velusamy [Fri, 19 Aug 2011 21:50:50 +0000 (14:50 -0700)]
Merge "Dispose of font properly."

12 years agomerge from open-source master
The Android Open-Source Project [Fri, 19 Aug 2011 21:25:56 +0000 (14:25 -0700)]
merge from open-source master

Change-Id: I8d3fd5987dbc8b13e1a22cabaed22dd053ce2366

12 years agoDispose of font properly.
Siva Velusamy [Thu, 18 Aug 2011 23:18:41 +0000 (16:18 -0700)]
Dispose of font properly.

Change-Id: Ic00711ebfe13c9f4674e0570bd3dd28f35127d62

12 years agoMerge "Add support for Select All and Copy to Clipboard actions."
Siva Velusamy [Fri, 19 Aug 2011 21:19:35 +0000 (14:19 -0700)]
Merge "Add support for Select All and Copy to Clipboard actions."

12 years agoMerge "Wrap messages based on font size and col width."
Siva Velusamy [Fri, 19 Aug 2011 21:19:19 +0000 (14:19 -0700)]
Merge "Wrap messages based on font size and col width."

12 years agomerge from open-source master
The Android Open-Source Project [Fri, 19 Aug 2011 20:56:35 +0000 (13:56 -0700)]
merge from open-source master

Change-Id: I8e6b7ae4ff179cc35c5de186f48e0551123247e3

12 years agoMerge "Make smart indent handle whitespace indentation better"
Tor Norbye [Fri, 19 Aug 2011 20:48:01 +0000 (13:48 -0700)]
Merge "Make smart indent handle whitespace indentation better"

12 years agoMake smart indent handle whitespace indentation better
Tor Norbye [Fri, 19 Aug 2011 17:54:35 +0000 (10:54 -0700)]
Make smart indent handle whitespace indentation better

The smart indent implementation handles indenting within element
content (e.g.  between tag names and attributes) and at element
boundaries (e.g. before and after <>'s.) For other parts of the
document it just defaulted to the normal XML smart indent.

However, this includes handling newlines within blank space.  This
changeset adds special handling for some key scenarios:

Indent the newly inserted line depending on the surrounding context:

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

Also subtract whitespace on the right hand side of the cursor when
necessary:

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

There are some other cases as well, described in the unit tests.

Change-Id: I8e679800fe56cae598f430b6f6de409309407708

12 years agomerge from open-source master
The Android Open-Source Project [Fri, 19 Aug 2011 20:43:59 +0000 (13:43 -0700)]
merge from open-source master

Change-Id: I9a4617f38dc5213ad4c583809d22bc53fa87c5a4

12 years agomerge from open-source master
The Android Open-Source Project [Fri, 19 Aug 2011 20:31:15 +0000 (13:31 -0700)]
merge from open-source master

Change-Id: Ic87ab32b9c6804087a3eecfb9c4c61ba41dc3be9

12 years agoMerge "Fix failure when non-ASCII characters encountered."
Xavier Ducrohet [Fri, 19 Aug 2011 20:30:52 +0000 (13:30 -0700)]
Merge "Fix failure when non-ASCII characters encountered."

12 years agoMerge "Fix issue 19057: Drag & drop within canvas broken on Linux"
Tor Norbye [Fri, 19 Aug 2011 20:21:45 +0000 (13:21 -0700)]
Merge "Fix issue 19057: Drag & drop within canvas broken on Linux"

12 years agoFix issue 19057: Drag & drop within canvas broken on Linux
Tor Norbye [Fri, 19 Aug 2011 19:02:08 +0000 (12:02 -0700)]
Fix issue 19057: Drag & drop within canvas broken on Linux

This changeset fixes
  http://code.google.com/p/android/issues/detail?id=19057

by working around the fact that on some Linux/SWT versions, mouse up
events are delivered during a drag and drop. These events would
interfere with the normal drag & drop machinery. Luckily we can tell
whether or not we're in the middle of a drag & drop operation, and if
so ignore the mouse up event completely.

Change-Id: I183e0b5e360865724b87cc200e1899a2b31cc2ef

12 years agomerge from open-source master
The Android Open-Source Project [Fri, 19 Aug 2011 05:08:47 +0000 (22:08 -0700)]
merge from open-source master

Change-Id: I53dfece757737196cf3b07f9d02852897fe95ae5