OSDN Git Service
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
Tor Norbye [Fri, 11 Feb 2011 16:48:14 +0000 (08:48 -0800)]
Merge "Fixing 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
David Turner [Fri, 11 Feb 2011 14:43:30 +0000 (06:43 -0800)]
Merge "Update the sensor emulation to use the new HAL"
The Android Open Source Project [Fri, 11 Feb 2011 01:01:03 +0000 (17:01 -0800)]
merge from tools_r10
Change-Id: I8852a3ca28977057efff4aa50f31f99d5bf5b67c
Tor Norbye [Fri, 11 Feb 2011 00:50:27 +0000 (16:50 -0800)]
Merge "Add support for permissions and intents in declaration hyperlinks"
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
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
The Android Open Source Project [Fri, 11 Feb 2011 00:13:10 +0000 (16:13 -0800)]
merge from tools_r10
Change-Id: I605434d1a2bbad5369c73c127c6d87b4b0c59b8a
Xavier Ducrohet [Fri, 11 Feb 2011 00:04:32 +0000 (16:04 -0800)]
Merge "Integrate
3f18a506 into tools_r10" 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
Xavier Ducrohet [Fri, 11 Feb 2011 00:02:34 +0000 (16:02 -0800)]
Merge "Fix builder to not stop on java warning markers."
Xavier Ducrohet [Fri, 11 Feb 2011 00:01:25 +0000 (16:01 -0800)]
Merge "Move tools and ADT version to 11."
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
Xavier Ducrohet [Thu, 10 Feb 2011 23:18:59 +0000 (15:18 -0800)]
Move tools and ADT version to 11.
Change-Id: I4ba19e12a7d11df3d3c1053c30f3998a93b5fb06
The Android Open Source Project [Thu, 10 Feb 2011 23:08:10 +0000 (15:08 -0800)]
merge from tools_r10
Change-Id: I57fe2de551ae3d5831f7b2cbeeb682394ae34e13
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
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
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
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
The Android Open Source Project [Thu, 10 Feb 2011 02:50:54 +0000 (18:50 -0800)]
merge from tools_r10
Change-Id: Ia3c67ee84435436afeff391105ce47d43a296ae2
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
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
Xavier Ducrohet [Thu, 10 Feb 2011 02:23:58 +0000 (18:23 -0800)]
Merge "Fix 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
The Android Open Source Project [Wed, 9 Feb 2011 23:17:53 +0000 (15:17 -0800)]
merge from tools_r10
Change-Id: Ie77c0e909ab438552efec1004fa62be412b1092b
Xavier Ducrohet [Wed, 9 Feb 2011 23:01:04 +0000 (15:01 -0800)]
Merge "Fix included-in overlay mask" into tools_r10
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
Tor Norbye [Wed, 9 Feb 2011 21:23:46 +0000 (13:23 -0800)]
Merge "Fix 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
Raphael Moll [Wed, 9 Feb 2011 17:42:57 +0000 (09:42 -0800)]
Merge "SDK 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
Raphael Moll [Wed, 9 Feb 2011 04:09:15 +0000 (20:09 -0800)]
Merge "Add 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
Xavier Ducrohet [Wed, 9 Feb 2011 03:34:00 +0000 (19:34 -0800)]
Merge "Fix 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
Tor Norbye [Tue, 8 Feb 2011 23:49:40 +0000 (15:49 -0800)]
Merge "Make layout editor margins compress when necessary"
Xavier Ducrohet [Tue, 8 Feb 2011 23:18:59 +0000 (15:18 -0800)]
Merge "Ant tasks and dependency clean up."
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
Tor Norbye [Tue, 8 Feb 2011 22:13:40 +0000 (14:13 -0800)]
Merge "Layout Actions bar fixes"
Tor Norbye [Tue, 8 Feb 2011 22:05:40 +0000 (14:05 -0800)]
Merge "Leave scrollbars visible"
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
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
Tor Norbye [Tue, 8 Feb 2011 21:45:09 +0000 (13:45 -0800)]
Merge "Make zoom level persistent"
Xavier Ducrohet [Tue, 8 Feb 2011 21:44:39 +0000 (13:44 -0800)]
Merge "ADT 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
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
Xavier Ducrohet [Tue, 8 Feb 2011 19:27:01 +0000 (11:27 -0800)]
Merge "Add 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
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
Tor Norbye [Tue, 8 Feb 2011 06:08:14 +0000 (22:08 -0800)]
Merge "Fix 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
Xavier Ducrohet [Tue, 8 Feb 2011 04:43:29 +0000 (20:43 -0800)]
Merge "Tools 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
Xavier Ducrohet [Tue, 8 Feb 2011 02:29:31 +0000 (18:29 -0800)]
Merge "Make 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
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"
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
Tor Norbye [Tue, 8 Feb 2011 00:43:18 +0000 (16:43 -0800)]
Merge "Add 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
The Android Open Source Project [Mon, 7 Feb 2011 21:31:17 +0000 (13:31 -0800)]
merge from tools_r9
Change-Id: Iae5b1e83937acecc7b31c00d949afb5eee150b19
Xavier Ducrohet [Mon, 7 Feb 2011 21:21:14 +0000 (13:21 -0800)]
Merge "Minor layoutlib API fix: rename a Capability"
Xavier Ducrohet [Mon, 7 Feb 2011 21:10:04 +0000 (13:10 -0800)]
Merge "Package the plug-ins with debug info." into tools_r9
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
Xavier Ducrohet [Mon, 7 Feb 2011 20:40:04 +0000 (12:40 -0800)]
Minor layoutlib API fix: rename a Capability
TRANSPARENT -> CUSTOM_BACKGROUND_COLOR
Change-Id: Iaa521231983de4d1008a7bb86b923f295d295a65
Xavier Ducrohet [Mon, 7 Feb 2011 19:06:12 +0000 (11:06 -0800)]
Merge "Added "Save As..." option for .trace files."
Tor Norbye [Mon, 7 Feb 2011 19:05:19 +0000 (11:05 -0800)]
Merge "Guard against NPE"
Tor Norbye [Mon, 7 Feb 2011 19:03:58 +0000 (11:03 -0800)]
Merge "Only allow palette previews when layoutlib 5 is used"
Xavier Ducrohet [Mon, 7 Feb 2011 18:59:41 +0000 (10:59 -0800)]
Merge "Package 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: I588ba6284f7f62cb7a7b73405e805171f350adab
Pierre Zurek [Sun, 6 Feb 2011 18:50:20 +0000 (19:50 +0100)]
Added "Save As..." option for .trace files.
Change-Id: I852a3d68299629addf53890a8b42d5c0e72579f3
Tor Norbye [Mon, 7 Feb 2011 05:16:35 +0000 (21:16 -0800)]
Guard against NPE
Change-Id: I081c057fd7c87239cdd5b4b6ddccf949a9cb2832
Tor Norbye [Mon, 7 Feb 2011 03:54:27 +0000 (19:54 -0800)]
Merge "Improve handling for GestureOverlayView"
Tor Norbye [Mon, 7 Feb 2011 03:50:46 +0000 (19:50 -0800)]
Only allow palette previews when layoutlib 5 is used
Disable palette previews when the target SDK does not have layoutlib 5
(or more accurately, the custom background support required by the
palette, which will be backported to earlier SDKs.)
Change-Id: Ib572fd070eae995541a680eaccd58411d35066b2
Tor Norbye [Mon, 7 Feb 2011 02:25:29 +0000 (18:25 -0800)]
Improve handling for GestureOverlayView
The layout editor has special handling for the "root" element, which
for example suppresses hover-highlighting for the root and a click
will initiate a marquee selection rather than a drag.
Some layouts wrap the layout inside a GestoreOverlayView. This does
not work well since the "real" root is its child, which will not be
treated as a proper root.
This changeset fixes this situation by handling this scenario such
that both the gesture overlay and its child is treated as the root.
Also make fix such that the icon in the outline also works for the
gesture overlay.
Change-Id: Ia96d2bc402958b44f9f82646ff0fc4552ab0cf14
Tor Norbye [Mon, 7 Feb 2011 02:54:42 +0000 (18:54 -0800)]
Merge "Palette previews with custom themes and other palette fixes"
Tor Norbye [Sun, 6 Feb 2011 23:58:18 +0000 (15:58 -0800)]
Palette previews with custom themes and other palette fixes
Palette previews are rendered on top of the default theme
background. For certain custom themes, where a gradient or image is
used, this can look terrible, since the preview images will include
portions of the gradient or image.
This changeset improves this situation by taking advantage of
layoutlib 5's ability to override the background. It now uses theme
resolution to find the background color, and paints the previews with
the custom background override to force this color. In addition, if
the theme background is not a color (but a gradient etc), it uses
layoutlib5's new render-drawable support to generate the background,
and it extracts a suitable color from it (currently, the center
pixel.)
This fix also ensures that the foreground color (used to paint labels
for the widgets that cannot be rendered, such as layouts) has a
suitable contrast with the background. After computing the background,
it computes the brightness, and if the foreground and background
differ less than 25% in brightness, then the foreground color is
forced to white or black depending on whether the background is light
or dark.
This changeset also contains a bugfix for a palette initialization
problem where in some cases the palette could come up empty (because
the code which attempts to avoid doing extra work when reloadPalette
is called repeatedly could be tricked by a scenario where the SDK
target does not change but its "have target data" status did.)
The open palette category is now preserved across palette refreshes
(which occur when you change palette modes or category/sorting
options, along with theme and render target changes).
Finally, the changeset also turns off the new window decorations
(system bar, action bar, etc) when generating preview images for both
palette previews and for drag & drop.
Change-Id: I8b8766ad45f2cb6a4a6b79a24c31ed0f08d1e826
Tor Norbye [Mon, 7 Feb 2011 01:50:25 +0000 (17:50 -0800)]
Merge "Add support for adding non-String value resources"
Tor Norbye [Fri, 4 Feb 2011 01:46:42 +0000 (17:46 -0800)]
Add support for adding non-String value resources
The ResourceChooser only supported adding new Strings. This changeset
lets you add other types of value resources -- dimensions, integers,
etc. It will create a new file in res/values/ if necessary, based on
the plural form of the resource name (e.g. for "string" resources it
will create "strings.xml", etc). For existing files, it will add a new
entry to the existing file, using the same indentation as the last
top-level element in the file.
Change-Id: I09272ff52af38a8a7a059d455f398befbe0d1abc
Xavier Ducrohet [Sun, 6 Feb 2011 19:29:14 +0000 (11:29 -0800)]
Merge "Fix possible NPE in legacy callback support."
Xavier Ducrohet [Sun, 6 Feb 2011 18:42:55 +0000 (10:42 -0800)]
Fix possible NPE in legacy callback support.
Change-Id: I5faa155393466e1bc4b2fc1e9417cde91a8be456
Xavier Ducrohet [Sat, 5 Feb 2011 02:03:48 +0000 (18:03 -0800)]
Merge "Add to layoutlib the ability to simply render a Drawable."
Xavier Ducrohet [Sat, 5 Feb 2011 01:28:43 +0000 (17:28 -0800)]
Add to layoutlib the ability to simply render a Drawable.
RenderParams is now a base class. SessionParams extends it
(and contains the layout and the rendering mode which are not
part of the base class).
DrawableParams is used for the new action and adds a reference
to a ResourceValue.
Change-Id: Ieacf4da91fda95df1d25a32ae0953bd9d8028113
Tor Norbye [Fri, 4 Feb 2011 19:59:23 +0000 (11:59 -0800)]
Merge "Support onClick method handlers in Hyperlink navigation"
Xavier Ducrohet [Fri, 4 Feb 2011 19:42:19 +0000 (11:42 -0800)]
Merge "Add app name/icon and current render locale to the LayoutLib API."
Tor Norbye [Wed, 2 Feb 2011 15:58:54 +0000 (07:58 -0800)]
Support onClick method handlers in Hyperlink navigation
This uses the JDT to search for method names matching the required
signature for XML-declarations of method handles, and opens the
method.
It searches first in the Activity classes, then globally.
Change-Id: I378a3abaf16aee28fb6fe6dc304ed061942c3774
Tor Norbye [Fri, 4 Feb 2011 19:13:58 +0000 (11:13 -0800)]
Merge "Prevent java.lang.ArithmeticException in draw9patch"
Tor Norbye [Fri, 4 Feb 2011 17:07:27 +0000 (09:07 -0800)]
Prevent java.lang.ArithmeticException in draw9patch
Initialize the zoom field to 1 instead of the default 0 since
I ran into a scenario where a division by an uninitialized zoom
caused a divide by zero exception.
Exception in thread "AWT-EventQueue-0" java.lang.ArithmeticException:
/ by zero
at com.android.draw9patch.ui.ImageEditorPanel$ImageViewer.checkLockedR
egion(ImageEditorPanel.java:894)
at com.android.draw9patch.ui.ImageEditorPanel$ImageViewer.access$1800(
ImageEditorPanel.java:646)
at com.android.draw9patch.ui.ImageEditorPanel$ImageViewer$3.mouseMoved
(ImageEditorPanel.java:745)
at java.awt.Component.processMouseMotionEvent(Component.java:6397)
Change-Id: I7d2252f07458864d591be91636477ace4b520855
Xavier Ducrohet [Thu, 3 Feb 2011 19:43:14 +0000 (11:43 -0800)]
Add app name/icon and current render locale to the LayoutLib API.
This allows the layoutlib to render system/title/action bars
as a window decor like it would look on the device.
This can be disabled with RenderParams.setForceNoDecor().
(BTW, Params was renamed RenderParams too)
Also minor update to the API by replacing an int with Density
since the enum is now accessible to the API and layoutlib.
Change-Id: Ic37770a9276d12af90c60199a84b04cb64e7c3a1
Tor Norbye [Fri, 4 Feb 2011 16:53:16 +0000 (08:53 -0800)]
Merge "draw9patch tool: improving zoom process."
Raphael Moll [Fri, 4 Feb 2011 02:44:04 +0000 (18:44 -0800)]
Merge "SDK Manager: support extras/vendor/path"
Raphael Moll [Thu, 3 Feb 2011 23:14:14 +0000 (15:14 -0800)]
SDK Manager: support extras/vendor/path
This change makes the SDK manager install new extra
packages into SDK/extras/vendor/path, creating the
folders as needed.
Existing extra packages are not moved when they are updated,
provided that they keep the same 'vendor' and 'path' attributes
in their XML definition.
There is also some support for the form SDK/vendor-path/ that
was introduced by Tools r8 and r9.
SDK Bug: 14493
Change-Id: I28b301a768ea2c8c03573f865520b1b3e85f3868
Keiji Ariyama [Thu, 3 Feb 2011 17:46:15 +0000 (02:46 +0900)]
draw9patch tool: improving zoom process.
Change-Id: Ie4d6408858db5b2bafb76ecb916e6b7c00ba0bb7
Jean-Baptiste Queru [Thu, 3 Feb 2011 15:54:17 +0000 (07:54 -0800)]
Reconcile korg and goog
Change-Id: I10f6dee5046fcf802d5d09668bd61a79506475ae
Xavier Ducrohet [Thu, 3 Feb 2011 03:26:43 +0000 (19:26 -0800)]
Merge "Binary XML editor"
snpe [Sat, 22 Jan 2011 03:15:08 +0000 (04:15 +0100)]
Binary XML editor
The change enable to review xml files from the android.jar file.
It works so that actually open file from
<SDK_HOME>/android-<APILEVEL>/data.
The com.android.ide.eclipse.adt.binaryXml (BinaryXMLDescriber)
content type associates Android resource xml files to the
BinaryXMLMultiPageEditorPart editor.
The editor checks if the file is contained in jar and is so,
convert editor input to XmlStorageEditorInput that handles
corresponding file from Android SDK.
Change-Id: I8596f0d3ca5477a12dc25f551243f125f8e6ba7e
Raphael [Wed, 2 Feb 2011 21:41:18 +0000 (13:41 -0800)]
Merge "SDK: fix win-sdk build errors, make future errors fatal."
Raphael [Wed, 2 Feb 2011 19:57:42 +0000 (11:57 -0800)]
Merge "SDK: fix win-sdk build errors, make future errors fatal." into readonly-korg-master
Raphael [Tue, 1 Feb 2011 20:51:24 +0000 (12:51 -0800)]
SDK: fix win-sdk build errors, make future errors fatal.
Change the shell script to make any error fatal and actually
break the build, like it should.
Change-Id: Iee86b79c5b12a109ccb92dbc81d586c54ac68b5f
Xavier Ducrohet [Wed, 2 Feb 2011 07:04:56 +0000 (23:04 -0800)]
Merge "Add support for CTRL+click on the method in Traceview."