OSDN Git Service

android-x86/sdk.git
14 years agoremove unnecessary stuff on x86 eclair-x86
Chih-Wei Huang [Sun, 15 Nov 2009 04:09:30 +0000 (12:09 +0800)]
remove unnecessary stuff on x86

14 years agoRemove aidl step from library ant rules (do not merge)
Xavier Ducrohet [Fri, 12 Mar 2010 03:54:31 +0000 (19:54 -0800)]
Remove aidl step from library ant rules (do not merge)

aidl is not supported by libraries.

Change-Id: Ifefe4ac957864e774ffd55995f5491d67de5a284

14 years agoAnt rules for library support for 2.1 (do not merge)
Xavier Ducrohet [Fri, 5 Mar 2010 19:37:12 +0000 (11:37 -0800)]
Ant rules for library support for 2.1 (do not merge)

Change-Id: I5542467651dc07d97f68f68d73fe8c7273e07771

14 years agoreconcile main tree with open-source eclair
The Android Open Source Project [Fri, 5 Feb 2010 16:09:42 +0000 (08:09 -0800)]
reconcile main tree with open-source eclair

14 years agoMerge "Fix sorting of Sample-type packages" into eclair
Xavier Ducrohet [Wed, 3 Feb 2010 19:40:58 +0000 (11:40 -0800)]
Merge "Fix sorting of Sample-type packages" into eclair

14 years agoMerge "Fixed feature icon and plug-ins exported package lists." into eclair
Xavier Ducrohet [Wed, 3 Feb 2010 01:10:17 +0000 (17:10 -0800)]
Merge "Fixed feature icon and plug-ins exported package lists." into eclair

14 years agoFixed feature icon and plug-ins exported package lists.
Xavier Ducrohet [Wed, 3 Feb 2010 01:03:36 +0000 (17:03 -0800)]
Fixed feature icon and plug-ins exported package lists.

Change-Id: Ie5de78e8546baa2a7ed16fc0cd8278b6553ee6a1

14 years agoFix sorting of Sample-type packages
Xavier Ducrohet [Wed, 3 Feb 2010 00:12:04 +0000 (16:12 -0800)]
Fix sorting of Sample-type packages

Also sort the list of local packages.

Bug: 2414760
Change-Id: I0a25d5985db76d561bd312682ac1ce31eafaf560

14 years agoUpdate SDK change log.
Xavier Ducrohet [Tue, 2 Feb 2010 21:34:18 +0000 (13:34 -0800)]
Update SDK change log.

Change-Id: I3c033f68f79845085cf64daa44ff273c4a52a3d1

14 years agoMerge "ADT: Refreshed some icons." into eclair
Xavier Ducrohet [Tue, 2 Feb 2010 21:06:42 +0000 (13:06 -0800)]
Merge "ADT: Refreshed some icons." into eclair

14 years agoADT: Refreshed some icons.
Xavier Ducrohet [Tue, 2 Feb 2010 00:32:57 +0000 (16:32 -0800)]
ADT: Refreshed some icons.

Getting rid of the goldish round icon with the a inside as it's not
used anywhere on android.com

Change-Id: I7ea0e4de1df973baedc41c2a1ca8918f51c25f75

14 years agoAdd support for VMs that can stream hprof data through JDWP. Do not merge
Xavier Ducrohet [Sat, 30 Jan 2010 02:11:14 +0000 (18:11 -0800)]
Add support for VMs that can stream hprof data through JDWP. Do not merge

Integrated from master for inclusion in the SDK Tools r5

Change-Id: Ifad984f5b0ae187428cb7d871b039dddf0db4ba7

14 years agoMerge "SDK Manager: apply settings instantaneously." into eclair
Raphael Moll [Tue, 2 Feb 2010 02:57:48 +0000 (18:57 -0800)]
Merge "SDK Manager: apply settings instantaneously." into eclair

14 years agoSDK Manager: apply settings instantaneously.
Raphael [Tue, 2 Feb 2010 02:15:05 +0000 (18:15 -0800)]
SDK Manager: apply settings instantaneously.

SDK Bug: 2411665

Change-Id: I6d4a38f4f2d974a727d8e0891d63618d82c578ad

14 years agoMerge "Strawman support for streaming hprof dumps. Do not merge" into eclair
Xavier Ducrohet [Tue, 2 Feb 2010 02:06:40 +0000 (18:06 -0800)]
Merge "Strawman support for streaming hprof dumps. Do not merge" into eclair

14 years agoMerge "Fix 'android create test-project' to handle parent projects with missing defau...
Xavier Ducrohet [Mon, 1 Feb 2010 23:43:47 +0000 (15:43 -0800)]
Merge "Fix 'android create test-project' to handle parent projects with missing default.prop" into eclair

14 years agoFix 'android create test-project' to handle parent projects with missing default...
Xavier Ducrohet [Mon, 1 Feb 2010 23:12:56 +0000 (15:12 -0800)]
Fix 'android create test-project' to handle parent projects with missing default.prop

Bug: 2411562
Change-Id: Ia22491d56dfa3c5dda700782c28a2bcbfeebd266

14 years agoSDK Manager: fix android.bat to correctly work on 64bit JVMs.
Raphael [Mon, 1 Feb 2010 21:39:41 +0000 (13:39 -0800)]
SDK Manager: fix android.bat to correctly work on 64bit JVMs.

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

Change-Id: I4a72a3c16ddeb9ab331342de7a72cc5ae61e8cdc

14 years agoSDK Updater: ask for confirmation before wiping modified samples.
Raphael [Sat, 30 Jan 2010 06:25:55 +0000 (22:25 -0800)]
SDK Updater: ask for confirmation before wiping modified samples.

SDK Bug: 2401466

Change-Id: I09d596b44b3daf3a079c51f76db3f9f8d376a8b3

14 years agoFix https download for the standalone version of the SDK Updater
Xavier Ducrohet [Fri, 29 Jan 2010 21:53:40 +0000 (13:53 -0800)]
Fix https download for the standalone version of the SDK Updater

The problem was due to the launch script completely replacing
java.ext.dirs preventing the VM from accessing the optional
jce.jar package (Java Cryptography Extension).

The launch script now queries the JVM for the current value
of java.ext.dirs (using archquery) to append to it instead
of replacing it.

In order to do that, archquery.jar now outputs only the value
of the queried system property instead of output "name=value"

Bug: 2248892
Change-Id: If17d48e46529bebc1a25daf99f2748e9ec81a214

14 years agoMerge "SDK Updater: Support post install script for updating SDK Setup.exe." into...
Raphael Moll [Sat, 30 Jan 2010 01:17:08 +0000 (17:17 -0800)]
Merge "SDK Updater: Support post install script for updating SDK Setup.exe." into eclair

14 years agoStrawman support for streaming hprof dumps. Do not merge
Andy McFadden [Fri, 29 Jan 2010 21:12:54 +0000 (13:12 -0800)]
Strawman support for streaming hprof dumps. Do not merge

Send an HPDS instead of HPDU when the client VM supports it.  Once
additional support is added to DDMS, this will allow grabbing an hprof
dump through DDMS even if the target app doesn't have permission to write
to /sdcard.  (The down side is that the dump must be held on the native
heap while it's generated, temporarily bloating the process by a few
megabytes.)

Integrated from master for inclusion in the SDK Tools r5

For bug 2092855.

Change-Id: I54492c62cce3c52b0ac523f6e87b9438d2ab92c0

14 years agoreconcile android-2.1_r1 snapshot
The Android Open Source Project [Fri, 29 Jan 2010 22:09:57 +0000 (14:09 -0800)]
reconcile android-2.1_r1 snapshot

14 years agoADT NPW: disable auto-selection of minSdkVersion vs target.
Raphael [Fri, 29 Jan 2010 06:41:34 +0000 (22:41 -0800)]
ADT NPW: disable auto-selection of minSdkVersion vs target.

Target was updating minSdkVersion.
minSdkVersion was updating target.
The whole thing looks confusing to use and has too many
edge cases, so the code is just disabled right now.
We might as well remove it later.

SDK Bug: 2392173

Change-Id: Ia2eaaa0238ff7fc428e6ed5635df80fc4e766e97

14 years agoSDK Updater: Support post install script for updating SDK Setup.exe.
Raphael [Fri, 29 Jan 2010 04:06:46 +0000 (20:06 -0800)]
SDK Updater: Support post install script for updating SDK Setup.exe.

The new post_tools_install.bat will be found in SDK/tools/lib.
This also moves find_java.bat into the same lib folder.

SDK Bug: 2404830

Change-Id: I84e3671918931079f296500e296ec1a55931b851

14 years agoDisplay VM message on profiling error. Do not merge
Xavier Ducrohet [Thu, 28 Jan 2010 21:19:09 +0000 (13:19 -0800)]
Display VM message on profiling error. Do not merge

Integrated from master to be in SDK Tools r5.

Bug: 2160407
Change-Id: Ib9cfcb68cc2c38947350b3419a96ce917db51b35

14 years agoDDMS: Add support for profiling with VM able to send the result through JDWP. Do...
Xavier Ducrohet [Thu, 28 Jan 2010 18:44:02 +0000 (10:44 -0800)]
DDMS: Add support for profiling with VM able to send the result through JDWP. Do not merge.

Older VMs need to write the trace file on the SD Card which requires
the appropriate permission. This new mode directly streams the trace
file from the VM to DDMS.

Integrated from master to be in SDK Tools r5.

Bug: 2160407
Change-Id: I17d3e314d6325c1bdff041564bc939b2778b563e

14 years agoStrawman support for streaming method profiling. do not merge.
Andy McFadden [Tue, 26 Jan 2010 15:37:22 +0000 (07:37 -0800)]
Strawman support for streaming method profiling. do not merge.

This will send MPSS/MPSE packets instead of MPRS/MPRE when the client VM
supports them.  At least, it would if the property check weren't
hard-wired to false, which is done because the MPSE handling in DDMS is
incomplete (currently just dumps the first 100 chars so you can see that
it really got something).

Integrated from master to be in SDK Tools r5.

For bug 2160407.

Change-Id: I92b7d43fa78e3cb3eefdcef9e7357bbc6818822b

14 years agoMerge "SDK Launcher: capture stdout from batch file." into eclair
Raphael Moll [Thu, 28 Jan 2010 20:32:03 +0000 (12:32 -0800)]
Merge "SDK Launcher: capture stdout from batch file." into eclair

14 years agoSDK Launcher: capture stdout from batch file.
Raphael [Wed, 27 Jan 2010 20:48:34 +0000 (12:48 -0800)]
SDK Launcher: capture stdout from batch file.

Change-Id: Iab4e8f54bf2039cd9a17b1e814ffdc3ccd3deb23

14 years agoMerge "SDK Updater: prevent potential NPE." into eclair
Raphael Moll [Wed, 27 Jan 2010 01:30:53 +0000 (17:30 -0800)]
Merge "SDK Updater: prevent potential NPE." into eclair

14 years agoMerge "Add support for the -0 aapt option in the custom Ant task for aapt." into...
Xavier Ducrohet [Wed, 27 Jan 2010 01:19:48 +0000 (17:19 -0800)]
Merge "Add support for the -0 aapt option in the custom Ant task for aapt." into eclair

14 years agoSDK Updater: prevent potential NPE.
Raphael [Wed, 27 Jan 2010 01:10:02 +0000 (17:10 -0800)]
SDK Updater: prevent potential NPE.

Not that I know how that could happen in the first place
but it can't hurt.

SDK Bug: 2306650

Change-Id: I981f993c815f25e4f596afc029f3e44b5ed73927

14 years agoAdd support for the -0 aapt option in the custom Ant task for aapt.
Xavier Ducrohet [Tue, 26 Jan 2010 23:54:22 +0000 (15:54 -0800)]
Add support for the -0 aapt option in the custom Ant task for aapt.

Bug: 2398432
Change-Id: I2df2b8638ffaf2a5da87ff2bf17efcfb5efdff70

14 years agoMerge "Fix ADT Build. ExplodedRenderingHelperTest was not updated to the new API...
Xavier Ducrohet [Wed, 27 Jan 2010 00:39:40 +0000 (16:39 -0800)]
Merge "Fix ADT Build. ExplodedRenderingHelperTest was not updated to the new API of ExplodedRenderingHelper" into eclair

14 years agoFix ADT Build. ExplodedRenderingHelperTest was not updated to the new API of Exploded...
Xavier Ducrohet [Wed, 27 Jan 2010 00:38:37 +0000 (16:38 -0800)]
Fix ADT Build. ExplodedRenderingHelperTest was not updated to the new API of ExplodedRenderingHelper

Change-Id: I987004d3869f9e2f94efb0bec1f92f55a8c42501

14 years agoMerge "Windows SDK: use find_java.bat in all batch wrappers." into eclair
Raphael Moll [Wed, 27 Jan 2010 00:22:33 +0000 (16:22 -0800)]
Merge "Windows SDK: use find_java.bat in all batch wrappers." into eclair

14 years agoWindows SDK: use find_java.bat in all batch wrappers.
Raphael [Wed, 27 Jan 2010 00:08:17 +0000 (16:08 -0800)]
Windows SDK: use find_java.bat in all batch wrappers.

SDK Bug: 2315813

Change-Id: If026d09f927b3d0b5707dfd08e1367e4ba2da28b

14 years agoMerge "ADT/GLE: Support more layouts in explode mode." into eclair
Xavier Ducrohet [Wed, 27 Jan 2010 00:00:14 +0000 (16:00 -0800)]
Merge "ADT/GLE: Support more layouts in explode mode." into eclair

14 years agoandroid.bat now checks if Java is installed.
Raphael [Tue, 26 Jan 2010 21:47:04 +0000 (13:47 -0800)]
android.bat now checks if Java is installed.

When not in the path, search for it in the program files
where java installs by default.
If not found, let the user know where to download it.

SDK Bug: 2315813

Change-Id: I4b077606d86969f989279a5eaeebb2f1895a6ef2

14 years agoADT/GLE: Support more layouts in explode mode.
Xavier Ducrohet [Wed, 13 Jan 2010 00:34:23 +0000 (16:34 -0800)]
ADT/GLE: Support more layouts in explode mode.

Bug: 2391888
Change-Id: Id4076bed2d1c78896ccdd3872debdc84d9487aee

14 years agoGeneric Tools change log.
Xavier Ducrohet [Tue, 26 Jan 2010 02:19:11 +0000 (18:19 -0800)]
Generic Tools change log.

Change-Id: I8354405e124dd955531a22b59ff026b91359c70c

14 years agoUpdate the change log for the eclipse plugin.
Xavier Ducrohet [Tue, 26 Jan 2010 00:36:29 +0000 (16:36 -0800)]
Update the change log for the eclipse plugin.

Change-Id: Ie3bda15b870c842fd57100d67da3620058893bb1

14 years agoMerge "Updated to better distinguish between options and operands" into eclair
Xavier Ducrohet [Tue, 26 Jan 2010 00:19:18 +0000 (16:19 -0800)]
Merge "Updated to better distinguish between options and operands" into eclair

14 years agoUpdated to better distinguish between options and operands
Nate Karstens [Tue, 26 Jan 2010 00:06:14 +0000 (16:06 -0800)]
Updated to better distinguish between options and operands

This is integrated from external/master/development.git in
order to not be lost when the development->sdk move is
merged into external/master

Change-Id: I51631f4efd75f8fb429499fb3ddd1926b7467038
http://android.git.kernel.org/?p=platform/development.git;a=commit;h=582fcd428db0a49e453c64c8233f9f82ae72e1fc

14 years agoMerge "resolves Issue #5280: Go to problem in source from Logcat." into eclair
Xavier Ducrohet [Mon, 25 Jan 2010 23:58:45 +0000 (15:58 -0800)]
Merge "resolves Issue #5280: Go to problem in source from Logcat." into eclair

14 years agoresolves Issue #5280: Go to problem in source from Logcat.
Karl Ostmo [Mon, 25 Jan 2010 23:47:25 +0000 (15:47 -0800)]
resolves Issue #5280: Go to problem in source from Logcat.

This is integrated from external/master/development.git in
order to not be lost when the development->sdk move is
merged into external/master

Change-Id: I36b6c467900c80b58342ee586f802979e8ce821c
http://android.git.kernel.org/?p=platform/development.git;a=commit;h=fa974da92bec6ea9bb03ac4511622d784f04d271

14 years agoSDK Updater: Install samples in correct directory.
Raphael [Mon, 25 Jan 2010 22:54:40 +0000 (14:54 -0800)]
SDK Updater: Install samples in correct directory.

Also makes sure root directories exist before trying to
install into them

SDK Bug: 2384690

Change-Id: I9ed9f1b206debfc051d7b627afd5fd1fac96dd88

14 years agoMerge "ADT NPW: cleanup minSdkVersion resolution for samples." into eclair
Raphael Moll [Mon, 25 Jan 2010 19:20:38 +0000 (11:20 -0800)]
Merge "ADT NPW: cleanup minSdkVersion resolution for samples." into eclair

14 years agoADT NPW: cleanup minSdkVersion resolution for samples.
Raphael [Sat, 23 Jan 2010 02:56:10 +0000 (18:56 -0800)]
ADT NPW: cleanup minSdkVersion resolution for samples.

This fixes a couple quirks in NPW:
- When you select a sample, its minSdkVersion is now used as-is
  but the currently selected target is not changed to match.
  Otherwise it invalidates the list of samples you're trying to
  import from...
- This allows for samples with no minSdkVersion to properly
  import with an empty field.
- Same issue if you were to manually edit the field after the fact.

Also renamed IAndroidTarget.isCompatibleBaseFor() to
IAndroidTarget.canRunOn(), which is way more readable.

This also "fixes" bug 2346838 -- kind of, the bug was obsolete
since I had added the new sample mode but there was another
quirk instead (it was reverting the target so it invalidated
the sample you were trying to import... see point #1 above.)

Change-Id: If2487632484fa5646bea7fe2625a2a55e5d26c50

14 years agoSDK Updater: support <obsolete> packages.
Raphael [Sat, 23 Jan 2010 00:28:23 +0000 (16:28 -0800)]
SDK Updater: support <obsolete> packages.

Bug: 2390937
Change-Id: Ie571d308475a32bc81510785152b230031037094

14 years agoMerge "Error when building application with package that has a single segment." into...
Xavier Ducrohet [Fri, 22 Jan 2010 23:52:45 +0000 (15:52 -0800)]
Merge "Error when building application with package that has a single segment." into eclair

14 years agoError when building application with package that has a single segment.
Xavier Ducrohet [Fri, 22 Jan 2010 23:38:21 +0000 (15:38 -0800)]
Error when building application with package that has a single segment.

Bug: 2261147
Change-Id: I92660ca99eaa7e9d180402683e5c9be0f3dc28d4

14 years agoSDK Updater: samples support.
Raphael [Fri, 22 Jan 2010 21:04:52 +0000 (13:04 -0800)]
SDK Updater: samples support.

- Scan unknown /samples folders.
- Sample icon for package list.
- Renamed all package icons to <name>_pkg_16.png to simplify loader.

Bug: 2384690

Change-Id: I4deb11c37918e75357b3bb5212f0007126a8f3de

14 years agoMerge "SDK Updater: support sample packages." into eclair
Raphael Moll [Fri, 22 Jan 2010 19:56:25 +0000 (11:56 -0800)]
Merge "SDK Updater: support sample packages." into eclair

14 years agoSDK Updater: support sample packages.
Raphael [Fri, 22 Jan 2010 00:45:11 +0000 (16:45 -0800)]
SDK Updater: support sample packages.

TODO: needs an icon and scanning /samples folders not matching
any current platform (in next CL)

BUG: 2384690
Change-Id: I07d55a8e1ff897bde10c475050d0e18ae3ca7da8

14 years agoADT: Fix case where the launch config contains a deleted activity.
Xavier Ducrohet [Fri, 22 Jan 2010 00:50:22 +0000 (16:50 -0800)]
ADT: Fix case where the launch config contains a deleted activity.

Bug: 2368879
Change-Id: I76719f625d792b20d362198ce060e5a33945d0d4

14 years agoMerge "Add support for packaging gdbserver in the apk in Ant." into eclair
Xavier Ducrohet [Thu, 21 Jan 2010 23:45:43 +0000 (15:45 -0800)]
Merge "Add support for packaging gdbserver in the apk in Ant." into eclair

14 years agoMerge "ADT: Add missing NSL comment." into eclair
Xavier Ducrohet [Thu, 21 Jan 2010 23:45:37 +0000 (15:45 -0800)]
Merge "ADT: Add missing NSL comment." into eclair

14 years agoMerge "SDK Updater: refuse installing an addon without a matching platform." into...
Raphael Moll [Thu, 21 Jan 2010 23:32:08 +0000 (15:32 -0800)]
Merge "SDK Updater: refuse installing an addon without a matching platform." into eclair

14 years agoADT: Add missing NSL comment.
Xavier Ducrohet [Thu, 21 Jan 2010 23:27:49 +0000 (15:27 -0800)]
ADT: Add missing NSL comment.

Change-Id: Ib660a0c039f359b5c3fd2a39680e6c343e496dcd

14 years agoAdd support for packaging gdbserver in the apk in Ant.
Xavier Ducrohet [Thu, 21 Jan 2010 20:30:36 +0000 (12:30 -0800)]
Add support for packaging gdbserver in the apk in Ant.

This must only be done in debug so there's a new flag
to detect debug mode. Support for this is added to the
build script, the Ant task and ApkBuilder itself.

Change-Id: Iaebdc60cc3e8fa08c8cb75c885a6a0db556bfd86

14 years agoMerge "ADT: Make the builders add gdbserver with the native libs if needed." into...
Xavier Ducrohet [Thu, 21 Jan 2010 22:58:33 +0000 (14:58 -0800)]
Merge "ADT: Make the builders add gdbserver with the native libs if needed." into eclair

14 years agoSDK Updater: refuse installing an addon without a matching platform.
Raphael [Thu, 21 Jan 2010 21:36:45 +0000 (13:36 -0800)]
SDK Updater: refuse installing an addon without a matching platform.

This adds support for already installed archives as well as missing
platform archives when computing dependencies.

Change-Id: I40c7838d650af0d2e2aaee6bb1e0f2b4b84760c9

14 years agoADT: Make the builders add gdbserver with the native libs if needed.
Xavier Ducrohet [Thu, 21 Jan 2010 19:35:34 +0000 (11:35 -0800)]
ADT: Make the builders add gdbserver with the native libs if needed.

Change-Id: I0324919b4c1cc0ce0b597b46dac5e875f8322a1e

14 years agoMerge "SDK Updater: support min-api-level in Extra packages." into eclair
Raphael Moll [Thu, 21 Jan 2010 18:36:44 +0000 (10:36 -0800)]
Merge "SDK Updater: support min-api-level in Extra packages." into eclair

14 years agoMerge "ADT: fix potential NPE when launching app." into eclair
Xavier Ducrohet [Thu, 21 Jan 2010 17:50:51 +0000 (09:50 -0800)]
Merge "ADT: fix potential NPE when launching app." into eclair

14 years agoSDK Updater: support min-api-level in Extra packages.
Raphael [Thu, 21 Jan 2010 01:40:56 +0000 (17:40 -0800)]
SDK Updater: support min-api-level in Extra packages.

BUG: 2386406

Change-Id: I274079d228e9fe7ca2623b54adeae33d365662ed

14 years agoADT: fix potential NPE when launching app.
Xavier Ducrohet [Thu, 21 Jan 2010 02:16:44 +0000 (18:16 -0800)]
ADT: fix potential NPE when launching app.

The problem can arise when the emulator is just starting
to boot or if a device is just connected and its build
version was not yet queried.

Bug: 2379027

Change-Id: Ib6046dc2a50a87c496034d91abc0b579e76c34cb

14 years agoMake "android update test-project" create all necessary files.
Xavier Ducrohet [Thu, 21 Jan 2010 00:57:29 +0000 (16:57 -0800)]
Make "android update test-project" create all necessary files.

Previous implementation only created build.properties to set
the location of the main project.

This new version will also update/create files as the main
"android update project" command does.

Bug: 2284744
Change-Id: I8938d0a49537c5d4fbc60d3557a21ab7c40fad3e

14 years agoFix issue with absolute path in -nf parameter of apkbuilder.
Xavier Ducrohet [Wed, 20 Jan 2010 22:23:28 +0000 (14:23 -0800)]
Fix issue with absolute path in -nf parameter of apkbuilder.

Bug: 1607862
Change-Id: I7fecc99fe7319f566d2d78ccc82c73d86067db51

14 years agoADT: Fix arrayoutofboundexception
Xavier Ducrohet [Tue, 19 Jan 2010 19:20:06 +0000 (11:20 -0800)]
ADT: Fix arrayoutofboundexception

Bug: 2378994
Change-Id: I4844addc3fe006f1739015522dc45e43d70cc966

14 years agoADT GRE: create base class for IViewRule.
Raphael [Fri, 15 Jan 2010 01:16:24 +0000 (17:16 -0800)]
ADT GRE: create base class for IViewRule.

This adds BaseViewRule (better name welcome) that is basically
an empty IViewRule so that groovy classes don't have to
systematically redefine the same empty boilerplate.

Change-Id: Ibf9a03d3aa0ca8a42534f5693792235c31100273

14 years agoADT GRE: Move gscripts package.
Raphael [Fri, 15 Jan 2010 00:13:26 +0000 (16:13 -0800)]
ADT GRE: Move gscripts package.

Moving the public API from com.android.ide.eclispse.adt.gscripts
to ...adt.editors.layout.gscripts.

Change-Id: Idf5b979d47dbbbe2514cce8cc3c688eb273bcce6

14 years agoMerge "AD Tests: fix missing LayoutDevices sample xml." into eclair
Raphael Moll [Thu, 14 Jan 2010 23:57:38 +0000 (15:57 -0800)]
Merge "AD Tests: fix missing LayoutDevices sample xml." into eclair

14 years agoMerge "Cleanup mock class, don't use NotImplementedException." into eclair
Raphael Moll [Thu, 14 Jan 2010 23:57:11 +0000 (15:57 -0800)]
Merge "Cleanup mock class, don't use NotImplementedException." into eclair

14 years agoADT GLE: pass RulesEngine to LayoutCanvas.
Raphael [Thu, 14 Jan 2010 22:14:53 +0000 (14:14 -0800)]
ADT GLE: pass RulesEngine to LayoutCanvas.

This fixes a corner case where the canvas might find
itself using a null RulesEngine.

Change-Id: I9c5f2ec7f3d4e98d35995d5529f00d15ebd76faa

14 years agoAD Tests: fix missing LayoutDevices sample xml.
Raphael [Thu, 14 Jan 2010 23:17:50 +0000 (15:17 -0800)]
AD Tests: fix missing LayoutDevices sample xml.

Change-Id: I879dd9fd3465491b0e8143a81d3a696e50212b99

14 years agoCleanup mock class, don't use NotImplementedException.
Raphael [Thu, 14 Jan 2010 22:18:15 +0000 (14:18 -0800)]
Cleanup mock class, don't use NotImplementedException.

It has a non-java namespace we don't want to use.

Change-Id: I67f247b38df16e1a62957e84ce9e03c449ffae5a

14 years agoADT/GLE: Dynamically create ID values for non saved layout
Xavier Ducrohet [Wed, 13 Jan 2010 01:15:38 +0000 (17:15 -0800)]
ADT/GLE: Dynamically create ID values for non saved layout

When a non saved layout is rendered it is possible that some
views reference IDs that don't yet exists in the R class
because those IDs are created on the fly through @+id/...

For some layouts (RelativeLayout) this has a huge impact
on the rendering to the point of making useless. By
dynamically creating unknown ID, we can have a correct
rendering even if the layout is non saved.

Bug: 2370047
Change-Id: I09a0dfaa9d2a767229ab778438256a7609d6d337

14 years agoandroid-2.1_r1 snapshot
The Android Open Source Project [Tue, 12 Jan 2010 23:19:28 +0000 (15:19 -0800)]
android-2.1_r1 snapshot

14 years agoADT/GLE: remove unneeded exception when exploding a non supported layout
Xavier Ducrohet [Tue, 12 Jan 2010 22:49:51 +0000 (14:49 -0800)]
ADT/GLE: remove unneeded exception when exploding a non supported layout

Change-Id: Ia6e0e6ef814b39403adb8c5edb9b2a1f41af81d8

14 years agoMerge "Add support for Sample packages in the SDK Manager" into eclair
Xavier Ducrohet [Tue, 12 Jan 2010 21:03:48 +0000 (13:03 -0800)]
Merge "Add support for Sample packages in the SDK Manager" into eclair

14 years agoAdd support for Sample packages in the SDK Manager
Xavier Ducrohet [Tue, 12 Jan 2010 19:51:03 +0000 (11:51 -0800)]
Add support for Sample packages in the SDK Manager

Bug: 2296352
Change-Id: Id26fdb02030d00a27960b3e0a21d3c537e7cf8da

14 years agoADV Manager: prevent deletion of running AVDs
Xavier Ducrohet [Tue, 12 Jan 2010 02:15:12 +0000 (18:15 -0800)]
ADV Manager: prevent deletion of running AVDs

Bug: 2364918
Change-Id: Ibe01e0b2d51f6d7df1972f57ff7fadb6116175df

14 years agoAVD Mananger: Fix the deletion of a folder content.
Xavier Ducrohet [Tue, 12 Jan 2010 01:01:05 +0000 (17:01 -0800)]
AVD Mananger: Fix the deletion of a folder content.

Bug: 2364917
Change-Id: I9585200adad5deb2ef27ea157ddd25e7124c2e73

14 years agoMerge "ADT/GLE: Fix config selector to not select a config that has a better match...
Xavier Ducrohet [Mon, 11 Jan 2010 23:47:41 +0000 (15:47 -0800)]
Merge "ADT/GLE: Fix config selector to not select a config that has a better match than the current file." into eclair

14 years agoADT/GLE: Fix config selector to not select a config that has a better match than...
Xavier Ducrohet [Sat, 9 Jan 2010 00:24:55 +0000 (16:24 -0800)]
ADT/GLE: Fix config selector to not select a config that has a better match than the current file.

When replacing a file with another one (because of a user "open action")
it is possible the config selector will find the current config compatible,
even though the previous layout was a better for match for it.

The config selector now attemps to find a config for which the new
file is the best match.

Change-Id: I7d794c2a8b9a90a120970049cb402f9ee84f8749

14 years agoempty initial commit
The Android Open Source Project [Mon, 11 Jan 2010 23:29:31 +0000 (15:29 -0800)]
empty initial commit

14 years agoADT GLE: Support drop in AbsoluteLayout and create XML node.
Raphael [Fri, 8 Jan 2010 21:46:01 +0000 (13:46 -0800)]
ADT GLE: Support drop in AbsoluteLayout and create XML node.

This is a *temporary* CL just to get some things out of the way:
- it adds some method to create some XML from groovy
- it uses the new dropStart/dropFinish API.

However after this is submitted I'll change the IViewRule API as
we discussed so all this code will need to change. Again.

Change-Id: Ie9c7eebf0f9e1d48e364467fbaac5615b4c42f21

14 years agoFor now make ADT still use fill_parent instead of match_parent
Xavier Ducrohet [Sat, 9 Jan 2010 02:18:06 +0000 (18:18 -0800)]
For now make ADT still use fill_parent instead of match_parent

Change-Id: I7d59600e036a630daaaac0cda53487c24ab0c3fc

14 years agoDeprecate fill_parent and introduce match_parent. (do not merge)
Romain Guy [Fri, 8 Jan 2010 23:07:24 +0000 (15:07 -0800)]
Deprecate fill_parent and introduce match_parent. (do not merge)
Bug: #2361749.

Change-Id: I7a75cd7f0887dd8135c43f71d1b15165306bfa9b

14 years agoADT/GLE: Fix issue with the locale list refresh in the ConfigComposite
Xavier Ducrohet [Fri, 8 Jan 2010 19:30:23 +0000 (11:30 -0800)]
ADT/GLE: Fix issue with the locale list refresh in the ConfigComposite

One of the problem stemmed from the ResourceMonitor sending removed
resource events to the ResourceManager first and then to other listeners.
Other listeners then failed to get a corresponding ResourceFolder
or ResourceFile since it was deleted by the ResourceManager.

Solution: add a resource-specific change listener in the ResourceManager.
Using this listener is much more efficient as the ResourceFolder/File
do not need to be figured out by the listener from the IFolder/IFile.

Also renamed the ResourceMonitor as it's confusing (it listens to
Eclipse resource changes, not Android project resource changes).
Since it deals mostly with projects and their resources, and is
global and used by other monitor, it's now called GlobalProjectMonitor.

Also cleaned up the ResourceManager and LayoutReloadMonitor to
implements their interface as internal classes so that the
methods do not show up in their public API.

Change-Id: I1967a48364fd946c98d9eee5bd4a333fc01bea2d

14 years agoADT/GLE: Cleaned up the open/replace file process in the GLE and the config composite
Xavier Ducrohet [Fri, 8 Jan 2010 01:49:37 +0000 (17:49 -0800)]
ADT/GLE: Cleaned up the open/replace file process in the GLE and the config composite

The GLE and the config composite must handle 3 cases:
- new file opened following the creation of the editor
- replacement file when the user opens a different version of a layout
  that's already opened. The editor stays and switch to the new file.
- replacement file whne the user change the configuration and a new
  file that better matches the config is automicatlly opened.

Additionally, the editor/config composite must handle files being
opened while the SDK or the file's project's target are not yet
loaded.

File change or change in the SDK/Target must attempts to keep the
config/theme selection as close as possible as the previous state
while still remaining compatible with the new file/sdk/target.

Also removed the duplicate ITargetChangeListener, by making the
one in AndroidEditor optional (constructor flag), so that the
one in GraphicalLayoutEditor/Part is the only one used in the GLE
(it gives us more control on the order in which the code previously
executed by both listeners is now executed).

Also split the themes and locales updates as they happen on
different triggers.

Change-Id: If6d73bbe8af11cd221fb7830a37ffcc163135fc4

14 years agoADT/GLE: Improve the config selector.
Xavier Ducrohet [Thu, 7 Jan 2010 01:21:48 +0000 (17:21 -0800)]
ADT/GLE: Improve the config selector.

- Better support for device/config, properly select config when opening
files, proper support for files that have different config versions

- Better language support, with default values and languages
with no regions.

- (attempt to) Properly set locale combo when opening files

- attempt to keep a somewhat compatible config when changing
device.

- general clean up of the API. More to come.

Change-Id: I45652bb18e6a61b443a7f0c1087a9b2d3f81e033

14 years agoFix the locale selection in the config selector.
Xavier Ducrohet [Wed, 6 Jan 2010 23:12:12 +0000 (15:12 -0800)]
Fix the locale selection in the config selector.

default locale means nothing. Instead we replace it with
- "any" if there are no resources specific to a locale in the project.
- "other" if there are resources specific to a locale in the project.

In both case, the actual locale used by the config is hard-coded to
a value that cannot be used by the resources ("__" for the language,
and "__" for the region), to enforce using the default resources.
Using a config with no language nor region had the effect to take
the first resources with a valid qualifier for language and/or
region.

Change-Id: I67a34d1a026a5d3d5e1438d3763ae27c5ed0ce55

14 years agoMove LayoutLib API library to sdk.git
Xavier Ducrohet [Thu, 7 Jan 2010 16:30:01 +0000 (08:30 -0800)]
Move LayoutLib API library to sdk.git

Change-Id: I8a54705a75d79c743e59c763ed2464408a836ebf

14 years agoADT/GLE2: send new width/heigh when in explode mode instead of original ones.
Xavier Ducrohet [Tue, 5 Jan 2010 18:30:55 +0000 (10:30 -0800)]
ADT/GLE2: send new width/heigh when in explode mode instead of original ones.

Change-Id: I9f0743ad6c3a79254c1296f78a9845dbf6c65ca5

14 years agoADT GLE: defer drop to first parent view that accepts it.
Raphael [Mon, 4 Jan 2010 22:44:04 +0000 (14:44 -0800)]
ADT GLE: defer drop to first parent view that accepts it.

Change-Id: I021539e26a1feb0f5a89d907142ed4532fae8320

14 years agoADT GRE: move scripts to ADT /gscripts.
Raphael [Mon, 4 Jan 2010 21:29:09 +0000 (13:29 -0800)]
ADT GRE: move scripts to ADT /gscripts.

So right now we have:
- some GRE/GLE code in internal that uses the scripts
- the "public" bases client classes in ADT src/gscripts (not internal)
- the "client scripts" in ADT /gscripts.
- projects use their own /gscripts folder.

Change-Id: I899d272233f35f493317a56fde60eb7e4a257c7a