OSDN Git Service

android-x86/sdk.git
12 years agoSDK: fix missing \n in 'android create avd'
Raphael [Fri, 30 Sep 2011 20:03:45 +0000 (13:03 -0700)]
SDK: fix missing \n in 'android create avd'

SDK Bug: 20430

Change-Id: Id427390c799165a1dff07530c6fce48488193055

12 years agoUpdate eclipse/changes.txt
Tor Norbye [Tue, 27 Sep 2011 15:59:15 +0000 (08:59 -0700)]
Update eclipse/changes.txt

Change-Id: I578e5c6f2197ad445894301fbc8c3780579ae8bc

12 years agoTweak usage panel message
Tor Norbye [Mon, 26 Sep 2011 22:18:25 +0000 (15:18 -0700)]
Tweak usage panel message

Change-Id: I99a2953f11e63f6646133c4727880487fe65f0d8

12 years agoam 3d73f98d: (-s ours) Welcome Wizard tweaks. Do not merge.
Tor Norbye [Mon, 26 Sep 2011 22:06:00 +0000 (15:06 -0700)]
am 3d73f98d: (-s ours) Welcome Wizard tweaks. Do not merge.

* commit '3d73f98d6ac275a01b3b88adf83b825cd70c986b':
  Welcome Wizard tweaks. Do not merge.

12 years agoam 0d48d0b6: (-s ours) Change welcome wizard string. Do not merge.
Raphael [Mon, 26 Sep 2011 22:06:00 +0000 (15:06 -0700)]
am 0d48d0b6: (-s ours) Change welcome wizard string. Do not merge.

* commit '0d48d0b6481cd642d2eb9652c2b8b898e9b0e784':
  Change welcome wizard string. Do not merge.

12 years agoWelcome Wizard tweaks. Do not merge.
Tor Norbye [Mon, 26 Sep 2011 21:11:22 +0000 (14:11 -0700)]
Welcome Wizard tweaks. Do not merge.

Use Yes/No radio buttons in the Usage Statistic page rather than a
checkbox, and validate that one of the options are chosen such that
the Finish button on page 1 is not enabled.

Also add the Android icon to the wizard.

(cherry picked from commit f5368be1b6cd95fd0ff065a1c624d812b8a260dd)

Change-Id: I4950f33921ba99ac4ec657adb477395c1cda0a07

12 years agoChange welcome wizard string. Do not merge.
Raphael [Mon, 26 Sep 2011 20:33:50 +0000 (13:33 -0700)]
Change welcome wizard string. Do not merge.

(cherry picked from commit 1632530362278dd0f0613bb0e7cfc67240cbaf59)

Change-Id: Iabfdc90a6941ffb62adc061af9d4cf5e24505e8e

12 years agoWelcome Wizard tweaks
Tor Norbye [Mon, 26 Sep 2011 21:11:22 +0000 (14:11 -0700)]
Welcome Wizard tweaks

Use Yes/No radio buttons in the Usage Statistic page rather than a
checkbox, and validate that one of the options are chosen such that
the Finish button on page 1 is not enabled.

Also add the Android icon to the wizard.

Change-Id: Ia8a7593883a7a6cb4126e644cc627edae77757ec

12 years agoChange welcome wizard string
Raphael [Mon, 26 Sep 2011 20:33:50 +0000 (13:33 -0700)]
Change welcome wizard string

Change-Id: I4f900bb20f6a55a44a2f61231524b82d9f96c9ee

12 years agoam a2091e03: (-s ours) Welcome wizard: validate when install common checkbox changed...
Raphael [Mon, 26 Sep 2011 17:01:55 +0000 (10:01 -0700)]
am a2091e03: (-s ours) Welcome wizard: validate when install common checkbox changed. Do not merge.

* commit 'a2091e03dd8440aed3ab3618befc67162d7bbedf':
  Welcome wizard: validate when install common checkbox changed. Do not merge.

12 years agoam a2fc0466: (-s ours) Prevent new install of tools from displaying update msg. Do...
Raphael [Mon, 26 Sep 2011 17:01:53 +0000 (10:01 -0700)]
am a2fc0466: (-s ours) Prevent new install of tools from displaying update msg. Do not merge.

* commit 'a2fc0466f6d784ab31306e4572a8af14fa5b2734':
  Prevent new install of tools from displaying update msg. Do not merge.

12 years agoam 84cbb7df: (-s ours) First time install: multiple platforms, fix shell disposed...
Raphael [Mon, 26 Sep 2011 17:01:53 +0000 (10:01 -0700)]
am 84cbb7df: (-s ours) First time install: multiple platforms, fix shell disposed. Do not merge.

* commit '84cbb7dfc89081b1c3429ed8c3568977cc354cd1':
  First time install: multiple platforms, fix shell disposed. Do not merge.

12 years agoam d0357c27: (-s ours) Welcome Wizard. Do not merge.
Tor Norbye [Mon, 26 Sep 2011 17:01:52 +0000 (10:01 -0700)]
am d0357c27: (-s ours) Welcome Wizard. Do not merge.

* commit 'd0357c27e602d6bec239897b8375d642bc590a62':
  Welcome Wizard. Do not merge.

12 years agoWelcome wizard: validate when install common checkbox changed. Do not merge.
Raphael [Sat, 24 Sep 2011 05:20:51 +0000 (22:20 -0700)]
Welcome wizard: validate when install common checkbox changed. Do not merge.

(cherry picked from commit 9e0c3a1110b123bd67befc1dd21a56c5f4bcd5ec)

Change-Id: I0e202549e7b8410bf4fe9c71e872cc3ad1d2fa30

12 years agoPrevent new install of tools from displaying update msg. Do not merge.
Raphael [Sat, 24 Sep 2011 05:17:19 +0000 (22:17 -0700)]
Prevent new install of tools from displaying update msg. Do not merge.

(cherry picked from commit 2a94ac98f9079e083ca88037b38244b5b5a46d7f)

Change-Id: Iee30e19c591cb375104fbcbeb3474c52a47df465

12 years agoFirst time install: multiple platforms, fix shell disposed. Do not merge.
Raphael [Sat, 24 Sep 2011 04:27:14 +0000 (21:27 -0700)]
First time install: multiple platforms, fix shell disposed. Do not merge.

Fixes for the first time install support:

- Support installing more than one platform.
  The custom install task was tailored before to one
  install a single package and return one status with
  on archive install path. This has been made more
  generic.

- Fix a couple occurences of the dreaded "SWT Shell disposed"
  error that happen when updating the progress bar and closing
  the window at the same time. The issue is that I was checking
  isDisposed before starting a syncExec but the window can be
  closed between the moment the syncExec is schedule and when it
  happens so code must check again for isDisposed inside the
  syncExec.

(cherry picked from commit 949dc34d6202ec5e318c30992bc11b61e0c64808)

Change-Id: I08976f2fcbba68f5371e410ffe8c741c1fa2c2dd

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

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.

(cherry picked from commit 292eefb8faa2f75ddbc5d6e20084c9f9a762da29)

Change-Id: Idb3f8775ef62a84905cde95b25eeb8691ef0afab

12 years agoMerge "Welcome wizard: validate when install common checkbox changed."
Raphael [Sat, 24 Sep 2011 22:28:49 +0000 (15:28 -0700)]
Merge "Welcome wizard: validate when install common checkbox changed."

12 years agoMerge "Prevent new install of tools from displaying update msg."
Raphael [Sat, 24 Sep 2011 22:27:06 +0000 (15:27 -0700)]
Merge "Prevent new install of tools from displaying update msg."

12 years agoMerge "First time install: multiple platforms, fix shell disposed."
Raphael [Sat, 24 Sep 2011 22:26:47 +0000 (15:26 -0700)]
Merge "First time install: multiple platforms, fix shell disposed."

12 years agoam 082f833d: (-s ours) Merge "Fix ADT build. Do not merge." into tools_r14
Raphael [Sat, 24 Sep 2011 19:25:44 +0000 (12:25 -0700)]
am 082f833d: (-s ours) Merge "Fix ADT build. Do not merge." into tools_r14

* commit '082f833d2eed8e6cb6e4e75a273f76b796902133':
  Fix ADT build. Do not merge.

12 years agoam f7078fc8: (-s ours) Merge "Address some comments on the DdmsPreferenceStore. Do...
Raphael [Sat, 24 Sep 2011 19:24:39 +0000 (12:24 -0700)]
am f7078fc8: (-s ours) Merge "Address some comments on the DdmsPreferenceStore. Do not merge." into tools_r14

* commit 'f7078fc825eed703af147ff8573d4ddeb47d35bb':
  Address some comments on the DdmsPreferenceStore. Do not merge.

12 years agoam 39da114d: (-s ours) Merge "SDK: Fix traceview build. Do not merge." into tools_r14
Raphael [Sat, 24 Sep 2011 19:24:38 +0000 (12:24 -0700)]
am 39da114d: (-s ours) Merge "SDK: Fix traceview build. Do not merge." into tools_r14

* commit '39da114da748ccf6c03e6766e0a8245333b49422':
  SDK: Fix traceview build. Do not merge.

12 years agoam 2acdb04f: (-s ours) Merge "Tweak AdtUpdater dialog to install a fresh new SDK...
Raphael [Sat, 24 Sep 2011 19:24:38 +0000 (12:24 -0700)]
am 2acdb04f: (-s ours) Merge "Tweak AdtUpdater dialog to install a fresh new SDK. Do not merge." into tools_r14

* commit '2acdb04f2841b9983151802196ef5e09a6a37c3e':
  Tweak AdtUpdater dialog to install a fresh new SDK. Do not merge.

12 years agoam ba0575d0: (-s ours) Merge "Extract DDMS PreferenceStore. Do not merge." into tools_r14
Raphael [Sat, 24 Sep 2011 19:24:37 +0000 (12:24 -0700)]
am ba0575d0: (-s ours) Merge "Extract DDMS PreferenceStore. Do not merge." into tools_r14

* commit 'ba0575d0156a888ec41d380a87d418969f0bd4e5':
  Extract DDMS PreferenceStore. Do not merge.

12 years agoMerge "Fix ADT build. Do not merge." into tools_r14
Raphael [Sat, 24 Sep 2011 19:24:22 +0000 (12:24 -0700)]
Merge "Fix ADT build. Do not merge." into tools_r14

12 years agoMerge "Address some comments on the DdmsPreferenceStore. Do not merge." into tools_r14
Raphael [Sat, 24 Sep 2011 19:24:12 +0000 (12:24 -0700)]
Merge "Address some comments on the DdmsPreferenceStore. Do not merge." into tools_r14

12 years agoMerge "SDK: Fix traceview build. Do not merge." into tools_r14
Raphael [Sat, 24 Sep 2011 19:24:04 +0000 (12:24 -0700)]
Merge "SDK: Fix traceview build. Do not merge." into tools_r14

12 years agoMerge "Tweak AdtUpdater dialog to install a fresh new SDK. Do not merge." into tools_r14
Raphael [Sat, 24 Sep 2011 19:23:56 +0000 (12:23 -0700)]
Merge "Tweak AdtUpdater dialog to install a fresh new SDK. Do not merge." into tools_r14

12 years agoMerge "Extract DDMS PreferenceStore. Do not merge." into tools_r14
Raphael [Sat, 24 Sep 2011 19:23:41 +0000 (12:23 -0700)]
Merge "Extract DDMS PreferenceStore. Do not merge." into tools_r14

12 years agoWelcome wizard: validate when install common checkbox changed.
Raphael [Sat, 24 Sep 2011 05:20:51 +0000 (22:20 -0700)]
Welcome wizard: validate when install common checkbox changed.

Change-Id: I8de07ed1b551d1b458d551c15a15551a4e890889

12 years agoPrevent new install of tools from displaying update msg.
Raphael [Sat, 24 Sep 2011 05:17:19 +0000 (22:17 -0700)]
Prevent new install of tools from displaying update msg.

Change-Id: Id9cacdc53e2e800526950480007e0a8f474779be

12 years agoFirst time install: multiple platforms, fix shell disposed.
Raphael [Sat, 24 Sep 2011 04:27:14 +0000 (21:27 -0700)]
First time install: multiple platforms, fix shell disposed.

Fixes for the first time install support:

- Support installing more than one platform.
  The custom install task was tailored before to one
  install a single package and return one status with
  on archive install path. This has been made more
  generic.

- Fix a couple occurences of the dreaded "SWT Shell disposed"
  error that happen when updating the progress bar and closing
  the window at the same time. The issue is that I was checking
  isDisposed before starting a syncExec but the window can be
  closed between the moment the syncExec is schedule and when it
  happens so code must check again for isDisposed inside the
  syncExec.

Change-Id: I413cfacd63406febc7953effad5ece2ef2854360

12 years agoMerge "Append prefix "Z" only for Zygote allocations."
Siva Velusamy [Fri, 23 Sep 2011 23:51:10 +0000 (16:51 -0700)]
Merge "Append prefix "Z" only for Zygote allocations."

12 years agoMerge "Provide ability to view just the new allocations."
Siva Velusamy [Fri, 23 Sep 2011 23:51:06 +0000 (16:51 -0700)]
Merge "Provide ability to view just the new allocations."

12 years agoMerge "Override hashCode."
Siva Velusamy [Fri, 23 Sep 2011 23:50:58 +0000 (16:50 -0700)]
Merge "Override hashCode."

12 years agoam ef33cfce: (-s ours) Merge b927e75 from master. do not merge.
Xavier Ducrohet [Fri, 23 Sep 2011 23:49:37 +0000 (16:49 -0700)]
am ef33cfce: (-s ours) Merge b927e75 from  do not merge.

* commit 'ef33cfcef8082b20df0263101c4cef7d76e4102b':
  Merge b927e75 from master. do not merge.

12 years agoAppend prefix "Z" only for Zygote allocations.
Siva Velusamy [Fri, 23 Sep 2011 23:24:19 +0000 (16:24 -0700)]
Append prefix "Z" only for Zygote allocations.

Cross checked with vendor/google/tools/nativeheapdump and made sure
that output of both tools match.

Change-Id: I129791ec42e7c0f4197fd59f687477b3d82e4d20

12 years agoProvide ability to view just the new allocations.
Siva Velusamy [Fri, 23 Sep 2011 18:07:25 +0000 (11:07 -0700)]
Provide ability to view just the new allocations.

Rather than viewing the entire snapshot, users can now view
just the allocations that have happened since the previous
snapshot.

Change-Id: I6115fdcd3928db775d8b77c078c9fce2539779ac

12 years agoOverride hashCode.
Siva Velusamy [Fri, 23 Sep 2011 16:47:16 +0000 (09:47 -0700)]
Override hashCode.

equals() was overridden previously, but not hashCode.

Change-Id: I82371f853f1ab23b081ed78fc54f5e66ecccbe3e

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 agoMerge b927e75 from master. do not merge.
Xavier Ducrohet [Fri, 23 Sep 2011 22:24:47 +0000 (15:24 -0700)]
Merge b927e75 from master. do not merge.

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: I1c69dec3f2262e5faa8ce8a2d53d01fcafe8a20d

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 agoFix ADT build. Do not merge.
Raphael [Fri, 23 Sep 2011 19:13:49 +0000 (12:13 -0700)]
Fix ADT build. Do not merge.

(cherry picked from commit c75ae5bac912229d8168efb91b117823959bc79d)

Change-Id: I14f62f892eac7168d38f787089525d989bf625e4

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

(cherry picked from commit 23e2f89139a9219136f5889ef1228b58bd9e02d6)

Change-Id: I65d7bed7a044d31376f592c7dcd9713a4b00262c

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 agoSDK: Fix traceview build. Do not merge.
Raphael [Fri, 23 Sep 2011 18:12:57 +0000 (11:12 -0700)]
SDK: Fix traceview build. Do not merge.

(cherry picked from commit f6c1a87ff7ddabe33ff8d29abb9ec0c0aa5633f6)

Change-Id: I254f0d6aba3513d759a6348580e7c1f670aa6d9e

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

(cherry picked from commit 4366a4e8145df82dd570d0c9f2b1c3c4301166a1)

Change-Id: I23f4504a5239592db211d5436c252b957ba68503

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

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.

(cherry picked from commit f7bc23a0f19d2e3371cbea41d4cf8a1081c9d2d8)

Change-Id: Iac37f970e69b7d74d9dd15120b838bcc47ba1caa

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