OSDN Git Service

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

13 years agoMerge "Leave scrollbars visible"
Tor Norbye [Tue, 8 Feb 2011 22:05:40 +0000 (14:05 -0800)]
Merge "Leave scrollbars visible"

13 years agoAnt tasks and dependency clean up.
Xavier Ducrohet [Tue, 8 Feb 2011 21:50:01 +0000 (13:50 -0800)]
Ant tasks and dependency clean up.

Give anttasks.jar a proper manifest with jar dependencies.
Update the manifest of sdklib.jar with the common.jar dependency.

The pre-setup section of build.xml has changed over time
and really we should be able to control it so move it in
$SDK/tools/ant/pre_setup.xml and import it into build.xml

Change-Id: Iab707deccc0cdbe8d1a9db052ee6fb0762853394

13 years agoLeave scrollbars visible
Tor Norbye [Tue, 8 Feb 2011 21:52:45 +0000 (13:52 -0800)]
Leave scrollbars visible

Remove the code I added recently which hides the scrollbars when they
are not enabled. While I want to restore it later, I need to guard
against a possible scenario where showing the scrollbars causes the
viewport size to change which can in turn cause the scrollbars to be
hidden recursively. For R10 let's play it safe.

Change-Id: I3fa30035ecbede55fd6e0063f222efc6fead386f

13 years agoMerge "Make zoom level persistent"
Tor Norbye [Tue, 8 Feb 2011 21:45:09 +0000 (13:45 -0800)]
Merge "Make zoom level persistent"

13 years agoMerge "ADT builder clean up."
Xavier Ducrohet [Tue, 8 Feb 2011 21:44:39 +0000 (13:44 -0800)]
Merge "ADT builder clean up."

13 years agoADT builder clean up.
Xavier Ducrohet [Tue, 8 Feb 2011 20:53:55 +0000 (12:53 -0800)]
ADT builder clean up.

- SourceProcessor didn't empty is toCompile/removed file list
  when doing a full build, meaning some files were compiled
  several times.

- renderscript processor would always indicate that it generated
  resources even if that wasn't the case (no file or broken files)
  triggering a res compilation even if needed. Res compilation
  typically trigger a post compile refresh that triggers another
  build (which normally has no impact) but this new build
  also triggered a res compilation through the same issue ending
  with a build loop if a rs file was broken.
  The SourceProcessors now don't return a static compilation type
  but a true value based on what they did (or failed to do).

- the post compiler build now properly stops executing if there are
  problem markers from previous builders, including the JDT one.

Change-Id: Ida610dbe793f0df40b586572c52d33e4c93adff2

13 years agoLayout Actions bar fixes
Tor Norbye [Tue, 8 Feb 2011 20:17:33 +0000 (12:17 -0800)]
Layout Actions bar fixes

This changeset fixes a couple of layout actions bar issues:

(1) Refresh the actions bar after running one of the layout
    actions. This for example fixes the issue that if you click to
    toggle the layout orientation then the baseline button will appear
    for horizontal layouts.

(2) Fix an issue with the lazy-initialization of dropdown menus; they
    weren't actually initialized lazily because the code to determine
    whether a choice list should be a dropdown or a radio group would
    cause initialization.

(3) Fix layout gravity on RelativeLayouts; it was reading/writing the
    attribute "layout_gravity" instead of "gravity".

Change-Id: Ic41158257b3938a2e6daa8714dcd15d6bf21fa2f

13 years agoMerge "Add common.jar to the SDK build."
Xavier Ducrohet [Tue, 8 Feb 2011 19:27:01 +0000 (11:27 -0800)]
Merge "Add common.jar to the SDK build."

13 years agoAdd common.jar to the SDK build.
Xavier Ducrohet [Tue, 8 Feb 2011 19:10:15 +0000 (11:10 -0800)]
Add common.jar to the SDK build.

Change-Id: Idf2ce283466dcc92ba8877d4e8166f2d64b319f4

13 years agoMake zoom level persistent
Tor Norbye [Tue, 8 Feb 2011 16:47:34 +0000 (08:47 -0800)]
Make zoom level persistent

Make the zoom level of the layout editor persistent across IDE
sessions. This is particularly useful now that we are dealing with
larger screens, such as WXGA, where you typically need to zoom out
(zoom to fit) in order to see the whole layout, and it's annoying to
have to do this every time you open the IDE.

Change-Id: Ib062a6a9f9291445978b3cfae03c120e4f2bf386

13 years agoMerge "Fix selection hint painting on honeycomb"
Tor Norbye [Tue, 8 Feb 2011 06:08:14 +0000 (22:08 -0800)]
Merge "Fix selection hint painting on honeycomb"

13 years agoFix selection hint painting on honeycomb
Tor Norbye [Tue, 8 Feb 2011 05:05:29 +0000 (21:05 -0800)]
Fix selection hint painting on honeycomb

The selection hints, which for example display the constraints when
you are in a RelativeLayout, are painted below or to the right of the
canvas. The positioning of this text was based on walking up the
ViewInfo hierarchy and taking the root element's bounds as the bounds
of the canvas image. The text was then placed below or to the right
of this image.

This no longer works with honeycomb since we now paint an action bar
and a system bar, and the bounds of these are not included in the root
ViewInfo, so as a result the selection hints were painted on top of
the system bar.

This changes the algorithm to use the image bounds itself rather than
the view info bounds.

Change-Id: I0e6e04608fb55af476c58a33785d5a7d5ac511c1

13 years agoMerge "Tools r10 require ADT 10.0"
Xavier Ducrohet [Tue, 8 Feb 2011 04:43:29 +0000 (20:43 -0800)]
Merge "Tools r10 require ADT 10.0"

13 years agoTools r10 require ADT 10.0
Xavier Ducrohet [Tue, 8 Feb 2011 03:52:42 +0000 (19:52 -0800)]
Tools r10 require ADT 10.0

Change-Id: Ide739f4e3edddb3ab04519262eee34d28e18bd16

13 years agoMerge "Make sure to quote command line paths on windows."
Xavier Ducrohet [Tue, 8 Feb 2011 02:29:31 +0000 (18:29 -0800)]
Merge "Make sure to quote command line paths on windows."

13 years agoMake sure to quote command line paths on windows.
Xavier Ducrohet [Tue, 8 Feb 2011 02:09:40 +0000 (18:09 -0800)]
Make sure to quote command line paths on windows.

The path of the executable should not be quoted.

Linux/MacOS actually don't work if anything is quoted so
only quote on windows.

Strangely aapt is not affected by this so don't touch it for now

Change-Id: I148f229d941baf722542ff72ee683fda212ec327

13 years agoMerge "Default the render target to Android 3.0 for newly opened layouts"
Tor Norbye [Tue, 8 Feb 2011 01:02:28 +0000 (17:02 -0800)]
Merge "Default the render target to Android 3.0 for newly opened layouts"

13 years agoDefault the render target to Android 3.0 for newly opened layouts
Tor Norbye [Mon, 7 Feb 2011 23:59:23 +0000 (15:59 -0800)]
Default the render target to Android 3.0 for newly opened layouts

When opening new layouts, or opening layouts saved with older
versions of ADT, pick a render target that supports layoutlib 5. Many
features (such as layout rendering, palette previews etc) work much
better with layoutlib 5.

Change-Id: I0c577e76a2447985be0ab9bd2603618e8f152873

13 years agoMerge "Add Layout Actions toolbar"
Tor Norbye [Tue, 8 Feb 2011 00:43:18 +0000 (16:43 -0800)]
Merge "Add Layout Actions toolbar"

13 years agoAdd Layout Actions toolbar
Tor Norbye [Tue, 1 Feb 2011 16:10:32 +0000 (08:10 -0800)]
Add Layout Actions toolbar

Add a new toolbar above the layout canvas (and to the right of the
palette). This toolbar shows various layout-related actions on its
left, and the canvas zoom controls on the right. The zoom controls
have been moved from the configuration panel, which has also been
reorganized a little with three of the dropdowns moved up to make more
horizontal width and take the place of the old zoom controls.

The toolbar items vary based on which layout is "active". The active
layout is the parent layout of the selection, or the root layout in
the canvas if there is no selection.

Some examples:

- In a LinearLayout, there are radio-button icons for switching
  between horizontal and vertical orientation, and for toggling
  baseline alignment

- There are toggle buttons for toggling between wrap_content and
  match_parent (or fill_parent) for the layout_width and layout_height
  properties

- There is a dropdown menu in LinearLayout and RelativeLayout which
  lets you set the layout_gravity to one of the dozen gravity settings

- There is an action button which brings up a margin chooser dialog
  where you can configure the margin settings for the currently
  selected elements for layouts that support margins

There will be additional actions here in the future.

This changeset also adds a few new MenuAction subclasses and factories
to make it possible to do ordered lists of choices. It also adds
sorting keys to make it easier for parents and children to interleave
their actions with simple sorting keys rather than having to append,
prepend or merge their respective result lists.  In a follow-up
changeset I will replace the context menu code to use these, as well
as attempt to make all actions stateless such that they can be cached
and reapplied for different targets.

Some misc cleanup.

Change-Id: I6a87144fcfd1d359e5561829bd5d63c852f16970

13 years agomerge from tools_r9
The Android Open Source Project [Mon, 7 Feb 2011 21:31:17 +0000 (13:31 -0800)]
merge from tools_r9

Change-Id: Iae5b1e83937acecc7b31c00d949afb5eee150b19

13 years agoMerge "Minor layoutlib API fix: rename a Capability"
Xavier Ducrohet [Mon, 7 Feb 2011 21:21:14 +0000 (13:21 -0800)]
Merge "Minor layoutlib API fix: rename a Capability"

13 years agoMerge "Package the plug-ins with debug info." into tools_r9
Xavier Ducrohet [Mon, 7 Feb 2011 21:10:04 +0000 (13:10 -0800)]
Merge "Package the plug-ins with debug info." into tools_r9

13 years agoPackage the plug-ins with debug info.
Xavier Ducrohet [Mon, 7 Feb 2011 17:55:23 +0000 (09:55 -0800)]
Package the plug-ins with debug info.

This allows us to get useful stack trace from external users.

Change-Id: I290a255b7bb28d6d32eee9d62cb176414d833a1c