OSDN Git Service

android-x86/sdk.git
13 years agomerge from open-source master
The Android Open Source Project [Mon, 6 Dec 2010 19:58:32 +0000 (11:58 -0800)]
merge from open-source master

Change-Id: I5a05ec6c6dca06af72779d6c4d66efcaba8abd10

13 years agoMerge "Fix ant rules"
Xavier Ducrohet [Mon, 6 Dec 2010 19:33:07 +0000 (11:33 -0800)]
Merge "Fix ant rules"

13 years agomerge from open-source master
The Android Open Source Project [Mon, 6 Dec 2010 19:02:09 +0000 (11:02 -0800)]
merge from open-source master

Change-Id: I1a0aa316d5c5e6b60b62bda9d49875b30a3a6b15

13 years agoMerge "Issue 6894: Eclipse ADT layout editor can't handle custom Views: ClassCastEx...
Xavier Ducrohet [Mon, 6 Dec 2010 18:56:55 +0000 (10:56 -0800)]
Merge "Issue 6894:   Eclipse ADT layout editor can't handle custom Views: ClassCastException (multiple ClassLoaders?)"

13 years agoFix ant rules
Xavier Ducrohet [Mon, 6 Dec 2010 18:48:57 +0000 (10:48 -0800)]
Fix ant rules

- utf-8 is default encoding for java files.
- make encoding, target, source also overridable in the lib rules.

Change-Id: I95a6dfd2a815ea9994638c0a0270381819b75a12

13 years agomerge from open-source master
The Android Open Source Project [Mon, 6 Dec 2010 18:37:07 +0000 (10:37 -0800)]
merge from open-source master

Change-Id: Ieacb30d551bc7061938e8a4914d6cdce8be19efa

13 years agoMerge "LayoutLib API: new log API + updated SceneStatus API."
Xavier Ducrohet [Mon, 6 Dec 2010 18:26:21 +0000 (10:26 -0800)]
Merge "LayoutLib API: new log API + updated SceneStatus API."

13 years agomerge from open-source master
The Android Open Source Project [Mon, 6 Dec 2010 18:10:19 +0000 (10:10 -0800)]
merge from open-source master

Change-Id: I580e61a4427cb759118bb91f9b4db73f5458b136

13 years agoLayoutLib API: new log API + updated SceneStatus API.
Xavier Ducrohet [Mon, 6 Dec 2010 18:05:08 +0000 (10:05 -0800)]
LayoutLib API: new log API + updated SceneStatus API.

Change-Id: I8fe107397c2322cca979e7953d2be5933a59d0bf

13 years agoMerge "ADT: Add support for some new resource types."
Xavier Ducrohet [Mon, 6 Dec 2010 18:04:58 +0000 (10:04 -0800)]
Merge "ADT: Add support for some new resource types."

13 years agoADT: Add support for some new resource types.
Xavier Ducrohet [Sat, 4 Dec 2010 02:59:49 +0000 (18:59 -0800)]
ADT: Add support for some new resource types.

They are not technically new, but we never really
needed them. Turns out we do now (some are used by some widgets).

Also added an assert to detect new types of resources, and a test
to make sure that all resource types and folder types are added
to the folder-res relationship maps.

Change-Id: Ie4b6786ea6de9c69776794750732303b8d68b7bb

13 years agomerge from open-source master
The Android Open Source Project [Fri, 3 Dec 2010 20:11:48 +0000 (12:11 -0800)]
merge from open-source master

Change-Id: Ifcf5e741779a169fce6a2f7eead9863bca927845

13 years agoMerge "LayoutLib API: SceneResult API clean up."
Xavier Ducrohet [Fri, 3 Dec 2010 20:05:02 +0000 (12:05 -0800)]
Merge "LayoutLib API: SceneResult API clean up."

13 years agoLayoutLib API: SceneResult API clean up.
Xavier Ducrohet [Fri, 3 Dec 2010 18:48:32 +0000 (10:48 -0800)]
LayoutLib API: SceneResult API clean up.

Change-Id: I1cb80da55f9ff16d0422eb6c4767448a4691b74b

13 years agomerge from open-source master
The Android Open Source Project [Fri, 3 Dec 2010 05:10:49 +0000 (21:10 -0800)]
merge from open-source master

Change-Id: I83cf84df75963535cd1243ceac9f3df8efb40ddd

13 years agoMerge "Fix drop into ScrollView"
Tor Norbye [Fri, 3 Dec 2010 05:09:38 +0000 (21:09 -0800)]
Merge "Fix drop into ScrollView"

13 years agomerge from open-source master
The Android Open Source Project [Fri, 3 Dec 2010 01:49:45 +0000 (17:49 -0800)]
merge from open-source master

Change-Id: Ib3c186e5a25c6e460459b71efe6905579d7f1739

13 years agoMerge "LayoutLib API: add capability query."
Xavier Ducrohet [Fri, 3 Dec 2010 01:45:49 +0000 (17:45 -0800)]
Merge "LayoutLib API: add capability query."

13 years agoLayoutLib API: add capability query.
Xavier Ducrohet [Fri, 3 Dec 2010 01:42:03 +0000 (17:42 -0800)]
LayoutLib API: add capability query.

Also add a map of new layout params attribute when moving
views from one parent to another.

Change-Id: If12d861d29f1bb0ec59c15d85439630ebdad4b82

13 years agomerge from open-source master
The Android Open Source Project [Fri, 3 Dec 2010 00:21:11 +0000 (16:21 -0800)]
merge from open-source master

Change-Id: I766c3c98e5aede3633eb26878bb1a45d6e8d576a

13 years agoMerge "Contribute android changes to Rename package, Rename Type and Move Type Java...
Raphaël Moll [Fri, 3 Dec 2010 00:13:02 +0000 (16:13 -0800)]
Merge "Contribute android changes to Rename package, Rename Type and Move Type Java refactoring"

13 years agomerge from open-source master
The Android Open Source Project [Thu, 2 Dec 2010 20:27:51 +0000 (12:27 -0800)]
merge from open-source master

Change-Id: Icfea37187b764698744b97ebdaa74d56b4a38cdb

13 years agoMerge "LayoutLib API: fixed wrong camelcase in API."
Xavier Ducrohet [Thu, 2 Dec 2010 20:25:04 +0000 (12:25 -0800)]
Merge "LayoutLib API: fixed wrong camelcase in API."

13 years agoLayoutLib API: fixed wrong camelcase in API.
Xavier Ducrohet [Thu, 2 Dec 2010 20:24:22 +0000 (12:24 -0800)]
LayoutLib API: fixed wrong camelcase in API.

Change-Id: Iddc8681b841d445747f583380c136310d64c41fc

13 years agomerge from open-source master
The Android Open Source Project [Thu, 2 Dec 2010 20:15:01 +0000 (12:15 -0800)]
merge from open-source master

Change-Id: Ie58d7fa7c8969e6230ae573d8550175fe8de786f

13 years agoMerge "LayoutLib API: move add/moveChild API back to using index."
Xavier Ducrohet [Thu, 2 Dec 2010 20:10:02 +0000 (12:10 -0800)]
Merge "LayoutLib API: move add/moveChild API back to using index."

13 years agoLayoutLib API: move add/moveChild API back to using index.
Xavier Ducrohet [Thu, 2 Dec 2010 19:53:05 +0000 (11:53 -0800)]
LayoutLib API: move add/moveChild API back to using index.

Also add an optional data bundle to SceneResult.

Change-Id: I9f9d4ca1f1f05d536a87a005a7939a6d42d0d8a4

13 years agoContribute android changes to Rename package, Rename Type and Move Type Java refactoring
snpe [Sat, 4 Sep 2010 11:18:18 +0000 (13:18 +0200)]
Contribute android changes to Rename package, Rename Type and Move Type Java refactoring

Change-Id: Iad4dd015eb2164dcd888a96bafa256d89711d49d

13 years agomerge from open-source master
The Android Open Source Project [Thu, 2 Dec 2010 18:30:45 +0000 (10:30 -0800)]
merge from open-source master

Change-Id: I75f1967441d6facd65a16ad22b7b0e2d80ea4857

13 years agoMerge "Fix 9-patch padding"
Xavier Ducrohet [Thu, 2 Dec 2010 18:22:53 +0000 (10:22 -0800)]
Merge "Fix 9-patch padding"

13 years agoMerge "LayoutLib API: New SceneStatus enum."
Xavier Ducrohet [Thu, 2 Dec 2010 18:22:34 +0000 (10:22 -0800)]
Merge "LayoutLib API: New SceneStatus enum."

13 years agoFix drop into ScrollView
Tor Norbye [Thu, 2 Dec 2010 17:10:53 +0000 (09:10 -0800)]
Fix drop into ScrollView

Dragging something into a ScrollView wasn't working,
because a ScrollView was not inheriting layout behavior
from its parent rule.

Change-Id: Id8c11fb033921d86a57d0f34bd7c677dbe229cac

13 years agoFix 9-patch padding
Xavier Ducrohet [Thu, 2 Dec 2010 03:00:20 +0000 (19:00 -0800)]
Fix 9-patch padding

Forgot to change one line that test against 1 for
left index, when lines now start at 0.

Change-Id: Ib9a7779d8fd70b3b0c6b243bf67d77aa986b13a6

13 years agoLayoutLib API: New SceneStatus enum.
Xavier Ducrohet [Thu, 2 Dec 2010 02:25:36 +0000 (18:25 -0800)]
LayoutLib API: New SceneStatus enum.

Change-Id: I1c2ac6ddcabe1faeffe3753735b9f87fde683fd3

13 years agomerge from open-source master
The Android Open Source Project [Thu, 2 Dec 2010 00:06:47 +0000 (16:06 -0800)]
merge from open-source master

Change-Id: Ifea6128a9dc6899797611782e79f549ee8b0edd7

13 years agoMerge "Layoutlib API: updated API for insert/move/remove child."
Xavier Ducrohet [Thu, 2 Dec 2010 00:00:52 +0000 (16:00 -0800)]
Merge "Layoutlib API: updated API for insert/move/remove child."

13 years agoLayoutlib API: updated API for insert/move/remove child.
Xavier Ducrohet [Wed, 1 Dec 2010 23:17:07 +0000 (15:17 -0800)]
Layoutlib API: updated API for insert/move/remove child.

Also added some new SceneStatus enums.

Change-Id: I225c58201d81cb1109d1d533fea48b6eacb2e286

13 years agomerge from open-source master
The Android Open Source Project [Wed, 1 Dec 2010 18:52:47 +0000 (10:52 -0800)]
merge from open-source master

Change-Id: I9c840239fae5a0a90da58b9dc1a1d158aed2c601

13 years agoMerge "ADT: The image given to layoutlib now shares data with ImageData"
Xavier Ducrohet [Wed, 1 Dec 2010 18:43:11 +0000 (10:43 -0800)]
Merge "ADT: The image given to layoutlib now shares data with ImageData"

13 years agomerge from open-source master
The Android Open Source Project [Wed, 1 Dec 2010 04:17:29 +0000 (20:17 -0800)]
merge from open-source master

Change-Id: I9a3685de13e5b1c4e03cd2d82f879cd7f1ca8135

13 years agoMerge "ADT: fix java/class name mismatch."
Raphael Moll [Wed, 1 Dec 2010 04:07:08 +0000 (20:07 -0800)]
Merge "ADT: fix java/class name mismatch."

13 years agomerge from open-source master
The Android Open Source Project [Wed, 1 Dec 2010 04:06:05 +0000 (20:06 -0800)]
merge from open-source master

Change-Id: I93e66eb9c9a468d756b1cbcdf100eb0676897f06

13 years agoMerge "ADT: cleanup RenamePackage action."
Raphael Moll [Wed, 1 Dec 2010 03:55:19 +0000 (19:55 -0800)]
Merge "ADT: cleanup RenamePackage action."

13 years agoADT: The image given to layoutlib now shares data with ImageData
Xavier Ducrohet [Tue, 30 Nov 2010 22:57:49 +0000 (14:57 -0800)]
ADT: The image given to layoutlib now shares data with ImageData

We now create a custom BufferedImage that also includes a reusable
ImageData to generate SWT images. While there is still the AWT to
SWT conversion, at least most buffers aren't re-allocated every
time during animation. The only new allocation is the one done
in the Image constructor to pass the ImageData content to the native
image object.

This also fixes the tearing issue introduced in the previous
commit by calling ImageOverlay.setImage from the animation
listener callback. This should not be done in the UI thread
runnable as each rendering reuse the same bitmap.
When the animation listener callback returns, the image
will be reused for a new rendering so it's content will
change.

Also fixes the windows rendering by computing the proper
band offset based on the SWT palette Data.

Change-Id: Id57a3696bd92441271f6bee9681edefd12140b02

13 years agomerge from open-source master
The Android Open Source Project [Tue, 30 Nov 2010 23:04:59 +0000 (15:04 -0800)]
merge from open-source master

Change-Id: Ife0027c5b18435f5188202f801ef49e31cd5c01a

13 years agoMerge "ADT/Layoutlib: New API to let the caller instantiate the bitmap."
Xavier Ducrohet [Tue, 30 Nov 2010 23:01:03 +0000 (15:01 -0800)]
Merge "ADT/Layoutlib: New API to let the caller instantiate the bitmap."

13 years agoADT/Layoutlib: New API to let the caller instantiate the bitmap.
Xavier Ducrohet [Tue, 30 Nov 2010 01:49:19 +0000 (17:49 -0800)]
ADT/Layoutlib: New API to let the caller instantiate the bitmap.

This allows us to use a bitmap more compatible with SWT.

In ADT's case, because the bitmap needs to be converted to SWT
before being displayed, we create a BufferedImage using a byte[]
instead of a int[] so that we can simply do an array copy.

Also, we reuse the generated BufferedImage unless the size changed,
which lets us see less GC during animation playback.

Change-Id: I0062a4f4442ff6469cf0ad4f501c1fbe8c719400

13 years agoADT: fix java/class name mismatch.
Raphael Moll [Tue, 30 Nov 2010 22:43:55 +0000 (14:43 -0800)]
ADT: fix java/class name mismatch.

Change-Id: Id0e539be1873904245f50b3bcd861f171360a990

13 years agomerge from open-source master
The Android Open Source Project [Tue, 30 Nov 2010 20:21:41 +0000 (12:21 -0800)]
merge from open-source master

Change-Id: Ie021e68a089f09caf7fafc54fee5daa06fd271f5

13 years agoMerge "Move WST doc to sdk/docs."
Raphael Moll [Tue, 30 Nov 2010 20:15:04 +0000 (12:15 -0800)]
Merge "Move WST doc to sdk/docs."

13 years agoMove WST doc to sdk/docs.
Raphael Moll [Mon, 29 Nov 2010 23:30:07 +0000 (15:30 -0800)]
Move WST doc to sdk/docs.

Change-Id: I53d7838b557da43a9194ddb13ec1bcd0f1119a36

13 years agoMerge "ADT string refactoring: replace in all files."
Raphael Moll [Tue, 30 Nov 2010 20:14:10 +0000 (12:14 -0800)]
Merge "ADT string refactoring: replace in all files."

13 years agoADT string refactoring: replace in all files.
Raphael Moll [Sun, 28 Nov 2010 07:18:24 +0000 (23:18 -0800)]
ADT string refactoring: replace in all files.

When doing an extract string either from Java or XML:
- can scan/replace in all other Java files.
- can scan/replace in all other XML files.
- in Java, also replace in assignements.
- in XML, also replace existing string name if already defined.

Change-Id: Ifeef5fd444c2c18b9c071955b8e8567d6515ea95

13 years agomerge from open-source master
The Android Open Source Project [Tue, 30 Nov 2010 20:02:05 +0000 (12:02 -0800)]
merge from open-source master

Change-Id: I56b879de8f41047eb52e7fcefd1a46119c7cbc2e

13 years agoMerge "Replace reflection with Sdk.makeRelativeTo"
Tor Norbye [Tue, 30 Nov 2010 19:37:08 +0000 (11:37 -0800)]
Merge "Replace reflection with Sdk.makeRelativeTo"

13 years agoReplace reflection with Sdk.makeRelativeTo
Tor Norbye [Tue, 30 Nov 2010 17:05:11 +0000 (09:05 -0800)]
Replace reflection with Sdk.makeRelativeTo

Replace reflection-based invocation of IPath.makeRelativeTo
(which is not available in Eclipse 3.4) with usage of
Sdk.makeRelativeTo, our own copy of the equivalent code.

Change-Id: If67d985b96b845d85cf7fc13d47e9adeee49e8a8

13 years agoMerge "The rendering target mode should be preserved across IDE sessions"
Tor Norbye [Tue, 30 Nov 2010 18:52:33 +0000 (10:52 -0800)]
Merge "The rendering target mode should be preserved across IDE sessions"

13 years agoThe rendering target mode should be preserved across IDE sessions
Tor Norbye [Mon, 29 Nov 2010 23:38:05 +0000 (15:38 -0800)]
The rendering target mode should be preserved across IDE sessions

This changeset fixes the bug where the rendering target is not
preserved across IDE sessions the way the other configuration settings
seem to be.

Change-Id: I56fc82b1de18c162f62e80d1ba96b54d697b2607

13 years agomerge from open-source master
The Android Open Source Project [Tue, 30 Nov 2010 02:10:13 +0000 (18:10 -0800)]
merge from open-source master

Change-Id: Ib8ef5125a7206364770f9b28a5923843ed7898a5

13 years agoMerge "ADT: more animation stuff."
Xavier Ducrohet [Tue, 30 Nov 2010 01:57:25 +0000 (17:57 -0800)]
Merge "ADT: more animation stuff."

13 years agoADT: more animation stuff.
Xavier Ducrohet [Mon, 29 Nov 2010 19:45:47 +0000 (11:45 -0800)]
ADT: more animation stuff.

Change-Id: I020342a4fe205161328f22e9dabb0b03343677b5

13 years agomerge from open-source master
The Android Open Source Project [Tue, 30 Nov 2010 01:19:19 +0000 (17:19 -0800)]
merge from open-source master

Change-Id: Ifda9d2cdfeb44b85ed5ad1737cfca1fc42415101

13 years agoMerge "Rename some layout editor classes"
Tor Norbye [Tue, 30 Nov 2010 01:07:24 +0000 (17:07 -0800)]
Merge "Rename some layout editor classes"

13 years agoRename some layout editor classes
Tor Norbye [Mon, 29 Nov 2010 23:54:33 +0000 (15:54 -0800)]
Rename some layout editor classes

This changeset contains only renaming of some classes (and a couple
of >100 column adjustments), no semantic changes.

The name changes are:

BaseView => BaseViewRule
BaseLayout => BaseLayoutRule
ScaleInfo => CanvasTransform
CanvasSelection => SelectionItem
PropertySheetPage2 => PropertySheetPage
OutlinePage2 => OutlinePage

Change-Id: I14d8c711b12154f4fcb2169129fd553e31fdab84

13 years agomerge from open-source master
The Android Open Source Project [Mon, 29 Nov 2010 23:31:50 +0000 (15:31 -0800)]
merge from open-source master

Change-Id: I5ac19298cc7a959c840258299d1179f3f06146ce

13 years agoMerge "ADT: rework extract string refactoring."
Raphael Moll [Mon, 29 Nov 2010 23:23:39 +0000 (15:23 -0800)]
Merge "ADT: rework extract string refactoring."

13 years agomerge from tools_r8
The Android Open Source Project [Mon, 29 Nov 2010 23:19:12 +0000 (15:19 -0800)]
merge from tools_r8

Change-Id: I7553de468542889488ac4dba53a23ae876ff5526

13 years agoMerge "Win SDK: Split the win-sdk makefile and script into 2 parts. DO NOT MERGE...
Raphael Moll [Mon, 29 Nov 2010 23:07:35 +0000 (15:07 -0800)]
Merge "Win SDK: Split the win-sdk makefile and script into 2 parts. DO NOT MERGE." into tools_r8

13 years agoWin SDK: Split the win-sdk makefile and script into 2 parts. DO NOT MERGE.
Raphael Moll [Fri, 12 Nov 2010 00:03:07 +0000 (16:03 -0800)]
Win SDK: Split the win-sdk makefile and script into 2 parts. DO NOT MERGE.

[Merge Change Ic94d261b from master_open into tools_r8 to fix broken SDK build.]

The main makefile+scripts to build the Windows SDK is still
in development/build/tools. However it defers to a new
matching set of files here in sdk/build to build and
package things that depend on the sdk.git or external/qemu.git.

This will make it easier for us to prepare SDKs based on
a tools_rN branch that isn't cut at the same time than the
platform branch.

This is a multi-part changeset. The other part is in
development.git.

Change-Id: I8072bf59ee1af57826a8bafa0103afd6fe3fc858

13 years agoADT: rework extract string refactoring.
Raphael Moll [Sat, 27 Nov 2010 05:56:50 +0000 (21:56 -0800)]
ADT: rework extract string refactoring.

This updates the code that inserts new <string> elements
in a <resources> XML, replacing my micro-XML stream-oriented
parser by one based on the WST SSE region model.

Also added a mini doc to explain the WST region model, since
there's no doc anywhere as far as I can see. I choose to place
this ad-hoc doc where I need it rather than in a generic place
-- it's not a generic doc, more a reminder of the API.

Change-Id: Icd39390c4124ce0ec21322ff223390ac4a06f431

13 years agomerge from open-source master
The Android Open Source Project [Mon, 29 Nov 2010 20:04:37 +0000 (12:04 -0800)]
merge from open-source master

Change-Id: I611ccb2c4016db79dcfc6dcede7938706a7a4e82

13 years agoMerge "ADT: Animation preparation."
Xavier Ducrohet [Mon, 29 Nov 2010 19:56:38 +0000 (11:56 -0800)]
Merge "ADT: Animation preparation."

13 years agoADT: Animation preparation.
Xavier Ducrohet [Thu, 25 Nov 2010 00:41:53 +0000 (16:41 -0800)]
ADT: Animation preparation.

Update layoutlib API to work better with the new scene
locking mechanism (for concurrent renderings), new error
types in SceneResult, and updated Animation listener.

ADT changes to record the view object in CanvasViewInfo,
and the current LayoutScene in ViewHierarchy.

Added a test menu item to start an animation. This
is temporary and will be fixed later.

Change-Id: I67df2d116afdfd23c093e4645d4a0f99695c5d95

13 years agomerge from open-source master
The Android Open Source Project [Mon, 29 Nov 2010 17:42:30 +0000 (09:42 -0800)]
merge from open-source master

Change-Id: I247411eb40714c4500dd79b175b7b7caecbfb757

13 years agoMerge "Extract layout constants into a separate constants class"
Tor Norbye [Mon, 29 Nov 2010 17:31:38 +0000 (09:31 -0800)]
Merge "Extract layout constants into a separate constants class"

13 years agomerge from open-source master
The Android Open Source Project [Mon, 29 Nov 2010 15:10:10 +0000 (07:10 -0800)]
merge from open-source master

Change-Id: I7e8cece37a2acab21ba85d0370b1aef118fcf23c

13 years agoMerge "Add unit test configuration for moreUnit"
Tor Norbye [Mon, 29 Nov 2010 15:01:13 +0000 (07:01 -0800)]
Merge "Add unit test configuration for moreUnit"

13 years agomerge from open-source master
The Android Open Source Project [Mon, 29 Nov 2010 04:38:15 +0000 (20:38 -0800)]
merge from open-source master

Change-Id: I345430ffb276222c850a15bbab59438a717de091

13 years agoExtract layout constants into a separate constants class
Tor Norbye [Wed, 24 Nov 2010 18:07:08 +0000 (10:07 -0800)]
Extract layout constants into a separate constants class

Combine the constants in BaseView and a LayoutConstants class over in
the internal packages into a new LayoutConstants class, and reference
these constants elsewhere (statically imported). This was suggested by
in the feedback to review #18971.

Change-Id: I40b76f8f6045c34a98f7a2363f96d2942360d1f3

13 years agoMerge "Fix build. Wrong import package!"
Tor Norbye [Mon, 29 Nov 2010 04:29:32 +0000 (20:29 -0800)]
Merge "Fix build. Wrong import package!"

13 years agoFix build. Wrong import package!
Tor Norbye [Mon, 29 Nov 2010 04:25:50 +0000 (20:25 -0800)]
Fix build. Wrong import package!

Fix build. Wrong import package!

Change-Id: Id96450a7f5553c88d0d5c0996ff5c378ea03bbc3

13 years agomerge from open-source master
The Android Open Source Project [Mon, 29 Nov 2010 03:41:51 +0000 (19:41 -0800)]
merge from open-source master

Change-Id: Iac4c66859768cc745b274985a19accb6273e9320

13 years agoMerge "Show images during canvas drags"
Tor Norbye [Mon, 29 Nov 2010 03:35:08 +0000 (19:35 -0800)]
Merge "Show images during canvas drags"

13 years agoShow images during canvas drags
Tor Norbye [Fri, 19 Nov 2010 19:29:34 +0000 (11:29 -0800)]
Show images during canvas drags

When you drag in the canvas, show a drag image for the view being
dragged. The drag image is using 30% translucency such that it does
not obscure the drag feedback below it.

We're grabbing the image data right out of the rendered scene and just
copying out the rectangles for the bounds of each selected item. This
has to take the canvas zoom into effect too.

While in the zoom code I modified the Zoom In and Zoom Out buttons to
only zoom by a factor of 20% rather than 100%.

I cleaned up the Pair class slightly; in an earlier version of this
fix I was using it to pass back two results from the rectangle
painting function; I don't do that anymore but the Pair might as well
be cleaned up.

(By the way, as suggested in review #19035 I rewrote the FIXME comment
related to resource lookup and put it in this CL rather than revising
the other one.)

Change-Id: Iabe6e29c4073252f5046e3c26b56f4e7674a3f3a

13 years agoADT: cleanup RenamePackage action.
Raphael Moll [Sat, 27 Nov 2010 06:43:40 +0000 (22:43 -0800)]
ADT: cleanup RenamePackage action.

Move it to the refactoring package.
Split action code from refactoring code.
No change in functionality nor invocation (via
context menu project > Android Tools.)

Change-Id: Ieec945b37fdd33d497bf745d207eb5d6b5445d9f

13 years agomerge from open-source master
The Android Open Source Project [Wed, 24 Nov 2010 22:25:25 +0000 (14:25 -0800)]
merge from open-source master

Change-Id: I0745cd709b0a481f12c29cf8858b51134a1265d7

13 years agoMerge "Unit test fixes"
Tor Norbye [Wed, 24 Nov 2010 22:13:26 +0000 (14:13 -0800)]
Merge "Unit test fixes"

13 years agoUnit test fixes
Tor Norbye [Wed, 24 Nov 2010 17:27:54 +0000 (09:27 -0800)]
Unit test fixes

First, the AddonsListFetcherTest#testLoadSample_1 was failing on the
Mac, because the source code contained non-ASCII unicode characters,
and the encoding differs between Windows, Linux and Mac -- and on the
Mac the characters were garbage (not the intended Japanese
characters). Fixed by using unicode escape sequences to define the
expected output instead.

Second, rename the AbstractLayoutTest to LayoutTestBase; the test
runner (for plugins, not unit tests) was assuming this was a test case
(even though it's an abstract class!) so it was emitting a warning
about the class containing no test cases. This is simply a base class
for all the individual layout tests defining a bunch of useful
inherited shared behavior, so rename to avoid the warning.

Change-Id: I6e29316c5644db35051218aef8b99ac41ab0cda4

13 years agoAdd unit test configuration for moreUnit
Tor Norbye [Wed, 24 Nov 2010 16:25:53 +0000 (08:25 -0800)]
Add unit test configuration for moreUnit

Eclipse doesn't have a builtin mechanism to jump between a class and
its test, as well as a way to run tests associated with a given
class. There is however a plugin for this, "moreUnit".

Our projects have split off our unit tests in a separate project,
which requires some per-project configuration to tell moreUnit where
to look for tests. This information has to live with the project
rather than in my workspace, so I'm checking in the configuration file
- it is harmless if you don't have moreUnit but useful if you do.

Change-Id: Id29c46e2eaa89f2ad530c2b24700db28cc823b3b

13 years agomerge from open-source master
The Android Open Source Project [Wed, 24 Nov 2010 04:57:09 +0000 (20:57 -0800)]
merge from open-source master

Change-Id: I66a3b8c183bee0f8efc86f53a7dfd9004ed75867

13 years agoMerge "Replace IPath.makeRelativeTo call with reflection"
Tor Norbye [Wed, 24 Nov 2010 04:54:50 +0000 (20:54 -0800)]
Merge "Replace IPath.makeRelativeTo call with reflection"

13 years agoReplace IPath.makeRelativeTo call with reflection
Tor Norbye [Wed, 24 Nov 2010 04:50:33 +0000 (20:50 -0800)]
Replace IPath.makeRelativeTo call with reflection

I broke the build because on Eclipse 3.4 there is no makeRelativeTo
method on IPath. This replaces that call with reflection. This won't
work on 3.4, but it's a quick fix for the broken build.

Change-Id: Ia917cf5a745f76bbb96f59fae93e2a4fc4f5f900

13 years agomerge from open-source master
The Android Open Source Project [Wed, 24 Nov 2010 01:23:15 +0000 (17:23 -0800)]
merge from open-source master

Change-Id: I0a6441de70a779781b68c12433b2390e600c5d2e

13 years agoMerge "Open included layout on double click"
Tor Norbye [Wed, 24 Nov 2010 01:21:40 +0000 (17:21 -0800)]
Merge "Open included layout on double click"

13 years agomerge from open-source master
The Android Open Source Project [Wed, 24 Nov 2010 00:11:18 +0000 (16:11 -0800)]
merge from open-source master

Change-Id: If98e561ae25793be21b97ef3f16cf0f6f854d6f4

13 years agoMerge "Fix nine patch size."
Xavier Ducrohet [Wed, 24 Nov 2010 00:06:41 +0000 (16:06 -0800)]
Merge "Fix nine patch size."

13 years agoMerge "Remove some asserts."
Raphael Moll [Wed, 24 Nov 2010 00:02:36 +0000 (16:02 -0800)]
Merge "Remove some asserts."

13 years agoOpen included layout on double click
Tor Norbye [Mon, 22 Nov 2010 05:37:20 +0000 (21:37 -0800)]
Open included layout on double click

On double click, if the clicked area originates from an <include>'ed
XML file, open the included layout in the editor. Also opens
files in the @android: namespace if available, for example if you
inculde @android:layout/select_dialog_multichoice.

Change-Id: I215c411257717f7b97e7b0ee1d5498c318cdb04d

13 years agoRemove some asserts.
Raphael Moll [Tue, 23 Nov 2010 23:23:49 +0000 (15:23 -0800)]
Remove some asserts.

Change-Id: I8458dc9237506c542c766e6119261ae4e13b453b

13 years agomerge from open-source master
The Android Open Source Project [Tue, 23 Nov 2010 22:59:05 +0000 (14:59 -0800)]
merge from open-source master

Change-Id: I559b431e4b45fd51fe5cd230e2b8206469cbf4ca