OSDN Git Service

android-x86/sdk.git
13 years agoWXVGA 1280x800 skin for emulator.
Raphael Moll [Thu, 12 Aug 2010 22:01:17 +0000 (15:01 -0700)]
WXVGA 1280x800 skin for emulator.

Change-Id: I42b7e24a824d42bf53efcc6cf487102021c7b8d8

13 years agomerge from open-source master
The Android Open Source Project [Tue, 10 Aug 2010 03:28:14 +0000 (20:28 -0700)]
merge from open-source master

Change-Id: I83aa7f88ba7390781d0045bff3a629b71c3143a0

13 years agoADT: Fix visibility of method so that Eclipse tests can access it.
Raphael Moll [Tue, 10 Aug 2010 02:51:44 +0000 (19:51 -0700)]
ADT: Fix visibility of method so that Eclipse tests can access it.

Also added an annotation to indicate why it has been made
public.

SDK Bug: 2906164

Change-Id: I9490467a72989392f838a8c8e7137e929721358e

13 years agoFix permissions: source files shouldn't be executable
Omari Stephens [Fri, 6 Aug 2010 01:37:52 +0000 (18:37 -0700)]
Fix permissions: source files shouldn't be executable

Change-Id: I4030ca07fb40e171978d8eb366b6d403e3c9ea2c

13 years agoSdkManager: support for upgrade to Schema #3.
Raphael Moll [Fri, 30 Jul 2010 22:37:25 +0000 (15:37 -0700)]
SdkManager: support for upgrade to Schema #3.

This changes the way the sdk manager looks for schema upgrades:
- when trying to load an XML, parse the root element and scan
  for our XLMNS. If it parses, get the version number at the end
  and use this directly to try to load using the right schema.
- In turn this allows us to distinguish between an incorrectly
  formatted XML (but using the right schema) versus something
  that is not our XML schema or not an XML at all, and then we
  can produce better errors for the user.
- We also then directly know when the schema version is above
  the known value of the tool and can then create the upgrade
  tools node accordingly.

Change-Id: I58c7d89d7b57dd4d5488f726e5f8b21cc4308451

13 years agoUpdate sdklib to use the new sdk organization (build tools moved)
Xavier Ducrohet [Tue, 27 Jul 2010 22:08:15 +0000 (15:08 -0700)]
Update sdklib to use the new sdk organization (build tools moved)

Also do some minor clean-up from the recent change to ProjectProperties.
FileWrapper extends java.io.File so there's no need to create a File
and then create a FileWrapper around it. Directly create a FileWrapper.

Change-Id: I3f072bf7f848d63b90fa03bec2683f6a009deb88

13 years agoMerge "SdkManager: new schema with <platform-tool> package."
Raphael Moll [Fri, 30 Jul 2010 04:09:40 +0000 (21:09 -0700)]
Merge "SdkManager: new schema with <platform-tool> package."

13 years agoMerge "SdkManager: don't use deprecated methods."
Raphael Moll [Fri, 30 Jul 2010 04:08:40 +0000 (21:08 -0700)]
Merge "SdkManager: don't use deprecated methods."

13 years agoMerge "Clean up the previous fix to ApkBuilder with regard to the keystore."
Xavier Ducrohet [Fri, 30 Jul 2010 03:52:15 +0000 (20:52 -0700)]
Merge "Clean up the previous fix to ApkBuilder with regard to the keystore."

13 years agoSdkManager: new schema with <platform-tool> package.
Raphael Moll [Thu, 29 Jul 2010 20:15:04 +0000 (13:15 -0700)]
SdkManager: new schema with <platform-tool> package.

This adds the new schema (v3), the internal definitions and
constants. However the schema v3 is not enabled as default and
the whole thing is not used by the downloader/installer yet.

Note: some files in this folder are using Windows \r\n end-of-lines.
I will convert them to Unix \n EOLs in *another* CL, not this one.

Change-Id: I327f12571ad3959e85a7b972cad98663c09cce33

13 years agoSdkManager: don't use deprecated methods.
Raphael Moll [Thu, 29 Jul 2010 17:58:20 +0000 (10:58 -0700)]
SdkManager: don't use deprecated methods.

If we're going to deprecate the parsePropertyFile(File), we might
as well stop using it ourselves.

Also removes the obsolete parsePropertyFile(File) method.

Change-Id: I811590ca583f2a89d5b7d606d70a4bc14eb6230b

13 years agoMerge "Don't rely on map to store layout device configs."
Xavier Ducrohet [Fri, 30 Jul 2010 00:46:40 +0000 (17:46 -0700)]
Merge "Don't rely on map to store layout device configs."

13 years agoClean up the previous fix to ApkBuilder with regard to the keystore.
Xavier Ducrohet [Thu, 29 Jul 2010 22:52:35 +0000 (15:52 -0700)]
Clean up the previous fix to ApkBuilder with regard to the keystore.

Change-Id: I620269355e176d9167ceb733191ee5ea8908d06a

13 years agoDon't rely on map to store layout device configs.
Xavier Ducrohet [Thu, 29 Jul 2010 00:01:55 +0000 (17:01 -0700)]
Don't rely on map to store layout device configs.

Relying on maps means that we don't control the order of the configs
in the UI. Mac/Windows show a different order already, and it's just
luck that the Mac one matches the content of the XML.

Now we keep the order from the XML and display it as-is in the UI.

Change-Id: I900f330a4ea9059fe27df2bca6c3a7a770737ae4

13 years agomerge from tools_r7
The Android Open Source Project [Thu, 29 Jul 2010 19:14:57 +0000 (12:14 -0700)]
merge from tools_r7

Change-Id: I1ae4cce619e71d379f2def3f4d6f484279b600a6

13 years agoFix broken generation of default keystore. Do not merge.
Xavier Ducrohet [Thu, 29 Jul 2010 19:05:51 +0000 (12:05 -0700)]
Fix broken generation of default keystore. Do not merge.

The location of the debug keystore was validated (to make sure
it was not a directory or an unreadable file), but it also threw
an exception if the file didn't exist, preventing the creation
from happening.

This is integrated from master.

Change-Id: I4025bb7282c1c4ea5dd56d6c2497c9c670ee5579

13 years agoMerge "Fix broken generation of default keystore."
Xavier Ducrohet [Thu, 29 Jul 2010 19:09:40 +0000 (12:09 -0700)]
Merge "Fix broken generation of default keystore."

13 years agoFix broken generation of default keystore.
Xavier Ducrohet [Thu, 29 Jul 2010 19:05:51 +0000 (12:05 -0700)]
Fix broken generation of default keystore.

The location of the debug keystore was validated (to make sure
it was not a directory or an unreadable file), but it also threw
an exception if the file didn't exist, preventing the creation
from happening.

Change-Id: I2fc7d7be10ee4b85db3eab5ef4ee429681c8c5e9

13 years agoADT GLE2: minor unit tests
Raphael Moll [Sat, 24 Jul 2010 02:51:36 +0000 (22:51 -0400)]
ADT GLE2: minor unit tests

Change-Id: I231b272363bf1d9652093c747fd2db865f1658c7

13 years agoMerge ""create alternate layout" default to no qualifier."
Xavier Ducrohet [Wed, 28 Jul 2010 19:04:33 +0000 (12:04 -0700)]
Merge ""create alternate layout" default to no qualifier."

13 years agoMerge "Update ddms (all) and 'android' (linux/mac) to user explicit classpath"
Xavier Ducrohet [Wed, 28 Jul 2010 19:04:25 +0000 (12:04 -0700)]
Merge "Update ddms (all) and 'android' (linux/mac) to user explicit classpath"

13 years agoMerge "Release MonkeyRunner into open source."
Bill Napier [Wed, 28 Jul 2010 00:05:03 +0000 (17:05 -0700)]
Merge "Release MonkeyRunner into open source."

13 years agomerge from tools_r7
The Android Open Source Project [Tue, 27 Jul 2010 23:56:16 +0000 (16:56 -0700)]
merge from tools_r7

Change-Id: I1a0c4091d4fcb8c4fc31d574f8973e7fff4b6b6f

13 years agoFix missing goto label in android.bat
Xavier Ducrohet [Tue, 27 Jul 2010 23:52:25 +0000 (16:52 -0700)]
Fix missing goto label in android.bat

Change-Id: I1da6089cabe4a00567f2b7d1a7e5d2847f5799d4

13 years agoRelease MonkeyRunner into open source.
Bill Napier [Tue, 27 Jul 2010 23:18:34 +0000 (16:18 -0700)]
Release MonkeyRunner into open source.

Change-Id: Ie08e493e700e3e4c85270629f68547a08b7457d4

13 years ago"create alternate layout" default to no qualifier.
Xavier Ducrohet [Tue, 27 Jul 2010 23:17:08 +0000 (16:17 -0700)]
"create alternate layout" default to no qualifier.

Previously the dialog opened with all qualifiers set up
which would make most users default to making a very restrictive
layout.

New version is simpler (can't edit the qualifier value), and
let the user simply adding the ones they want.

Change-Id: I684390f58f14ab74678ac03980e6643442361ab3

13 years agoADT GLE2: Remove (or disable) debug printfs.
Raphael Moll [Tue, 27 Jul 2010 13:11:15 +0000 (09:11 -0400)]
ADT GLE2: Remove (or disable) debug printfs.

Change-Id: I3d8a0f6b4731ee78af8da33c1749423ca7b13254

13 years agoHandling adb exceptions properly
Konstantin Lopyrev [Mon, 26 Jul 2010 23:57:08 +0000 (16:57 -0700)]
Handling adb exceptions properly

Change-Id: I1209ee81adc99c232280371aa6206345e87a1094

13 years agoUpdate ddms (all) and 'android' (linux/mac) to user explicit classpath
Xavier Ducrohet [Tue, 27 Jul 2010 00:05:36 +0000 (17:05 -0700)]
Update ddms (all) and 'android' (linux/mac) to user explicit classpath

They were still using the old method of providing a jar folder
through java.ext.dirs in which to look for jar files.

The jar dependency is now explicit in the manifest, which allows
us to target ddmlib explicitely and not ddmlib-prebuilt.

Change-Id: Ic3c5708ab327a3e1fb7a7cd86fffda96e0d988dd

13 years agoMerge "Device Selector code."
Konstantin Lopyrev [Mon, 26 Jul 2010 22:32:06 +0000 (15:32 -0700)]
Merge "Device Selector code."

13 years agomerge from tools_r7
The Android Open Source Project [Mon, 26 Jul 2010 21:20:56 +0000 (14:20 -0700)]
merge from tools_r7

Change-Id: I27e0f8e3ab5a6a9d207ee969b30b7ffbb8e1b834

13 years agoFix issue with qualifier combo box not filled up in device mode DO NOT MERGE
Xavier Ducrohet [Mon, 26 Jul 2010 21:02:57 +0000 (14:02 -0700)]
Fix issue with qualifier combo box not filled up in device mode DO NOT MERGE

device mode is when the qualifier values must match what a device
would report. For instance nodpi should not be selectable.

Cherry-picked from master to tools_r7

Change-Id: I22cbd5b3522ae17d4d7f61e95ca20deeea825a79

13 years agoFix issue with qualifier combo box not filled up in device mode
Xavier Ducrohet [Mon, 26 Jul 2010 21:02:57 +0000 (14:02 -0700)]
Fix issue with qualifier combo box not filled up in device mode

device mode is when the qualifier values must match what a device
would report. For instance nodpi should not be selectable.

Change-Id: I902697d72ffad196fcaf41b1e6387cdfcbbc18da

13 years agoUpdate the ddmlib api for push/pull/install
Xavier Ducrohet [Wed, 21 Jul 2010 00:25:36 +0000 (17:25 -0700)]
Update the ddmlib api for push/pull/install

The API now throws SyncException instead of returning SyncResult.

The IDevice API to install/uninstall now returns a single
InstallException that encapsulate all the other ddmlib
exception.

Also, the recently added exceptions now don't extend IOException
anymore.

Change-Id: Ib334c4157a6add1882233dfaaa032aea1910eede

13 years agoMerge "Fix EclipseTestCollector for Eclipse 3.6's JUnit lib."
Raphael Moll [Sun, 25 Jul 2010 02:35:06 +0000 (19:35 -0700)]
Merge "Fix EclipseTestCollector for Eclipse 3.6's JUnit lib."

13 years agoMerge "Fix QualifierListTest and ConfigMatchTest unittests."
Raphael Moll [Sat, 24 Jul 2010 12:34:37 +0000 (05:34 -0700)]
Merge "Fix QualifierListTest and ConfigMatchTest unittests."

13 years agoADT GLE2: fix, don't use constant from SWT 3.5.00
Raphael Moll [Sat, 24 Jul 2010 03:35:12 +0000 (23:35 -0400)]
ADT GLE2: fix, don't use constant from SWT 3.5.00

The build server still builds using 3.4 and we
still support 3.4 at runtime.

Change-Id: I8f6ac24e77eef1daac68ee7f595fb66654762d6b

13 years agoFix SDK build for eclipse tests.
Raphael Moll [Sat, 24 Jul 2010 02:59:49 +0000 (22:59 -0400)]
Fix SDK build for eclipse tests.

Broken by Change: If04c5f8b10eeaca494a155ed6c4a25bf0d9d892c

Change-Id: I8f60da7d537af68df47119b636eaf03c49b51146

13 years agoFix EclipseTestCollector for Eclipse 3.6's JUnit lib.
Raphael Moll [Sat, 24 Jul 2010 02:43:31 +0000 (22:43 -0400)]
Fix EclipseTestCollector for Eclipse 3.6's JUnit lib.

Some method signatures have changed.

Change-Id: Iff11d8bc3ba670a59491f0b5ba50de8bad79c1bf

13 years agoFix QualifierListTest and ConfigMatchTest unittests.
Raphael Moll [Sat, 24 Jul 2010 00:51:37 +0000 (20:51 -0400)]
Fix QualifierListTest and ConfigMatchTest unittests.

testQualifierList() checks the number of qualifiers
against FolderConfiguration.INDEX_COUNT except there's
a mismatch since there was no index 13.

ConfigMatchTest was missing the new dock/night and nav state.

Change-Id: I5df0b1375a209cca5a39d93946b62b88f2688fb2

13 years agoMerge "ADT GLE2: Deal with missing custom view classes."
Raphael Moll [Fri, 23 Jul 2010 23:13:08 +0000 (16:13 -0700)]
Merge "ADT GLE2: Deal with missing custom view classes."

13 years agoDevice Selector code.
Konstantin Lopyrev [Thu, 22 Jul 2010 21:23:47 +0000 (14:23 -0700)]
Device Selector code.

Change-Id: I944315e75b72ef285bed53e5801761886f48cb24

13 years agoMerge "parse instrumentation result bundles"
Jean-Baptiste Queru [Fri, 23 Jul 2010 22:25:17 +0000 (15:25 -0700)]
Merge "parse instrumentation result bundles"

13 years agoADT GLE2: Deal with missing custom view classes.
Raphael Moll [Fri, 23 Jul 2010 20:48:12 +0000 (16:48 -0400)]
ADT GLE2: Deal with missing custom view classes.

- Detect missing view classes and replace them by a MockView.
  (This alone makes the rendering useful instead of not updating it
  on error.)
- Display the name of the missing view classes.
- Make them hot links and display the New Class Wizard to create them.

Change-Id: I20b69db5428751c4a6c1367103462b3867fa9c7d

13 years agoMerge "ADT GLE2: Properly handle custom classes."
Raphael Moll [Fri, 23 Jul 2010 17:51:13 +0000 (10:51 -0700)]
Merge "ADT GLE2: Properly handle custom classes."

13 years agoMerge changes I792947e3,Ifc7b150e
Raphael Moll [Fri, 23 Jul 2010 17:50:47 +0000 (10:50 -0700)]
Merge changes I792947e3,Ifc7b150e

* changes:
  ADT GLE2: paste element in empty layout.
  ADT GLE2: implementation paste operation.

13 years agoADT GLE2: Properly handle custom classes.
Raphael Moll [Fri, 23 Jul 2010 15:53:21 +0000 (11:53 -0400)]
ADT GLE2: Properly handle custom classes.

This makes it possible to drag'n'drop or paste a custom
class in a project that doesn't have the class. The paste
operation will succeed and the layout rendering will provide
a clear error indicating the class is missing.

Change-Id: I80bbc70cfdba68277120dff3e770ce31651e7ebc

14 years agoADT GLE2: paste element in empty layout.
Raphael Moll [Thu, 22 Jul 2010 18:48:09 +0000 (14:48 -0400)]
ADT GLE2: paste element in empty layout.

Change-Id: I792947e39d4b0ef7828f2df394bac81c0da37970

14 years agoMerge "Move tools to r8 in the dev branch."
Xavier Ducrohet [Thu, 22 Jul 2010 19:41:04 +0000 (12:41 -0700)]
Merge "Move tools to r8 in the dev branch."

14 years agoMove tools to r8 in the dev branch.
Xavier Ducrohet [Thu, 22 Jul 2010 19:40:06 +0000 (12:40 -0700)]
Move tools to r8 in the dev branch.

Change-Id: I703a4a52c0f2e76c5b19103f3b43ef203472006c

14 years agomerge from tools_r7
The Android Open Source Project [Thu, 22 Jul 2010 18:57:07 +0000 (11:57 -0700)]
merge from tools_r7

Change-Id: Id00197ab55d948f7ef679a17c1d00a3c4e05dfc8

14 years agoFix a potential npe preventing the library project selection from working.
Xavier Ducrohet [Thu, 22 Jul 2010 18:46:11 +0000 (11:46 -0700)]
Fix a potential npe preventing the library project selection from working.

If the workspace has broken projects, Sdk.getProjectState() can return
null for them, causing an NPE in the IProjectChooserFilter.

I had fixed NonLibraryProjectOnlyFilter but apparently, not
LibraryProjectOnlyFilter.

Change-Id: I9a85ce61885888e0107acf2f9cb5e3491ed8f1fb

14 years agoADT GLE2: implementation paste operation.
Raphael Moll [Thu, 22 Jul 2010 15:09:27 +0000 (11:09 -0400)]
ADT GLE2: implementation paste operation.

Change-Id: Ifc7b150eefd810a7c615fd9d3f26904e59c6c4aa

14 years agoADT GLE2: Properly handle empty documents, including drag'n'drop.
Raphael Moll [Wed, 21 Jul 2010 18:42:25 +0000 (14:42 -0400)]
ADT GLE2: Properly handle empty documents, including drag'n'drop.

This makes it possible to drop into empty documents.

Change-Id: I512d8ff5e8747e4d3f5e27900308157e75cacd57

14 years agoADT GLE2: Let groovy rules access a public API of the RulesEngine.
Raphael Moll [Wed, 21 Jul 2010 13:42:24 +0000 (09:42 -0400)]
ADT GLE2: Let groovy rules access a public API of the RulesEngine.

This is done by injecting a property in the groovy rule instance
with a new interface, the IClientRulesEngine. The client callback
currently has 2 useful methods: debugPrintf (which has been moved
out of INode) and loadRule(). This last one is the key here, it
allows one rule to request another one to be loaded and get its
object.

Change-Id: I2881854e33cd3b41565dd1e16aaba1484ef765db

14 years agoADT GLE2: add 'Show In' submenu to canvas' context menu.
Raphael Moll [Tue, 20 Jul 2010 17:10:02 +0000 (13:10 -0400)]
ADT GLE2: add 'Show In' submenu to canvas' context menu.

Change-Id: Ibad11e7872c529e3154b8f0abbfd02d26cac52cc

14 years agomerge from tools_r7
The Android Open Source Project [Tue, 20 Jul 2010 00:26:42 +0000 (17:26 -0700)]
merge from tools_r7

Change-Id: I2fb70c442aa1ec41ac23c8f0842e0e8e66c21f13

14 years agoFix DDMS's dependencies in the feature declaration.
Xavier Ducrohet [Tue, 20 Jul 2010 00:21:00 +0000 (17:21 -0700)]
Fix DDMS's dependencies in the feature declaration.

Change-Id: I215862930f2336b59e6d733bff4ed9dffcca58d8

14 years agoMerge "First commit... Ignore *.java files, they are there just so it builds."
Xavier Ducrohet [Mon, 19 Jul 2010 23:57:01 +0000 (16:57 -0700)]
Merge "First commit... Ignore *.java files, they are there just so it builds."

14 years agomerge from tools_r7
The Android Open Source Project [Mon, 19 Jul 2010 21:41:42 +0000 (14:41 -0700)]
merge from tools_r7

Change-Id: Ia6f192ecc0d58aff08a1aa896200de65e2899ac0

14 years agoDisable setDerived(true) on linked library source folders.
Xavier Ducrohet [Mon, 19 Jul 2010 21:21:18 +0000 (14:21 -0700)]
Disable setDerived(true) on linked library source folders.

It turns out it's a bad idea as the user will get a warning
when editing the files in the linked folder. Eclipse documentation
says that Team plug-ins should handle the linked folder and not
add them to the repository.

Change-Id: I1f439cf2007a730a4d857ff98283311b1cf36afd

14 years agoADT GLE2: delegate drop events from Outline to Canvas.
Raphael Moll [Mon, 19 Jul 2010 03:48:26 +0000 (23:48 -0400)]
ADT GLE2: delegate drop events from Outline to Canvas.

Change-Id: I19c108ec3f242a88e750522cf2acfdd017318937

14 years agoADT GLE2: drag from Outline view.
Raphael Moll [Sun, 18 Jul 2010 02:41:55 +0000 (22:41 -0400)]
ADT GLE2: drag from Outline view.

The drag source listener delegates the handling to the canvas.

Changed the OutlinePage2 to no longer listen to parts activations.
Instead there's one instance of OutlinePage2 per instance of
the GraphicalEditorPart and the link is provided in the constructor
directly.

Change-Id: I8bee65b2a7f75bd1436082c9a9753c561d8a6cab

14 years agoADT GLE2: Link outline's context menu to active canvas' menu.
Raphael Moll [Sat, 17 Jul 2010 19:15:10 +0000 (15:15 -0400)]
ADT GLE2: Link outline's context menu to active canvas' menu.

Change-Id: I29712077a340276f0cde0c9c1ecf75f2e931e515

14 years agoparse instrumentation result bundles
Guang Zhu [Thu, 17 Jun 2010 18:44:05 +0000 (11:44 -0700)]
parse instrumentation result bundles

During tests, there are per-instrumentation based results emmitted
as key-value pairs. Examples include performance tests and normal
tests in code coverage mode. Currently most of these are discarded
by InstrumentationResultParser, this change adds parsing function,
stores the key-value pairs in a map, and finally send it to
ITestRunListeners at the end of test run.

Change-Id: If04c5f8b10eeaca494a155ed6c4a25bf0d9d892c

14 years agoADT GLE2: cut/copy/delete/select-all global actions.
Raphael Moll [Fri, 16 Jul 2010 03:09:56 +0000 (23:09 -0400)]
ADT GLE2: cut/copy/delete/select-all global actions.

Also provides a linked context menu for the canvas.
Paste action is in the menu but will be implemented in a next CL.

Change-Id: Iccd3663b5e0db16f44ae2f9a0c2c9271926fe8c2

14 years agoFirst commit... Ignore *.java files, they are there just so it builds.
Konstantin Lopyrev [Fri, 16 Jul 2010 01:26:51 +0000 (18:26 -0700)]
First commit... Ignore *.java files, they are there just so it builds.

Change-Id: Ibf159c32cee7a770f1c36f387fe646d9ecabe168

14 years agoMerge "Improve library link/unlink again."
Xavier Ducrohet [Fri, 16 Jul 2010 01:44:03 +0000 (18:44 -0700)]
Merge "Improve library link/unlink again."

14 years agoMerge "Add new exceptions to ddmlib."
Xavier Ducrohet [Fri, 16 Jul 2010 00:10:32 +0000 (17:10 -0700)]
Merge "Add new exceptions to ddmlib."

14 years agoAdd new exceptions to ddmlib.
Xavier Ducrohet [Thu, 15 Jul 2010 03:17:50 +0000 (20:17 -0700)]
Add new exceptions to ddmlib.

- AdbCommandRejectedException is thrown when adb doesn't respond
to the command with OKAY. This used to throw a normal IOException
but it can be useful to throw a different type. The message
of the exception is the error string returned by adb.

- ShellCommandUnresponsiveException is the new "timeout" exception
for output received by shell command running on devices. This
makes the distinction between timeout when talking to adb and
issue with shell command not outputting anything. Also made the
javadoc for the IDevice.executeShellCommand clearer to what the
"timeout" (renamed to maxTimeToOutputResponse) does.

Also added a better timeout to the IDevice methods to install/uninstall
apps as the default 5sec timeout was likely to be too low.
Current default value is 2min.

Change-Id: I4ecb9498926295a4e801e71b33df5d611e8120b8

14 years agoImprove library link/unlink again.
Xavier Ducrohet [Thu, 15 Jul 2010 00:28:24 +0000 (17:28 -0700)]
Improve library link/unlink again.

Improved library list added to the bundle by comparing
the old and new library list when something changed.
This is the only way to ensure that all indirect libraries
are added removed.

Since it means we now have a list of added and a list
of removed libraries, the link and unlink methods are
merged into a single updateLink method that does it all.

This also means that there's only one type of action
bundle, so the class/fields name have been updated to
reflect the new way it's done.

Change-Id: I808a8f1536171ebebca3a9bb5370e9dc0b6433d5

14 years agoMerge "Force recompilation after library changes and fix some clean-up/refresh issue...
Xavier Ducrohet [Thu, 15 Jul 2010 17:14:42 +0000 (10:14 -0700)]
Merge "Force recompilation after library changes and fix some clean-up/refresh issue in the builders"

14 years agoAdd support for specifying adb timeout in ddms testrunner.
Brett Chabot [Thu, 15 Jul 2010 00:06:05 +0000 (17:06 -0700)]
Add support for specifying adb timeout in ddms testrunner.

Also handle TimeoutException in ADT test runner.

Change-Id: I585c2818f1c77ec80222bad282ae10b3ee8f5e1c

14 years agoFix some javadocs regarding the timeout API change.
Xavier Ducrohet [Wed, 14 Jul 2010 02:42:26 +0000 (19:42 -0700)]
Fix some javadocs regarding the timeout API change.

Change-Id: I7e96c253aa07b124bceab99b6f5ce11e17f7b950

14 years agoMerge "Fix how the default.prop modifications from the UI are reloaded."
Xavier Ducrohet [Wed, 14 Jul 2010 02:22:20 +0000 (19:22 -0700)]
Merge "Fix how the default.prop modifications from the UI are reloaded."

14 years agoForce recompilation after library changes and fix some clean-up/refresh issue in...
Xavier Ducrohet [Wed, 14 Jul 2010 01:40:29 +0000 (18:40 -0700)]
Force recompilation after library changes and fix some clean-up/refresh issue in the builders

One of the fix is that the gen folder is no longer deleted on clean (or full build)
which should reduce errors where eclipse complain the gen folder is missing
even though it's present.

Also move ProjectState into SDK as it's really only managed
by the SDK and it allows us to move its constructor to package private.

Change-Id: I321ac23f756652e7082297d2ef560a654e97cf67

14 years agoMerge "Fix a possible deadlock in Eclipse/ADT."
Xavier Ducrohet [Wed, 14 Jul 2010 01:46:09 +0000 (18:46 -0700)]
Merge "Fix a possible deadlock in Eclipse/ADT."

14 years agoFix how the default.prop modifications from the UI are reloaded.
Xavier Ducrohet [Mon, 12 Jul 2010 23:04:21 +0000 (16:04 -0700)]
Fix how the default.prop modifications from the UI are reloaded.

The UI to edit the target and library changed the ProjectState
directly, causing havoc on the filelistener which *must* be the
entry point to reload modification into ProjectState.

This patch makes the UI work on a copy of the properties which
are then saved separately from the ProjectState (whose save()
method disappeared).

A next patch will enforce the ProjectProperties of the ProjectState
to be read only so that this does not happen again (forcing
to clone it before modifying/saving it).

This patch also fixes the reloading/relinking of the libraries upon
modification of the default.prop but more work is needed here.

Change-Id: Ie6a23111242005eb91b7533b506c029ba602f0f3

14 years agoFix a possible deadlock in Eclipse/ADT.
Xavier Ducrohet [Fri, 2 Jul 2010 01:05:58 +0000 (18:05 -0700)]
Fix a possible deadlock in Eclipse/ADT.

The issue is that sometimes phones will stop responding to shell
commands launched through adb.

One of these commands is executed in DeviceMonitor#queryNewDeviceForInfo
However this is done from a loop that acquires a lock that is used in
other places, including building. This basically renders eclipse
useless as Eclipse will refuse to do anything until the build is
finished.

The fix is twofold:
First, move the call to queryNewDeviceForInfo outside of the
synchronized block.

This fixes the deadlock issue but this will not fix the problem
that the device monitor will still be stuck with a shell command
that never returns.

The second part of the fix is to add a timeout to shell command
execution. Additionnaly, this patch contains a lot of clean up
of the adb API in ddmlib, especially around exceptions thrown
during timeout.

Change-Id: Ice8ef787c825e0e7b535ff0bb939bf6f25e3d7e4

14 years agoMerge "Remove the modal dialog that showed when ADT start with no SDK setup."
Xavier Ducrohet [Mon, 12 Jul 2010 19:28:14 +0000 (12:28 -0700)]
Merge "Remove the modal dialog that showed when ADT start with no SDK setup."

14 years agoAdd hours to ddms log timestamp.
Brett Chabot [Mon, 12 Jul 2010 18:29:44 +0000 (11:29 -0700)]
Add hours to ddms log timestamp.

Change-Id: I293b049e73e4776d969706b28ae7533ed581dfcd

14 years agoRemove the modal dialog that showed when ADT start with no SDK setup.
Xavier Ducrohet [Fri, 9 Jul 2010 23:30:34 +0000 (16:30 -0700)]
Remove the modal dialog that showed when ADT start with no SDK setup.

Change-Id: Ibb2085fbbb59216f73da376b8283d2ccc1652c08

14 years agoFix a memory leak in the Graphical Layout Editor.
Xavier Ducrohet [Fri, 9 Jul 2010 19:48:04 +0000 (12:48 -0700)]
Fix a memory leak in the Graphical Layout Editor.

The rendering requires a looper, but never actually uses it.
Some views (like scrollView) make use of messages during rendering
putting messages into the looper message queue which was never
read or emptied.

In the case of the scrollview, the message actually contains
a reference to the scrollview, which would then leak (with all
its children views)

The fix is to delete the looper that was created. This must be
done by reflection as there's no public access to it, and this
must be done from ADT so that all versions of layoutlib get
the fix.

Change-Id: I998ad0ec17e77e36a42d77f8ab888917a9ff6441

14 years agoMerge "ADT: dock/night combos in layout editor."
Xavier Ducrohet [Fri, 9 Jul 2010 21:17:10 +0000 (14:17 -0700)]
Merge "ADT: dock/night combos in layout editor."

14 years agoMerge "Prevent output to console when closing several projects+libs at once."
Xavier Ducrohet [Fri, 9 Jul 2010 17:03:54 +0000 (10:03 -0700)]
Merge "Prevent output to console when closing several projects+libs at once."

14 years agoPrevent output to console when closing several projects+libs at once.
Xavier Ducrohet [Fri, 9 Jul 2010 01:00:22 +0000 (18:00 -0700)]
Prevent output to console when closing several projects+libs at once.

This is due to link updates on closed projects.

Change-Id: I64eda43cbe574efc6e76f2a83490b5cb2585dfc4

14 years agoAdd new default devices to the layout editor.
Xavier Ducrohet [Fri, 9 Jul 2010 00:37:45 +0000 (17:37 -0700)]
Add new default devices to the layout editor.

Those devices represent one of each res/density combo for officially
supported screens.

See http://developer.android.com/guide/practices/screens_support.html#range

Change-Id: I6b8348ae1ab96b6b1f27fa2afd655ff6f3866dd8

14 years agoADT: dock/night combos in layout editor.
Xavier Ducrohet [Wed, 7 Jul 2010 17:44:36 +0000 (10:44 -0700)]
ADT: dock/night combos in layout editor.

Added proper support for qualifiers that have fake values
like "__" for language/region or "none" for dock mode. Those
are used by ADT internally but do not represent valid values, so
some UI (like the config creator) must handle them.

They didn't do it before which led to some weird UI behavior such
as a language or region qualifier with "__" value.

Added some missing icons.

Clean-up some qualifiers by moving similar code into a base class
for enum based qualifiers

Removed dependency on the current IAndroidTarget to get the
folder segment corresponding to a qualifier as it's not needed
anymore now that targets use recent versions of aapt (and will
move to using the most recent one soon).

Change-Id: I29c7bb5a7783db1696f53d0e38f46f64671e5e0d

14 years agoMark linked folders from Library projects to be derived.
Xavier Ducrohet [Thu, 8 Jul 2010 18:33:49 +0000 (11:33 -0700)]
Mark linked folders from Library projects to be derived.

Team plug-ins should already ignore linked resources, but it seems
that some don't so marking them as derived is a safer bet.

Change-Id: Id1c82ae8a5aafabd39829034aa805cd3339f0c1a

14 years agoMerge "ADT: Fix NPE in resource editor on Eclipse 3.6"
Raphael Moll [Fri, 2 Jul 2010 22:55:40 +0000 (15:55 -0700)]
Merge "ADT: Fix NPE in resource editor on Eclipse 3.6"

14 years agoMerge "Disable unsupported feature for now."
Xavier Ducrohet [Fri, 2 Jul 2010 22:06:25 +0000 (15:06 -0700)]
Merge "Disable unsupported feature for now."

14 years agoADT: Fix NPE in resource editor on Eclipse 3.6
Raphael Moll [Fri, 2 Jul 2010 21:41:39 +0000 (14:41 -0700)]
ADT: Fix NPE in resource editor on Eclipse 3.6

SDK Bug: 2814467

The fix is a workaround around Eclipse issue
https://bugs.eclipse.org/bugs/show_bug.cgi?id=318108

Change-Id: I5684db244d5663ffa47407bd356a5bd233578612

14 years agoMerge "ADT GLE2: synchronized selection between canvas, outline and properties."
Raphael Moll [Fri, 2 Jul 2010 21:54:41 +0000 (14:54 -0700)]
Merge "ADT GLE2: synchronized selection between canvas, outline and properties."

14 years agoDisable unsupported feature for now.
Xavier Ducrohet [Fri, 2 Jul 2010 18:51:54 +0000 (11:51 -0700)]
Disable unsupported feature for now.

Change-Id: I2f2af2a0ba6087b99a7d0b9ed3acea62a48991f4

14 years agoUpdate change log with libraries in libraries.
Xavier Ducrohet [Fri, 2 Jul 2010 17:39:07 +0000 (10:39 -0700)]
Update change log with libraries in libraries.

Change-Id: Ie6c37e7273ef5ed6c006170f32af396f0b4ef98d

14 years agoMerge "Update Android project properties to support libraries depending on libraries."
Xavier Ducrohet [Fri, 2 Jul 2010 16:55:44 +0000 (09:55 -0700)]
Merge "Update Android project properties to support libraries depending on libraries."

14 years agoMerge "Fix icons for some DDMS view by cleaning up an redundant/obsolete .gitignore...
Xavier Ducrohet [Fri, 2 Jul 2010 16:55:36 +0000 (09:55 -0700)]
Merge "Fix icons for some DDMS view by cleaning up an redundant/obsolete .gitignore file."

14 years agoMerge "ADT support for libraries depending on libraries."
Xavier Ducrohet [Fri, 2 Jul 2010 16:55:33 +0000 (09:55 -0700)]
Merge "ADT support for libraries depending on libraries."

14 years agoUpdate Android project properties to support libraries depending on libraries.
Xavier Ducrohet [Fri, 2 Jul 2010 01:01:43 +0000 (18:01 -0700)]
Update Android project properties to support libraries depending on libraries.

This is simply enabling the ability to add libraries to a library project
in the UI.

Also updated the change log.

Change-Id: Ibaf67ce8c2af10ff890038a72de9f176bfae8592

14 years agoADT support for libraries depending on libraries.
Xavier Ducrohet [Wed, 30 Jun 2010 01:03:32 +0000 (18:03 -0700)]
ADT support for libraries depending on libraries.

Major change in the workflow linking projects and library together.
This is now done through a single job with a queue of action to do.
This ensure that each new opened project is processed one at a time
and not in parallel which would generate problems.

Change-Id: I2a05ada293a21faba65bb639092f77ff7e5ffb2d