OSDN Git Service

android-x86/sdk.git
13 years agoMerge "Make inline ResourceItem able to generate ResourceValue"
Xavier Ducrohet [Thu, 10 Mar 2011 20:06:37 +0000 (12:06 -0800)]
Merge "Make inline ResourceItem able to generate ResourceValue"

13 years agoMake inline ResourceItem able to generate ResourceValue
Xavier Ducrohet [Thu, 10 Mar 2011 18:55:52 +0000 (10:55 -0800)]
Make inline ResourceItem able to generate ResourceValue

This change fix the issue that since the simplification of
the resource repository, the resource item for inline ID values
would not be called to generate a ResourceValue since their
list of source file was empty.

This moves the creation of the ResourceValue to the ResourceItem
so that InlineResourceItem can override it.

This required moving findMatchingConfigurable into FolderConfiguration
which is a much better place for it anyway.

Change-Id: I36d6b148528c593ea432c9fd0ac8d542cbe2a26e

13 years agoMerge "ADT: fix unittests."
Xavier Ducrohet [Thu, 10 Mar 2011 00:30:00 +0000 (16:30 -0800)]
Merge "ADT: fix unittests."

13 years agoADT: fix unittests.
Xavier Ducrohet [Wed, 9 Mar 2011 23:51:38 +0000 (15:51 -0800)]
ADT: fix unittests.

Change-Id: I258d393b5297d916b58ed3574b77f521968a13c0

13 years agoMerge "Fix potential NPE in AvdCreationDialog"
Raphael Moll [Wed, 9 Mar 2011 21:11:24 +0000 (13:11 -0800)]
Merge "Fix potential NPE in AvdCreationDialog"

13 years agoMerge "Deactive BinaryXml ContentType."
Raphael Moll [Wed, 9 Mar 2011 21:09:48 +0000 (13:09 -0800)]
Merge "Deactive BinaryXml ContentType."

13 years agoMerge "Resource management refactoring and clean-up."
Xavier Ducrohet [Wed, 9 Mar 2011 21:08:53 +0000 (13:08 -0800)]
Merge "Resource management refactoring and clean-up."

13 years agoMerge "- Fix a NPE when arguments are not properly understood by MonkeyRunner - Add...
Bill Napier [Wed, 9 Mar 2011 17:11:56 +0000 (09:11 -0800)]
Merge "- Fix a NPE when arguments are not properly understood by MonkeyRunner - Add the ability to pass Boolean types for Intent extras (extras={'a':True, 'b':False}) - Fix an improper flag being passed to am start - Pass the key and value to am start instead of just the value."

13 years ago- Fix a NPE when arguments are not properly understood by MonkeyRunner
Vijay Yellapragada [Wed, 9 Mar 2011 16:01:18 +0000 (10:01 -0600)]
- Fix a NPE when arguments are not properly understood by MonkeyRunner
- Add the ability to pass Boolean types for Intent extras (extras={'a':True, 'b':False})
- Fix an improper flag being passed to am start
- Pass the key and value to am start instead of just the value.

Change-Id: Ifd0c69ccb4c2755a49efca2d3f8b3befa212a69f

13 years agoDeactive BinaryXml ContentType.
Raphael Moll [Wed, 9 Mar 2011 07:31:27 +0000 (23:31 -0800)]
Deactive BinaryXml ContentType.

This breask the BinaryXml Editor feature.
However it fixes the issue 15003, which is more important:
  http://code.google.com/p/android/issues/detail?id=15003

Change-Id: Iac0fb6ef38b7d6e60da1c8526ce9f58db2e7994b

13 years agoFix potential NPE in AvdCreationDialog
Raphael Moll [Wed, 9 Mar 2011 02:05:49 +0000 (18:05 -0800)]
Fix potential NPE in AvdCreationDialog

Change-Id: Ic71e0242b34979f621e291c808b6a0ee35b711ff

13 years agoResource management refactoring and clean-up.
Xavier Ducrohet [Tue, 1 Mar 2011 00:49:37 +0000 (16:49 -0800)]
Resource management refactoring and clean-up.

- (I)ResourceRepository is now a common class instead of an
  interface. This contains most of the code to control
  a repository (which was extracted from ProjectResources)
  ProjectResources extends it adding minor features such as
      library support, and inline ID definition.
  FrameworkResources extends it adding support for public
      resources (which used to be duplicated and dispersed
      in weird places).
  Changed the way resources are reloaded on resource change event.
  Instead of marking the resources as modified (using
  Resource.touch()), the resources are now parsed as the files are
  processed during the resource delta visitor. This makes more sense
  as there are now other listeners to the resource changes (hyperlinks)
  that access the resource list in their listeners, which wouldn't work
  previously.
  This also makes the code cleaner as the previous method had to query
  the repo for items and return a list of new ones, which was kinda
  crappy. The new code is much simpler, as is the post update process.

- ResourceItem is now the base class for resource items. It includes
  all the small methods that were added by all the child classes or
  interfaces.
  Project/ConfigurableResourceItem are merged into the based class.
  IIdResourceItem and IdResourceItem are gone and replaced by a
  simpler InlineResourceItem.
  FrameworkResourceItem is a simple override for framework resources.

- Also improved the API of a bit for the resource repository, making
  more use of unmodifiable lists and emptyList/Map()

Change-Id: Ie3ac1995213fed66153c7e7ecbdd170ec257be62

13 years agoMerge "Make the feature require Eclipse 3.5"
Xavier Ducrohet [Wed, 9 Mar 2011 01:12:44 +0000 (17:12 -0800)]
Merge "Make the feature require Eclipse 3.5"

13 years agoMake the feature require Eclipse 3.5
Xavier Ducrohet [Wed, 9 Mar 2011 00:31:02 +0000 (16:31 -0800)]
Make the feature require Eclipse 3.5

Change-Id: Idcc1ae2566e41656327190053e8e0ea22264d31d

13 years agoMerge "ADT: differentiate icons in from editors."
Raphael Moll [Wed, 9 Mar 2011 00:14:03 +0000 (16:14 -0800)]
Merge "ADT: differentiate icons in from editors."

13 years agoADT: differentiate icons in from editors.
Raphael Moll [Sat, 5 Mar 2011 18:23:12 +0000 (10:23 -0800)]
ADT: differentiate icons in from editors.

In ElementDescriptor, provide 2 icon methods:
- getIcon() returns a generic icon whatever the descriptor.
  This is used by the XML content assist.
- getFormIcon() return an icon specific to the descriptor.
  This is used by the form editor in the block/detail tree.

The icons are the same auto-generated stuff than before.
A changeset with specific 'pretty' icons would be more than welcome.

Change-Id: Ib0ff8298101462a7dd7e8e92f671eb0171e46c48

13 years agoMerge "Add more logging to ADT for file open and binary XML."
Xavier Ducrohet [Tue, 8 Mar 2011 00:35:56 +0000 (16:35 -0800)]
Merge "Add more logging to ADT for file open and binary XML."

13 years agoMerge "Add logging to precompiler builder."
Xavier Ducrohet [Tue, 8 Mar 2011 00:29:16 +0000 (16:29 -0800)]
Merge "Add logging to precompiler builder."

13 years agoAdd logging to precompiler builder.
Xavier Ducrohet [Tue, 8 Mar 2011 00:16:05 +0000 (16:16 -0800)]
Add logging to precompiler builder.

There are some reports of NPE in the builders on mDerivedProgressMonitor
which means startupOnInitialize would fail to finish.

This adds a log in the method should an exception be thrown.

Change-Id: I90170b0dcc3c97a772b5d72111db9dbbbf2ee277

13 years agoAdd more logging to ADT for file open and binary XML.
Raphael Moll [Tue, 8 Mar 2011 00:22:08 +0000 (16:22 -0800)]
Add more logging to ADT for file open and binary XML.

Also in the plugin.xml, associate our editors to the "pure"
XML contentType. This should prevent Eclipse from trying
to use our editors for an invalid unsupported type.

It doesn't fix the fact the contentType isn't properly discovered.

Change-Id: Ife053c74a936d105537c49b54f3abc987001bca7

13 years agoMerge "ADT Manifest: fix XML attribute completion."
Raphael Moll [Mon, 7 Mar 2011 21:39:32 +0000 (13:39 -0800)]
Merge "ADT Manifest: fix XML attribute completion."

13 years agoMerge "DISABLED 2 lines that break the SDK build (bios.bin in sdk/tools.atree)"
Raphael Moll [Mon, 7 Mar 2011 16:59:20 +0000 (08:59 -0800)]
Merge "DISABLED 2 lines that break the SDK build (bios.bin in sdk/tools.atree)"

13 years agoDISABLED 2 lines that break the SDK build (bios.bin in sdk/tools.atree)
Raphael Moll [Mon, 7 Mar 2011 16:47:42 +0000 (08:47 -0800)]
DISABLED 2 lines that break the SDK build (bios.bin in sdk/tools.atree)

Change-Id: I7d589782bf898d1ce09d0e29108566f7560019f1

13 years agoADT Manifest: fix XML attribute completion.
Raphael Moll [Sat, 5 Mar 2011 18:21:49 +0000 (10:21 -0800)]
ADT Manifest: fix XML attribute completion.

XML completion wasn't done properly for attributes for element
that had a dash (-) in them.

Change-Id: I433f3711e1991246d099246847c7204e04ae3e40

13 years agoMerge "Don't erase SDCard when editing existing AVD."
Raphael Moll [Fri, 4 Mar 2011 21:48:29 +0000 (13:48 -0800)]
Merge "Don't erase SDCard when editing existing AVD."

13 years agoDon't erase SDCard when editing existing AVD.
Raphael Moll [Mon, 28 Feb 2011 22:11:44 +0000 (14:11 -0800)]
Don't erase SDCard when editing existing AVD.

SDK Bug 14162

Change-Id: I22493443e706bda830916ed0fc09741a1d6d1f15

13 years agoMerge "Add logging to help track down issue #15003 in the wild"
Tor Norbye [Fri, 4 Mar 2011 21:30:43 +0000 (13:30 -0800)]
Merge "Add logging to help track down issue #15003 in the wild"

13 years agoAdd logging to help track down issue #15003 in the wild
Tor Norbye [Fri, 4 Mar 2011 21:20:04 +0000 (13:20 -0800)]
Add logging to help track down issue #15003 in the wild

Change-Id: I3b7fb370e7e4b018d02b3986d81b14e89086c191

13 years agoMerge "Fix NPE in SdkManager: parsed props can be null."
Raphael Moll [Fri, 4 Mar 2011 20:55:56 +0000 (12:55 -0800)]
Merge "Fix NPE in SdkManager: parsed props can be null."

13 years agoMerge "Add qemu emulator bios files"
David Turner [Fri, 4 Mar 2011 19:38:40 +0000 (11:38 -0800)]
Merge "Add qemu emulator bios files"

13 years agoFix NPE in SdkManager: parsed props can be null.
Raphael Moll [Fri, 4 Mar 2011 19:34:14 +0000 (11:34 -0800)]
Fix NPE in SdkManager: parsed props can be null.

Change-Id: Ia1b873fc48e87173148572b123d3c0346542f4d9

13 years agoMerge "Fix Windows SDK build."
David 'Digit' Turner [Fri, 4 Mar 2011 19:21:41 +0000 (11:21 -0800)]
Merge "Fix Windows SDK build."

13 years agoFix Windows SDK build.
David 'Digit' Turner [Fri, 4 Mar 2011 19:20:08 +0000 (20:20 +0100)]
Fix Windows SDK build.

Change-Id: If9f7d3fc61b5969d84a2cda68dc1ad948c21ae88

13 years agoMerge "x86 and arm emulators have distinct paths"
David Turner [Fri, 4 Mar 2011 16:30:43 +0000 (08:30 -0800)]
Merge "x86 and arm emulators have distinct paths"

13 years agoMerge "Make XML code completion case insensitive"
Tor Norbye [Fri, 4 Mar 2011 00:30:16 +0000 (16:30 -0800)]
Merge "Make XML code completion case insensitive"

13 years agoMerge "Add palette variations of widgets"
Tor Norbye [Fri, 4 Mar 2011 00:30:10 +0000 (16:30 -0800)]
Merge "Add palette variations of widgets"

13 years agoMake XML code completion case insensitive
Tor Norbye [Fri, 4 Mar 2011 00:10:06 +0000 (16:10 -0800)]
Make XML code completion case insensitive

If you've typed "android:textsi" on a TextView, you currently get no
matches. This changeset makes the code completion case insensitive
(the way it is in Java) such that it for example will match
"android:textSize".

Change-Id: I0f698c2a4ee983d6c0fbcce272b851b2710c9a61

13 years agoMerge "Remove trailing comma that was causing compile problems."
Bill Napier [Fri, 4 Mar 2011 00:01:16 +0000 (16:01 -0800)]
Merge "Remove trailing comma that was causing compile problems."

13 years agoRemove trailing comma that was causing compile problems.
Bill Napier [Fri, 4 Mar 2011 00:00:22 +0000 (16:00 -0800)]
Remove trailing comma that was causing compile problems.

Change-Id: Ia80bd2c25b5898a6ad99b9404b89c1b41c8290ba

13 years agoMerge "Allow loading MonkeyImages from a local filesystem."
Bill Napier [Thu, 3 Mar 2011 23:00:04 +0000 (15:00 -0800)]
Merge "Allow loading MonkeyImages from a local filesystem."

13 years agoAdd palette variations of widgets
Tor Norbye [Mon, 31 Jan 2011 04:52:05 +0000 (20:52 -0800)]
Add palette variations of widgets

This changeset adds new items to the palette which are just variations
of an existing widget but with different initial attributes. In
particular:

* Instead of just LinearLayout there are two versions of it:
   LinearLayout (Vertical) and LinearLayout (Horizontal)

* The ProgressBar has 3 variations: Large, Small, and Horizontal.  The
  horizontal ProgressBar looks like the SeekBar, without at thumb, so
  the SeekBar is moved next to the progress bar.

* There is a new palette category, "Text Fields", which contains a
  number of different initializations of the EditText's "inputType"
  attribute - for textual and numeric passwords, for names and e-mail
  and postal addresses, for phone numbers, for negative and decimal
  numbers, etc.

* Since LinearLayout is so common, the outline handles it specially to
  ensure that we show a horizontal or a vertical icon depending on the
  orientation attribute of the specific element rather than the
  generic descriptor icon.

There are various changes to the palette icon preview and drag preview
etc to handle these changes. In particular, the category
initialization code had to be rewritten to be able to handle
variations (since for example the text field appears in multiple
categories, so the old assumption that each view had an assigned
category was no longer true.)

This changeset also extracts a constant for the "android:" literal
used in many places in the code, and renames the existing "android"
namespace constant.

Change-Id: Ibbc3dbd34c551594421c3de034cdccea6a66eba0

13 years agoMerge "More refactoring work: Convert hierarchy, and change type"
Tor Norbye [Thu, 3 Mar 2011 02:51:05 +0000 (18:51 -0800)]
Merge "More refactoring work: Convert hierarchy, and change type"

13 years agoMerge "Add drop-down menu button to the palette control"
Tor Norbye [Wed, 2 Mar 2011 19:23:00 +0000 (11:23 -0800)]
Merge "Add drop-down menu button to the palette control"

13 years agoAdd drop-down menu button to the palette control
Tor Norbye [Tue, 1 Mar 2011 21:13:27 +0000 (13:13 -0800)]
Add drop-down menu button to the palette control

Add a menu button to the palette label line, as is done in most
Eclipse windows, which brings up the context menu for the
palette. This makes the palette modes etc a bit more discoverable.

(I played with adding a few dedicated toggle buttons there as well,
but it looked a bit odd because the palette toolbar is a few pixels
higher than the layout actions bar in the canvas, so visually things
looked misaligned; we'll need to address that before adding proper
action buttons in the palette title panel.)

Change-Id: I18906ee7c2ebede96f167925ee27a7064715fa8b

13 years agoMerge "Fix Palette preview image scaling on Windows"
Tor Norbye [Tue, 1 Mar 2011 20:47:24 +0000 (12:47 -0800)]
Merge "Fix Palette preview image scaling on Windows"

13 years agoMerge "AVD and ADT eclipse plugin to support processor-specific platform images and...
Xavier Ducrohet [Tue, 1 Mar 2011 19:37:17 +0000 (11:37 -0800)]
Merge "AVD and ADT eclipse plugin to support processor-specific platform images and emulators."

13 years agoAVD and ADT eclipse plugin to support processor-specific platform images and emulators.
Johnnie Birch [Fri, 4 Feb 2011 02:56:59 +0000 (18:56 -0800)]
AVD and ADT eclipse plugin to support processor-specific platform images and emulators.

This is a first (and largest) patch in a series of patches over the next month to extend the
AVD and ADT eclipse plugin to support processor-specific platform images and emulators.  This
patch is intended to co-exist with patches to create x86 emulator environments and overall
SDK support.

There is an overall expectation that the sdk building process will be updated to meet the
following expectations...  It is not in the scope of these UI patches to change the overall
sdk building structure.

expectation #1:
tools/emulator[.exe]     -- ARM
tools/emulator-x86[.exe] -- x86
tools/emulator-foo[.exe] -- an arbitrary additional architecture (extensible)

expectation #2:
platforms/android-XXX/images/arm - location of kernel/images for ARM
platforms/android-XXX/images/x86 - location of kernel/images for x86
platforms/android-XXX/images/foo - location of kernel/images for arbitrary architecture

expectation #3
In the event that add-ons are in the SDK,
add-ons/addon_XXX/images/arm     - location of kernel/images for ARM
add-ons/addon_XXX/images/x86     - location of kernel/images for x86
add-ons/addon_XXX/images/foo     - location of kernel/images for arbitrary architecture

NOTE:  For "earlier"/legacy api levels, it is assumed that it is ARM only and the images will
be in platforms/android-XXX/images and add-ons/addon_XXX/images

When an API level is chosen in AVD, it scans the appropriate API directories and determines
if the image directory is "legacy" or if it has subdirectories.  In the latter case, it
populates the list of potential processors using these directory names (and some
prettyprinting for well known architectures)

tested using "android" command line to start AVD on linux and windows
tested using Eclipse plugin AVD integration on linux and windows
REMINDER: You need to change the directory layout of images and add the right
          emulator-XXX[.exe] to test it

If one uses the "android" command line to create an AVD from the command line, the
processor type is assumed to be arm today.  A future patch will be needed to add
command line processor type selectivity

Change-Id: Ifd7c39bf93c6e926f62407bfed024d2789efb41a

13 years agoFix Palette preview image scaling on Windows
Tor Norbye [Tue, 1 Mar 2011 02:50:51 +0000 (18:50 -0800)]
Fix Palette preview image scaling on Windows

When using palette previews with a scaling factor (e.g. the small or
tiny palette modes), the preview images look bad on Windows.  This
appears to be because SWT on Windows has a different set of defaults
for antialiasing and interpolation.

This checkin turns on antialiased high interpolation for image
painting in the palette (when the palette is scaled) to address the
first issue listed in 15071: Layout editor rendering issues in ADT 10

Change-Id: Ie3c619d9105d9d30b1bbe5fb91c195c0f65fee97

13 years agoMore refactoring work: Convert hierarchy, and change type
Tor Norbye [Fri, 18 Feb 2011 00:53:34 +0000 (16:53 -0800)]
More refactoring work: Convert hierarchy, and change type

A lot of work on the "Change Layout" refactoring to improve conversion
to a Relative Layout.  First, add a "Flatten Hierarchy" option which
can take an entire hierarchy of layout widgets and flatten it down to
a single top level RelativeLayout where the constraints attempt to
reflect the original layout. (This isn't always possible, since some
layout managers offer features not possible to express in
RelativeLayout, such as a LinearLayout with multiple different
weights) but it often works or is at least a good start.  (This work
is ongoing, but since my changeset is getting large I want to check in
this snapshot since the functionality is better than what is in the
trunk.)

This changeset also adds a new refactoring: Change Widget Type. This
can be applied to a selection of elements, and it will convert the
widget type to the new target widget type. It will also remove any
attributes that are not valid for the new layout.

It also improves the wizards which display the possible target types.
For Change Widget Type, it will first offer "related" widgets, so for
an AnalogClock it will first offer Digital Clock, for a checkbox it
will offer a checked text view and a radio button, etc.

In addition, it will list Views and Layouts that it finds in any
library jars (except for the builtin Android ones), and any custom
view classes in the project.

There is also now some preliminary support for refactoring unit
tests. These tests must be run as Eclipse plugin tests, since they
utilize the XML model (and the XML model cannot be mocked). The test
infrastructure reads source XML files, applies the refactoring change
list to them, and diffs the output with the known expected output
(also stored as result XML files in the test project).

Finally, there are a number of fixes and improvements to the shared
refactoring code.

Change-Id: I0974653e530dfb4feb625e0eef8257c29d50614b

13 years agoAllow loading MonkeyImages from a local filesystem.
Bill Napier [Wed, 16 Feb 2011 21:55:36 +0000 (13:55 -0800)]
Allow loading MonkeyImages from a local filesystem.

Change-Id: I995ac65f1e376b01312d66f82441043971acd16c

13 years agoMerge "Move FolderTypeRelationship to common.jar"
Xavier Ducrohet [Mon, 28 Feb 2011 18:54:12 +0000 (10:54 -0800)]
Merge "Move FolderTypeRelationship to common.jar"

13 years agoMerge "Change the FolderTypeRelationship and ResourceFile API to return list."
Xavier Ducrohet [Mon, 28 Feb 2011 18:53:16 +0000 (10:53 -0800)]
Merge "Change the FolderTypeRelationship and ResourceFile API to return list."

13 years agoMerge "Move ResourceFolderType into common."
Xavier Ducrohet [Mon, 28 Feb 2011 18:53:09 +0000 (10:53 -0800)]
Merge "Move ResourceFolderType into common."

13 years agoMerge "Rename AndroidConstants -> AdtConstants."
Xavier Ducrohet [Mon, 28 Feb 2011 18:53:04 +0000 (10:53 -0800)]
Merge "Rename AndroidConstants -> AdtConstants."

13 years agoMerge "Move the sdk io classes to common.jar"
Xavier Ducrohet [Fri, 25 Feb 2011 22:57:16 +0000 (14:57 -0800)]
Merge "Move the sdk io classes to common.jar"

13 years agoMove FolderTypeRelationship to common.jar
Xavier Ducrohet [Fri, 25 Feb 2011 18:34:06 +0000 (10:34 -0800)]
Move FolderTypeRelationship to common.jar

Change-Id: I3a151d2fadd1c1e34177cb729fe5545fa754849a

13 years agoMerge "Emugen : A tool to generate wire protocol code"
David Turner [Fri, 25 Feb 2011 16:23:05 +0000 (08:23 -0800)]
Merge "Emugen : A tool to generate wire protocol code"

13 years agoEmugen : A tool to generate wire protocol code
Jacky Romano [Thu, 10 Feb 2011 09:04:25 +0000 (11:04 +0200)]
Emugen : A tool to generate wire protocol code

Emugen is a tool that can be used to generate code that
deals with marshaling/unmarshaling request to/from a wire-protocol.
Its input is an API defintion files and its output is C++ source
code for the client (caller) and the server (callee) sides.

See README file for more details.

Change-Id: I45beea6657fae0887d2b4d92933213ecc20d2525

13 years agoChange the FolderTypeRelationship and ResourceFile API to return list.
Xavier Ducrohet [Fri, 25 Feb 2011 05:00:43 +0000 (21:00 -0800)]
Change the FolderTypeRelationship and ResourceFile API to return list.

This is better as we can return unmodifiable list instead of
arrays that could be overriden.

Change-Id: Id473925ee6355b2bedeb2d2575bc4ca4f949acb3

13 years agoMove ResourceFolderType into common.
Xavier Ducrohet [Fri, 25 Feb 2011 04:27:07 +0000 (20:27 -0800)]
Move ResourceFolderType into common.

Moved some constants from sdklib (which is not a dependency
of common but instead depends on common) into common.

Change-Id: I6fdfbad4e77813a9f2a2ca9ea0d740692d8bce5b

13 years agoRename AndroidConstants -> AdtConstants.
Xavier Ducrohet [Fri, 25 Feb 2011 04:13:52 +0000 (20:13 -0800)]
Rename AndroidConstants -> AdtConstants.

These are constants specific to ADT.

There'll be an AndroidConstants class in common.jar with
more generic android constant values.

Change-Id: I8368920f92c28cbfb87098087bf01f2d2cdee095

13 years agoMove the sdk io classes to common.jar
Xavier Ducrohet [Fri, 25 Feb 2011 03:41:49 +0000 (19:41 -0800)]
Move the sdk io classes to common.jar

Change-Id: I59a7b770071707ed058aa104bab8a16aa8950d56

13 years agoMerge "Move ninepatch tests from layoutlib to sdk where ninepatch lives."
Xavier Ducrohet [Fri, 25 Feb 2011 02:09:42 +0000 (18:09 -0800)]
Merge "Move ninepatch tests from layoutlib to sdk where ninepatch lives."

13 years agoMove ninepatch tests from layoutlib to sdk where ninepatch lives.
Xavier Ducrohet [Thu, 24 Feb 2011 21:43:41 +0000 (13:43 -0800)]
Move ninepatch tests from layoutlib to sdk where ninepatch lives.

Change-Id: I6d23c6495622214f94502a73ebf80def0fb55e1a

13 years agoMerge "Make the sdklib/sdkuilib tests built by the build system."
Xavier Ducrohet [Thu, 24 Feb 2011 20:48:51 +0000 (12:48 -0800)]
Merge "Make the sdklib/sdkuilib tests built by the build system."

13 years agoMerge "Add min-platform-tools-rev to the tools source.properties"
Raphael Moll [Thu, 24 Feb 2011 20:48:31 +0000 (12:48 -0800)]
Merge "Add min-platform-tools-rev to the tools source.properties"

13 years agoMake the sdklib/sdkuilib tests built by the build system.
Xavier Ducrohet [Thu, 24 Feb 2011 20:24:10 +0000 (12:24 -0800)]
Make the sdklib/sdkuilib tests built by the build system.

Change-Id: I9ec9175e0734a5b07fa5b3879cdf7b1ef0056d27

13 years agoMerge "Remove some non needed asserts."
Xavier Ducrohet [Thu, 24 Feb 2011 18:47:33 +0000 (10:47 -0800)]
Merge "Remove some non needed asserts."

13 years agoAdd qemu emulator bios files
Bruce Beare [Wed, 9 Feb 2011 16:27:48 +0000 (08:27 -0800)]
Add qemu emulator bios files

Change-Id: I6f526b920f1d671e016ff8a2cde6f11843283e99
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
13 years agox86 and arm emulators have distinct paths
Bruce Beare [Mon, 7 Feb 2011 20:33:05 +0000 (12:33 -0800)]
x86 and arm emulators have distinct paths

Change-Id: Ieb0aa637c44ff2b9d386b6927c0b8564d1b50621
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
13 years agoAdd min-platform-tools-rev to the tools source.properties
Raphael Moll [Thu, 24 Feb 2011 06:31:01 +0000 (22:31 -0800)]
Add min-platform-tools-rev to the tools source.properties

We need that info to generate the repository.xml since it's
a mandatory attribute in the XSD.

Change-Id: Ic341687f07f8d91182d680cd1d3b35e431c38670

13 years agoMerge "Tweak resource name validator, move code around"
Tor Norbye [Wed, 23 Feb 2011 23:01:31 +0000 (15:01 -0800)]
Merge "Tweak resource name validator, move code around"

13 years agoTweak resource name validator, move code around
Tor Norbye [Wed, 23 Feb 2011 20:45:56 +0000 (13:45 -0700)]
Tweak resource name validator, move code around

Incorporate some feedback from
https://review.source.android.com//#change,21341
Disallow uppercase chars in file-based resource names

Change-Id: I078b30be64e1aeb984f26d5c8b2976aa0083fcf4

13 years agoMerge "Fill FrameLayout children on drop depending on metadata"
Tor Norbye [Wed, 23 Feb 2011 19:56:35 +0000 (11:56 -0800)]
Merge "Fill FrameLayout children on drop depending on metadata"

13 years agoMerge "Disallow uppercase chars in file-based resource names"
Tor Norbye [Wed, 23 Feb 2011 19:55:43 +0000 (11:55 -0800)]
Merge "Disallow uppercase chars in file-based resource names"

13 years agoRemove some non needed asserts.
Xavier Ducrohet [Tue, 22 Feb 2011 23:04:19 +0000 (15:04 -0800)]
Remove some non needed asserts.

Change-Id: Ib12b25d7c7a6630075cfe4f5e757a10673305220

13 years agoFill FrameLayout children on drop depending on metadata
Tor Norbye [Mon, 21 Feb 2011 23:18:38 +0000 (16:18 -0700)]
Fill FrameLayout children on drop depending on metadata

Adds a drop handler to the FrameLaoyut rule which looks up the
metadata for the dropped child, and sets the width and/or height to
fill based on that metadata.  For example, a LinearLayout dropped into
a FrameLayout (or say a ViewFlipper which inherits from it), then the
layout will fill. A button on the other hand will not fill, and an
EditText will fill horizontally but not vertically, and so on.

Change-Id: I65a9379fa7128cc9c68d9bfd1849b0f1dc0f4a86

13 years agoDisallow uppercase chars in file-based resource names
Tor Norbye [Mon, 21 Feb 2011 22:58:33 +0000 (15:58 -0700)]
Disallow uppercase chars in file-based resource names

Modifies the resource name validator (used from the New XML File
wizard) to consider the resource type. While value-based resources
(like ids) can contain uppercase characters, they are not allowed in
file-based resource names, like layouts, animations, etc.

Also hooks up the resource name validator to the Resource Chooser's
"New Resource" dialog.

Change-Id: Ic5b948d73e9a8b17c6fdaa11cc38189202b04dc2

13 years agoMerge "SDK Manager: fix extra package update detection."
Raphael Moll [Sat, 19 Feb 2011 18:02:49 +0000 (10:02 -0800)]
Merge "SDK Manager: fix extra package update detection."

13 years agoSDK Manager: fix extra package update detection.
Raphael Moll [Sat, 19 Feb 2011 01:02:29 +0000 (17:02 -0800)]
SDK Manager: fix extra package update detection.

Change-Id: Ie512a8cc75075987d1eb88dafd079e52083e2a3c

13 years agoMerge "Properly parse mipmap names."
Xavier Ducrohet [Sat, 19 Feb 2011 00:55:15 +0000 (16:55 -0800)]
Merge "Properly parse mipmap names."

13 years agoProperly parse mipmap names.
Xavier Ducrohet [Sat, 19 Feb 2011 00:29:26 +0000 (16:29 -0800)]
Properly parse mipmap names.

The extension was not removed making the references not found.

Change-Id: Ie420ea26df5bb87b86bd5b156597962b8c49252f

13 years agoMerge "SDK manager fix for "force create AVD""
Raphael Moll [Fri, 18 Feb 2011 23:58:35 +0000 (15:58 -0800)]
Merge "SDK manager fix for "force create AVD""

13 years agoSDK manager fix for "force create AVD"
Raphael Moll [Fri, 18 Feb 2011 23:24:34 +0000 (15:24 -0800)]
SDK manager fix for "force create AVD"

In the SDK Manager, creating an AVD would fail if there
was some file or folder in the way (in the .android/avd folder)
yet no AVD was loaded properly from it. This detects it,
properly notifies the user and makes "force create AVD"
work in this case.

Change-Id: Ie0abc383fef568c1a7e98c14eb7d48fbc5d66616

13 years agoMerge "Adjust AVD create dialog to match sdcard size limits."
Raphael Moll [Fri, 18 Feb 2011 02:06:42 +0000 (18:06 -0800)]
Merge "Adjust AVD create dialog to match sdcard size limits."

13 years agoMerge "Add framework resources to the Resource Chooser"
Tor Norbye [Fri, 18 Feb 2011 01:11:45 +0000 (17:11 -0800)]
Merge "Add framework resources to the Resource Chooser"

13 years agoAdd framework resources to the Resource Chooser
Tor Norbye [Thu, 17 Feb 2011 01:27:12 +0000 (17:27 -0800)]
Add framework resources to the Resource Chooser

Reenable system resources in the Resource Chooser.

Adds code to AndroidTargetData which on demand loads data from public.xml
such that it can provide a list of public resource names.

Also uses this data to filter out non-public resources from code
completion.

Change-Id: I98611668473543aaec56ce3bc2e28e6606c867fd

13 years agoAdjust AVD create dialog to match sdcard size limits.
Raphael Moll [Fri, 18 Feb 2011 00:17:06 +0000 (16:17 -0800)]
Adjust AVD create dialog to match sdcard size limits.

Change mksdcard to a minimum of 9 MiB, which is what
we enforce in the UI (I believe the 8 MiB min was obsoleted
by the 9 MiB one.)
Also warn the user about the min/max sdcard size properly
directly in the creation dialog, instead of relying on
mksdcard to fail later.

Change-Id: I30bc425ed6b75d8a00965e9e2e25890bd9bd8b39

13 years agoMerge "Mksdcard: Sanity check size, better error messages."
Raphael Moll [Thu, 17 Feb 2011 22:12:14 +0000 (14:12 -0800)]
Merge "Mksdcard: Sanity check size, better error messages."

13 years agoMksdcard: Sanity check size, better error messages.
Raphael Moll [Thu, 17 Feb 2011 21:43:30 +0000 (13:43 -0800)]
Mksdcard: Sanity check size, better error messages.

Fixes:
- Issue 13277: mksdcard fails to create insanely large sdcard.
- Issue 14429: better error message when disk full.

Details:
- Actually report fopen/fwrite errors (instead of silently failing.)
  This alone fixes the 2 reported issues.
- Check size argument parsed correctly and isn't larger than
  the FAT format can handle.
- Actually indicate in the usage text the min/max size values.
- Added support for a 'G' postfix, to make gigabyte sdcards.

Change-Id: I4986c2c7c031f3b9bfd580b015b56d741aba778f

13 years agoMerge "Refactoring: Wrap in Container, Change Layout Type, Extract"
Tor Norbye [Thu, 17 Feb 2011 19:40:11 +0000 (11:40 -0800)]
Merge "Refactoring: Wrap in Container, Change Layout Type, Extract"

13 years agoRefactoring: Wrap in Container, Change Layout Type, Extract
Tor Norbye [Mon, 14 Feb 2011 22:41:07 +0000 (14:41 -0800)]
Refactoring: Wrap in Container, Change Layout Type, Extract

This changeset adds refactoring support for 3 visual refactoring
operations:

(1) Wrap in Container. This can be invoked on one or more sibling
    views (or the root view) to add a new layout container into the
    hierarchy which "wraps" the views. The refactoring can also update
    the layout attributes (such as RelativeLayout attachments) such
    that they refer to the new container instead. If invoked on the
    root element, the namespace declarations are migrated from the old
    root to the new root.

(2) Change Layout. This can be invoked on a layout view to change the
    type of layout. In addition to editing the XML type declaration,
    it also removes layout parameters that no longer apply, and
    depending on which layout you are converting from and converting
    to, it may attempt to perform some translation to preserve the
    layout characteristics.  In particular, if you convert from a
    LinearLayout to a RelativeLayout, then it will use RelativeLayout
    params to emulate the old LinearLayout by attaching items below
    (for vertical layouts) or to the right of (for horizontal layout)
    the previous sibling, and if the baseline property was set on the
    LinearLayout it will also add baseline constraints on the
    RelativeLayout. (It also adds default ids on any elements that
    need it.)

    There is a LOT more we can do to support layout transformations;
    this is just a beginning.

(3) Extract as Include. We already had this feature, but it performed
    its own XML document manipulation.  This code has been rewritten
    to use the Eclipse refactoring support (which the other two
    refactorings are implemented to use as well), which among other
    things means that you get Preview support - you can press Preview
    from the refactoring dialog to see the edits before they are
    made. This rewrite is also necessary to support an upcoming
    feature: the ability to replace occurrences in other
    configuration-variations of this layout; for that we need to
    ability to do multi-file changes which the refactoring support is
    ideal for.

Change-Id: I50b142645f14c29c798fc02df6df69bad5b9426c

13 years agomerge from tools_r10
The Android Open Source Project [Thu, 17 Feb 2011 19:36:00 +0000 (11:36 -0800)]
merge from tools_r10

Change-Id: Id65c4186e62f7516343eaa27b4bbfdcce101e624

13 years agoMerge "Add to layoutlib_api the ability to do layout only."
Xavier Ducrohet [Thu, 17 Feb 2011 19:11:51 +0000 (11:11 -0800)]
Merge "Add to layoutlib_api the ability to do layout only."

13 years agoMerge "Adding import R class statement when creating project with different package...
Raphaël Moll [Thu, 17 Feb 2011 18:16:10 +0000 (10:16 -0800)]
Merge "Adding import R class statement when creating project with different package Activity."

13 years agoAdd to layoutlib_api the ability to do layout only.
Xavier Ducrohet [Thu, 17 Feb 2011 17:59:08 +0000 (09:59 -0800)]
Add to layoutlib_api the ability to do layout only.

This lets the session do the measure/layout part and skip
the draw.

This returns the object location through the ViewInfo but
not the rendering.

Change-Id: I8875b4631b5fb00efa7096d804129612d46d9dc9

13 years agoMerge "Merge 2c8b999e into tools_r10. do not merge." into tools_r10
Xavier Ducrohet [Thu, 17 Feb 2011 02:54:36 +0000 (18:54 -0800)]
Merge "Merge 2c8b999e into tools_r10. do not merge." into tools_r10

13 years agoMerge 2c8b999e into tools_r10. do not merge.
Bertil Lynner [Fri, 14 Jan 2011 13:56:21 +0000 (14:56 +0100)]
Merge 2c8b999e into tools_r10. do not merge.

Update the sensor emulation to use the new HAL

The sensor HAL in libhardware was recently updated, this
change updates the sensor emulation to match the new HAL.

Change-Id: I1632d53dc2246934516104c6ebdb5b63576dfdd8

13 years agoMerge "Merge 11e72f25 into tools_r10. DO NOT MERGE." into tools_r10
Xavier Ducrohet [Thu, 17 Feb 2011 01:47:22 +0000 (17:47 -0800)]
Merge "Merge 11e72f25 into tools_r10. DO NOT MERGE." into tools_r10

13 years agoMerge 11e72f25 into tools_r10. DO NOT MERGE.
Mike Lockwood [Tue, 15 Feb 2011 04:54:04 +0000 (23:54 -0500)]
Merge 11e72f25 into tools_r10. DO NOT MERGE.

Fix emulator GPS support

Use create_thread_cb instead of pthread_create to create gps_state_thread
so it can safely call into the Java framework.

BUG: 3375089

Change-Id: I428534097852cfcc428aa93ba14c40558e35c8e8
Signed-off-by: Mike Lockwood <lockwood@android.com>