OSDN Git Service

android-x86/sdk.git
12 years agoMerge "Welcome Wizard"
Tor Norbye [Fri, 23 Sep 2011 23:09:18 +0000 (16:09 -0700)]
Merge "Welcome Wizard"

12 years agoWelcome Wizard
Tor Norbye [Wed, 21 Sep 2011 22:12:08 +0000 (15:12 -0700)]
Welcome Wizard

This changeset adds a new "Welcome Wizard" which is shown the first
time a user runs Eclipse with the ADT plugin.

The welcome wizard asks for two pieces of information:

(1) The location of the SDK.
(2) Whether the user agrees to gathering usage statistics.

We've needed this information before, but collection of the data had
been more ad-hoc: The usage data permission dialog would show up on
its own, and the SDK information would be requested the first time
some code path touched it (e.g.  opening a layout or opening the
preference dialog's Android page etc).

In addition, the wizard also offers to *install* SDKs if you don't
already have one. It gives the option between the latest available
platform, and one supported by a large majority of devices (currently
API level 7), or both. If you select this option, then when finishing
the wizard the SDK manager is run in a special mode where it installs
the required packages with a progress dialog.

This changeset also starts recording the chosen SDK location in the
~/.android settings file. This allows us to detect when you're running
Eclipse in a brand new workspace and you've already gone through the
SDK selection before, and we don't need to ask again -- we'll just use
the most recently known location.

The wizard will only be shown once. If you bypass or cancel out of the
wizard, you can still configure your SDK the old way - via the
Preference dialog. Note also that the usage permission page is only
shown if the user has not already opted in via say ddms.

NOTE: If you want to test this, make sure you haven't set the
environment variable ADT_TEST_SDK_PATH (as some of us do for running
unit tests) since it is treated as the user having selected the given
SDK root, and in particular it means the wizard won't be shown even if
you've wiped adtUsed=true from your ~/.android/ddms.cfg etc.

Change-Id: I0a4e2c4efce84aca9beae394ce67e4c145cbb000

12 years agoWhen creating AVDs, check ABI before prompting for hw config.
Xavier Ducrohet [Fri, 23 Sep 2011 22:24:47 +0000 (15:24 -0700)]
When creating AVDs, check ABI before prompting for hw config.

The check verifies the number of available ABIs and the presence
of the --abi option (required if 2+ ABIs).

This avoid going through all the hardware config to then get an error
because --abi is missing.

Change-Id: I64fefc73f4cb3d9a420309ad1850fa6c30f70e0d

12 years agoam 9c769215: (-s ours) CherryPick 67000f from master. do not merge.
Xavier Ducrohet [Fri, 23 Sep 2011 19:58:36 +0000 (12:58 -0700)]
am 9c769215: (-s ours) CherryPick 67000f from  do not merge.

* commit '9c7692151010d9ae4d52b645c5a2e7fea3fe9dda':
  CherryPick 67000f from master. do not merge.

12 years agoCherryPick 67000f from master. do not merge.
Xavier Ducrohet [Fri, 23 Sep 2011 19:43:41 +0000 (12:43 -0700)]
CherryPick 67000f from master. do not merge.

Fix ADT builder to use the modified ApkBuilder api.

Change-Id: Id73c5994748187396d3d9cd21dff3c2efa377504

12 years agoMerge "Fix ADT builder to use the modified ApkBuilder api."
Xavier Ducrohet [Fri, 23 Sep 2011 19:44:41 +0000 (12:44 -0700)]
Merge "Fix ADT builder to use the modified ApkBuilder api."

12 years agoFix ADT builder to use the modified ApkBuilder api.
Xavier Ducrohet [Fri, 23 Sep 2011 19:43:41 +0000 (12:43 -0700)]
Fix ADT builder to use the modified ApkBuilder api.

Change-Id: I885ae1f2a9e6a004a280632b7fb716d746104653

12 years agoFix ADT build.
Raphael [Fri, 23 Sep 2011 19:13:49 +0000 (12:13 -0700)]
Fix ADT build.

Change-Id: I329115eff351ffd4875c018c71d77c6699f61d68

12 years agoam 41d3d5c1: (-s ours) CherryPick 2c8cce from master. do not merge.
Xavier Ducrohet [Fri, 23 Sep 2011 19:05:19 +0000 (12:05 -0700)]
am 41d3d5c1: (-s ours) CherryPick 2c8cce from  do not merge.

* commit '41d3d5c11fec1b5a20fdb895fb32152f28af374b':
  CherryPick 2c8cce from master. do not merge.

12 years agoam 5d9df469: (-s ours) CherryPick 15fa2c from master. do not merge.
Xavier Ducrohet [Fri, 23 Sep 2011 19:05:18 +0000 (12:05 -0700)]
am 5d9df469: (-s ours) CherryPick 15fa2c from  do not merge.

* commit '5d9df469ba3662afefa78447c323cdfccb40b60b':
  CherryPick 15fa2c from master. do not merge.

12 years agoam 0802f230: (-s ours) CherryPick a9a282 from master. do not merge.
Xavier Ducrohet [Fri, 23 Sep 2011 19:05:17 +0000 (12:05 -0700)]
am 0802f230: (-s ours) CherryPick a9a282 from  do not merge.

* commit '0802f23053c774a0ed8d122532a9694f742cc74f':
  CherryPick a9a282 from master. do not merge.

12 years agoCherryPick 2c8cce from master. do not merge.
Xavier Ducrohet [Fri, 23 Sep 2011 17:53:31 +0000 (10:53 -0700)]
CherryPick 2c8cce from master. do not merge.

Fix dependency support for aild.

The aidl task doesn't use InputPath so it fails to
check files for modifications.

Change-Id: I1000c0fad69791461e8021a95214d044fad71674

12 years agoCherryPick 15fa2c from master. do not merge.
Xavier Ducrohet [Fri, 23 Sep 2011 02:14:22 +0000 (19:14 -0700)]
CherryPick 15fa2c from master. do not merge.

Make the zip align ant step check timestamp on intput/output.

If the output is more recent than the input, zipalign does nothing.

Change-Id: I51146f0da9697e8f8bfc19e4d6bea80006f101b5

12 years agoCherryPick a9a282 from master. do not merge.
Xavier Ducrohet [Fri, 2 Sep 2011 01:27:32 +0000 (18:27 -0700)]
CherryPick a9a282 from master. do not merge.

Add dependency support for ApkBuilder ant step.

Change-Id: Ia51f745f3bb0a91bafe0396804b999a0e39578ea

12 years agoMerge "Address some comments on the DdmsPreferenceStore."
Raphael [Fri, 23 Sep 2011 18:30:04 +0000 (11:30 -0700)]
Merge "Address some comments on the DdmsPreferenceStore."

12 years agoam 2531261d: (-s ours) Display the full error info for broken packages. DO NOT MERGE.
Raphael [Fri, 23 Sep 2011 18:13:27 +0000 (11:13 -0700)]
am 2531261d: (-s ours) Display the full error info for broken packages. DO NOT MERGE.

* commit '2531261d23b716c57c81f7f7f73f4d2872ce0cdb':
  Display the full error info for broken packages. DO NOT MERGE.

12 years agoMerge "SDK: Fix traceview build."
Raphael [Fri, 23 Sep 2011 18:11:38 +0000 (11:11 -0700)]
Merge "SDK: Fix traceview build."

12 years agoSDK: Fix traceview build.
Raphael [Fri, 23 Sep 2011 18:12:57 +0000 (11:12 -0700)]
SDK: Fix traceview build.

Change-Id: I63db9e08561598ac95cb9944be7107c2a7151efe

12 years agoAddress some comments on the DdmsPreferenceStore.
Raphael [Fri, 23 Sep 2011 18:00:59 +0000 (11:00 -0700)]
Address some comments on the DdmsPreferenceStore.

Change-Id: Ib2ffeef63c2e5b04638fc2cf562a3f958cbd6a8b

12 years agoMerge "Fix dependency support for aild."
Xavier Ducrohet [Fri, 23 Sep 2011 17:59:08 +0000 (10:59 -0700)]
Merge "Fix dependency support for aild."

12 years agoMerge "Make the zip align ant step check timestamp on intput/output."
Xavier Ducrohet [Fri, 23 Sep 2011 17:55:15 +0000 (10:55 -0700)]
Merge "Make the zip align ant step check timestamp on intput/output."

12 years agoMerge "Add dependency support for ApkBuilder ant step."
Xavier Ducrohet [Fri, 23 Sep 2011 17:54:51 +0000 (10:54 -0700)]
Merge "Add dependency support for ApkBuilder ant step."

12 years agoFix dependency support for aild.
Xavier Ducrohet [Fri, 23 Sep 2011 17:53:31 +0000 (10:53 -0700)]
Fix dependency support for aild.

The aidl task doesn't use InputPath so it fails to
check files for modifications.

Change-Id: I589dda40538ed8cb16904407693329979536c5f5

12 years agoMerge "Tweak AdtUpdater dialog to install a fresh new SDK."
Raphael [Fri, 23 Sep 2011 17:20:48 +0000 (10:20 -0700)]
Merge "Tweak AdtUpdater dialog to install a fresh new SDK."

12 years agoMerge "Add support to make identity files from the command line."
Xavier Ducrohet [Fri, 23 Sep 2011 17:19:34 +0000 (10:19 -0700)]
Merge "Add support to make identity files from the command line."

12 years agoMerge "Extract DDMS PreferenceStore."
Raphael [Fri, 23 Sep 2011 17:19:17 +0000 (10:19 -0700)]
Merge "Extract DDMS PreferenceStore."

12 years agoAdd support to make identity files from the command line.
Xavier Ducrohet [Thu, 15 Sep 2011 23:14:02 +0000 (16:14 -0700)]
Add support to make identity files from the command line.

Change-Id: Ifaa1b4653ea6c1b311e711bd285d08afb0d3e12c

12 years agoMake the zip align ant step check timestamp on intput/output.
Xavier Ducrohet [Fri, 23 Sep 2011 02:14:22 +0000 (19:14 -0700)]
Make the zip align ant step check timestamp on intput/output.

If the output is more recent than the input, zipalign does nothing.

Change-Id: Ic1d7518a28fbb2db8895903e5cd0fd2976931b41

12 years agoAdd dependency support for ApkBuilder ant step.
Xavier Ducrohet [Fri, 2 Sep 2011 01:27:32 +0000 (18:27 -0700)]
Add dependency support for ApkBuilder ant step.

Change-Id: I7230a2aa3df5fab8b420f1ed2f359621fbda7f5a

12 years agoTweak AdtUpdater dialog to install a fresh new SDK.
Raphael [Fri, 23 Sep 2011 04:33:36 +0000 (21:33 -0700)]
Tweak AdtUpdater dialog to install a fresh new SDK.

Change-Id: I669db86370c449f25974b9171931d583233eb3e8

12 years agoAdd support for filtering out zygote allocations.
Siva Velusamy [Thu, 22 Sep 2011 23:08:59 +0000 (16:08 -0700)]
Add support for filtering out zygote allocations.

Maintain separate list of non zygote allocations and switch to
displaying the filtered list based on user input.

Change-Id: Ib1fbbcb2ada55255a2f9dad02f3cf1dea18cbeda

12 years agoExtract DDMS PreferenceStore.
Raphael [Thu, 22 Sep 2011 22:27:35 +0000 (15:27 -0700)]
Extract DDMS PreferenceStore.

Splits DDMS PreferenceStore management in
a separate class and add the methods we need
for ADT first-time wizard.

Various pieces of DDMS access the pref store
via the PrefsDialog. This could use a cleanup
eventually later.

Change-Id: Ie1e90b9a4d7e4c9b057b506eae239ba7e8ece37d

12 years agoShow percentage of total heap size for each row.
Siva Velusamy [Thu, 22 Sep 2011 21:37:47 +0000 (14:37 -0700)]
Show percentage of total heap size for each row.

Change-Id: Iabfb5f246ca5c22cf0097300e66ba128b5174562

12 years agoMake library to be the first column in the details view.
Siva Velusamy [Thu, 22 Sep 2011 19:43:13 +0000 (12:43 -0700)]
Make library to be the first column in the details view.

There are two reasons for this change:
1. When allocations are grouped by library, it is nice to have
the library in the first column immediately signifying the grouping.
2. The first column is always left aligned on some platforms (Linux).
This is not the right alignment for showing numbers (they should be
right aligned).

Change-Id: I36a3fef17265da41e3e6d709f38d3fd6e28d233b

12 years agoDisplay the full error info for broken packages. DO NOT MERGE.
Raphael [Wed, 21 Sep 2011 22:17:50 +0000 (15:17 -0700)]
Display the full error info for broken packages. DO NOT MERGE.

The BrokenPackage contains a "long description" that
contains the error (why it is broken). We need to use
that and not override it with the base package
description.

(cherry picked from commit 53c2f0ce0dfac607c6ff3b6350b61ba134cd7eeb)

Change-Id: I6a1f1e7047ca8d37ec7c62325d1cd1d2248f6b9f

12 years agoSupport grouping of allocations by library.
Siva Velusamy [Thu, 22 Sep 2011 18:33:08 +0000 (11:33 -0700)]
Support grouping of allocations by library.

Currently, all allocations are displayed as a list sorted by
the size of the allocation.

This patch set enables the toolbar checkbox to group the list of
allocations by library. When this is checked, the display refreshes
to show a tree with the root nodes being libraries, and their
children being the list of allocations made from that library.

Change-Id: Ibb61242db8c6e58d300f767f0b2b11b6b7a9530d

12 years agoAdd support for user specifying search paths in the UI.
Siva Velusamy [Wed, 21 Sep 2011 22:16:14 +0000 (15:16 -0700)]
Add support for user specifying search paths in the UI.

Fix Addr2line to use the search path to locate binaries.

Change-Id: I5ba901144faa70d4507d9286ade1cc49828d41ac

12 years agoFindbugs fix: Use Character.toString()
Siva Velusamy [Wed, 21 Sep 2011 22:11:38 +0000 (15:11 -0700)]
Findbugs fix: Use Character.toString()

Change-Id: I7a50c09b3cc7028caef2302154bfe6fea8bef556

12 years agoMerge "Display the full error info for broken packages."
Raphael [Thu, 22 Sep 2011 18:29:18 +0000 (11:29 -0700)]
Merge "Display the full error info for broken packages."

12 years agoMerge "Resolve addresses to symbols in a separate thread."
Siva Velusamy [Thu, 22 Sep 2011 17:06:53 +0000 (10:06 -0700)]
Merge "Resolve addresses to symbols in a separate thread."

12 years agoDisplay the full error info for broken packages.
Raphael [Wed, 21 Sep 2011 22:17:50 +0000 (15:17 -0700)]
Display the full error info for broken packages.

The BrokenPackage contains a "long description" that
contains the error (why it is broken). We need to use
that and not override it with the base package
description.

Change-Id: I3eff79f2f9aabd54c2f1eaf7b671bdfe929627df

12 years agoBug fixes for render target selection and project combo
Tor Norbye [Wed, 21 Sep 2011 16:41:07 +0000 (09:41 -0700)]
Bug fixes for render target selection and project combo

This changeset fixes two bugs:

(1) Make sure that the default render target chosen for a newly opened
    layout is the same as the project build target, if the project
    build target is a preview release.

(2) Ensure that the project selector combo updates its selection to
    show the selected project when it is set (without this there were
    scenarios where the New XML File dialog would not show the project
    it had actually found and selected internally.

Change-Id: Ia9dd9d75e42f9e8b9d312fc0d951f798c578165f

12 years agoResolve addresses to symbols in a separate thread.
Siva Velusamy [Tue, 20 Sep 2011 23:52:01 +0000 (16:52 -0700)]
Resolve addresses to symbols in a separate thread.

After retrieving a heap dump, start a thread to resolve all the
addresses present in the dump. Refresh the UI with the resolved
symbols once the process is complete.

Change-Id: Iac2d24e91685b6c4e10985b3dfce00e79e1db10b

12 years agoDisplay stack trace for selected Heap Allocation.
Siva Velusamy [Tue, 20 Sep 2011 22:28:10 +0000 (15:28 -0700)]
Display stack trace for selected Heap Allocation.

Minor changes in a few other places to return List's instead of
arrays.

Change-Id: I25ddc25ebc1c91677d16e9d77dc0f8a51022bc1b

12 years agoNew implementation of native heap - layout only.
Siva Velusamy [Tue, 20 Sep 2011 19:18:54 +0000 (12:18 -0700)]
New implementation of native heap - layout only.

Address resolution to symbols to come in future CL's.

12 years agoWhen requesting NHGT, disable NHSG.
Siva Velusamy [Mon, 19 Sep 2011 18:51:40 +0000 (11:51 -0700)]
When requesting NHGT, disable NHSG.

NHGT = Native Heap GeT
NHSG = Native Heap Segment Data

Currently, ddmlib doesn't do much processing of the NHSG data anyway.
Adding NHSG causes a stream of segment data updates sent from the client,
which is then ignored.

Change-Id: Ifb95e9a744cd5c733593abb1bb83446796e7b50a

12 years agoUse foreach instead of iterator
Siva Velusamy [Sat, 17 Sep 2011 23:19:13 +0000 (16:19 -0700)]
Use foreach instead of iterator

Change-Id: I06c3f52313ae06ff2b51cbe6b302409bd4efca5b

12 years agoFix ADT build.
Raphael [Tue, 20 Sep 2011 07:07:07 +0000 (00:07 -0700)]
Fix ADT build.

Change-Id: Ibfa4d889a4194f9b285bc904b9913a811037c3de

12 years agoMerge "Enable SDK Repo to use latest XSD versions."
Raphael Moll [Sun, 18 Sep 2011 05:10:19 +0000 (22:10 -0700)]
Merge "Enable SDK Repo to use latest XSD versions."

This requires development.git Change-Id If3beb09a to build.

Manual cherry-pick of b889a8783158f156bc95ec3c63cccd60e210f1d1.
Apparently it wasn't auto-merged automatically.

Change-Id: I12f9da8e5348e8524294866f3e400110926e8317

12 years agoMerge "Build AVD Manager.exe as part of Windows SDK."
Raphael Moll [Tue, 20 Sep 2011 03:36:32 +0000 (20:36 -0700)]
Merge "Build AVD Manager.exe as part of Windows SDK."

12 years agoMerge "SDK: change way system image packages are loaded."
Raphael [Tue, 20 Sep 2011 03:36:21 +0000 (20:36 -0700)]
Merge "SDK: change way system image packages are loaded."

12 years agoMerge "Make sure renderscript's -target-api receives 11+"
Xavier Ducrohet [Mon, 19 Sep 2011 23:41:05 +0000 (16:41 -0700)]
Merge "Make sure renderscript's -target-api receives 11+"

12 years agoMerge "SDK Manager: Extract all source.properties constants."
Raphael [Mon, 19 Sep 2011 22:01:36 +0000 (15:01 -0700)]
Merge "SDK Manager: Extract all source.properties constants."

12 years agoMake sure renderscript's -target-api receives 11+
Xavier Ducrohet [Sun, 18 Sep 2011 22:00:17 +0000 (15:00 -0700)]
Make sure renderscript's -target-api receives 11+

Change-Id: Id4012b8c86212b3874c0820ba9c71136083cd5f2

12 years agoBuild AVD Manager.exe as part of Windows SDK.
Raphael Moll [Sat, 17 Sep 2011 18:25:36 +0000 (11:25 -0700)]
Build AVD Manager.exe as part of Windows SDK.

Also make sure the sdk manager post install will
update the AVD Manager as required.

Change-Id: I969899adf69f0ed0ddb1ef079451683dd0ce567f

12 years agoSDK: change way system image packages are loaded.
Raphael [Sun, 18 Sep 2011 22:21:50 +0000 (15:21 -0700)]
SDK: change way system image packages are loaded.

This change the system image packages to not care
about the directory name of where they are located
and instead enforce the presence of a source.properties
file.

Change-Id: I580a0c04a453297ae7ddf9de8e012fd65d34d776

12 years agoSDK Manager: Extract all source.properties constants.
Raphael [Sun, 18 Sep 2011 18:35:52 +0000 (11:35 -0700)]
SDK Manager: Extract all source.properties constants.

The SDK Manager uses specific constants to save
local source.properties files in installed packages.
This moves all these constants in a common constant
class and makes it explicit that these constants
form some kind of API that can't be changed arbitrarily.

Change-Id: I005f13f53768fbcc677edf94be0b4c13e19e3ec8

12 years agoSDK Manager: tooltips on package table.
Raphael [Sun, 18 Sep 2011 04:43:32 +0000 (21:43 -0700)]
SDK Manager: tooltips on package table.

This adds tooltips to the package table.
The tooltip displays the long description of the
packages. This is especially useful from broken
packages (e.g. those that did not load correctly)
since it indicates what failed.

Change-Id: I6e53d0959d6dd056414e91d9a27393d989517bd8

12 years agoMerge "Specify the full path to atree for the windows.atree"
Raphael [Fri, 16 Sep 2011 22:53:12 +0000 (15:53 -0700)]
Merge "Specify the full path to atree for the windows.atree"

12 years agoMerge "Improve error message if manifest has wrong minSdkVersion."
Xavier Ducrohet [Fri, 16 Sep 2011 22:47:26 +0000 (15:47 -0700)]
Merge "Improve error message if manifest has wrong minSdkVersion."

12 years agoSpecify the full path to atree for the windows.atree
Raphael [Fri, 16 Sep 2011 22:28:45 +0000 (15:28 -0700)]
Specify the full path to atree for the windows.atree

Somehow the build server doesn't automatically find atree.
In a future CL this should be amended to pass the proper
OUT_HOST_EXECUTABLE, being careful that it points to the
host/linux dir, not the current Windows one.

Change-Id: Ibb78a517c33d46454828a5932408108dadbee497

12 years agoImprove error message if manifest has wrong minSdkVersion.
Xavier Ducrohet [Fri, 16 Sep 2011 21:02:09 +0000 (14:02 -0700)]
Improve error message if manifest has wrong minSdkVersion.

Change-Id: I00ceed502f0a756183198ebbe77da8f2e7fb303d

12 years agoMerge "SDK Manager: make 'list sdk' ids deterministic."
Raphael [Fri, 16 Sep 2011 20:03:15 +0000 (13:03 -0700)]
Merge "SDK Manager: make 'list sdk' ids deterministic."

12 years agoSDK Manager: make 'list sdk' ids deterministic.
Raphael [Fri, 16 Sep 2011 05:07:39 +0000 (22:07 -0700)]
SDK Manager: make 'list sdk' ids deterministic.

This changes 'android list sdk' to output deterministic
install IDs. These IDs can then be give to 'android update sdk'.

Example of usage:

 $ android list sdk --extended
 Refresh Sources: [...]
 ----------
 id: 2 or "android-13"
      Type: Platform
      Desc: Android SDK Platform 3.2, revision 1
 [...]
 ----------
 id: 41 or "extra-google-usb_driver"
      Type: Extra
      Desc: USB Driver for Windows, revision 4

 $ android update sdk --no-ui --filter android-13,extra-google-usb_driver
 => This installs the platform API 13 and the USB Driver.

SDK Bug: 19504

Change-Id: I3109c90371d292df4e9cf845208bf8efe774233f

12 years agoMerge "Update year in copyright notices to 2011."
Siva Velusamy [Fri, 16 Sep 2011 20:01:47 +0000 (13:01 -0700)]
Merge "Update year in copyright notices to 2011."

12 years agoMerge "Pass -target-api to the renderscript compiler."
Xavier Ducrohet [Fri, 16 Sep 2011 19:40:36 +0000 (12:40 -0700)]
Merge "Pass -target-api to the renderscript compiler."

12 years agoUpdate year in copyright notices to 2011.
Siva Velusamy [Fri, 16 Sep 2011 19:04:34 +0000 (12:04 -0700)]
Update year in copyright notices to 2011.

Change-Id: Ibe1042437e4f320a034be176b0b8efc7d205f79b

12 years agoMerge "Use atree for the Windows SDK. Strip binaries."
Raphael [Fri, 16 Sep 2011 18:03:00 +0000 (11:03 -0700)]
Merge "Use atree for the Windows SDK. Strip binaries."

12 years agoAVD Launcher.exe for the Windows SDK.
Raphael [Fri, 16 Sep 2011 16:18:08 +0000 (09:18 -0700)]
AVD Launcher.exe for the Windows SDK.

In Tools R14, the Windows SDK will have 2 icons in the root
of the SDK: one to launch the AVD window, and a different one
to launche the SDK Manager window.

I'll need to change the icon in a later CL. I don't have
any ICO editor at hand right now.

Change-Id: Ic651e3c3d71c2eac5fe851fba8ea2782eca5e594

12 years agoPass -target-api to the renderscript compiler.
Xavier Ducrohet [Fri, 16 Sep 2011 01:10:59 +0000 (18:10 -0700)]
Pass -target-api to the renderscript compiler.

This allows to use a single llvm executable to target
all API versions.

Change-Id: Ib27f7fc9e54c548d31fc98fc323f439cb99218d5

12 years agoSDK Manager: fix reload issue.
Raphael [Thu, 15 Sep 2011 20:58:17 +0000 (13:58 -0700)]
SDK Manager: fix reload issue.

From time to time the sdk manager wasn't properly
refreshing its list. This was due to its reload operation
not properly clearing the platform/addons targets listed
by the SdkManager instance. Clearing them forces the
LocalPackageParser to really reparse directories on disk.

Change-Id: I99bcb4a78749d673db5b1ec2436a1af7538e48ee

12 years agoUse atree for the Windows SDK. Strip binaries.
Raphael [Thu, 15 Sep 2011 04:11:30 +0000 (21:11 -0700)]
Use atree for the Windows SDK. Strip binaries.

This moves the copy/strip/rm logic for the Windows SDK
fro mthe patch_windows_sdk.sh to a regular tools.windows.atree.

The bash script is still here to invoke atree and do whatever
cleanup we might want to do later.

This should make it easier to maintain the Windows SDK
by providing a structure similar to tools.atree.

This change requires build.git Change-Id: I22aae7a8 to
have rm/strip support in atree.

Change-Id: Ie6c30979454fb71fc1cb26ab3f6c38acd47bae57

12 years agoMerge "Allow custom run name in IRemoteAndroidTestRunner."
Brett Chabot [Thu, 15 Sep 2011 18:21:20 +0000 (11:21 -0700)]
Merge "Allow custom run name in IRemoteAndroidTestRunner."

12 years agoMerge "Default HPROF dump action should be to save hprof file."
Siva Velusamy [Thu, 15 Sep 2011 18:17:33 +0000 (11:17 -0700)]
Merge "Default HPROF dump action should be to save hprof file."

12 years agoAllow custom run name in IRemoteAndroidTestRunner.
Brett Chabot [Thu, 15 Sep 2011 00:45:25 +0000 (17:45 -0700)]
Allow custom run name in IRemoteAndroidTestRunner.

Change-Id: I6a332ea16243f43d080e4d88e914d6b2e940ce97

12 years agoUse default system font size.
Siva Velusamy [Thu, 15 Sep 2011 00:31:59 +0000 (17:31 -0700)]
Use default system font size.

And make sure that the default logcat table row height is high
enough for the currently used font.

Change-Id: Ibfabb05b92add42c6d0acb2b79668f93b833057f

12 years agoMerge "Fix SDK target selector to avoid horizontal scrollbar"
Tor Norbye [Wed, 14 Sep 2011 23:28:47 +0000 (16:28 -0700)]
Merge "Fix SDK target selector to avoid horizontal scrollbar"

12 years agoFix SDK target selector to avoid horizontal scrollbar
Tor Norbye [Wed, 14 Sep 2011 19:01:16 +0000 (12:01 -0700)]
Fix SDK target selector to avoid horizontal scrollbar

This changeset works around a Mac SWT issue where a checkbox table
will not take into account the size of the checkbox column, so you end
up with a horizontal scrollbar. To work around this, we compute the
size of checkboxes and subtract it from the available width when
distributing column sizes.

Change-Id: I9c03b987f57bc992487b67d24215134ae0d5b0b8

12 years agoMerge "Copy OpenGLES emulation libraries to SDK installation."
David Turner [Wed, 14 Sep 2011 13:32:31 +0000 (06:32 -0700)]
Merge "Copy OpenGLES emulation libraries to SDK installation."

12 years agoMerge changes I74718caa,I5811c160
Raphael [Wed, 14 Sep 2011 04:08:24 +0000 (21:08 -0700)]
Merge changes I74718caa,I5811c160

* changes:
  SdkManager: double selection on tree viewer.
  Tweak sdk manager progress bar.

12 years agoDefault HPROF dump action should be to save hprof file.
Siva Velusamy [Wed, 14 Sep 2011 00:08:09 +0000 (17:08 -0700)]
Default HPROF dump action should be to save hprof file.

Change-Id: I3ade32621326456f030d9aaa581b011420fe4413

12 years agoImprove validation error messages when SDKs are loading
Tor Norbye [Tue, 13 Sep 2011 21:35:48 +0000 (14:35 -0700)]
Improve validation error messages when SDKs are loading

If you bring up the "Create New Sample Project" wizard in an Eclipse
that has no open editors (so nothing has triggered an SDK load yet),
you will get an error message that is a bit misleading (that the
selected SDK has no samples), and even when the SDK finishes loading
the validation isn't updated.

This changeset improves this situation such that there is a message
during loading stating to wait, which gets cleared once it's done.

Change-Id: I5d0798eff3b4fea9c8835c2f88c5bc430110aac0

12 years agoSdkManager: double selection on tree viewer.
Raphael [Tue, 13 Sep 2011 21:04:15 +0000 (14:04 -0700)]
SdkManager: double selection on tree viewer.

Change-Id: I74718caa48a59f132b6d37988625376c312bba27

12 years agoTweak sdk manager progress bar.
Raphael [Tue, 13 Sep 2011 19:59:30 +0000 (12:59 -0700)]
Tweak sdk manager progress bar.

Change-Id: I5811c1601578a9e6e53d59f13ba469d2ce7d767f

12 years agoNew Project Wizard overhaul
Tor Norbye [Thu, 8 Sep 2011 14:32:20 +0000 (07:32 -0700)]
New Project Wizard overhaul

This changeset splits the New Project Wizard into multiple logical
wizards (a separate one for samples, testing and plain projects), and
each wizard contains multiple pages - such as a separate page for SDK
selection, a separate page for Sample selection, a separate page for
Test target selection, and so on.

In addition, sample projects are now copied into the workspace itself
such that they can be modified and deleted without affecting the mater
copy in the SDK install directory. Samples can also be accessed from a
new separate entry in the New wizard.

The SWT code is now maintained with WindowBuilder. Most of the code in
NewProjectWizard was related to actually building the projects, and
this code is preserved in the new NewProjectCreator class which is
used by unit tests etc such that we don't need to create a stub wizard
and stub wizard page anymore.

Change-Id: I64872722e320a109870403d25fdf051270b526ed

12 years agoMerge "Change Project selector button to be a Combobox instead"
Tor Norbye [Tue, 13 Sep 2011 19:26:09 +0000 (12:26 -0700)]
Merge "Change Project selector button to be a Combobox instead"

12 years agoFix scroll behavior on Win 7.
Siva Velusamy [Tue, 13 Sep 2011 16:23:45 +0000 (09:23 -0700)]
Fix scroll behavior on Win 7.

The windows scrollbar never actually touches the bottom of the scroll area.
Compensate for that in the shouldScrollToLatestLog() function.

Change-Id: If3178d0519cac262d9208d3cd486588f895936ff

12 years agoCopy OpenGLES emulation libraries to SDK installation.
David 'Digit' Turner [Mon, 29 Aug 2011 19:49:13 +0000 (21:49 +0200)]
Copy OpenGLES emulation libraries to SDK installation.

This patch ensures that the following host shared libraries
are copies to $SDK/tools/lib, when building the SDK:

  - libOpenglRender
  - libEGL_translator
  - libGLES_CM_translator
  - libGLES_V2_translator

Note that the Windows DLL must be copied manually in patch_windows_sdk.sh
I didn't find a way to make it work using tools.atree.

This has been tested to build the Linux, Windows and OS X SDK images.

Change-Id: Idae8fe705befbbcc31e8d4ff71998ea0803b32f1

12 years agoMerge "Do not add a border for the filters toolbar."
Siva Velusamy [Mon, 12 Sep 2011 23:34:23 +0000 (16:34 -0700)]
Merge "Do not add a border for the filters toolbar."

12 years agoFix a couple potential NPEs in ADT and AVD Manager.
Raphael [Mon, 12 Sep 2011 23:24:45 +0000 (16:24 -0700)]
Fix a couple potential NPEs in ADT and AVD Manager.

In ADT, fix a potential NPE when reading manifest data.

In AVD Manager, fix a potential NPE if the AVD manager tries
to print the path of the AVD folder but AndroidPrefs failed
to find a suitable location.

Change-Id: Ib2df005b270bcd11e96f16430d2983474478d9eb

12 years agoDo not add a border for the filters toolbar.
Siva Velusamy [Mon, 12 Sep 2011 22:28:08 +0000 (15:28 -0700)]
Do not add a border for the filters toolbar.

Change-Id: I5e3f5f859905b77e9a2af7d38d970ff6b8e3172b

12 years agoChange Project selector button to be a Combobox instead
Tor Norbye [Mon, 12 Sep 2011 16:38:05 +0000 (09:38 -0700)]
Change Project selector button to be a Combobox instead

This changeset changes the widget used for project selection from a
button to a combobox.

It also fixes a couple of bugs in the New XML File Wizard:
- First, changing a project would clear out the root types table
- Second, the copy to clipboard button didn't work; the event handler
  was missing.
- Third, validate fields in visual order

Change-Id: Ibf4899fc3f9c9ec343d97532870df8e32a49bee0

12 years agoCreate logcat table with SWT.VIRTUAL.
Siva Velusamy [Fri, 9 Sep 2011 22:05:19 +0000 (15:05 -0700)]
Create logcat table with SWT.VIRTUAL.

Without SWT.VIRTUAL, the UI responsiveness goes down significantly
when large numbers of logcat messages are received.

Unfortunately, enabling it causes SWT to make all rows to be of
the same height, thereby clipping any long messages. In such a case,
the complete message can be viewed in the tooltip.

Change-Id: I78d6701ccac6ad94675e1ed707700eabfe34bce8

12 years agoReconcile with honeycomb-LTE-release
Jean-Baptiste Queru [Fri, 9 Sep 2011 12:45:07 +0000 (05:45 -0700)]
Reconcile with honeycomb-LTE-release

Change-Id: I3edd22663f45ee9a29ab95aab006627217875bd9

12 years agoFix build of ADT tests.
Raphael [Thu, 8 Sep 2011 20:03:53 +0000 (13:03 -0700)]
Fix build of ADT tests.

Change-Id: Ie1627d420c862dceff2197639f4006f61f7442c2

12 years agoMerge "Misc GridLayout interaction fixes"
Tor Norbye [Thu, 8 Sep 2011 16:45:27 +0000 (09:45 -0700)]
Merge "Misc GridLayout interaction fixes"

12 years agoMerge "Support for palette configurations in Change Layout Refactoring"
Tor Norbye [Thu, 8 Sep 2011 16:45:18 +0000 (09:45 -0700)]
Merge "Support for palette configurations in Change Layout Refactoring"

12 years agoMerge "Add/Remove wrap_content when converting GridLayouts"
Tor Norbye [Thu, 8 Sep 2011 16:45:10 +0000 (09:45 -0700)]
Merge "Add/Remove wrap_content when converting GridLayouts"

12 years agoMerge "Support property sheet customizers on Linux (issue #18348)"
Tor Norbye [Thu, 8 Sep 2011 16:44:34 +0000 (09:44 -0700)]
Merge "Support property sheet customizers on Linux (issue #18348)"

12 years agoLoad standalone system images in the SdkManager.
Raphael [Wed, 7 Sep 2011 18:32:31 +0000 (11:32 -0700)]
Load standalone system images in the SdkManager.

This revamps the way system images are handled
in the internal SdkManager class.

Before, a given IAndroidTarget could provide a list
of ABI strings it new about, discovered by parsing
the SDK/platform/images/xyz or SDK/addon/images/xyz
folder.

This introduces the notion of System Image to an
IAndroidTarget. A system image combines an ABI with
a location strategy (legacy images folder, images
sub-folder or standalone sdk/system-images folder)
and an actual location path.

Change-Id: If5b748aa9aef6788bc3c814818381c7918b40bca