OSDN Git Service

android-x86/sdk.git
14 years agoFix the Ant test rules r3
Xavier Ducrohet [Tue, 4 May 2010 17:57:05 +0000 (10:57 -0700)]
Fix the Ant test rules r3

They were created from the wrong r2 file.

Change-Id: I62dc6c631cc7c1fdac6dd7ba57a776bb576e3c1f

14 years agoMerge "First step of multiple apk support."
Xavier Ducrohet [Tue, 4 May 2010 17:08:15 +0000 (10:08 -0700)]
Merge "First step of multiple apk support."

14 years agoMerge "Resolves Issue 6219: simplify/automate "application" package name refactoring"
Xavier Ducrohet [Tue, 4 May 2010 01:18:04 +0000 (18:18 -0700)]
Merge "Resolves Issue 6219: simplify/automate "application" package name refactoring"

14 years agoFirst step of multiple apk support.
Xavier Ducrohet [Wed, 28 Apr 2010 23:28:35 +0000 (16:28 -0700)]
First step of multiple apk support.

- New export type project to handle exporting a single app represented
  by multiple projects (for different minSdkVersion for instance).

- Cleaned-up the current Ant tasks and Eclipse builder to not
  deal with ApkSettings anymore. It's not possible to generate
  more than one APK in a single pass. The export project will
  handle this and call out the normal build system to export
  each variant. Make older (deprecated) attribute actually
  output a warning.

- Ant rules r3 now with support for multi apk export. Lots
  of clean up, add new properties to be overriden by the
  multi-apk export task, make older one overrideable too.

- Better handling of older rules, older tasks, etc...
  in the SetupTask used by the normal build.

- Add split by ABI to ApkSettings and use it in the
  new multi apk export.

- New custom task for multi-apk export. Replaces
  SetupTask for export-type projects. Calls out to the
  project's build.xml after setting/overriding properties.
  This also override the project's versionCode with a
  new composite one made of different values.
  Also uses a different build.xml, so added a new template:
  build.export.template.

Very much a work in progress. Still to do:
Add other types of APK split, create/update export projects,
export the build log, ...

Also, we need to refactor the normal build rules to avoid
so much duplication!

Change-Id: I57a565c60d097a5eabb40108ae1fa8cb209f2380

14 years agoMerge "Attempt to fix intermittent ADT test run failures."
Brett Chabot [Mon, 3 May 2010 22:24:04 +0000 (15:24 -0700)]
Merge "Attempt to fix intermittent ADT test run failures."

14 years agoResolves Issue 6219: simplify/automate "application" package name refactoring
Karl Ostmo [Wed, 28 Apr 2010 20:35:29 +0000 (15:35 -0500)]
Resolves Issue 6219: simplify/automate "application" package name refactoring

Change-Id: Ide90aa1649ef36568400e98b470edffa4eaed64e

14 years agoAttempt to fix intermittent ADT test run failures.
Brett Chabot [Mon, 3 May 2010 19:47:49 +0000 (12:47 -0700)]
Attempt to fix intermittent ADT test run failures.

Change the ADT test run steps to be more deterministic:
1) Start the JDT test run listener server side connection before the client
side (this is invokked via the launch.addProcess call)
2) Don't fork off a separate thread to run the tests. This was always
redundant and inefficient anyway, since the AndroidLaunchController already
forks off a thread to perform the launch

Bug 7976

Change-Id: If7d24998d6ebe1a9b2200717be6ba66c078017f9

14 years agoUpdate build dependencies in ADT build script.
Brett Chabot [Mon, 3 May 2010 16:55:54 +0000 (09:55 -0700)]
Update build dependencies in ADT build script.

Add groovy and layoutlib build dependencies, and refresh building log message.

Change-Id: I6d266d9fd8d9da7da4cf5c3d248b6fc418c430c4

14 years agoMerge "Add more console logs during ADT test run."
Brett Chabot [Fri, 30 Apr 2010 00:25:56 +0000 (17:25 -0700)]
Merge "Add more console logs during ADT test run."

14 years agoAdd more console logs during ADT test run.
Brett Chabot [Fri, 30 Apr 2010 00:00:02 +0000 (17:00 -0700)]
Add more console logs during ADT test run.

This is intended to give the user more visibility the exact progress of the
test run. And also better notification of failures.

Also tweak the ADT launch action so it reports its terminated when the test
runner thread is no longer active.

Related bug 7976

Change-Id: Idb258dfa1c15d6937d505bd86add208b4d09d526

14 years agoMerge "Fix NPE when opening layout and target is still loading."
Raphael Moll [Thu, 29 Apr 2010 05:59:31 +0000 (22:59 -0700)]
Merge "Fix NPE when opening layout and target is still loading."

14 years agoFix NPE when opening layout and target is still loading.
Raphael Moll [Thu, 29 Apr 2010 01:56:42 +0000 (18:56 -0700)]
Fix NPE when opening layout and target is still loading.

Change-Id: Ie4541646447669162ee303ef02d9bb81513e8e1e

14 years agoMerge "Ant: Add customizable targets between the default ones."
Xavier Ducrohet [Wed, 28 Apr 2010 23:26:59 +0000 (16:26 -0700)]
Merge "Ant: Add customizable targets between the default ones."

14 years agoAnt: Add customizable targets between the default ones.
Xavier Ducrohet [Wed, 28 Apr 2010 22:35:12 +0000 (15:35 -0700)]
Ant: Add customizable targets between the default ones.

Change-Id: I5f187584afb91814ccba4e984c4c45c24557aaae

14 years agoSDK Setup fixes.
Raphael Moll [Wed, 28 Apr 2010 21:23:50 +0000 (14:23 -0700)]
SDK Setup fixes.

- SDK Setup: cd to the SDK dir, to cope with the case
  where the setup is executed from a shortcut with a
  different base directory.

- SDK Manager: properly detect "update sdk" and "update avds"
  commands.

Change-Id: I1f0d32fffd71d3fa0856e753a80505f3dcd076d1

14 years agoMerge "Add ABI filtering and version code injection in the Ant rules and tasks."
Xavier Ducrohet [Wed, 28 Apr 2010 00:32:10 +0000 (17:32 -0700)]
Merge "Add ABI filtering and version code injection in the Ant rules and tasks."

14 years agoMerge "Add rev 3 of the ant rules."
Xavier Ducrohet [Wed, 28 Apr 2010 00:31:53 +0000 (17:31 -0700)]
Merge "Add rev 3 of the ant rules."

14 years agoMerge "Shorten the default help from the "android" script."
Raphael Moll [Wed, 28 Apr 2010 00:30:21 +0000 (17:30 -0700)]
Merge "Shorten the default help from the "android" script."

14 years agoMerge "Fix NPE in the DDMS plugin device view."
Raphael Moll [Wed, 28 Apr 2010 00:30:04 +0000 (17:30 -0700)]
Merge "Fix NPE in the DDMS plugin device view."

14 years agoAdd ABI filtering and version code injection in the Ant rules and tasks.
Xavier Ducrohet [Wed, 28 Apr 2010 00:05:04 +0000 (17:05 -0700)]
Add ABI filtering and version code injection in the Ant rules and tasks.

Change-Id: Ic8e41c1ad5343b32d2766427ba271a79c88b3b66

14 years agoAdd rev 3 of the ant rules.
Xavier Ducrohet [Tue, 27 Apr 2010 22:57:52 +0000 (15:57 -0700)]
Add rev 3 of the ant rules.

For now they are the same as the r2.
Also modified SetupTask to deal better with older tools.

Change-Id: I22ff809ace3ff81fb6852a707165165a9b4ec88a

14 years agoShorten the default help from the "android" script.
Raphael Moll [Tue, 27 Apr 2010 22:49:26 +0000 (15:49 -0700)]
Shorten the default help from the "android" script.

Changes:
- Default is to print the global options and the
  list of verbs/objects but not their detailed
  options.
- Using "android --help create" shows all possible
  "create xyz" options.
- Using "android --help create project" shows only
  the options for this particular command.
- As usual an incomplete command will prints its
  specific options as help.

SDK Bug 2436537

Change-Id: Icb95504ac9a048e5870fad396f3c4382ca5a1f8f

14 years agoFix NPE in the DDMS plugin device view.
Raphael Moll [Tue, 27 Apr 2010 22:38:35 +0000 (15:38 -0700)]
Fix NPE in the DDMS plugin device view.

Change-Id: I771cc215e21f4deb93c85eabce649b275fab3ef4

14 years agomerge from tools_r6
The Android Open Source Project [Tue, 27 Apr 2010 17:37:06 +0000 (10:37 -0700)]
merge from tools_r6

Change-Id: I6db896a231718a1e7ab879676af4c0d4e26c5950

14 years agoAdd missing windres to build SDK Setup.exe using MinGW/Linux
Raphael [Fri, 16 Apr 2010 02:41:05 +0000 (19:41 -0700)]
Add missing windres to build SDK Setup.exe using MinGW/Linux

(This mirrors what we did with the emulator in Change Ib4ce944b )

(Merge master Change I09f2e154)

14 years agoMerge "Reorder packages in SDK Updater"
Raphael Moll [Fri, 23 Apr 2010 18:06:37 +0000 (11:06 -0700)]
Merge "Reorder packages in SDK Updater"

14 years agoMerge "Fix auto launch config to respect minSdkVersion"
Raphael Moll [Fri, 23 Apr 2010 18:06:20 +0000 (11:06 -0700)]
Merge "Fix auto launch config to respect minSdkVersion"

14 years agoReorder packages in SDK Updater
Raphael Moll [Thu, 22 Apr 2010 18:34:36 +0000 (11:34 -0700)]
Reorder packages in SDK Updater

SDK Bug http://b.android.com/7920

Change-Id: I94946beda47067ff93ce288b36d525f8fb1840f2

14 years agoFix auto launch config to respect minSdkVersion
Raphael Moll [Wed, 21 Apr 2010 22:32:40 +0000 (15:32 -0700)]
Fix auto launch config to respect minSdkVersion

When launch config is in automatic mode with no
preferred AVD and minSdkVersion is smaller than the
project targert's API level, try to find an AVD
that's as close to the minSdkVersion as possible.

SDK Bug http://b.android.com/7897

Change-Id: Ied1f2db8f61c27430b466b2b7afbb5494fd0ffed

14 years agoFix RemoteAndroidTestRunnerTest.
Brett Chabot [Thu, 22 Apr 2010 19:26:19 +0000 (12:26 -0700)]
Fix RemoteAndroidTestRunnerTest.

Change the test device mock to return a String for getSerialNumber.

Change-Id: I83647927160c666330ddfb5394afe837577422d7

14 years agoMerge "Supporting configurable ADB port in ddms and ddmlib."
Xavier Ducrohet [Wed, 21 Apr 2010 21:29:47 +0000 (14:29 -0700)]
Merge "Supporting configurable ADB port in ddms and ddmlib."

14 years agoSupporting configurable ADB port in ddms and ddmlib.
Stefan Hilzinger [Tue, 20 Apr 2010 10:31:44 +0000 (11:31 +0100)]
Supporting configurable ADB port in ddms and ddmlib.

- Moving instantiation of sSocketAddr out of static initializer block
  into init().

Change-Id: Ibf3b81492802859673a0e77b4701be9d004509fa

14 years agoMerge "Make test runner parser detect runs with no tests."
Brett Chabot [Tue, 20 Apr 2010 01:52:52 +0000 (18:52 -0700)]
Merge "Make test runner parser detect runs with no tests."

14 years agoMake test runner parser detect runs with no tests.
Brett Chabot [Mon, 19 Apr 2010 20:32:08 +0000 (13:32 -0700)]
Make test runner parser detect runs with no tests.

Add logic to differeniate between an incomplete test run, and a test run which
completed successfully but has no tests.

Fixes bug http://b.android.com/7830

Change-Id: I54068de73e068faae6e34779b91665f6d1dc1a47

14 years agoMerge "Filter out new leak_memalign method in native heap UI"
Xavier Ducrohet [Mon, 19 Apr 2010 22:34:15 +0000 (15:34 -0700)]
Merge "Filter out new leak_memalign method in native heap UI"

14 years agoFilter out new leak_memalign method in native heap UI
Xavier Ducrohet [Mon, 19 Apr 2010 17:59:04 +0000 (10:59 -0700)]
Filter out new leak_memalign method in native heap UI

Change-Id: I39f1b7d726a0b5d26e736b404693183003ea391e

14 years agoAdd missing windres to build SDK Setup.exe using MinGW/Linux
Raphael [Fri, 16 Apr 2010 02:41:05 +0000 (19:41 -0700)]
Add missing windres to build SDK Setup.exe using MinGW/Linux

(This mirrors what we did with the emulator in Change Ib4ce944b )

Change-Id: I09f2e154ff89af4a0ed6629fd20846f20dbd2f5b

14 years agoMerge "Moved log formatting string into separate function so it can be resued by...
Neal Nguyen [Fri, 16 Apr 2010 17:41:54 +0000 (10:41 -0700)]
Merge "Moved log formatting string into separate function so it can be resued by others."

14 years agoAdd some missing gitignore files
Xavier Ducrohet [Mon, 12 Apr 2010 19:21:30 +0000 (12:21 -0700)]
Add some missing gitignore files

Change-Id: Iba3faab3be5a78849c6e0f85cd21f532be5a5147

14 years agomerge from tools-r6
The Android Open Source Project [Thu, 8 Apr 2010 23:20:08 +0000 (16:20 -0700)]
merge from tools-r6

Change-Id: If11d893ba56c1189620e00f86b7f51bf4d698e49

14 years agoMerge "Add setTestSize to ddms test runner."
Brett Chabot [Tue, 6 Apr 2010 20:07:41 +0000 (13:07 -0700)]
Merge "Add setTestSize to ddms test runner."

14 years agoSDK Manager: Rename "add site" to "add addon-site".
Raphael [Tue, 6 Apr 2010 19:39:23 +0000 (12:39 -0700)]
SDK Manager: Rename "add site" to "add addon-site".

And add explicit information in the dialog.

SDK Bug 2283498

(merge from master Change I1f7ae926)

Change-Id: Ib5bbd02f54785c0eb473b01a055f6196933112ad

14 years agoMerge "SDK Manager: Rename "add site" to "add addon-site"."
Raphael [Tue, 6 Apr 2010 19:57:08 +0000 (12:57 -0700)]
Merge "SDK Manager: Rename "add site" to "add addon-site"."

14 years agoAdd setTestSize to ddms test runner.
Brett Chabot [Sat, 3 Apr 2010 01:58:57 +0000 (18:58 -0700)]
Add setTestSize to ddms test runner.

Also cleanup some log messages.

Change-Id: Iea292c620c65e63642ef57d3082a54a1613b15bd

14 years agoSDK Manager: add tooltips to "Create new AVD" dialog.
Raphael [Tue, 6 Apr 2010 19:03:13 +0000 (12:03 -0700)]
SDK Manager: add tooltips to "Create new AVD" dialog.

Also rewrods the "Force create" checkbox to be more
explicit -- its tooltip is not visible till the box
is enabled.

(merge from master Change Ifcb014a1)

SDK Bug 2572299

Change-Id: I06608d7f9041cd54385c4db2d24b3e604a965a8e

14 years agoSDK Manager: Rename "add site" to "add addon-site".
Raphael [Tue, 6 Apr 2010 19:39:23 +0000 (12:39 -0700)]
SDK Manager: Rename "add site" to "add addon-site".

And add explicit information in the dialog.

SDK Bug 2283498

Change-Id: I1f7ae92663b899df33751af38050d5b071f0647c

14 years agoSDK Manager: add tooltips to "Create new AVD" dialog.
Raphael [Tue, 6 Apr 2010 19:03:13 +0000 (12:03 -0700)]
SDK Manager: add tooltips to "Create new AVD" dialog.

Also rewrods the "Force create" checkbox to be more
explicit -- its tooltip is not visible till the box
is enabled.

SDK Bug 2572299

Change-Id: Ifcb014a1e93e4380406132cd59c3cbf0020c3fc1

14 years agoSDK Manager: fix error message when missing XML validator.
Raphael [Mon, 5 Apr 2010 23:44:31 +0000 (16:44 -0700)]
SDK Manager: fix error message when missing XML validator.

SDK Bug 2306644

(merge Change I2e698ea0 from master)

Change-Id: Ia4be1d58c11ebccb811005ac21cf19b8d734e0c1

14 years agoSDK Manager: fix error message when missing XML validator.
Raphael [Mon, 5 Apr 2010 23:44:31 +0000 (16:44 -0700)]
SDK Manager: fix error message when missing XML validator.

SDK Bug 2306644

Change-Id: I2e698ea0ec9225a26ff94d9973c4e0b8f297c89b

14 years agoMoved log formatting string into separate function so it can be resued by others.
Neal Nguyen [Fri, 2 Apr 2010 23:42:26 +0000 (16:42 -0700)]
Moved log formatting string into separate function so it can be resued by others.

Change-Id: I4e97d950587822c3a3e24c1c3d1a89ab19419f14

14 years agoNew GPS HAL for qemu
Mike Lockwood [Tue, 23 Feb 2010 23:49:32 +0000 (18:49 -0500)]
New GPS HAL for qemu

This will replace equivalent code in libhardware_legacy

Change-Id: I611e34a187ed8460490f793538446c11c7c83cab
Signed-off-by: Mike Lockwood <lockwood@android.com>
14 years agoFix Ant test rules.
Xavier Ducrohet [Fri, 2 Apr 2010 22:57:50 +0000 (15:57 -0700)]
Fix Ant test rules.

- Fix import of the main rules since we changed the name!
- Added main project libraries to the classpath of the test project.

Bug: 2568115
Change-Id: I8803b84a179c6301736d7e2558e06a1734eef650

14 years agoFix gen folder sometimes not found during build.
Raphael [Fri, 2 Apr 2010 19:06:33 +0000 (12:06 -0700)]
Fix gen folder sometimes not found during build.
Fix NPE in GLE config composite.

SDK Bug 2567451

Merged from master Change Iae315a57

Change-Id: I75017e7eb2edf377e3bf00a47b809300324babac

14 years agoGLE1: stop showing outline/properties when opening GLE.
Raphael [Fri, 2 Apr 2010 17:25:33 +0000 (10:25 -0700)]
GLE1: stop showing outline/properties when opening GLE.

This CL reverts two annoying behaviors when using GLE:
- it stops opening the outline/properties (either for GLE1 or GLE2...
  in GLE2 will need to use different views and have a better
  behavior anyway.)
- it selects the XML text editor by default for GLE1 since
  the graphical one is mostly useless.

Merged from master Change I634e6dbe

Change-Id: I43731248acec22cff628afc940bea69431bb93dd

14 years agoMerge "GLE1: stop showing outline/properties when opening GLE."
Raphael [Fri, 2 Apr 2010 21:19:00 +0000 (14:19 -0700)]
Merge "GLE1: stop showing outline/properties when opening GLE."

14 years agoMerge "Fix gen folder sometimes not found during build. Fix NPE in GLE config composite."
Raphael [Fri, 2 Apr 2010 21:18:44 +0000 (14:18 -0700)]
Merge "Fix gen folder sometimes not found during build. Fix NPE in GLE config composite."

14 years agoFix gen folder sometimes not found during build.
Raphael [Fri, 2 Apr 2010 19:06:33 +0000 (12:06 -0700)]
Fix gen folder sometimes not found during build.
Fix NPE in GLE config composite.

SDK Bug 2567451

Change-Id: Iae315a57285bf11ea151b6b35581367c3ce37145

14 years agoMerge "Change ddms testrunner to raise IOException to callers."
Brett Chabot [Fri, 2 Apr 2010 18:30:04 +0000 (11:30 -0700)]
Merge "Change ddms testrunner to raise IOException to callers."

14 years agoGLE1: stop showing outline/properties when opening GLE.
Raphael [Fri, 2 Apr 2010 17:25:33 +0000 (10:25 -0700)]
GLE1: stop showing outline/properties when opening GLE.

This CL reverts two annoying behaviors when using GLE:
- it stops opening the outline/properties (either for GLE1 or GLE2...
  in GLE2 will need to use different views and have a better
  behavior anyway.)
- it selects the XML text editor by default for GLE1 since
  the graphical one is mostly useless.

Change-Id: I634e6dbe3575fbcacdb61a487e8828043325b752

14 years agoMerge "move to Tools r7 and ADT 0.9.8"
Xavier Ducrohet [Fri, 2 Apr 2010 04:18:26 +0000 (21:18 -0700)]
Merge "move to Tools r7 and ADT 0.9.8"

14 years agoMerge "ADT: Add native support to library projects." into tools-r6
Xavier Ducrohet [Fri, 2 Apr 2010 04:18:14 +0000 (21:18 -0700)]
Merge "ADT: Add native support to library projects." into tools-r6

14 years agomove to Tools r7 and ADT 0.9.8
Xavier Ducrohet [Fri, 2 Apr 2010 02:50:30 +0000 (19:50 -0700)]
move to Tools r7 and ADT 0.9.8

Change-Id: Ia7690ff2787aa68bb668af05bbaf13a7cf16bc8b

14 years agoADT: Add native support to library projects.
Xavier Ducrohet [Fri, 2 Apr 2010 01:22:00 +0000 (18:22 -0700)]
ADT: Add native support to library projects.

Bug: 2565909

Change-Id: I4342c58d9306c13f963c6c52fc202bd28ad25626

14 years agoADT: Customize project selection message.
Xavier Ducrohet [Fri, 2 Apr 2010 00:28:05 +0000 (17:28 -0700)]
ADT: Customize project selection message.

Bug: 2565629
Change-Id: I10a1aceaa5f0d0e157a9eccf7bffb312c7fc3bcc

14 years agoProject lib NPE when closing a lib project.
Raphael [Thu, 1 Apr 2010 22:41:38 +0000 (15:41 -0700)]
Project lib NPE when closing a lib project.

(merge Change Ia77122bc from master)

Change-Id: Iad27a002d387f9537e487ddd669831ef65e9e7b0

14 years agoProject lib NPE when closing a lib project.
Raphael [Thu, 1 Apr 2010 22:41:38 +0000 (15:41 -0700)]
Project lib NPE when closing a lib project.

Change-Id: Ia77122bc9a7c6e8f5f94e094eb70e05abb6d0793

14 years agoAdd missing licensing files.
David 'Digit' Turner [Thu, 1 Apr 2010 19:47:21 +0000 (12:47 -0700)]
Add missing licensing files.

Change-Id: I1e3159ac3d322ca70c2d9d7faf3a0ecac4313468

14 years agoADT NPW and GLE: fix AdtPlugin.getEmbeddedFileUrl
Raphael [Wed, 31 Mar 2010 23:25:10 +0000 (16:25 -0700)]
ADT NPW and GLE: fix AdtPlugin.getEmbeddedFileUrl

The method was always adding an initial slash to the path.
This is only needed if the requested path doesn't have one.

This fixes the NPW templates and the GLE scripts usage.

SDK Bug: 2546962

Change-Id: If19eb0a5b931eeb1d160c980f950eb0a974246e8

14 years agoADT NPW: logging for missing templates.
Raphael [Wed, 31 Mar 2010 23:18:37 +0000 (16:18 -0700)]
ADT NPW: logging for missing templates.

This does not solve the NPE, it adds even more logging
which will warn users when something goes horribly wrong.
Basically these logs should never happen.

SDK Bug: 2546962

Change-Id: Ibcd4f6fc9efc478d84236003cabde5ccf520a378

14 years agoADT NPW: NPE when trying to expand project templates.
Raphael [Wed, 31 Mar 2010 21:27:38 +0000 (14:27 -0700)]
ADT NPW: NPE when trying to expand project templates.

This does not solve the NPE, it adds logging so that we
can identify the issue since it doesn't happend in debug mode.
Probably some template is not loaded correctly.

SDK Bug: 2546962

Change-Id: I4dbd6f2e7f88d4e6eae660cb1b5bffb768a59131

14 years agoADT NPW and GLE: fix AdtPlugin.getEmbeddedFileUrl
Raphael [Wed, 31 Mar 2010 23:25:10 +0000 (16:25 -0700)]
ADT NPW and GLE: fix AdtPlugin.getEmbeddedFileUrl

The method was always adding an initial slash to the path.
This is only needed if the requested path doesn't have one.

This fixes the NPW templates and the GLE scripts usage.

SDK Bug: 2546962

Change-Id: I27c51fa23d968dacccd3d810d522f80504f899cc

14 years agoADT NPW: logging for missing templates.
Raphael [Wed, 31 Mar 2010 23:18:37 +0000 (16:18 -0700)]
ADT NPW: logging for missing templates.

This does not solve the NPE, it adds even more logging
which will warn users when something goes horribly wrong.
Basically these logs should never happen.

SDK Bug: 2546962

Change-Id: Id7da9a976535d297dfddb60d9a53899351f9561f

14 years agoADT NPW: NPE when trying to expand project templates.
Raphael [Wed, 31 Mar 2010 21:27:38 +0000 (14:27 -0700)]
ADT NPW: NPE when trying to expand project templates.

This does not solve the NPE, it adds logging so that we
can identify the issue since it doesn't happend in debug mode.
Probably some template is not loaded correctly.

SDK Bug: 2546962

Change-Id: Idf0df2bd4e4b7a632fc7777b296df830c2f642da

14 years agoChange visibility of constructor to let tests run.
Xavier Ducrohet [Wed, 31 Mar 2010 00:50:57 +0000 (17:50 -0700)]
Change visibility of constructor to let tests run.

Bug: 2461413

Change-Id: Ib014b7a5ff032bd925f3eac17a066d81654edff8

14 years agoADT: fix library support: force save on del/up/down.
Xavier Ducrohet [Tue, 30 Mar 2010 23:44:11 +0000 (16:44 -0700)]
ADT: fix library support: force save on del/up/down.

Bug: 2558499
Change-Id: Ic632822000ebd4e86d02a6f0517cf6ca89ee3cbc

14 years agoMerge "Disable export for library projects." into tools-r6
Xavier Ducrohet [Tue, 30 Mar 2010 18:18:18 +0000 (11:18 -0700)]
Merge "Disable export for library projects." into tools-r6

14 years agoDisable export for library projects.
Xavier Ducrohet [Tue, 30 Mar 2010 01:03:17 +0000 (18:03 -0700)]
Disable export for library projects.

Change-Id: I050e5b39027b960e28e6e463dc6048c02848d091

14 years agoDisable launch for library projects.
Xavier Ducrohet [Tue, 30 Mar 2010 01:20:00 +0000 (18:20 -0700)]
Disable launch for library projects.

Change-Id: Ieee0bb7db7e854a2c71600baaf050b8dd0d6582a

14 years agoMerge "ADT: Fix NPE when opening a project-library." into tools-r6
Raphael [Mon, 29 Mar 2010 23:35:19 +0000 (16:35 -0700)]
Merge "ADT: Fix NPE when opening a project-library." into tools-r6

14 years agoADT: Fix NPE when opening a project-library.
Raphael [Mon, 29 Mar 2010 21:20:11 +0000 (14:20 -0700)]
ADT: Fix NPE when opening a project-library.

Use case:
- start IDE with main project open and project library closed.
- open libray.
- NPE when main project refreshes.

Change-Id: I1ebfdc8848b2fe250c56ed90a61bd09c10cd3b4c

14 years agoADT: repo schema change tell users to update ADT, not tools.
Raphael [Mon, 29 Mar 2010 22:38:04 +0000 (15:38 -0700)]
ADT: repo schema change tell users to update ADT, not tools.

SDK Bug 2438713

Change-Id: Ia01ceb415a7b384ff683ab63c2e9a00355fa58c9

14 years agoADT: repo schema change tell users to update ADT, not tools.
Raphael [Mon, 29 Mar 2010 22:38:04 +0000 (15:38 -0700)]
ADT: repo schema change tell users to update ADT, not tools.

SDK Bug 2438713

Change-Id: Ie6dfad20a606cea27e9ba5ef8a0a1b2afa479fa7

14 years agoADT: Fix NPE when opening a project-library.
Raphael [Mon, 29 Mar 2010 21:20:11 +0000 (14:20 -0700)]
ADT: Fix NPE when opening a project-library.

Use case:
- start IDE with main project open and project library closed.
- open libray.
- NPE when main project refreshes.

Change-Id: I12a86587be6dc9c613897b6611322f7b1a3395df

14 years agoChange ddms testrunner to raise IOException to callers.
Brett Chabot [Sat, 27 Mar 2010 00:54:31 +0000 (17:54 -0700)]
Change ddms testrunner to raise IOException to callers.

This is to fit with design decision to make ddms a relatively dumb pipe, and
have callers handle any reliability/retry scenarios.

Change-Id: I454e0f37a7d50ba194f59aeba6a4ab9d9ed3ded8

14 years agoADT: Don't add duplicate source folder.
Xavier Ducrohet [Sat, 27 Mar 2010 00:38:40 +0000 (17:38 -0700)]
ADT: Don't add duplicate source folder.

When a project is opened, and libraries are resolved, make
sure that linked source folder are not already in the
classpath entries before adding theme.

Bug: 2549864
Change-Id: Ibb946b7e37ff3a9f3bae2c713e31b482c365cec3

14 years agoMerge "ADT: Fix a potential NPE and detect change in gdbserver."
Xavier Ducrohet [Fri, 26 Mar 2010 23:52:18 +0000 (16:52 -0700)]
Merge "ADT: Fix a potential NPE and detect change in gdbserver."

14 years agoADT: Fix a potential NPE and detect change in gdbserver.
Xavier Ducrohet [Fri, 26 Mar 2010 22:52:40 +0000 (15:52 -0700)]
ADT: Fix a potential NPE and detect change in gdbserver.

Change-Id: Ic6f6760854a3fecccdf19117e534170e426dfc03

14 years agoMerge "ADT project-lib: handle \\ dir separator for windows path."
Raphael [Fri, 26 Mar 2010 22:57:53 +0000 (15:57 -0700)]
Merge "ADT project-lib: handle \\ dir separator for windows path."

14 years agoADT: Fix possible NPE in final builder.
Xavier Ducrohet [Fri, 26 Mar 2010 22:31:54 +0000 (15:31 -0700)]
ADT: Fix possible NPE in final builder.

Bug: 2546973
Change-Id: I920f67277486c17e6d2790e6921c98864a8c24b0

14 years agoADT project-lib: handle \\ dir separator for windows path.
Raphael [Fri, 26 Mar 2010 22:17:27 +0000 (15:17 -0700)]
ADT project-lib: handle \\ dir separator for windows path.

SDK Bug 2546969

Change-Id: I594bb83321e19af0968c2b4fedc08712547e5583

14 years agoMerge "Prevent overflow in the AVD creation dialog"
Xavier Ducrohet [Fri, 26 Mar 2010 21:13:35 +0000 (14:13 -0700)]
Merge "Prevent overflow in the AVD creation dialog"

14 years agoPrevent overflow in the AVD creation dialog
Xavier Ducrohet [Sat, 20 Mar 2010 00:48:39 +0000 (17:48 -0700)]
Prevent overflow in the AVD creation dialog

Entering a sd card size too big would overflow
the int variable and revert to the message about
the SD Card being <9MB.

Fixed the overflow for normal values and added a check
on values too big (1TB+)

Bug: 2528357

Change-Id: I052e6ca20c4919ab621138250f21d8eaa7e1d01d

14 years agoSDK Manager: edit errors displayed when ANDROID_SDK_HOME is missing.
Raphael [Fri, 26 Mar 2010 20:57:21 +0000 (13:57 -0700)]
SDK Manager: edit errors displayed when ANDROID_SDK_HOME is missing.

Change-Id: I5748ced7efbcabf77a72670f577269f89da99925

14 years agoSDK Manager: Make AVD names case-insensitive under Windows.
Raphael [Thu, 25 Mar 2010 22:54:26 +0000 (15:54 -0700)]
SDK Manager: Make AVD names case-insensitive under Windows.

SDK Bug 2545530

Change-Id: I015b62ad21aea8fdf741b733d2c5f2a2b08d9e73

14 years agoSDK Manager: correctly handle lack of AvdManager
Raphael [Thu, 25 Mar 2010 22:15:53 +0000 (15:15 -0700)]
SDK Manager: correctly handle lack of AvdManager

Digit's issue in SDK Bug 2535112 was that AndroidLocation failed
to get the SDK home dir; consequently the SdkManager failed to
create an AvdManager and was using a null ptr everywhere.

This CL addresses the core issue here:
- The New AVD button should be grayed if there is AvdManager.

- UpdaterData.initSdk was catching the error and printing an
  error log that is not shown in the UI. There's now an explicit
  dialog box that explains the error and how to solve it.

- UpdaterWindow now aborts if the above dialog is shown. There's
  no need to keep the SDK Manager window around -- OK maybe that's
  a bit harsh since the SDK download/install part can stil lbe used
  by do we really want to deal with an half-functional window?
  No we don't really want that use-case. Let's force the user to
  fix it.

- Fixed the AndroidLocation error message to something more usable.
  Most people can set an environment variable, however few know
  how to "set up the user.home property" (I don't even know how
  to do that.)

- Display the AVD base folder in the AVD page.

Change-Id: I2b9dbc7180e4bb3ff696de257bb260e808301d2d

14 years agoMerge "Clean create_symlink for windows."
Raphael [Fri, 26 Mar 2010 21:02:14 +0000 (14:02 -0700)]
Merge "Clean create_symlink for windows."

14 years agoClean create_symlink for windows.
Raphael [Thu, 25 Mar 2010 20:34:04 +0000 (13:34 -0700)]
Clean create_symlink for windows.

Change-Id: Iac03183e10a49d60f42d69c33e97f3e62ec0c5b9

14 years agoSDK Manager: fix crash when creating new AVD with no home.
Raphael [Thu, 25 Mar 2010 20:31:37 +0000 (13:31 -0700)]
SDK Manager: fix crash when creating new AVD with no home.

This also fixes the logging:
- properly propagate the ISdkLog to the AvdCreateDialog.
- properly use the ADT console for logging when invoked from Eclipse.

SDK Bug 2535112

Change-Id: I9e059fe30fe02c4f5d3e70054b4454f5703df515

14 years agoMerge "Externalize ADT JUnit launch strings."
Brett Chabot [Mon, 22 Mar 2010 19:52:09 +0000 (12:52 -0700)]
Merge "Externalize ADT JUnit launch strings."

14 years agoSave/restore layout configuration.
Xavier Ducrohet [Fri, 19 Mar 2010 02:37:22 +0000 (19:37 -0700)]
Save/restore layout configuration.

When opening layout files in the editor, we know attempt
to return the last state the display was in the last time
the file was used (device/config, locale, theme).

Also simplified somewhat the different UI-initializing
method of the ConfigurationComposite.

Change-Id: Ice6b39775eaf9af46707e4156cd14751be90dcbc