OSDN Git Service

android-x86/sdk.git
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 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 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>
13 years agoMerge "Add datetime postfix to default file name when showing save screen image dialog."
Raphaël Moll [Wed, 16 Feb 2011 18:48:56 +0000 (10:48 -0800)]
Merge "Add datetime postfix to default file name when showing save screen image dialog."

13 years agoAdding import R class statement
Keiji Ariyama [Thu, 3 Feb 2011 17:59:43 +0000 (02:59 +0900)]
Adding import R class statement
when creating project with different package Activity.

Change-Id: Icce8609f9e925760b43778b39e064a74ba314900

13 years agoMerge "SDK Manager comment on adding new jar dependencies."
Raphael Moll [Wed, 16 Feb 2011 17:57:56 +0000 (09:57 -0800)]
Merge "SDK Manager comment on adding new jar dependencies."

13 years agoMerge "Fixing issue with updating AndroidManifest.xml when refactoring activity"
Xavier Ducrohet [Wed, 16 Feb 2011 01:10:30 +0000 (17:10 -0800)]
Merge "Fixing issue with updating AndroidManifest.xml when refactoring activity"

13 years agoFixing issue with updating AndroidManifest.xml when refactoring activity
snpe [Wed, 16 Feb 2011 00:27:51 +0000 (01:27 +0100)]
Fixing issue with updating AndroidManifest.xml when refactoring activity

This change fixes http://code.google.com/p/android/issues/detail?id=14729

The problem happens when an activity is in subpackage of application
package.

Change-Id: If7ce1a2bcdaf6a51280477ec44c19c1dbea1c20f

13 years agoMerge "Fix issue setting Javadoc to classpath container"
Xavier Ducrohet [Tue, 15 Feb 2011 23:25:02 +0000 (15:25 -0800)]
Merge "Fix issue setting Javadoc to classpath container"

13 years agoFix issue setting Javadoc to classpath container
snpe [Fri, 14 Jan 2011 20:58:54 +0000 (21:58 +0100)]
Fix issue setting Javadoc to classpath container

This change fixes http://code.google.com/p/android/issues/detail?id=14017
- Android classpath container doesn't allow changing Javadoc attachment.

Change-Id: I6cdc767a295adea166311b90475f038a3f755aae

13 years agoMerge "Fixing Android Source attachements"
Xavier Ducrohet [Tue, 15 Feb 2011 23:08:34 +0000 (15:08 -0800)]
Merge "Fixing Android Source attachements"

13 years agoMerge "Fix in FileListingService."
Xavier Ducrohet [Tue, 15 Feb 2011 23:02:05 +0000 (15:02 -0800)]
Merge "Fix in FileListingService."

13 years agoMerge "XML editing: add ="" for attributes and change icons"
Tor Norbye [Tue, 15 Feb 2011 21:59:30 +0000 (13:59 -0800)]
Merge "XML editing: add ="" for attributes and change icons"

13 years agoMerge "Add validation messages to the DDMS edit filter dialog."
Tor Norbye [Tue, 15 Feb 2011 21:43:08 +0000 (13:43 -0800)]
Merge "Add validation messages to the DDMS edit filter dialog."

13 years agoAdd validation messages to the DDMS edit filter dialog.
Keiji Ariyama [Tue, 15 Feb 2011 09:59:35 +0000 (18:59 +0900)]
Add validation messages to the DDMS edit filter dialog.

Fixing issue 3584.
http://code.google.com/p/android/issues/detail?id=3584

Change-Id: I689c0036f36678c92c08d05a6690610f95233c66

13 years agoMerge "Fix emulator GPS support"
Xavier Ducrohet [Tue, 15 Feb 2011 17:29:23 +0000 (09:29 -0800)]
Merge "Fix emulator GPS support"

13 years agoFix emulator GPS support
Mike Lockwood [Tue, 15 Feb 2011 04:54:04 +0000 (23:54 -0500)]
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: Ie7b2bd4bea519702d4238ba375bf83b059095b9e
Signed-off-by: Mike Lockwood <lockwood@android.com>
13 years agoSDK Manager comment on adding new jar dependencies.
Raphael Moll [Sat, 12 Feb 2011 00:35:51 +0000 (16:35 -0800)]
SDK Manager comment on adding new jar dependencies.

Change-Id: I6cdaefdb25f4899109dbf7b82c2872bc0b1362e6

13 years agoMerge "Make project-wide locale and render target settings"
Tor Norbye [Tue, 15 Feb 2011 01:03:04 +0000 (17:03 -0800)]
Merge "Make project-wide locale and render target settings"

13 years agoMake project-wide locale and render target settings
Tor Norbye [Tue, 8 Feb 2011 16:04:40 +0000 (08:04 -0800)]
Make project-wide locale and render target settings

This changeset makes the locale and render target settings
project-wide, meaning that whenever you change the locale, or the
render target, the given locale or render target will be shown in all
layouts from the same project that you switch to.

The Locale and Render Target combo boxes are moved in to the top line
of the configuration chooser, and the dock mode and daytime mode
toggles are moved to the second line, such that the project-wide
settings are on the first line and the layout-specific settings are on
the second line.

Now, whenever you switch to a new language and open a different
layout, the language of the new layout will be forced to the current
locale. The only exception to this is for locale-specific layouts. If
you create a specific layout for a given locale, then that layout will
always be shown using its own locale, regardless of the project-wide
setting.

Change-Id: Idbe7e465a74afccfc0c68005a8784eafb2e8878d

13 years agoMerge "Add Show Included In safeguard, and work around Eclipse DOM bug"
Tor Norbye [Tue, 15 Feb 2011 00:41:13 +0000 (16:41 -0800)]
Merge "Add Show Included In safeguard, and work around Eclipse DOM bug"

13 years agoMerge "All resource changes should trigger a layout rendering."
Xavier Ducrohet [Tue, 15 Feb 2011 00:35:50 +0000 (16:35 -0800)]
Merge "All resource changes should trigger a layout rendering."

13 years agoAll resource changes should trigger a layout rendering.
Xavier Ducrohet [Tue, 15 Feb 2011 00:11:58 +0000 (16:11 -0800)]
All resource changes should trigger a layout rendering.

The current code didn't render if a layout changed
but <include> support was added (way back!) and this could
trigger the need for a recompile.

Change-Id: Icf34f0c03ad0b4108103e3dc12916fba988ea0b3

13 years agoXML editing: add ="" for attributes and change icons
Tor Norbye [Tue, 15 Feb 2011 00:12:49 +0000 (16:12 -0800)]
XML editing: add ="" for attributes and change icons

This changeset makes a couple of changes for editing XML files:

First, it changes the code completion proposals for attributes such
that when the attribute is inserted, it is inserted along with ="",
and the caret is placed inside the double quotes.

Second, it changes the icons for attributes and elements to use the
plain Eclipse attribute and element icons rather than
first-letter-derived icons. This is similar to how Eclipse does icons
for other file types, like Java (where all methods just use a green
ball for example, rather than different icons depending on the method
name.)

(An exception to this are the view elements, where we have dedicated
icons for most of the view types. For these, the individual icons are
used.)

Change-Id: I3c6927ce772265c9c8cbd2260bdc74f5ca959f56

13 years agoMerge "Refactor WorkingSet function."
Tor Norbye [Mon, 14 Feb 2011 17:02:27 +0000 (09:02 -0800)]
Merge "Refactor WorkingSet function."

13 years agoRefactor WorkingSet function.
Raphael Moll [Sat, 12 Feb 2011 00:04:46 +0000 (16:04 -0800)]
Refactor WorkingSet function.

- Refactor working set helper methods out of the main NPW class.
  They were not used by the main NPW class, just by the pages
  and were adding warnings due to *.internal.* class accesses.

- Respect the UI creation structure (one method for each top level
  composite).

- Fix: proper toggle the working set composite in the Test Project
  page based on the main "create test project" toggle.

- Hack around the fact the "Add working set" checkbox wasn't
  initialized properly in the Test Project page.

Change-Id: I5be81edcb45898b214b4e983a12e080d508b6c18

13 years agoAdd Show Included In safeguard, and work around Eclipse DOM bug
Tor Norbye [Sat, 12 Feb 2011 18:19:03 +0000 (10:19 -0800)]
Add Show Included In safeguard, and work around Eclipse DOM bug

First, add a check in the view hierarchy code to ensure that when we
are attempting to render a view included within another that the
included view's model is actually included in the render. If it is
not, then clear the inclusion context and re-render. This shouldn't be
necessary since we only offer Show Included In for views known to be
including the current view, but if something should go wrong somewhere
(such as a stale include list, or the current bug we have with parser
nesting) this is a useful fallback to prevent major confusion.

Second, add in null checks for a couple of places where we were
calling DOM Element.getAttributeNS. This method is according to the
DOM API not supposed to ever return null, so we had code assuming that
it would not, yet I've just run into it returning null in some cases
(and found an Eclipse bug report from 2009 stating the same thing -
https://bugs.eclipse.org/bugs/show_bug.cgi?id=272378) so add
workaround safeguards. We call getAttributeNS in a LOT of places, and
we do not see this problem crop up everywhere, so there must be some
narrow scenarios where it is occurring. Therefore, I have not
sprinkled null checks or introduced a utility method just yet, though
that might be a good next step.

Change-Id: I80b5fe57abb153aac676e92e7020cc367051c9e7

13 years agomerge from tools_r10
The Android Open Source Project [Sat, 12 Feb 2011 00:58:08 +0000 (16:58 -0800)]
merge from tools_r10

Change-Id: I2ad6684333572b1c3dcff34f85087991691c0b24

13 years agoMerge "Android.bat: Properly copy common.jar to the temp folder." into tools_r10
Xavier Ducrohet [Sat, 12 Feb 2011 00:26:57 +0000 (16:26 -0800)]
Merge "Android.bat: Properly copy common.jar to the temp folder." into tools_r10

13 years agoAndroid.bat: Properly copy common.jar to the temp folder.
Raphael Moll [Sat, 12 Feb 2011 00:17:02 +0000 (16:17 -0800)]
Android.bat: Properly copy common.jar to the temp folder.

Change-Id: Ieb1faae14d53451d7c13cb07e0b38628996bc48d

13 years agoMerge "Add working set to New Project Wizard"
Raphaël Moll [Fri, 11 Feb 2011 23:17:24 +0000 (15:17 -0800)]
Merge "Add working set to New Project Wizard"

13 years agoFix in FileListingService.
Pierre Zurek [Fri, 11 Feb 2011 23:01:04 +0000 (00:01 +0100)]
Fix in FileListingService.

Using getFullEscapedPath() instead of getFullPath() in doLs().

Change-Id: Ib4a1178354872398daa42777a0f05aa3e246e8f6

13 years agoAdd working set to New Project Wizard
snpe [Sat, 22 Jan 2011 14:56:21 +0000 (15:56 +0100)]
Add working set to New Project Wizard

I have use the code from
org.eclipse.jdt.ui.wizards.NewJavaProjectWizardPageOne
and adapt it. Suppose it's acceptable.

The Android and Android Test can be added to the same
or different Working Set.
As in the Java Project wizard, it's possible add
the project to existing working set or create new working set.

Change-Id: Ib1be35a9221bbeaf448db29cfd53fb8f1bb37c28

13 years agoMerge "Perform auto-zoom-to-fit on device changes"
Tor Norbye [Fri, 11 Feb 2011 22:33:42 +0000 (14:33 -0800)]
Merge "Perform auto-zoom-to-fit on device changes"

13 years agoPerform auto-zoom-to-fit on device changes
Tor Norbye [Fri, 11 Feb 2011 04:01:54 +0000 (20:01 -0800)]
Perform auto-zoom-to-fit on device changes

When you change the device in the configuration chooser (e.g. either
the screen type or the orientation), the layout editor will now
automatically apply a special version of the "Zoom to Fit" scaling
operation: Zoom to fit but at most 100%.

In practice this means that if you have zoomed out a lot (for example
to accomodate a tablet in portrait mode) and you switch to landscape,
it will zoom back in a bit further such that the landscape orientation
fits better without leaving a lot of unused screen space.  Similarly,
if you go from a low resolution screen to a higher resolution screen,
it will zoom out if necessary to keep the picture in view.  It will
however never zoom to more than 100%, so if you go to a lower
resolution screen will not show blurry pixels, you will see the
natural size of the image.

This changeset also contains a fix for the fit-to-zoom code such that
the margin handling works properly for zoom factors greater than one.

Change-Id: I14a6061e0492c6a116eb6d4fcedd0b5c108caabe

13 years agoMerge "Improvements to Selection - New Actions & Sync Fix"
Tor Norbye [Fri, 11 Feb 2011 22:27:16 +0000 (14:27 -0800)]
Merge "Improvements to Selection - New Actions & Sync Fix"

13 years agoMerge "Pick configuration for Java hyperlinks"
Tor Norbye [Fri, 11 Feb 2011 21:23:22 +0000 (13:23 -0800)]
Merge "Pick configuration for Java hyperlinks"

13 years agoFixing Android Source attachements
snpe [Sun, 23 Jan 2011 15:41:03 +0000 (16:41 +0100)]
Fixing Android Source attachements

Steps to reproduce:

- add Android Source code to android.jar (you can install Android
  Sources plugin from http://code.google.com/p/adt-addons/)
- ensure that android.app.ActivityThread exists in the source
  attachement (if you use Sources plugin, it exists)
- create an Android application and add the next code to
  onCreate method:
super.onCreate(savedInstanceState);
        Object obj = null;
        System.out.println(obj.toString());
        setContentView(R.layout.main);
- set breakpoint at line
  System.out.println(obj.toString()); (NPE)
- debug the application
- wait that apps stop on breakpoint
- click Step Over

The procces will proceed in ActivityThread, but source is not shown.

The problem happens because the Android source locator introduced in
https://review.source.android.com/#change,16569 isn't correct.
ActivityThread.java isn't included to android.jar, but can be
included in the source attachement. This change adds source to Android
launch configuration too.

Change-Id: Id13ef9acac9a901a704ae79d3e3db3be5e09d929

13 years agoPick configuration for Java hyperlinks
Tor Norbye [Fri, 11 Feb 2011 17:23:39 +0000 (09:23 -0800)]
Pick configuration for Java hyperlinks

When you request declaration hyperlinks in an XML file, the hyperlink
support looks at the corresponding Layout editor's configuration
chooser and uses the current configuration to decide which match to
list on top. Therefore, if you are looking at a particular language
and you ask for declarations for a given @string resource, the
translation for the current language is listed first.

In Java files, there is no corresponding layout editor, so it will
just display the base folder (values/) match rather than any
particular language (or other qualifiers for that matter).

This changeset adds a check to the code which computes a configuration
to use for default matching. It now looks for other open layout
editors in the workspace and (for any that are in the same project) it
will use that editor's configuration instead as the default key.

Change-Id: I0dc9d4a7970c5aebd07d3e88877ac41fe49baab8

13 years agoMerge "Fixing Issue 14663"
Tor Norbye [Fri, 11 Feb 2011 16:48:14 +0000 (08:48 -0800)]
Merge "Fixing Issue 14663"

13 years agoFixing Issue 14663
Keiji Ariyama [Fri, 11 Feb 2011 09:52:59 +0000 (18:52 +0900)]
Fixing Issue 14663

http://code.google.com/p/android/issues/detail?id=14663

Change-Id: I94b31e1adf57161480ae6853e4e502b043a3bcfd

13 years agoMerge "Update the sensor emulation to use the new HAL"
David Turner [Fri, 11 Feb 2011 14:43:30 +0000 (06:43 -0800)]
Merge "Update the sensor emulation to use the new HAL"

13 years agomerge from tools_r10
The Android Open Source Project [Fri, 11 Feb 2011 01:01:03 +0000 (17:01 -0800)]
merge from tools_r10

Change-Id: I8852a3ca28977057efff4aa50f31f99d5bf5b67c

13 years agoMerge "Add support for permissions and intents in declaration hyperlinks"
Tor Norbye [Fri, 11 Feb 2011 00:50:27 +0000 (16:50 -0800)]
Merge "Add support for permissions and intents in declaration hyperlinks"

13 years agoMerge "SDK Manager: Update All doesn't pick highest revisions" into tools_r10
Xavier Ducrohet [Fri, 11 Feb 2011 00:42:39 +0000 (16:42 -0800)]
Merge "SDK Manager: Update All doesn't pick highest revisions" into tools_r10

13 years agoSDK Manager: Update All doesn't pick highest revisions
Raphael Moll [Fri, 11 Feb 2011 00:19:26 +0000 (16:19 -0800)]
SDK Manager: Update All doesn't pick highest revisions

SDK Bug 14128

Change-Id: I4a9d1a10c99e32226eb0c2a4bc6bdddedfa26f66

13 years agomerge from tools_r10
The Android Open Source Project [Fri, 11 Feb 2011 00:13:10 +0000 (16:13 -0800)]
merge from tools_r10

Change-Id: I605434d1a2bbad5369c73c127c6d87b4b0c59b8a

13 years agoMerge "Integrate 3f18a506 into tools_r10" into tools_r10
Xavier Ducrohet [Fri, 11 Feb 2011 00:04:32 +0000 (16:04 -0800)]
Merge "Integrate 3f18a506 into tools_r10" into tools_r10

13 years agoIntegrate 3f18a506 into tools_r10
Xavier Ducrohet [Fri, 11 Feb 2011 00:00:30 +0000 (16:00 -0800)]
Integrate 3f18a506 into tools_r10

Fix builder to not stop on java warning markers.

Change-Id: I8e9b2dba20524aedd3c3e533d74695ccfc0e9c46

13 years agoMerge "Fix builder to not stop on java warning markers."
Xavier Ducrohet [Fri, 11 Feb 2011 00:02:34 +0000 (16:02 -0800)]
Merge "Fix builder to not stop on java warning markers."

13 years agoMerge "Move tools and ADT version to 11."
Xavier Ducrohet [Fri, 11 Feb 2011 00:01:25 +0000 (16:01 -0800)]
Merge "Move tools and ADT version to 11."

13 years agoFix builder to not stop on java warning markers.
Xavier Ducrohet [Fri, 11 Feb 2011 00:00:30 +0000 (16:00 -0800)]
Fix builder to not stop on java warning markers.

Change-Id: I98fce9ca71a49ef1d2569215fa3bec9b38a6b6f1

13 years agoImprovements to Selection - New Actions & Sync Fix
Tor Norbye [Thu, 10 Feb 2011 23:28:15 +0000 (15:28 -0800)]
Improvements to Selection - New Actions & Sync Fix

This changeset adds a new "Select" context menu. In addition to Select
All and Select None, there are new actions to select the parent of the
currently selected item, an action to select all its siblings, and an
action to select all widgets in the layout of the same type. For
example, invoking this on a button will select all buttons in the
layout. Select Parent is bound to Escape and is particularly useful
when you want to target a layout widget that has children and no free
space, since any mouse click will target one of its children. With
Select Parent you click on the child and hit Escape to reach the
container.

In addition, this changeset fixes selection synchronization for
context menus. Until now, you had to FIRST select an item, THEN right
click on it to see its context menu items. The root cause for this is
an SWT bug (eclipse issue 26605), but we can work around it with a
MenuDetectListener, which is run when the menu is posted and gives us
a chance to sync the selection.

Change-Id: If3e15c335c372a6ee8a3c8c357b48bb80fbbb40c

13 years agoMove tools and ADT version to 11.
Xavier Ducrohet [Thu, 10 Feb 2011 23:18:59 +0000 (15:18 -0800)]
Move tools and ADT version to 11.

Change-Id: I4ba19e12a7d11df3d3c1053c30f3998a93b5fb06