OSDN Git Service

android-x86/sdk.git
13 years agoMerge "Integrate 522e6dbb into tools_r9" into tools_r9
Xavier Ducrohet [Fri, 10 Dec 2010 20:21:33 +0000 (12:21 -0800)]
Merge "Integrate 522e6dbb into tools_r9" into tools_r9

13 years agoMerge "Integrate b283eb12 into tools_r9." into tools_r9
Xavier Ducrohet [Fri, 10 Dec 2010 20:21:19 +0000 (12:21 -0800)]
Merge "Integrate b283eb12 into tools_r9." into tools_r9

13 years agoIntegrate 522e6dbb into tools_r9
Xavier Ducrohet [Thu, 9 Dec 2010 00:44:57 +0000 (16:44 -0800)]
Integrate 522e6dbb into tools_r9

Add swingworker back to the sdk.

Needed by draw9patch

Change-Id: I87fd6085e427ea362ce46ba16e51a69433dcc6d6

13 years agoIntegrate b283eb12 into tools_r9.
Xavier Ducrohet [Thu, 9 Dec 2010 01:32:19 +0000 (17:32 -0800)]
Integrate b283eb12 into tools_r9.

Add Ant version check in setup task.

Change-Id: I744a717942746caf03c646deffc1d7271b1d5cc9

13 years agoMerge "Display output error in the exception's toString.." into tools_r8
Xavier Ducrohet [Tue, 7 Dec 2010 04:35:03 +0000 (20:35 -0800)]
Merge "Display output error in the exception's toString.." into tools_r8

13 years agoMerge "Improved error message during export." into tools_r8
Xavier Ducrohet [Tue, 7 Dec 2010 04:34:26 +0000 (20:34 -0800)]
Merge "Improved error message during export." into tools_r8

13 years agoDisplay output error in the exception's toString..
Raphael Moll [Tue, 7 Dec 2010 04:32:05 +0000 (20:32 -0800)]
Display output error in the exception's toString..

Change-Id: I050a663fc760f0b0c98a7d8dbcfa141168e30030

13 years agoImproved error message during export.
Xavier Ducrohet [Tue, 7 Dec 2010 04:23:28 +0000 (20:23 -0800)]
Improved error message during export.

Change-Id: Idb9981348df22e73de3f3d2a72de50a392115cc4

13 years agoMerge "Move ADT to 8.0.1. DO NOT MERGE." into tools_r8
Xavier Ducrohet [Tue, 7 Dec 2010 01:09:30 +0000 (17:09 -0800)]
Merge "Move ADT to 8.0.1. DO NOT MERGE." into tools_r8

13 years agoMove ADT to 8.0.1. DO NOT MERGE.
Xavier Ducrohet [Tue, 7 Dec 2010 01:03:26 +0000 (17:03 -0800)]
Move ADT to 8.0.1. DO NOT MERGE.

Change-Id: I6799193d90ede08e37d18c6e4974bd3abcef7d32

13 years agoMerge "cherry pick: Fix issue with referenced Java Project." into tools_r8
Xavier Ducrohet [Tue, 7 Dec 2010 01:00:14 +0000 (17:00 -0800)]
Merge "cherry pick: Fix issue with referenced Java Project." into tools_r8

13 years agocherry pick: Fix issue with referenced Java Project.
Xavier Ducrohet [Tue, 7 Dec 2010 00:23:25 +0000 (16:23 -0800)]
cherry pick: Fix issue with referenced Java Project.

Also improve slightly DX error reporting.

This is cherry-picked from master.

Change-Id: Iaaca9625575d87a607b21bf81636315820d76c2c

13 years agoMerge "Win SDK: Split the win-sdk makefile and script into 2 parts. DO NOT MERGE...
Raphael Moll [Mon, 29 Nov 2010 23:07:35 +0000 (15:07 -0800)]
Merge "Win SDK: Split the win-sdk makefile and script into 2 parts. DO NOT MERGE." into tools_r8

13 years agoWin SDK: Split the win-sdk makefile and script into 2 parts. DO NOT MERGE.
Raphael Moll [Fri, 12 Nov 2010 00:03:07 +0000 (16:03 -0800)]
Win SDK: Split the win-sdk makefile and script into 2 parts. DO NOT MERGE.

[Merge Change Ic94d261b from master_open into tools_r8 to fix broken SDK build.]

The main makefile+scripts to build the Windows SDK is still
in development/build/tools. However it defers to a new
matching set of files here in sdk/build to build and
package things that depend on the sdk.git or external/qemu.git.

This will make it easier for us to prepare SDKs based on
a tools_rN branch that isn't cut at the same time than the
platform branch.

This is a multi-part changeset. The other part is in
development.git.

Change-Id: I8072bf59ee1af57826a8bafa0103afd6fe3fc858

13 years agoMerge "Fix HV.bat for swt layout issue." into tools_r8
Xavier Ducrohet [Wed, 17 Nov 2010 20:08:09 +0000 (12:08 -0800)]
Merge "Fix HV.bat for swt layout issue." into tools_r8

13 years agoFix HV.bat for swt layout issue.
Raphael Moll [Wed, 17 Nov 2010 18:24:38 +0000 (10:24 -0800)]
Fix HV.bat for swt layout issue.

SDK Bug 3185449

Change-Id: I88dfaeb287fdef5cf82a0bc3da286c6c4493f910

13 years agoMerge "ADT tools location: traceview is a .bat" into tools_r8
Jean-Baptiste Queru [Tue, 16 Nov 2010 17:50:05 +0000 (09:50 -0800)]
Merge "ADT tools location: traceview is a .bat" into tools_r8

13 years agoADT tools location: traceview is a .bat
Raphael Moll [Sat, 13 Nov 2010 20:04:10 +0000 (12:04 -0800)]
ADT tools location: traceview is a .bat

This prevents adb from starting under windows, since
adt is trying to verify the presence of traceview.exe
when it's actually traceview.bat.

Change-Id: I259d90adb17b0b91beb114319cf88392812fc264

13 years agoMerge "Change the adbLocation ddms extension to provide more tools location." into...
Xavier Ducrohet [Fri, 12 Nov 2010 01:47:27 +0000 (17:47 -0800)]
Merge "Change the adbLocation ddms extension to provide more tools location." into tools_r8

13 years agoChange the adbLocation ddms extension to provide more tools location.
Xavier Ducrohet [Thu, 11 Nov 2010 23:49:31 +0000 (15:49 -0800)]
Change the adbLocation ddms extension to provide more tools location.

Previously DDMS used the adb location to find the location of other tools,
but adb moved to a different tool folder.

adbLocator extension changed to toolsLocation and provide explicit
locations for all the tools DDMS cares about. This way the logic
of the tools location is only in ADT instead of being duplicated
in DDMS.

Change-Id: I87f19c7705cb822dc793264f11e680ba09eb7f40

13 years agoMerge "SDK Repo Schema: <vendor> for <extra> elements." into tools_r8
Raphael Moll [Thu, 4 Nov 2010 19:51:44 +0000 (12:51 -0700)]
Merge "SDK Repo Schema: <vendor> for <extra> elements." into tools_r8

13 years agoSDK Repo Schema: <vendor> for <extra> elements.
Raphael Moll [Wed, 3 Nov 2010 21:12:47 +0000 (14:12 -0700)]
SDK Repo Schema: <vendor> for <extra> elements.

Change-Id: I8fa13d28b787e3ecb8bd96896e6410313e2a66a9

13 years agoMerge "SDK Manager: fix suggestions of new platforms." into tools_r8
Raphael Moll [Sat, 30 Oct 2010 00:03:27 +0000 (17:03 -0700)]
Merge "SDK Manager: fix suggestions of new platforms." into tools_r8

13 years agoSDK Manager: fix suggestions of new platforms.
Raphael Moll [Thu, 28 Oct 2010 23:41:49 +0000 (16:41 -0700)]
SDK Manager: fix suggestions of new platforms.

I accidentally broke the way the SDK Manager was suggesting
new platforms when I "optimized" the way it was fetching new
sources when resolving dependencies. The fix is that even if
we don't need to refresh or fetch a source, we still need to
report the packages we know it contains.

Also made the Archive and ArchiveInfo implement Comparable
and defer their comparison to the one of Package. This way
we can sort the archives in the install window.

Change-Id: Ic3b39e49e8143541b19b00de09468c1b3f01b0d7

13 years agoMerge "ADT: support synthetic parent chains in attrs_manifest.xml" into tools_r8
Raphael Moll [Thu, 28 Oct 2010 00:36:59 +0000 (17:36 -0700)]
Merge "ADT: support synthetic parent chains in attrs_manifest.xml" into tools_r8

13 years agoMerge "Fix adb location in ant rules." into tools_r8
Xavier Ducrohet [Wed, 27 Oct 2010 23:44:12 +0000 (16:44 -0700)]
Merge "Fix adb location in ant rules." into tools_r8

13 years agoFix adb location in ant rules.
Xavier Ducrohet [Wed, 27 Oct 2010 22:31:57 +0000 (15:31 -0700)]
Fix adb location in ant rules.

Change-Id: Ia8188de0b8af0ec4474f5c4ca2cec294c077e03f

13 years agoADT: support synthetic parent chains in attrs_manifest.xml
Raphael Moll [Wed, 27 Oct 2010 22:28:02 +0000 (15:28 -0700)]
ADT: support synthetic parent chains in attrs_manifest.xml

SDK Bug: 3125910

Change-Id: I00450b13d10cbe4f32cbfbd6e1945985b599920f

13 years agoMerge "Fix resource issues in ADT." into tools_r8
Xavier Ducrohet [Wed, 27 Oct 2010 22:21:36 +0000 (15:21 -0700)]
Merge "Fix resource issues in ADT." into tools_r8

13 years agoMerge "ADT: Separate manifest test for AttrsXmlParser." into tools_r8
Raphael Moll [Wed, 27 Oct 2010 22:13:23 +0000 (15:13 -0700)]
Merge "ADT: Separate manifest test for AttrsXmlParser." into tools_r8

13 years agoFix resource issues in ADT.
Raphael [Thu, 12 Aug 2010 02:33:42 +0000 (19:33 -0700)]
Fix resource issues in ADT.

Change-Id: I744833ec03d0d379ea526c193549f99f25f6811a

13 years agoADT: Separate manifest test for AttrsXmlParser.
Raphael Moll [Mon, 25 Oct 2010 19:37:31 +0000 (12:37 -0700)]
ADT: Separate manifest test for AttrsXmlParser.

Change-Id: I8ea1a31fd7db849fffb9043c58a91f82444d98d4

13 years agoMerge "ADT: Fix display of unknown Manifest elements." into tools_r8
Raphael Moll [Wed, 27 Oct 2010 17:13:51 +0000 (10:13 -0700)]
Merge "ADT: Fix display of unknown Manifest elements." into tools_r8

13 years agoADT: Fix display of unknown Manifest elements.
Raphael Moll [Wed, 27 Oct 2010 17:05:54 +0000 (10:05 -0700)]
ADT: Fix display of unknown Manifest elements.

SDK Bug: 3135772

Change-Id: I4f7c84c20b31e70db20a202f168158d500b3c09d

13 years agoMerge "ADT: Exclude <include> tag from the GLE palette." into tools_r8
Raphael Moll [Wed, 27 Oct 2010 05:20:16 +0000 (22:20 -0700)]
Merge "ADT: Exclude <include> tag from the GLE palette." into tools_r8

13 years agoADT: Exclude <include> tag from the GLE palette.
Raphael Moll [Tue, 26 Oct 2010 23:18:45 +0000 (16:18 -0700)]
ADT: Exclude <include> tag from the GLE palette.

Change-Id: Ia318556bc88a823fb6eae9048634c824524f3b90

13 years agoMerge "SDK: Fixed proguard.bat & co." into tools_r8
Raphael Moll [Tue, 26 Oct 2010 18:21:13 +0000 (11:21 -0700)]
Merge "SDK: Fixed proguard.bat & co." into tools_r8

13 years agoMerge "ADT: fixes to make Proguard work under Windows." into tools_r8
Raphael Moll [Tue, 26 Oct 2010 18:21:07 +0000 (11:21 -0700)]
Merge "ADT: fixes to make Proguard work under Windows." into tools_r8

13 years agoSDK: Fixed proguard.bat & co.
Raphael Moll [Mon, 25 Oct 2010 21:27:23 +0000 (14:27 -0700)]
SDK: Fixed proguard.bat & co.

These are similar to the external/proguard/bin/*.bat
except they use $SDK/tools/lib/find_java.bat to locate the
java location and use it if available. find_java will print
a proeminent error if java cannot be found.

Change-Id: I1fceae838436053031f405de9b3f1ab2d64222e6

13 years agoADT: fixes to make Proguard work under Windows.
Raphael Moll [Mon, 25 Oct 2010 20:28:07 +0000 (13:28 -0700)]
ADT: fixes to make Proguard work under Windows.

- the proguard.bat can only pass 9 args, but we have 15+, so
  we'll use a temporary proguard config file for Windows.

- PROGUARD_HOME needs to be defined properly since the default
  proguard.bat cannot infer it properly. We need other fixes
  to that batch file so eventually we're not going to ship the
  default one and we can fix the .bat file, but properly defining
  this env var is probably a good idea anyway.

Change-Id: Id007d5504a5e05d1c4b5a0728e96e0d677978ef4

13 years agoMerge "Fix external jar support when building with proguard." into tools_r8
Xavier Ducrohet [Mon, 25 Oct 2010 22:20:52 +0000 (15:20 -0700)]
Merge "Fix external jar support when building with proguard." into tools_r8

13 years agoFix external jar support when building with proguard.
Xavier Ducrohet [Mon, 25 Oct 2010 21:24:09 +0000 (14:24 -0700)]
Fix external jar support when building with proguard.

Change-Id: I3dafb284770f475d70a212cbe22cdae6bff36ff7

13 years agoMerge "Remove temporary disabling of proguard during ADT export." into tools_r8
Xavier Ducrohet [Fri, 22 Oct 2010 17:54:16 +0000 (10:54 -0700)]
Merge "Remove temporary disabling of proguard during ADT export." into tools_r8

13 years agoRemove temporary disabling of proguard during ADT export.
Xavier Ducrohet [Fri, 22 Oct 2010 17:53:21 +0000 (10:53 -0700)]
Remove temporary disabling of proguard during ADT export.

Change-Id: Iadff55b838b7317f9dcc518d5246a2889f7a5f39

13 years agoMerge "Workaround failure to collect test info for large test suites." into tools_r8
Xavier Ducrohet [Fri, 22 Oct 2010 01:20:48 +0000 (18:20 -0700)]
Merge "Workaround failure to collect test info for large test suites." into tools_r8

13 years agoMerge "Integrate 6db57208 into tools_r8. DO NOT MERGE." into tools_r8
Xavier Ducrohet [Wed, 20 Oct 2010 20:24:06 +0000 (13:24 -0700)]
Merge "Integrate 6db57208 into tools_r8. DO NOT MERGE." into tools_r8

13 years agoMerge "Integrate 5397067d into tools_r8. DO NOT MERGE." into tools_r8
Xavier Ducrohet [Wed, 20 Oct 2010 20:23:48 +0000 (13:23 -0700)]
Merge "Integrate 5397067d into tools_r8. DO NOT MERGE." into tools_r8

13 years agoMerge "Integrate 17398174 into tools_r8. DO NOT MERGE." into tools_r8
Xavier Ducrohet [Wed, 20 Oct 2010 20:23:41 +0000 (13:23 -0700)]
Merge "Integrate 17398174 into tools_r8. DO NOT MERGE." into tools_r8

13 years agoIntegrate 6db57208 into tools_r8. DO NOT MERGE.
Bill Napier [Mon, 18 Oct 2010 07:00:20 +0000 (00:00 -0700)]
Integrate 6db57208 into tools_r8. DO NOT MERGE.

Initial cut at MonkeyRecorder.

MonkeyRecorder (and MonkeyPlayback) are a set of tools for using MonkeyRunner to record and playback actions.  The current implementation is not very sophisticated, but it works.

Please don't review yet.  Needs a lot of style cleanup.

Change-Id: I79ed1b548d295563a184af5fb945140f93586b17

13 years agoIntegrate 5397067d into tools_r8. DO NOT MERGE.
Bill Napier [Sun, 17 Oct 2010 22:47:04 +0000 (15:47 -0700)]
Integrate 5397067d into tools_r8. DO NOT MERGE.

Fix field visibility by ensuring they stay in __dict__.

Change-Id: I2e93dd4ba8c8cc3f05ca477091932268ec5d78da

13 years agoIntegrate 17398174 into tools_r8. DO NOT MERGE.
Bill Napier [Mon, 18 Oct 2010 20:42:29 +0000 (13:42 -0700)]
Integrate 17398174 into tools_r8. DO NOT MERGE.

Make MonkeyRunner's adb finding more robust.

This includes fixes for running out of the SDK.

Change-Id: Ie73ccd391b34f8a75f23738a97c42902f91af841

13 years agoMerge "Gen folder should not be derived." into tools_r8
Xavier Ducrohet [Wed, 20 Oct 2010 20:06:40 +0000 (13:06 -0700)]
Merge "Gen folder should not be derived." into tools_r8

13 years agoGen folder should not be derived.
Xavier Ducrohet [Wed, 20 Oct 2010 18:51:59 +0000 (11:51 -0700)]
Gen folder should not be derived.

This fix the issue where gen is not present after project
creation (it was actually created then deleted as part of a clean
up phase)

Change-Id: I25cd67c076ed401b482d97292640c08a2a7a5830

13 years agoWorkaround failure to collect test info for large test suites.
Brett Chabot [Wed, 20 Oct 2010 03:02:52 +0000 (20:02 -0700)]
Workaround failure to collect test info for large test suites.

Add a small delay between tests when collecting test info.

Bug 1796494

Change-Id: I57061d7a21f8c8517c03101e28a3de82cdd61cd8

13 years agoMerge "Integrate 9174add7 into tools_r8. DO NOT MERGE" into tools_r8
Xavier Ducrohet [Tue, 19 Oct 2010 20:07:31 +0000 (13:07 -0700)]
Merge "Integrate 9174add7 into tools_r8. DO NOT MERGE" into tools_r8

13 years agoMerge "Integrate 5b6aa7d0 into tools_r8. DO NOT MERGE." into tools_r8
Xavier Ducrohet [Tue, 19 Oct 2010 20:07:15 +0000 (13:07 -0700)]
Merge "Integrate 5b6aa7d0 into tools_r8. DO NOT MERGE." into tools_r8

13 years agoIntegrate 9174add7 into tools_r8. DO NOT MERGE
Raphael Moll [Tue, 19 Oct 2010 19:08:26 +0000 (12:08 -0700)]
Integrate 9174add7 into tools_r8. DO NOT MERGE

SDK Manager fix: message to restart after tools update.

The latest CL made this appear after a platform-tools update instead.

Change-Id: Ib52cf88adfb1557c112c3a8153dad536c5932fa3

13 years agoIntegrate 5b6aa7d0 into tools_r8. DO NOT MERGE.
Raphael Moll [Tue, 19 Oct 2010 19:00:07 +0000 (12:00 -0700)]
Integrate 5b6aa7d0 into tools_r8. DO NOT MERGE.

SDK Manager: addon schema version number in about box.

Change-Id: I35d4e1db042282e269e3d1247d36ffa0e44291d5

13 years agoMerge "Integrate 13f4bf0d into Tools_r8. DO NOT MERGE." into tools_r8
Xavier Ducrohet [Tue, 19 Oct 2010 00:46:33 +0000 (17:46 -0700)]
Merge "Integrate 13f4bf0d into Tools_r8. DO NOT MERGE." into tools_r8

13 years agoIntegrate 13f4bf0d into Tools_r8. DO NOT MERGE.
Tor Norbye [Mon, 18 Oct 2010 23:19:01 +0000 (16:19 -0700)]
Integrate 13f4bf0d into Tools_r8. DO NOT MERGE.

Fix bug in LinearLayout handling of last lines

This fixes a bug where the insert-line for the last position is not
always *drawn* (the suggestion was there and the feedback rectangle
would snap to it, but the dashed line was not painted because the code
to suppress self-dragging was interfering.)

Change-Id: I853ef51a5a160f151119b7c819a3715cbde98b5a

13 years agoMerge "Integrate 11357696 into tools_r8. DO NOT MERGE" into tools_r8
Xavier Ducrohet [Tue, 19 Oct 2010 00:06:42 +0000 (17:06 -0700)]
Merge "Integrate 11357696 into tools_r8. DO NOT MERGE" into tools_r8

13 years agoMerge "Integrate 3c36e33f into tools_r8. DO NOT MERGE." into tools_r8
Xavier Ducrohet [Tue, 19 Oct 2010 00:06:26 +0000 (17:06 -0700)]
Merge "Integrate 3c36e33f into tools_r8. DO NOT MERGE." into tools_r8

13 years agoIntegrate 11357696 into tools_r8. DO NOT MERGE
Raphael Moll [Mon, 18 Oct 2010 23:16:09 +0000 (16:16 -0700)]
Integrate 11357696 into tools_r8. DO NOT MERGE

SDK Manager: Restart ADB after platform-tools update.

Change-Id: Ie59201a3f303e1a9a837e82cbf4a83f620b4e7f2

13 years agoIntegrate 3c36e33f into tools_r8. DO NOT MERGE.
snpe [Sun, 17 Oct 2010 16:34:51 +0000 (18:34 +0200)]
Integrate 3c36e33f into tools_r8. DO NOT MERGE.

Fixing Issue 11557:   SWTError: No more handles exception on Eclipse

Change-Id: Ie5e7d8af8ef0376cd4d3e9afcfdd328c331a5d96

13 years agoMerge "Set hover fill color"
Tor Norbye [Mon, 18 Oct 2010 22:01:48 +0000 (15:01 -0700)]
Merge "Set hover fill color"

13 years agoMerge "DexWrapper is now loaded by the SDK instead of the platforms."
Xavier Ducrohet [Mon, 18 Oct 2010 21:57:49 +0000 (14:57 -0700)]
Merge "DexWrapper is now loaded by the SDK instead of the platforms."

13 years agoMerge "Updated changelog for ADT."
Xavier Ducrohet [Mon, 18 Oct 2010 21:42:19 +0000 (14:42 -0700)]
Merge "Updated changelog for ADT."

13 years agoDexWrapper is now loaded by the SDK instead of the platforms.
Xavier Ducrohet [Mon, 18 Oct 2010 20:48:08 +0000 (13:48 -0700)]
DexWrapper is now loaded by the SDK instead of the platforms.

Since tools_r8, dx.jar is now located in platform-tools. instead
of platforms/android-<API>/tools/lib/.

There is therefore no need for all the platforms to load their
own dx.jar through reflection into DexWrapper. The SDK now does it
for all, and the builders query the SDK for the wrapper.

Change-Id: Ia79ccaf95237f2b25b43f26241e6335acc7050a3

13 years agoMerge "Missing platform toosl doesn't mean the SDK is invalid."
Xavier Ducrohet [Mon, 18 Oct 2010 21:35:24 +0000 (14:35 -0700)]
Merge "Missing platform toosl doesn't mean the SDK is invalid."

13 years agoUpdated changelog for ADT.
Xavier Ducrohet [Mon, 18 Oct 2010 21:22:33 +0000 (14:22 -0700)]
Updated changelog for ADT.

Change-Id: I523c4ecf9c037410d23c28bf5ce778f3e3d032b7

13 years agoSet hover fill color
Tor Norbye [Mon, 18 Oct 2010 18:56:07 +0000 (11:56 -0700)]
Set hover fill color

The code which paints the hover didn't actually set the hover fill color
on the graphics context so it was just blending with white. This happens
to be the color the fill was initialized to so the problem wasn't
noticeable.

Change-Id: I95f0eface23f2a772b687ba348997a3eac2d85a9

13 years agoMissing platform toosl doesn't mean the SDK is invalid.
Xavier Ducrohet [Mon, 18 Oct 2010 18:49:55 +0000 (11:49 -0700)]
Missing platform toosl doesn't mean the SDK is invalid.

Change-Id: I623edf5df8bcc9b0b1f806c49e863879fcd4fda4

13 years agoMerge "SDK Manager: refuse to not install dependencies."
Raphael Moll [Mon, 18 Oct 2010 17:25:05 +0000 (10:25 -0700)]
Merge "SDK Manager: refuse to not install dependencies."

13 years agoSDK Manager: refuse to not install dependencies.
Raphael Moll [Sat, 16 Oct 2010 05:11:20 +0000 (22:11 -0700)]
SDK Manager: refuse to not install dependencies.

In the case the SDK Manager found a package that would fix
a broken dependency of the currently installed packages
(e.g. user has Tools but not Platform-Tools), it will refuse
to not install the package that would fix that dependency.

Bug: 3092907

Change-Id: Iea21c69d726b7c859bfbbffc74ba61b690c4afe0

13 years agoMerge "Fix typo in precompiler builder."
Raphael Moll [Fri, 15 Oct 2010 23:38:49 +0000 (16:38 -0700)]
Merge "Fix typo in precompiler builder."

13 years agoFix typo in precompiler builder.
Raphael Moll [Fri, 15 Oct 2010 22:32:40 +0000 (15:32 -0700)]
Fix typo in precompiler builder.

Bug: 3102564

Change-Id: I44d60fc89e91eadf55c4f5451493f33ec5e13c73

13 years agoMerge "Editors preference page."
Xavier Ducrohet [Fri, 15 Oct 2010 22:27:12 +0000 (15:27 -0700)]
Merge "Editors preference page."

13 years agoMerge "Add in Windows batch file for monkeyrunner."
Bill Napier [Fri, 15 Oct 2010 22:18:49 +0000 (15:18 -0700)]
Merge "Add in Windows batch file for monkeyrunner."

13 years agoMerge "SDK Manager: display URL host in source tree."
Raphael Moll [Fri, 15 Oct 2010 22:18:46 +0000 (15:18 -0700)]
Merge "SDK Manager: display URL host in source tree."

13 years agoMerge "SDK Manager: Fix dependencies when installing selected packages."
Raphael Moll [Fri, 15 Oct 2010 21:48:06 +0000 (14:48 -0700)]
Merge "SDK Manager: Fix dependencies when installing selected packages."

13 years agoAdd in Windows batch file for monkeyrunner.
Bill Napier [Fri, 15 Oct 2010 21:43:52 +0000 (14:43 -0700)]
Add in Windows batch file for monkeyrunner.

Change-Id: Iebe42de2c5c8eb275f6dc4756f6209726f973860

13 years agoEditors preference page.
Xavier Ducrohet [Fri, 15 Oct 2010 21:30:16 +0000 (14:30 -0700)]
Editors preference page.

For now, only the monitor density, used by the zoom control
in the GLE.

Change-Id: I01219609e6196d845d45e306f5b93c3acf0b2ee2

13 years agoSDK Manager: display URL host in source tree.
Raphael Moll [Fri, 15 Oct 2010 20:50:16 +0000 (13:50 -0700)]
SDK Manager: display URL host in source tree.

Change-Id: I2fd27d931fe9011cc2894c7179e2e14327867b94

13 years agoMerge "Connect the resolution chooser to the zoom control in GLE"
Xavier Ducrohet [Fri, 15 Oct 2010 21:04:51 +0000 (14:04 -0700)]
Merge "Connect the resolution chooser to the zoom control in GLE"

13 years agoMerge "Project property cleanup."
Xavier Ducrohet [Fri, 15 Oct 2010 21:04:46 +0000 (14:04 -0700)]
Merge "Project property cleanup."

13 years agoConnect the resolution chooser to the zoom control in GLE
Xavier Ducrohet [Fri, 15 Oct 2010 20:30:45 +0000 (13:30 -0700)]
Connect the resolution chooser to the zoom control in GLE

When using the Real-Life zoom control the first time, it
will display the Resolution chooser (from the AVD start dialog)
to let the user figure out their monitor dpi.

Next Step: add the actual density to a prefs panel so that it
can be manually tweaked.

Change-Id: If2322dd077b657386ab0452f9c507cb3c0730c32

13 years agoSDK Manager: Fix dependencies when installing selected packages.
Raphael Moll [Fri, 15 Oct 2010 20:32:37 +0000 (13:32 -0700)]
SDK Manager: Fix dependencies when installing selected packages.

In the SDK Manager, when you select a specific package from an
available repository to install it, it used to not notice if there
was a broken depedency. This fixes it. It means we have to force
loading all known available repo sources to find them if necessary.

This CL fixes a minor issue: trim all URLs before trying to use
them. The CL is voluntarily a bit defensive for that. This can
happen when we load URLs from external addon sites which we do
not control.

Change-Id: I652e1fa0e74b4384d0e95819970a59519fafa05a

13 years agoMerge "Make drag and drop create a single undo operation"
Tor Norbye [Fri, 15 Oct 2010 20:33:08 +0000 (13:33 -0700)]
Merge "Make drag and drop create a single undo operation"

13 years agoProject property cleanup.
Xavier Ducrohet [Thu, 14 Oct 2010 18:36:29 +0000 (11:36 -0700)]
Project property cleanup.

Remove obsolete sdk-location on project update, don't
use it as backup location anymore (main_rules.xml won't work with
it anyway).

Remove the old application.package properties since older platforms
will use the new rules anyway.

Change-Id: I5a5ec3d1289cf793dd0f98fb778bd84086976c52

13 years agoMake drag and drop create a single undo operation
Tor Norbye [Wed, 13 Oct 2010 19:55:21 +0000 (12:55 -0700)]
Make drag and drop create a single undo operation

If you drag and drop a widget, you end up with two separate undo
operations: One which inserts the widget in its new location, and one
which deletes it from its former location. If you drag a widget
somewhere and then change your mind and press Undo, you will therefore
end up with *two* versions of the dragged widgets, since undoing just
once only undoes the source removal, not the target addition.

This changeset fixes this. It's not a very clean fix since drag and
drop is a protocol where the drag source and the drop handler are
deliberately not connected. We now create a single undo context before
calling the layout helper's drop handler, and when it has finished we
then remove the source, still within the current undo context. This is
done by having the drag source register a cleanup handler with the
global drag info object, and this handler is invoked from within the
drop target's undo operation.

This means that we end up creating the undo unit on the tool side
rather than in the layout helpers, where more specific undo labels
were assigned. To deal with this, there is a new function which
produces a suitable Undo name. It creates the name by considering
whether it's a move or copy, as well as the unqualified names of the
dragged element and the drop target. For example, when dragging from
the palette you may end up with "Drop Button in LinearLayout", and if
dragging a multiselection you may end up with "Move Widgets in
RelativeLayout", and so on.

Change-Id: I242b51e5a9c7cd9eae55aa4139c510cb26b0e8fb

13 years agoMerge "Fix various bugs related to linear layout handling"
Tor Norbye [Fri, 15 Oct 2010 18:02:32 +0000 (11:02 -0700)]
Merge "Fix various bugs related to linear layout handling"

13 years agoMerge "Prevent layout interaction on certain layouts"
Tor Norbye [Fri, 15 Oct 2010 18:02:22 +0000 (11:02 -0700)]
Merge "Prevent layout interaction on certain layouts"

13 years agoPrevent layout interaction on certain layouts
Tor Norbye [Fri, 15 Oct 2010 16:40:14 +0000 (09:40 -0700)]
Prevent layout interaction on certain layouts

Some layouts, like ZoomControls, extend another layout class (in this
case, LinearLayout), presumably for implementation convenience, but
the ZoomControl isn't intended to be used as a generic LinearLayout
where you want to drop new widgets in between its existing children,
where you want to change the orientation, etc.

Therefore, this changeset adds a new layout rule, IgnoredLayoutRule,
which various new widget-specific rules inherit from to prevent
default layout handling from kicking in.

Change-Id: Ia1323866d62859125692207159b9aa855cdf21c1

13 years agoFix various bugs related to linear layout handling
Tor Norbye [Thu, 14 Oct 2010 21:23:09 +0000 (14:23 -0700)]
Fix various bugs related to linear layout handling

This changeset fixes the following issues with LinearLayout:

* Correctly position the last insert position in the linear layout
  when the layout has children.

* When you drag a widget which is already in this LinearLayout, don't
  show insert positions before and after this element, and show a
  match position exactly where it already is.

* Show the best-matching lines not only when you don't have bounds
  (which it was already doing) but also in conjunction with the bounds
  outlines. When the dragged bounds are much larger than the widgets
  around the drop position, it was a bit hard to figure out where
  exactly the proposed drop position is, and this change makes it a
  lot clearer.

* Fix positioning of the drop rectangle. Before this change we were
  positioning the drop rectangle using its existing deltaX,deltaY in
  its old parent; this does not work well both in multi-document cases
  as well as cases where you are dragging from one layout to
  another. We are now simply positioning it at delta=0 in the new
  layout; the next enhancement here would be to consider the
  layoutGravity.

Change-Id: I1c71c3c48a4c104a5cde7382fb1f9a21e57122bc

13 years agoMerge "Hide anchor lines and tweak text positioning"
Tor Norbye [Thu, 14 Oct 2010 23:33:23 +0000 (16:33 -0700)]
Merge "Hide anchor lines and tweak text positioning"

13 years agoHide anchor lines and tweak text positioning
Tor Norbye [Thu, 14 Oct 2010 22:40:09 +0000 (15:40 -0700)]
Hide anchor lines and tweak text positioning

Temporarily hide the anchor lines (the lines from each selected
element to its parent's bounds edges) until we can find a way to make
it clearer what these mean.

Also tweak the pixel positioning of the selection label text to
account for the padding around the textbox mask since it was partially
overlapping the selection stroke.

Change-Id: Iaa4c7139d4d56288b78a104647d5cbb5752f7888

13 years agoMerge "Select dropped elements"
Tor Norbye [Thu, 14 Oct 2010 21:58:11 +0000 (14:58 -0700)]
Merge "Select dropped elements"

13 years agoSelect dropped elements
Tor Norbye [Thu, 14 Oct 2010 18:26:45 +0000 (11:26 -0700)]
Select dropped elements

This changeset makes the drop handler select the set of elements that
were just manipulated. This means that if you drop a new element, it
is both more visible (useful if you drop it into a crowded layout) and
immediately available for customization via the property sheet. This
is also important when you drag & drop to move existing elements since
without this, dragging a selected element meant you would *lose*
selection.

There are some timing tricks involved similar to yesterday's focus
checkin because in multi-document drag & drop the view hiearchy (which
we must consult to find the visual objects corresponding to the XML
just added to the model) may not yet be ready.

Change-Id: Ifa2d492a03a02f24303dd7cc95ab653523fb1758

13 years agoMerge "Prevent accidental dragging of the root layout"
Tor Norbye [Thu, 14 Oct 2010 00:43:19 +0000 (17:43 -0700)]
Merge "Prevent accidental dragging of the root layout"

13 years agoPrevent accidental dragging of the root layout
Tor Norbye [Thu, 14 Oct 2010 00:07:31 +0000 (17:07 -0700)]
Prevent accidental dragging of the root layout

The layout editor deliberately does not reset the selection if you
start dragging within the bounding rectangle of one (of possibly
multiple) selected widgets. However, since it's pretty easy to have
the root element selected, this sometimes means you end up trying to
drag an item only to realize you can't because everything fits within
the root bounding rectangle.

This changeset fixes this usability issue by making the root widget a
special case. If you are dragging *only* the root, things work as
before. But if you are trying to drag anything else, it will ignore
the root, which means that you can drag one or more items
independently of the root whether or not it is included in the
selection.

Change-Id: Ia7497659e57dcc6431c3760a53847268a8b90815