OSDN Git Service

android-x86/sdk.git
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 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

13 years agomerge from tools_r10
The Android Open Source Project [Thu, 10 Feb 2011 23:08:10 +0000 (15:08 -0800)]
merge from tools_r10

Change-Id: I57fe2de551ae3d5831f7b2cbeeb682394ae34e13

13 years agoMerge "SDK Manager: 'update all' was not selecting addon updates." into tools_r10
Xavier Ducrohet [Thu, 10 Feb 2011 22:52:54 +0000 (14:52 -0800)]
Merge "SDK Manager: 'update all' was not selecting addon updates." into tools_r10

13 years agoSDK Manager: 'update all' was not selecting addon updates.
Raphael Moll [Thu, 10 Feb 2011 22:38:18 +0000 (14:38 -0800)]
SDK Manager: 'update all' was not selecting addon updates.

Fix SDK Manager to correctly fetch the remote add-on list
prior to starting an 'update all'. This makes sure we pick
up new add-ons or extra packages when available.

SDK Bug 14392

Change-Id: If03d08f80549dbf46c4a077a4b81503c05f968ce

13 years agoUpdate the sensor emulation to use the new HAL
Bertil Lynner [Fri, 14 Jan 2011 13:56:21 +0000 (14:56 +0100)]
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: I1cf60665ec3cc59a14859de487a65b399ff9e343

13 years agoAdd support for permissions and intents in declaration hyperlinks
Tor Norbye [Thu, 10 Feb 2011 05:51:26 +0000 (21:51 -0800)]
Add support for permissions and intents in declaration hyperlinks

Go to Declaration hyperlinks now work for builtin intents and
permission references, such as
  <uses-permission android:name="android.permission.CHANGE_CON...
and
  <action android:name="android.intent.action.MAIN" />
and
  <category android:name="android.intent.category.HOME" />

Jumping to the declaration will open a browser tab in the editor,
showing the relevant documentation for the given intent/permission.

If SDK documentation is installed with the SDK manager, then it will
locate the locally installed documentation, and otherwise it will
point to the corresponding page under developer.android.com.

This changeset also improves handling of references to services and
activities; in addition to supporting the short form (a dot followed
by the base name) it now also handles fully qualified names and just
basenames.

Change-Id: I2cb38023bbe16111aa1feee3a8df10112aca774b

13 years agomerge from tools_r10
The Android Open Source Project [Thu, 10 Feb 2011 02:50:54 +0000 (18:50 -0800)]
merge from tools_r10

Change-Id: Ia3c67ee84435436afeff391105ce47d43a296ae2

13 years agoMerge "Integrate 32c960c6 in tools_R10 -- DO NOT MERGE." into tools_r10
Xavier Ducrohet [Thu, 10 Feb 2011 02:27:34 +0000 (18:27 -0800)]
Merge "Integrate 32c960c6 in tools_R10 -- DO NOT MERGE." into tools_r10

13 years agoIntegrate 32c960c6 in tools_R10 -- DO NOT MERGE.
Xavier Ducrohet [Thu, 10 Feb 2011 02:20:54 +0000 (18:20 -0800)]
Integrate 32c960c6 in tools_R10 -- DO NOT MERGE.

Fix aidl build.

The aidl output location was not
computed anywhere.

Also added logging code.

Change-Id: I2a0f4fc9327addc384cefc31962d79474ee171f4

13 years agoMerge "Fix aidl build."
Xavier Ducrohet [Thu, 10 Feb 2011 02:23:58 +0000 (18:23 -0800)]
Merge "Fix aidl build."

13 years agoFix aidl build.
Xavier Ducrohet [Thu, 10 Feb 2011 02:20:54 +0000 (18:20 -0800)]
Fix aidl build.

The aidl output location was not
computed anywhere.

Also added logging code.

Change-Id: I6d0f0d07477be0c3c605c910e6529cb76a8b4ac0

13 years agomerge from tools_r10
The Android Open Source Project [Wed, 9 Feb 2011 23:17:53 +0000 (15:17 -0800)]
merge from tools_r10

Change-Id: Ie77c0e909ab438552efec1004fa62be412b1092b

13 years agoMerge "Fix included-in overlay mask" into tools_r10
Xavier Ducrohet [Wed, 9 Feb 2011 23:01:04 +0000 (15:01 -0800)]
Merge "Fix included-in overlay mask" into tools_r10

13 years agoFix included-in overlay mask
Tor Norbye [Wed, 9 Feb 2011 20:45:35 +0000 (12:45 -0800)]
Fix included-in overlay mask

When you show a view as included within another layout, there should
be a semi-translucent mask over the surrounding context. This did not
work in all cases (in particular, when there was no merge cookie).

This changeset makes it work in non-mergecookie scenarios as well.

Change-Id: I70d43565009905bf6d9b03eab86213aeebf22e6a

13 years agoMerge "Fix included-in overlay mask"
Tor Norbye [Wed, 9 Feb 2011 21:23:46 +0000 (13:23 -0800)]
Merge "Fix included-in overlay mask"

13 years agoFix included-in overlay mask
Tor Norbye [Wed, 9 Feb 2011 20:45:35 +0000 (12:45 -0800)]
Fix included-in overlay mask

When you show a view as included within another layout, there should
be a semi-translucent mask over the surrounding context. This did not
work in all cases (in particular, when there was no merge cookie).

This changeset makes it work in non-mergecookie scenarios as well.

Change-Id: I724fa3a0f0bfd612c4d4a8850c307a5664200d10

13 years agoMerge "SDK Manager: fix install order of packages."
Raphael Moll [Wed, 9 Feb 2011 17:42:57 +0000 (09:42 -0800)]
Merge "SDK Manager: fix install order of packages."

13 years agoSDK Manager: fix install order of packages.
Raphael Moll [Wed, 9 Feb 2011 07:03:04 +0000 (23:03 -0800)]
SDK Manager: fix install order of packages.

This makes sure that the installer install all
packages with less or no dependencies first.

SDK Bug 14393

Change-Id: If7b2fb5dc42fb425868fc3f39edb2ca26d190a1a

13 years agoMerge "Add unit test to SdkUiLib UpdaterData.installArchives."
Raphael Moll [Wed, 9 Feb 2011 04:09:15 +0000 (20:09 -0800)]
Merge "Add unit test to SdkUiLib UpdaterData.installArchives."

13 years agoAdd unit test to SdkUiLib UpdaterData.installArchives.
Raphael Moll [Wed, 9 Feb 2011 00:05:24 +0000 (16:05 -0800)]
Add unit test to SdkUiLib UpdaterData.installArchives.

This adds or changes no functionality.
It just exhibits the bug from issue 14393 which will
be fixed in the next CL.

Change-Id: Icff2023120014b422c002efde8f20175ff52e266

13 years agoMerge "Fix Extract as Include"
Xavier Ducrohet [Wed, 9 Feb 2011 03:34:00 +0000 (19:34 -0800)]
Merge "Fix Extract as Include"

13 years agoFix Extract as Include
Tor Norbye [Wed, 9 Feb 2011 03:13:12 +0000 (19:13 -0800)]
Fix Extract as Include

Two fixes for Extract as Include:

(1) After extracting the view fragments from the source layout, save
    the layout file. This is necessary in order to make the "Show
    Included In" functionality work on the newly extracted fragment,
    since the include-finder which identifies candidates for inclusion
    is triggered by file saves, not buffer edits, and secondly even
    the Show Included In facility itself requires the outer buffer to
    be a saved file, not an edited buffer since the parser reads from
    disk.

(2) Insert a space after the closing quote in the include string; this
    could lead to broken XML in some instances.

Change-Id: I10ede72ef40dc0afaa93322637397245ac9a54ee

13 years agoMerge "Make layout editor margins compress when necessary"
Tor Norbye [Tue, 8 Feb 2011 23:49:40 +0000 (15:49 -0800)]
Merge "Make layout editor margins compress when necessary"

13 years agoMerge "Ant tasks and dependency clean up."
Xavier Ducrohet [Tue, 8 Feb 2011 23:18:59 +0000 (15:18 -0800)]
Merge "Ant tasks and dependency clean up."

13 years agoMake layout editor margins compress when necessary
Tor Norbye [Tue, 8 Feb 2011 21:47:58 +0000 (13:47 -0800)]
Make layout editor margins compress when necessary

If there isn't enough room to show the margins, make the margins
smaller. This gives more useful layout room when you are dealing with
large screens.

Change-Id: I6f967dbe6b18ca5ee85cc04db88d903cb976e851

13 years agoMerge "Layout Actions bar fixes"
Tor Norbye [Tue, 8 Feb 2011 22:13:40 +0000 (14:13 -0800)]
Merge "Layout Actions bar fixes"