OSDN Git Service

android-x86/sdk.git
13 years agomerge from open-source master
The Android Open Source Project [Mon, 11 Oct 2010 23:07:19 +0000 (16:07 -0700)]
merge from open-source master

Change-Id: Ie00989060f41e743583d77e33af4bd680fb8296b

13 years agoMerge "SDK Manager: local package list can be empty."
Raphael Moll [Mon, 11 Oct 2010 23:00:45 +0000 (16:00 -0700)]
Merge "SDK Manager: local package list can be empty."

13 years agoSDK Manager: local package list can be empty.
Raphael Moll [Mon, 11 Oct 2010 22:59:04 +0000 (15:59 -0700)]
SDK Manager: local package list can be empty.

Change-Id: I44a063ffb69002b10c7db5141036e82f23e7da49

13 years agomerge from open-source master
The Android Open Source Project [Mon, 11 Oct 2010 18:06:50 +0000 (11:06 -0700)]
merge from open-source master

Change-Id: I1e69603b2d46eb071822dc7fac667bb02649e15a

13 years agoMerge "Make sure all marker types are removed during clean."
Xavier Ducrohet [Mon, 11 Oct 2010 17:59:53 +0000 (10:59 -0700)]
Merge "Make sure all marker types are removed during clean."

13 years agoMerge "Display SDK/plug-in incompatibility messages."
Xavier Ducrohet [Mon, 11 Oct 2010 17:59:48 +0000 (10:59 -0700)]
Merge "Display SDK/plug-in incompatibility messages."

13 years agomerge from open-source master
The Android Open Source Project [Mon, 11 Oct 2010 17:43:03 +0000 (10:43 -0700)]
merge from open-source master

Change-Id: I3dc96f827f93100d85095cf3ed6894877586a49b

13 years agoMerge "SDK Manager: simplify getenv var to override URLs."
Raphael Moll [Mon, 11 Oct 2010 17:40:17 +0000 (10:40 -0700)]
Merge "SDK Manager: simplify getenv var to override URLs."

13 years agoSDK Manager: simplify getenv var to override URLs.
Raphael Moll [Mon, 11 Oct 2010 17:04:12 +0000 (10:04 -0700)]
SDK Manager: simplify getenv var to override URLs.

SDK_TEST_URLS is a semicolon-separated list of URLs that can be used to
seed the SDK Updater list. This is only meant as a debugging and QA testing
tool and not for user usage.
To be used, the URLs must either end with the / or end with the canonical
filename expected for an addon list, addon repo or full repo.
This lets QA use URLs ending with / to cover all cases.

Change-Id: Ia7232d5d8a5b6e85d98e735b93a969e42624e919

13 years agomerge from open-source master
The Android Open Source Project [Mon, 11 Oct 2010 15:39:43 +0000 (08:39 -0700)]
merge from open-source master

Change-Id: I9f657c855821f0cc4d62f656ab0822c7d7307936

13 years agoMerge "Fix a couple of bugs."
Tor Norbye [Mon, 11 Oct 2010 15:32:54 +0000 (08:32 -0700)]
Merge "Fix a couple of bugs."

13 years agomerge from open-source master
The Android Open Source Project [Mon, 11 Oct 2010 00:57:53 +0000 (17:57 -0700)]
merge from open-source master

Change-Id: I02ef9a007aa700fa22e774b9e7d24c7eacaf5d48

13 years agoMerge "SDK Manager: manage URL sites grouped in categories."
Raphael Moll [Mon, 11 Oct 2010 00:50:53 +0000 (17:50 -0700)]
Merge "SDK Manager: manage URL sites grouped in categories."

13 years agoSDK Manager: manage URL sites grouped in categories.
Raphael Moll [Sun, 10 Oct 2010 01:04:10 +0000 (18:04 -0700)]
SDK Manager: manage URL sites grouped in categories.

Sources are now grouped in categories:
- android official site
- all 3rd party addons which list is remotely fetched
- local overrides (from getenv SDK_UPDATER_(USER_)URLS)
- user-added add-on URLs

SdkSources (plural Sources) is the collection of all URL
sites (each one being an SdkSource that contains a collection
of packages).
SdkSourceCategory is the category of a given SdkSource.

Each source has its download URL but also an UI-visible name
which is displayed if known -- this is used for our default
android source and for 3rd party remote addons.
For all source overrides (e.g. user added or from the getenv
vars) we'll simply display the URL in the tree.

Change-Id: Idc3e9ba3395818e33fc7505ead7b0bd0be867ea3

13 years agomerge from open-source master
The Android Open Source Project [Sun, 10 Oct 2010 23:58:00 +0000 (16:58 -0700)]
merge from open-source master

Change-Id: I8a9b6a402ab9f6bb3470817f16cd6ae846ba36f0

13 years agoMerge "SDK Manager: remove userCanChangeSdkRoot flag."
Raphael Moll [Sun, 10 Oct 2010 23:56:45 +0000 (16:56 -0700)]
Merge "SDK Manager: remove userCanChangeSdkRoot flag."

13 years agoMerge "SDK Repo: Remove useless xsi namespace from unit-test XMLs."
Raphael Moll [Sun, 10 Oct 2010 23:56:29 +0000 (16:56 -0700)]
Merge "SDK Repo: Remove useless xsi namespace from unit-test XMLs."

13 years agoMerge "SDK Manager: XML schema for addons-list."
Raphael Moll [Sun, 10 Oct 2010 23:56:19 +0000 (16:56 -0700)]
Merge "SDK Manager: XML schema for addons-list."

13 years agomerge from open-source master
The Android Open Source Project [Sun, 10 Oct 2010 20:56:19 +0000 (13:56 -0700)]
merge from open-source master

Change-Id: I94c5a64731eff54534bd729ee8cdd3437da524ca

13 years agoAdd MonkeyRunner script (and libs) to SDK.
Bill Napier [Sat, 9 Oct 2010 00:38:14 +0000 (17:38 -0700)]
Add MonkeyRunner script (and libs) to SDK.

Change-Id: I75d082fc2c69f994197f5887c3f38ad30cfe7bfb

13 years agoMake sure all marker types are removed during clean.
Xavier Ducrohet [Sun, 10 Oct 2010 20:03:41 +0000 (13:03 -0700)]
Make sure all marker types are removed during clean.

Change-Id: I2a045488b86d03496d766c5c9ade9bb64fcb9246

13 years agoDisplay SDK/plug-in incompatibility messages.
Xavier Ducrohet [Fri, 8 Oct 2010 22:39:04 +0000 (15:39 -0700)]
Display SDK/plug-in incompatibility messages.

Hmm this used to work. But the lines displaying the error
messages are gone...

Change-Id: I83cf7d3e8a471fe6b2166818db9fad4f60d3d392

13 years agoSDK Manager: remove userCanChangeSdkRoot flag.
Raphael Moll [Sat, 9 Oct 2010 23:25:50 +0000 (16:25 -0700)]
SDK Manager: remove userCanChangeSdkRoot flag.

We've never enabled the UI for it as the SDK path
is dicated by where the manager is started from, so
it's time to clean it up.

Change-Id: I97d7ede19e869b970e649ea8a6f9b94045a71269

13 years agoSDK Repo: Remove useless xsi namespace from unit-test XMLs.
Raphael Moll [Sat, 9 Oct 2010 22:18:07 +0000 (15:18 -0700)]
SDK Repo: Remove useless xsi namespace from unit-test XMLs.

All the sample XMLs still declare a line
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance

We don't use that namespace anymore so we don't need that line.

Change-Id: I620680d1f1fb7e8196ddf0cbc13836439f3e6a6a

13 years agoFix a couple of bugs.
Tor Norbye [Fri, 8 Oct 2010 21:43:45 +0000 (14:43 -0700)]
Fix a couple of bugs.

Using File.toURL() is dangerous because the reverse operation
(URLDecoder.decode, which for example is used by URLClassLoader to
produce a path from URLs) doesn't always succeed - for example on a
filename like "/tmp/te#st". Use File.toURI().toURL() instead.

The second problem looks like an unintentional || instead of &&.

Change-Id: Ib4e2ac13c914c002eff53455ed6d6ed898ce35fb

13 years agoSDK Manager: XML schema for addons-list.
Raphael Moll [Sat, 9 Oct 2010 06:02:10 +0000 (23:02 -0700)]
SDK Manager: XML schema for addons-list.

Change-Id: I64db42737bf70365c7016c1292087ebbf505cea7

13 years agomerge from open-source master
The Android Open Source Project [Fri, 8 Oct 2010 22:54:35 +0000 (15:54 -0700)]
merge from open-source master

Change-Id: I512ca46b9579f24774b1a56f8d5531a150d090b6

13 years agoMerge "Proguard default config file."
Xavier Ducrohet [Fri, 8 Oct 2010 22:43:07 +0000 (15:43 -0700)]
Merge "Proguard default config file."

13 years agoProguard default config file.
Xavier Ducrohet [Wed, 6 Oct 2010 22:06:53 +0000 (15:06 -0700)]
Proguard default config file.

It is located in $SDK/tools/lib/proguard.cfg and automatically
put in Ant project (create and update if project is not already setup
for proguard).

Change-Id: I9bcb2a5aafec1329b0c001799f4ba34c61569c3a

13 years agomerge from open-source master
The Android Open Source Project [Fri, 8 Oct 2010 22:42:10 +0000 (15:42 -0700)]
merge from open-source master

Change-Id: Iaffa30e486413625ade78715268218fc9b9ac243

13 years agoFix bug in constraint display.
Tor Norbye [Fri, 8 Oct 2010 22:27:35 +0000 (15:27 -0700)]
Fix bug in constraint display.

Need explicit parens to ensure proper Groovy evaluation order.
This short script shows the difference between the old and
new forms:

groovy> def id = "hello"
groovy> def it = "world"
groovy> def strings = []
groovy> strings << (id ? it + "=" + id : it)
groovy> println "strings 1 = $strings"
groovy> strings = []
groovy> strings << id ? it + "=" + id : it
groovy> println "strings 2 = $strings"

strings 1 = [world=hello]
strings 2 = [hello]

Change-Id: Iab1bc50656b1b975a522e5742240075600bab596

13 years agomerge from open-source master
The Android Open Source Project [Fri, 8 Oct 2010 21:03:28 +0000 (14:03 -0700)]
merge from open-source master

Change-Id: I91b0b184d15e059c6dc5c583540ee455b342a8dc

13 years agoMerge "Fix various warnings"
Tor Norbye [Fri, 8 Oct 2010 20:54:33 +0000 (13:54 -0700)]
Merge "Fix various warnings"

13 years agomerge from open-source master
The Android Open Source Project [Fri, 8 Oct 2010 20:38:37 +0000 (13:38 -0700)]
merge from open-source master

Change-Id: Ic4a4ab08f4ffc9be3425a70b72bb26d3184a5c61

13 years agomerge from open-source master
The Android Open Source Project [Fri, 8 Oct 2010 19:47:13 +0000 (12:47 -0700)]
merge from open-source master

Change-Id: I357a5183a2a5edc91c5dba888f20c283359f047f

13 years agoRemove Groovy Closures from the tool integration API.
Tor Norbye [Thu, 7 Oct 2010 21:12:31 +0000 (14:12 -0700)]
Remove Groovy Closures from the tool integration API.

Remove Groovy Closures from the tool integration API, and replace with
dedicated single-method-interfaces (which can also be invoked as
closures from Groovy - but which also would allow non-Groovy
implementations to work as View handlers).

Also add warning to the javadoc for the interfaces that this is
neither a public nor a final API.

Change-Id: Ia146e1e150c2d47f95ff5bbb0771efc0e3aaa5ad

13 years agoADT: use annotations from sdklib
Raphael Moll [Fri, 8 Oct 2010 18:54:20 +0000 (11:54 -0700)]
ADT: use annotations from sdklib

The removes Nullable and VisibleForTesting from ADT
and replaces them by their new versions from sdklib.

Change-Id: I2784e9d044a29a70dcd6258bb45e553246dfd477

13 years agomerge from open-source master
The Android Open Source Project [Fri, 8 Oct 2010 18:34:56 +0000 (11:34 -0700)]
merge from open-source master

Change-Id: I8344c7c53186aaa42899575e4ff13f11a135fe82

13 years agoGo to problem in source from Logcat via Double-click.
Pierre Zurek [Sun, 26 Sep 2010 20:19:35 +0000 (22:19 +0200)]
Go to problem in source from Logcat via Double-click.

The user can choose in the LogCat Preference Page what
will be the default behaviour (go to method declaration
or go to error line).

There are now 2 available actions in the LogCat View
instead of the unique "Go to Problem" (which is now
called "Go to Problem (method declaration)").

Change-Id: I769771b29d26b625cfd0250fa23e6627821be16d

13 years agomerge from open-source master
The Android Open Source Project [Thu, 7 Oct 2010 21:58:59 +0000 (14:58 -0700)]
merge from open-source master

Change-Id: Ib789754dd5fa04ea4232220c8a06bda9051b75c3

13 years agoMerge "Visual adjustments to the layout feedback"
Tor Norbye [Thu, 7 Oct 2010 21:49:50 +0000 (14:49 -0700)]
Merge "Visual adjustments to the layout feedback"

13 years agomerge from open-source master
The Android Open Source Project [Thu, 7 Oct 2010 21:46:46 +0000 (14:46 -0700)]
merge from open-source master

Change-Id: Ic68c91a666c475bce81f0d8a10aebdb1c6091f97

13 years agoMerge "SDK Manager: support separate addon.xml schema"
Raphael Moll [Thu, 7 Oct 2010 21:44:46 +0000 (14:44 -0700)]
Merge "SDK Manager: support separate addon.xml schema"

13 years agoFix various warnings
Tor Norbye [Thu, 7 Oct 2010 15:56:12 +0000 (08:56 -0700)]
Fix various warnings

Change-Id: I4864b89347ed8756b1eae83d97990555144fb93a

13 years agomerge from open-source master
The Android Open Source Project [Thu, 7 Oct 2010 18:55:34 +0000 (11:55 -0700)]
merge from open-source master

Change-Id: Ib0241b6df43dae934d59089ff60fbf4125d4f6e1

13 years agoRevert premature tools.atree change.
Bill Napier [Thu, 7 Oct 2010 18:53:03 +0000 (11:53 -0700)]
Revert premature tools.atree change.

Change-Id: Ic09bccca8bb6dd195e3bc2bdf580da7a3dc5efbb

13 years agomerge from open-source master
The Android Open Source Project [Thu, 7 Oct 2010 18:07:26 +0000 (11:07 -0700)]
merge from open-source master

Change-Id: I443b7b9ef2c67ff84c17755a6637e6a8fda0f2e9

13 years agoMerge "Bridge MonkeyRunnerExported tags into pydoc."
Bill Napier [Thu, 7 Oct 2010 18:05:04 +0000 (11:05 -0700)]
Merge "Bridge MonkeyRunnerExported tags into pydoc."

13 years agoBridge MonkeyRunnerExported tags into pydoc.
Bill Napier [Sat, 2 Oct 2010 03:58:40 +0000 (20:58 -0700)]
Bridge MonkeyRunnerExported tags into pydoc.

This allows the use of pydoc to generate MonkeyRunner
API documentation.

Change-Id: I0af981f2023abf2cbf92cb1d7c9132936414c559

13 years agomerge from open-source master
The Android Open Source Project [Thu, 7 Oct 2010 14:24:07 +0000 (07:24 -0700)]
merge from open-source master

Change-Id: I0eae9fb8cb9b11a74ecc765d318ab26cbe7f650b

13 years agoVisual adjustments to the layout feedback
Tor Norbye [Wed, 6 Oct 2010 22:30:37 +0000 (15:30 -0700)]
Visual adjustments to the layout feedback

This changeset makes a number of adjustments to the visual feedback
shown during layout dragging & dropping, selection, etc.

These are:

1. Render text on top of a translucent mask (white on a transparent
gray rectangle). This ensures that the text is readable regardless of
what content is under the text. We can't just use the background color
for the normal SWT drawString for two reasons: First, we need to
control the alpha of the background only (since we want the text to be
opaque and the background to be translucent), and second, we often
want to draw multiple lines of text, so we need to manually draw a
background rectangle which accommodates the maximum width of ALL the
lines such taht we don't have a ragged background.

2. Paint the outline mode lines using solid, translucent lines. And
adjust the bounding box computation in this case by 1 pixel such that
when you have adjacent boxes (such as in LinearLayout), you don't end
up with two thin lines next to each other creating a thick line.

3. Change the DrawingStyle internal API from "foreground" and
"background" colors to "stroke" (border) and "fill" (interior), with
individual alphas. This makes the color definitions simpler (for
example we don't need two separate styles, one for the selection
border and one for the selection interior).

4. Make the hover more subtle, using no border and just a light
translucent gray rectangle to only slightly draw attention to the view
under the mouse.

5. Change the appearance of selection to light blue and use a long
dashed border around it. The anchor lines are more faint and more
translucent to make them stand out less.

6. Change the appearance of the drop-preview to use a dash patterned
border identical to the selection border, but colored orange instead.
The matching border pattern will hopefully reinforce that the
drop-preview line is where the selection (also dashed) will go.

7. Use green to show available drop zones (the grid surrounding a
target in RelativeLayout, and the positions between elements in
LinearLayout).

8. For invalid drops, use a white X on a red background as the overlay
fill.

9. I replaced the oval+X pattern from the LayoutHelpers and replaced
them with the orange dashed insert-position lines. I also adjusted the
LinearLayout to draw the bounding boxes such that the middle of the
bounding box, rather than the top left edge, are aligned with the
insert position.

Change-Id: I85c77b9fa84b732a78aac635442f96e7ccfc3983

13 years agoSDK Manager: support separate addon.xml schema
Raphael Moll [Wed, 6 Oct 2010 00:09:38 +0000 (17:09 -0700)]
SDK Manager: support separate addon.xml schema

This splits sdk-repository-3.xsd into 2 XML schemas,
one for the sdk-repository and one for the sdk-addon.

The SDK Manager is then modified to only load <addon>
and <extra> from the sdk-addon whils the <sdk-repository>
supports everything (including <addon> if the old v1 or v2
schemas are being used).

Change-Id: I30b263f2ab48dd3ea7b70d3006fb6516291736d0

13 years agoAdd proguard support in the release build mode of ADT.
Xavier Ducrohet [Fri, 1 Oct 2010 18:34:53 +0000 (11:34 -0700)]
Add proguard support in the release build mode of ADT.

This is only activated if default.properties contains a proguard.config
property.

Change-Id: I9921b2796a423330bffa37e795399cf5cec948ab

13 years agomerge from open-source master
The Android Open Source Project [Tue, 5 Oct 2010 18:20:13 +0000 (11:20 -0700)]
merge from open-source master

Change-Id: I5db2a38f681d2168dfb801d6ad9a4a1243d3edba

13 years agoFix case where testRunEnded was called twice.
Brett Chabot [Mon, 4 Oct 2010 23:37:13 +0000 (16:37 -0700)]
Fix case where testRunEnded was called twice.

Change-Id: I14be6641c020baf0ad90f2f036e35fb854aed2ab

13 years agomerge from open-source master
The Android Open Source Project [Mon, 4 Oct 2010 22:22:43 +0000 (15:22 -0700)]
merge from open-source master

Change-Id: I0b65c8c5425024aec3817848410a88e474d87b00

13 years agoMerge "Fixing ADT features"
Xavier Ducrohet [Mon, 4 Oct 2010 22:15:43 +0000 (15:15 -0700)]
Merge "Fixing ADT features"

13 years agoMerge "Add drawing styles to the layout helper API"
Raphaël Moll [Mon, 4 Oct 2010 20:57:31 +0000 (13:57 -0700)]
Merge "Add drawing styles to the layout helper API"

13 years agoAdd drawing styles to the layout helper API
Tor Norbye [Sat, 2 Oct 2010 01:44:27 +0000 (18:44 -0700)]
Add drawing styles to the layout helper API

Pull color constants out of the specific layout helper classes (groovy
scripts) and the canvas editor and use a generic style enum instead in
the interface, and associate the visual attributes (color, line style,
thickness, alpha) with a swt-specific enum on the editor side.  There
is a single new API method which takes an enum parameter, which should
let us add drawing styles over time. By having the color definitions
on the tool side rather in the specific layout helpers it's not only
easier to change the colors but also easier to ensure that the
different helper all stay consistent as we change color schemes.

In the immediate term (next integration) I'll change some of the
colors; after that we should make the colors adapt to the chosen
theme, and eventually these should be provided via the SDK from the
themes themselves.

This changeset doesn't actually change the colors used for the various
types of visual feedback (selection, hover, drop-zone, etc) - I'll
investigate that next. For that reason I also didn't replace all the
various client-side color usage in the RelativeLayout.

Change-Id: Iddf4ace9006ec02d9907c3c37d539ab7414f1371

13 years agomerge from open-source master
The Android Open Source Project [Fri, 1 Oct 2010 21:16:05 +0000 (14:16 -0700)]
merge from open-source master

Change-Id: Ib9a3c29118ca3b933295fa7c917c938fd26fa930

13 years agoMake ddmlb-tests optional.
Brett Chabot [Fri, 1 Oct 2010 21:06:00 +0000 (14:06 -0700)]
Make ddmlb-tests optional.

Change-Id: Ia584549aae4bffe0ca9ddee860337cb20fa0e313

13 years agomerge from open-source master
The Android Open Source Project [Fri, 1 Oct 2010 20:02:00 +0000 (13:02 -0700)]
merge from open-source master

Change-Id: Ic53d217bf6b2008bb394f31aac8441a99e449201

13 years agoMerge "In some cases release build is actually a debug build."
Xavier Ducrohet [Thu, 30 Sep 2010 23:11:24 +0000 (16:11 -0700)]
Merge "In some cases release build is actually a debug build."

13 years agoMerge "Fix ddmlib test run failure and metric reporting."
Brett Chabot [Thu, 30 Sep 2010 18:28:39 +0000 (11:28 -0700)]
Merge "Fix ddmlib test run failure and metric reporting."

13 years agoFix ddmlib test run failure and metric reporting.
Brett Chabot [Wed, 29 Sep 2010 23:55:00 +0000 (16:55 -0700)]
Fix ddmlib test run failure and metric reporting.

This submit fixes two bugs:

1) Test run failures were not getting reported correctly in some scenarios, and
in others testRunFailed was being called before testRunStarted was called. With
this submit, the order of ITestRunListener callbacks is documented and strictly
adhered to.
2) test metrics were getting reported for regularly occuring instrumentation
output such as 'stream' and 'id'.

Also cleaned up the associated unit tests and changed them to use easymock.

Change-Id: I4cee3abebdf1c607ac1dc51a240c92ca9611ca31

13 years agoMerge "Add in support for the sys.executable variable."
Bill Napier [Thu, 30 Sep 2010 17:21:32 +0000 (10:21 -0700)]
Merge "Add in support for the sys.executable variable."

13 years agoAdd in support for the sys.executable variable.
Bill Napier [Thu, 30 Sep 2010 17:07:50 +0000 (10:07 -0700)]
Add in support for the sys.executable variable.

This allows things like pydoc to work.

Change-Id: I16206a17099f7a3785ebcb303bd760b65db36b68

13 years agoMerge "ADT: Fix attributes UI in Android Manifest Editor."
Raphael Moll [Thu, 30 Sep 2010 16:54:58 +0000 (09:54 -0700)]
Merge "ADT: Fix attributes UI in Android Manifest Editor."

13 years agomerge from open-source master
The Android Open Source Project [Thu, 30 Sep 2010 15:29:26 +0000 (08:29 -0700)]
merge from open-source master

Change-Id: Ief0d8b20aeddb245f9ebaa4989d06d6eb86d12fd

13 years agoADT: Fix attributes UI in Android Manifest Editor.
Raphael Moll [Thu, 30 Sep 2010 01:48:10 +0000 (18:48 -0700)]
ADT: Fix attributes UI in Android Manifest Editor.

External bug: http://b.android.com/11392

Issue: all customized fields were showing as regular "string"
references (with the default string browser) instead of having
customized pre-selected choices, etc.

The core issue is that the UI widgets were created using reflection
but I changed the base class constructor of the default
TextAttributeDescriptor recently and forgot to update DescriptorUtils
accordingly. Since it was failing to create a custom widget it was
reverting to the default UI for a string reference.

The long-term fix is to stop using reflection.
Creator pattern to the rescue!
Instead there's a new ITextAttributeCreator interface and the
override map uses a static "creator" instance that will instantiate
the correct UI widget when needed.

Change-Id: Ie7afbf682a2aa8ae18565d08445e73a8c051a6c7

13 years agoIn some cases release build is actually a debug build.
Xavier Ducrohet [Thu, 30 Sep 2010 00:12:31 +0000 (17:12 -0700)]
In some cases release build is actually a debug build.

If the manifest sets debuggable=true then this override
the release build to be a debug build instead.

Change-Id: Ib66bf9053cecfa7c19a02cefdbf187a20bd6da37

13 years agoAdd missing dependency in the ddms manifest.
Xavier Ducrohet [Wed, 29 Sep 2010 18:21:09 +0000 (11:21 -0700)]
Add missing dependency in the ddms manifest.

Change-Id: Ifdfb8bbabf2b2aadf46ce0b27dcf99ef428d1ec9

13 years agoFixing ADT features
snpe [Sun, 26 Sep 2010 16:56:30 +0000 (18:56 +0200)]
Fixing ADT features

Change-Id: Idc4223a43ef6505e55fb2b62cb2514763959bc53

13 years agomerge from open-source master
The Android Open Source Project [Tue, 28 Sep 2010 22:14:12 +0000 (15:14 -0700)]
merge from open-source master

Change-Id: I4d60cd73d8d69877fe5256478865ce75d9b600fa

13 years agoTools specific atree file.
Xavier Ducrohet [Mon, 27 Sep 2010 22:48:38 +0000 (15:48 -0700)]
Tools specific atree file.

Change-Id: I7a71f4d91993c48c147bc080c08f830457a23ef1

13 years agomerge from open-source master
The Android Open Source Project [Mon, 27 Sep 2010 23:39:14 +0000 (16:39 -0700)]
merge from open-source master

Change-Id: I828d80902bb5505fea8d1892623b27a310586120

13 years agoMake the tools work with the new location of adb.
Xavier Ducrohet [Mon, 27 Sep 2010 20:27:22 +0000 (13:27 -0700)]
Make the tools work with the new location of adb.

adb has been moved to the platform-tools folder.

This changes ADT, DDMS, HierarchyViewer which all care
where adb is (to launch it).

Also fixed the local SDK parser of the SDK Updater to find
the platform-tools package.

Change-Id: I3c869159d7b0e0ad9aaea06f376b7ba3e53bfc7f

13 years agomerge from open-source master
The Android Open Source Project [Mon, 27 Sep 2010 19:59:34 +0000 (12:59 -0700)]
merge from open-source master

Change-Id: I042d0153b76bd8b164a815165f80d29b4ed94df2

13 years agoAnt doc on how to replace proguard.
Xavier Ducrohet [Mon, 27 Sep 2010 17:09:55 +0000 (10:09 -0700)]
Ant doc on how to replace proguard.

Change-Id: I27faad2282fbe6cff565d945c2b64d42d31db1fe

13 years agomerge from open-source master
The Android Open Source Project [Fri, 24 Sep 2010 23:39:10 +0000 (16:39 -0700)]
merge from open-source master

Change-Id: Ie20ef0aec822d00c70e9bb1764002cd624b4ae38

13 years agoMake it easier to use a different obfuscator.
Xavier Ducrohet [Fri, 24 Sep 2010 19:55:24 +0000 (12:55 -0700)]
Make it easier to use a different obfuscator.

Change-Id: I3fb80a8b91482de5117a9e093b2d50010bb99546

13 years agoUse proguard for release builds through Ant.
Xavier Ducrohet [Fri, 17 Sep 2010 01:53:44 +0000 (18:53 -0700)]
Use proguard for release builds through Ant.

This is only activated if default.properties contains
a property "proguard.config" with the name of a proguard
config file.

Some clean-up in the Ant tasks and in the name
of the properties used by the rules and the custom
tasks to make them clearer.

Added a new test app with a project using a jar file
as well as a library using a jar file.

Change-Id: Ia8f4d873025993d454c0a484e61d47ae679ea79c

13 years agoWork around a bug in the jar verifier of Android.
Xavier Ducrohet [Fri, 24 Sep 2010 21:51:22 +0000 (14:51 -0700)]
Work around a bug in the jar verifier of Android.

up to Android 1.6, if the signature file of an apk was
a multiple of 1024 the jar verification failed.

This make sure the signing code in ADT/Ant does not
generate such a signature file by adding an extra CRLF
at the end.

See http://b.android.com/830

Change-Id: Ia9ec0563d2abfaa6402ca4d19ca27335e9ba57a3

13 years agomerge from open-source master
The Android Open Source Project [Fri, 24 Sep 2010 21:37:03 +0000 (14:37 -0700)]
merge from open-source master

Change-Id: If12bf352bc918d9f874e619bb5b3053c755c9699

13 years agoMerge "Make javac ant options configurable."
Xavier Ducrohet [Fri, 24 Sep 2010 21:30:52 +0000 (14:30 -0700)]
Merge "Make javac ant options configurable."

13 years agomerge from open-source master
The Android Open Source Project [Fri, 24 Sep 2010 21:25:39 +0000 (14:25 -0700)]
merge from open-source master

Change-Id: I7fee1fbea13a71ba6606b320c2cac13d7929f57e

13 years agoMerge "Don't force a workspace build on launch."
Xavier Ducrohet [Fri, 24 Sep 2010 21:19:34 +0000 (14:19 -0700)]
Merge "Don't force a workspace build on launch."

13 years agoMake javac ant options configurable.
Xavier Ducrohet [Fri, 24 Sep 2010 15:11:12 +0000 (08:11 -0700)]
Make javac ant options configurable.

Change-Id: I303acdb4fc8de6ba5d8de7c18e020e97fe01e3de

13 years agoDon't force a workspace build on launch.
Xavier Ducrohet [Fri, 24 Sep 2010 14:19:37 +0000 (07:19 -0700)]
Don't force a workspace build on launch.

Bug: http://b.android.com/11452
Change-Id: Ibbb8b15ef448694fc8975f6fb32b1703e9edd54f

13 years agomerge from open-source master
The Android Open Source Project [Fri, 24 Sep 2010 18:47:48 +0000 (11:47 -0700)]
merge from open-source master

Change-Id: Ic83e9d9494c6d6ff143940b8d38a10e928821dbe

13 years agoFix target loading when sdk.properties is not present.
Xavier Ducrohet [Fri, 24 Sep 2010 14:41:30 +0000 (07:41 -0700)]
Fix target loading when sdk.properties is not present.

Older (obsolete) targets would fail to load if
sdk.properties was not present. Since the content
is optional anyway, it's ok to load the target.

Change-Id: I6539be1450e72096de7b651e1c9137b41060e315

13 years agomerge from open-source master
The Android Open Source Project [Thu, 23 Sep 2010 16:56:31 +0000 (09:56 -0700)]
merge from open-source master

Change-Id: I2a22de9d181eaad8f9ebf750d9a742222525cd86

13 years agoMerge "Improve waitForConnection for booting devices."
Bill Napier [Thu, 23 Sep 2010 16:50:37 +0000 (09:50 -0700)]
Merge "Improve waitForConnection for booting devices."

13 years agomerge from tools_r7
Jean-Baptiste Queru [Thu, 23 Sep 2010 16:49:54 +0000 (09:49 -0700)]
merge from tools_r7

Change-Id: I15581b778be83b662b23994e53ff9c22ab796667

13 years agoImprove waitForConnection for booting devices.
Bill Napier [Thu, 23 Sep 2010 16:43:30 +0000 (09:43 -0700)]
Improve waitForConnection for booting devices.

Have waitForConnection actually wait until the device is ONLINE before returning
it.  Also give the on device monkey some more time to startup.

Change-Id: I86193a8532a84d64dddd9a60012af4f3ef507841

13 years agomerge from tools_r7
Jean-Baptiste Queru [Thu, 23 Sep 2010 16:46:28 +0000 (09:46 -0700)]
merge from tools_r7

Change-Id: Iea8ce7b939b70244eaf10cf716770ab8f1659d38

13 years agoADT: change to 0.9.9 (fix for ADT removing source folders)
Raphael Moll [Wed, 22 Sep 2010 19:41:35 +0000 (12:41 -0700)]
ADT: change to 0.9.9 (fix for ADT removing source folders)

Change-Id: I0a177531edd35d91a7994760881474f285dc7832

13 years agoFix an issue where src files can be deleted in ADT.
Xavier Ducrohet [Wed, 22 Sep 2010 17:23:38 +0000 (10:23 -0700)]
Fix an issue where src files can be deleted in ADT.

Older projects generated the java class (R, aidl) into
the main src folder.

There is code in ADT to migrate them to the new model
(where generated classes go in gen/) by removing derived
resources from the source folder. This is also used
by the clean feature of the pre-compiler builder
to clean the content of gen.

To make it better, in ADT 0.9.8, we added something to
delete the folder containing the derived resources.
Except this doesn't check if the folder is not empty
after the derived resources have been deleted (or
not if it contained non-derived resources).

this means importing older projects (or possibly
team projects -- see http://b.android.com/11347)
would delete the whole content of the source folder.

This change makes sure that only folders for which
all members have been deleted are deleted.

Change-Id: I1ddbb3bd4c37859c7ddbf660377c598bae246269

13 years agomerge from open-source master
The Android Open Source Project [Wed, 22 Sep 2010 18:54:46 +0000 (11:54 -0700)]
merge from open-source master

Change-Id: I62a5b76c5366502d8988579e0a3e4031e17b1cb4

13 years agoMerge "Fix an issue where src files can be deleted in ADT."
Xavier Ducrohet [Wed, 22 Sep 2010 18:52:10 +0000 (11:52 -0700)]
Merge "Fix an issue where src files can be deleted in ADT."