History log of /frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
67f948f353b652d3373c7bdb0c2a8715e8b4e9f6 10-Jul-2017 Diego Perez <diegoperez@google.com> Fixes animated vector drawable test

The frame cleanup in the Choreographer was not cleaning the
AnimationHandler.

Test: Fixes existing test
Change-Id: I3f80d3518c7aab1ffebd6f3f2045874be3d32daf
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
878037d8f533ca51121d0dc035181e5ecb2762cf 07-Jul-2017 Diego Perez <diegoperez@google.com> Clean-up any choreographer callbacks after render

After calling render, any animation callbacks need to be removed so they
are not executed in the next frame.

Test: Existing tests pass
Bug: 63380076
Change-Id: If3974d84b47a48ee7c769f31c6c179ccc6e8f7c2
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
f59abd4701479e496d955cb8521a813e535aefa3 04-Jul-2017 Jerome Gaillard <jgaillard@google.com> Add support for FragmentTabHost from the support library

FragmentTabHost objects need to have their "setup" method called after
inflation, and it is not the same method as the one from TabHost.

Bug: 37128407
Test: manual testing with Studio
Change-Id: I3fae79af613774ed7fdf5c332e4eca616254084c
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
b863a416cfe16c71fa3165a5550380288906b9bf 29-Jun-2017 Diego Perez <diegoperez@google.com> Remove a few unused methods

Test: Existing tests pass
Change-Id: Ifc7bca7571cd4648ac80fccdc49ecc3eaa52f514
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
6c76b093911de7222d03e03aa94e13136808d45a 16-May-2017 Diego Perez <diegoperez@google.com> Moved WindowManager initialization to the RenderAction

RenderDrawable also relies on the WindowManager being correctly
initialized. This CL moves the common initialization to a the common
init call in RenderAction

Bug: 38262526
Test: Tested from Studio RenderTaskTest. Existing tests pass
Change-Id: I42a20c56eb0016fb74410015b776e4bc3fe53f13
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
bca9e5623c820c9aa1e959e3874442de9a9a6c32 03-Feb-2017 Diego Perez <diegoperez@google.com> A bit of warning cleanup

Test: Covered by existing tests
Change-Id: I3f27540efdb47e3c1db02f85c67c81e36d159a79
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
f1a0a823499fc0a464e18b8eba992b32d14b8bb1 21-Nov-2016 Diego Perez <diegoperez@google.com> Call layout when doing an only-measure pass

Test: Modified testScrolled to check the only-measure behaviour
Change-Id: Ie86c329e0f7d9135d53274977e24f431f5edc201
(cherry picked from commit 2d657bc344717281e470430b05adaa32fbd0af00)
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
7bb8850ed2076ebf8442a5fdb68ec9a8f53623e0 28-Oct-2016 Diego Perez <diegoperez@google.com> Add measure only call to layoutlib

Change-Id: Ie36a5218a0356f394356fce2b327f35f57a26951
(cherry picked from commit 7a6d487f9254aaa175976e5832cea78a1a79c9e7)
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
e48b02f441a8a90f0a1618ed2116c83441aae3bd 14-Sep-2016 Diego Perez <diegoperez@google.com> Account for horizontal offset when calculating borders

Before this CL, only vertical offset was used when calculating the view
bounds in the ViewInfo object. This caused that in some cases where padding
was used, the bounds didn't match the actual output.

Bug: http://b.android.com/222231
Change-Id: I4889caee2811556442dc6ec97c1307661a798392
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
b321cbfeb00723a6d18746f0d5bbcfd6b6602f6e 16-May-2016 Diego Perez <diegoperez@google.com> Add support for appcompat preferences rendering

This CL adds new code to handle the support preferences classes. If the
support library is not installed in the project, it will use the regular
inflater as fallback.
This also ports the hotfix that used to live in Android Studio to
support "*Compat" preferences to the regular BridgePreferenceInflater.

Change-Id: I8ff34455d46b6188f0931e821d329224f6a0a343
(cherry picked from commit 90110d50f4c48ea7ec196a068f55b0eb86114c46)
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
5cee4833e93b8f9aa9f38815eaa342fab9cc8658 25-May-2016 Diego Perez <diegoperez@google.com> Add warning when RTL is used but not supported/enabled

Change-Id: Ic01a3b276ff0ecf87ee34e164e494698ec37c1f4
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
259504c6368e44adfffd4f56f7a838b2d5e73ff9 10-May-2016 Diego Perez <diegoperez@google.com> Fix VectorDrawable_Delegate and DrawerLayout

Modify the nDraw call that has been changed in the framework to return
an int with the number of pixels allocated.
Modify the animation initialization render call to use the actual
measured size (instead of 0,0) so the DrawerLayout is setup
correctly.

Change-Id: I198de05206382c6489056f7c3d9a1d328864321c
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
6e1b7e3e383e12d36356841130647b846e4c8467 12-Apr-2016 Diego Perez <diegoperez@google.com> Separate measure so it can only run inflate if needed

This allows to only do inflate + measure and not to render.

Change-Id: I4be08513728b656f699e9115e14cf618d95b538a
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
18be29a3d14f1b3e840e8ee88b5a1951a6f6e9c8 14-Apr-2016 Deepanshu Gupta <deepanshu@google.com> Return complete properties map instead of per view

Change-Id: Ib7c71606d1bf43bbaa80f5601a8508d7aa49d953
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
d94cff87ccbae3042dc4c328863619f4794cc8a5 12-Apr-2016 Deepanshu Gupta <deepanshu@google.com> Add post resolve property values

Change-Id: Ia86b7dfc479cc5313cce36b6b3066fbb1d00c292
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
45887e40525f968dbfe18725bb181f5b86558062 06-Apr-2016 Deepanshu Gupta <deepanshu@google.com> Merge "Clear ThreadLocal storage from Choreographer" into nyc-dev
405d10472d7b8ba7ff86f46e734195128709a829 06-Apr-2016 Deepanshu Gupta <deepanshu@google.com> Clear ThreadLocal storage from Choreographer

Change-Id: I5abb5c68a635e7808b0a036ba4d9971cd0139aa3
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
0685ab35ad78094ceb2d9fb0583e2cadd1968c90 04-Apr-2016 Diego Perez <diegoperez@google.com> Separate inflate from render step

Up until now, createSession will always do a first render. With the new
embedded layoutlib we might want to actually call objects from the
inflated view before doing a render or even do it between renders.
This allows to avoid the first initial render unless needed.

This CL also fixes a bug that would only happen when multiple render
calls are issued. When scrolling, use scrollTo since we likely want
absolute positions, not relative.

Change-Id: I4b1d8388d7218a8de33e25cd546fd965fcb07dc7
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
777163c3facaed668b43061d726a572fd58f6f60 04-Mar-2016 Diego Perez <diegoperez@google.com> Account for parent scroll position

When calculating the ViewInfo bounding box, account for the parent
scroll position.
Also make renderAndVerify return a RenderResult to verify some data
about the result layout.

Change-Id: I965e393c49b5030c80083daf5e058fa31400ce93
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
e4cf18face6980b0c7ac42761512cd93b89927c3 23-Feb-2016 Diego Perez <diegoperez@google.com> Implement native methods in VectorDrawable

Most of the VectorDrawable implementation has been moved to native code.
This CL implements most of the required functionality that existed in
Marshmallow.

Change-Id: I009bcd5c166f2bfa0795d2718fabab4a549eba9f
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
95eceea4f12c4f0e5170b1a14658f23e87e343d5 01-Feb-2016 Diego Perez <diegoperez@google.com> Fix Canvas memory leak

Every RenderSession would call the AttachInfo.setAttachInfo but wouldn't
issue a View.dispatchDetachedFromWindow.
This caused some Canvas to be slowly leaked in the DelegateManager in
every session.

Change-Id: Iec418a86f5c5e55c2a2860ef945268c51c0e8173
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
344cbc9b8ed3ae06a5b183d684df0399fef59879 02-Dec-2015 Deepanshu Gupta <deepanshu@google.com> Revert "Revert "Add support for Choreographer animations""

This reverts commit 8390b2ac85765e768d4b685077a96e6395d208b4.

The build break should now be fixed by
cbb1ba7f493116882b79578ec68646366f29cde4

Change-Id: I9bf21cc6dbdb5d515a665384dc6dfa464c3e6e2e
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
31bedba360a3bba732b63566ddb0521f1765753e 02-Dec-2015 Diego Perez <diegoperez@google.com> Revert "Add support for Choreographer animations"

This reverts commit 29ed07524ce0fc2e5950f5340d306247145d0efa.
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
67edd77d7aae7770b691b45e00c67d7f42e0316d 14-Oct-2015 Diego Perez <diegoperez@google.com> Add support for Choreographer animations

First step to add support for Choreographer based animations. The
Choreographer_Delegate avoid using a handler so the animation callbacks
can be called on-demand (by using doFrame). This allows things like
frame by frame animation or selecting a specific frame, and doesn't need
a separate thread to run.

The CL also changes the System and SystemClock implementations to allow
to set specific times. Because animations heavily rely on the system
time, this allows controlling it. It can also be useful to ensure that
the rendering produces a deterministic result when using controls like
the Calendar widget.

Change-Id: Iff221d2698a82075cafbb60f341be01741f7aa13
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
f4978e031c3ad565f02d5a4c65f87ae4477f3613 17-Nov-2015 Deepanshu Gupta <deepanshu@google.com> Revert "LayoutLib: Fix true transparency in status bar."

This reverts commit 4eb298a941c3f465944b63f1a06518e911681c89.

Even though this is techinically closer to what the framework does, the
fix is not complete. As a result, it looks worse when using AppCompat
themes. Revert the change for the release.

Change-Id: I67c1002ea17dee7234d78e2d13aab876467bd70f
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
7194aa36df4ce26df35531a02a37498430fdd2b3 22-Sep-2015 Diego Perez <diegoperez@google.com> Avoid calling scrollBy(0,0) on render

Usually scrollBy(0, 0) won't have any effect but when called on the
NumberPicker but, in some cases, it seems to cause an endless loop.
When called from layoutlib, this will hold the read lock causing all
operations trying to acquire the write lock to block forever.

Bug: http://b.android.com/182506
Change-Id: Ib25427d3f32d804d1c481d979795eee71fbdbc6d
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
c14ba383c0b41f6aaeb17cc7074fd272de4efd43 22-Aug-2015 Deepanshu Gupta <deepanshu@google.com> LayoutLib: Fix true transparency in status bar.

Change-Id: Ieedf23cde9ab3e36c77501d30cc7e808e66a4782
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
c4234314ceb25ca56b7db8d120ce9669cde74b06 24-Jul-2015 Deepanshu Gupta <deepanshu@google.com> Merge changes I9c294329,Ie4db5d28 into mnc-dev

* changes:
LayoutLib: translucent sys ui bars
Move the layout code out of RenderSessionImpl.
300f4893351a9974fa3380c513b29d4a7883cd74 23-Jul-2015 Deepanshu Gupta <deepanshu@google.com> LayoutLib: translucent sys ui bars

Change-Id: I9c294329fc78418c505a5115bc9c07da29595af2
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
8b4b0ce31acc9f57c7df5b1c70183a6655c1edfb 22-Jul-2015 Deepanshu Gupta <deepanshu@google.com> Move the layout code out of RenderSessionImpl.

Also, switch to using a RelativeLayout from a LinearLayout. The change
will help in future when enabling transparent status and nav bar.

Change-Id: Ie4db5d28313f1c5ef775603788598a56409f92c7
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
575e1502db87a2f078479d3c2837c4bc6c208ec8 21-Jul-2015 Diego Perez <diegoperez@google.com> resolved conflicts for merge of 112d8a36 to mnc-dev

Change-Id: Ic9511a57db8a96f54dba0704800789a8602b9dd2
9028fa93da0f9c7dad2176de347cd6e705084c9f 11-Jul-2015 Deepanshu Gupta <deepanshu@google.com> Add tools:openDrawer to open a DrawerLayout.

Store a list of drawer layouts with tools:openDrawer encountered and
call openDrawer on them during the post-inflation processing.

Change-Id: Idee299a9af1bb106509a03bb2e8424c372b93dc5
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
baf88de1f5c435a788f6c38720354b2dbaa19e60 07-Jul-2015 Deepanshu Gupta <deepanshu@google.com> Implement tools:list_item for RecyclerView.

It's now possible to use tools:list_item attribute for RecyclerView to
point to a default layout, rather than always using a TextView.

Change-Id: I5d522b2f0ca38b420fddfcb0f73a26d95707da79
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
c46c84ee673934f340b27b40366a5a61669a4a1e 05-Jun-2015 Jens Ole Lauridsen <jlauridsen@google.com> Support AppBar from Material Design.

This CL is a start for making the design able to render the AppBar.
We are still missing support for: system menu and the app icon.

Change-Id: I19600f8ee1e7e6492186a0b7ae7fb38c82e15c02
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
92d9c3fa220868d6641b5831b24a0a72af7c6751 02-Jun-2015 Diego Perez <diegoperez@google.com> Render to measured size when using expand mode

When using RenderingMode.V_SCROLL or RenderingMode.H_SCROLL, if the
screen size is smaller than the measured size but as large as the
desired size, the layout will render incorrectly and won't expand.
This changes that to expand to at least the size of the screen.

Added tests for the V_SCROLL and H_SCROLL modes.

Bug: http://b.android.com/174928
Change-Id: I22686903560775e2e4f362af1d7b50c9b985467d
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
442aee6bc1abfb143dcfa1ba60d696e576d066c4 22-May-2015 Deepanshu Gupta <deepanshu@google.com> LayoutLib: Change nullity annotations.

Switch from using tools nullity annotations (com.android.annotations)
to android framework annotations (android.annotation).

A new sdk-common prebuilt is required for LayoutLib tests. The new
sdk-common requires an updated tools-common. The updated tools-common
doesn't have nullity annotations. So, instead of adding the annotation
dependency, just reuse the platform ones. This also paves the way to
include other platform annotations like IdRes etc.

Change-Id: I87b8f767d3681d914abe7d1329e26a87f49f50a7
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
fc660ea2df3361eab59461f3b6b8c9dcfe1f8db4 07-May-2015 Diego Perez <diegoperez@google.com> am 9efcb308: am 21246bd9: am 8e75e307: am 1bc7fb2d: Merge "Fix isThemeAppCompat NPE when using an invalid theme" into lmp-mr1-dev

* commit '9efcb308615c0adaf418d430adabea3d271bcbb4':
Fix isThemeAppCompat NPE when using an invalid theme
1316e10031fb0f023c1d0efb7b7a10a95e86b79c 07-May-2015 Deepanshu Gupta <deepanshu@google.com> am b2951490: am b19325be: am 2e3c41a4: am 92e79868: Merge "Fix title bar showing when not required." into lmp-mr1-dev

* commit 'b2951490eabf71e14c8fc5d50397adf869a2a291':
Fix title bar showing when not required.
873f231ca55ffe6cc1b6b02905e095558ac0e83d 07-May-2015 Diego Perez <diegoperez@google.com> Merge changes I60c09f33,Ie0134c2b into lmp-mr1-dev

* changes:
Add new parameter to the render method to allow forcing a measure pass.
Avoid caching mImage on the main render loop and use clipping.
89c46745a23104de382beb4fcaf1ce43ad3795f6 07-May-2015 Deepanshu Gupta <deepanshu@google.com> Merge "RecyclerView in LayoutLib: better XML attrs." into lmp-mr1-dev
b739af0b034319574b72643319b2a0f13cfef01e 07-May-2015 Diego Perez <diegoperez@google.com> Merge "Fix isThemeAppCompat NPE when using an invalid theme" into lmp-mr1-dev
245f50d5b14c2dcbf5037fd355151df5970b1584 05-Nov-2014 Diego Perez <diegoperez@google.com> Add new parameter to the render method to allow forcing a measure pass.

Change-Id: I60c09f3375fc85c257a449f4372220741e01db54
(cherry picked from commit c13aa0c035cd226d27323bc0e533632ba32f6a84)
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
b876e08457679838372e52ae7e42bdd90b39a380 16-Feb-2015 Diego Perez <diegoperez@google.com> Avoid caching mImage on the main render loop and use clipping.

+ Added a session flag that avoids caching mImage. This is useful when
mImage is just a Graphics2D wrapper that might change at any time.
+ Make GcSnapshot aware of the clipping so it doesn't need to render the
whole area if not needed.

Change-Id: Ie0134c2bc2741b5fa6648313864c851bbac066cf
(cherry picked from commit 2c5e85b303077d2120b428bd4c7e6ecb6970935b)
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
3da4ded958f2e1d5a7ffbddd62b46cf179e61fe9 21-Apr-2015 Diego Perez <diegoperez@google.com> Fix isThemeAppCompat NPE when using an invalid theme

When the theme does not longer exists on the Android Studio side,
getDefaultTheme will return null causing isThemeAppCompat to crash.

Change-Id: I5a5c17126dce72e9872522643219b9438666bc04
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
cb40f2cb35d559d9ea60382b6dee80022c851124 31-Mar-2015 Deepanshu Gupta <deepanshu@google.com> RecyclerView in LayoutLib: better XML attrs.

- RecyclerView now supports XML attributes natively. Thus, remove the
custom support via tools attribute. Users with older versions of
RecyclerView should update.
- Add Context.getPackageName() support used by RecyclerView.
- Update SessionParamsFlags with the new changes and rename it to
RenderParamsFlags.

The attribute behaves slightly different from the original tools
attribute. For usage, see commit 044b5b61e96 in frameworks/support.

Change-Id: I12073e37a2ba411558ca1d3e30c399e3d9a0b144
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
2464a94e51e32f38613b86d4b1a995e2cf2d33e3 16-Apr-2015 Deepanshu Gupta <deepanshu@google.com> Fix title bar showing when not required.

Bug: http://b.android.com/166383
Change-Id: I5ea051ffdbf9a2d73a83f62d56a0f4006b014348
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
2f06ed4d7b33991be7d3fea6a592423636694c1a 16-Apr-2015 Deepanshu Gupta <deepanshu@google.com> resolved conflicts for merge of 186fe7b1 to master

Change-Id: I60886d3e44ae23a11c8f129517df87ee29625ada
b111e84752652ec862efa7e0fcaa224430feb97f 15-Apr-2015 Deepanshu Gupta <deepanshu@google.com> Update to using LayoutlibCallback.

Change-Id: Ia89d418b0d40ca8efef8968a4a2a635616b945ac
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
6257175afa5c892cb0a7cd14d958418c1720cb84 15-Apr-2015 Deepanshu Gupta <deepanshu@google.com> Remove implementation of deprecated method.

BridgeResources.getDrawable(int) is not needed anymore, since the super
method is deprecated and it calls the alternative
getDrawable(int, Theme), which we override.

Change-Id: I00c0bfaef6c4167a787bb74990b91cebb951c847
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
e9fa56466125254b2706a4bcc5869c191e1b0775 17-Mar-2015 Deepanshu Gupta <deepanshu@google.com> am 0f8c9d1d: am a5be9a7d: am 38467b5f: am 9a00f1c8: am 79f7fce7: am 2e4d9324: Fix NoActionBar themes rendering.

* commit '0f8c9d1df28ed10b1c9013ddd315b306868e349d':
Fix NoActionBar themes rendering.
754e55a66dc4868805885cf593567d4513b75e0c 17-Mar-2015 Deepanshu Gupta <deepanshu@google.com> am 79f7fce7: am 2e4d9324: Fix NoActionBar themes rendering.

* commit '79f7fce7a49e7b7cd414ff5c3fdb5cbaae45c1f1':
Fix NoActionBar themes rendering.
531a6693ac4a950e4c3ab6135112fcabd1887add 13-Mar-2015 Deepanshu Gupta <deepanshu@google.com> Fix NoActionBar themes rendering.

Also fix some warnings.

Bug: http://b.android.com/159780
Change-Id: I64fd4259b802722af7a271f51d5943018ed11e9e
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
b117f29f6ea1bc1127339c55f690f55bf9918e0b 13-Mar-2015 Andreas Gampe <agampe@google.com> resolved conflicts for merge of ef1741d2 to master

Change-Id: I5379d5f756695f5176d92249ac6304bffcf95751
432578acb80cf2fa827ddb9595cf46edf0b340b0 06-Mar-2015 Deepanshu Gupta <deepanshu@google.com> Add RecyclerView support.

Bug: http://b.android.com/72117
Change-Id: Iba95baff59f1b715f91da25e15acf27bc052d95e
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
a4a2d3d5936bcdda1409796179725d354e5f4400 05-Mar-2015 Andrew Shulaev <ddrone@google.com> Added function to render a drawable in all available states

This reverts commit 01cdf8b135be3bf67b9386dc929109c3db82c730.

Change-Id: I596855047d78c3c718744ad61432fc45e1239634
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
cb9e3f0a57e5d9fe9d5769427d0dc4b80f67180b 04-Mar-2015 Andrew Shulaev <ddrone@google.com> Revert "Added function to render a drawable in all available states"

This reverts commit 63483e17de4d2441acaabcee4185b0bb25e1d94c.

Change-Id: I07fced229759e63d4fa4f94b7dac48b3e9342b18
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
1df8a1ef0e45575454f0afc892080977d7f6e384 04-Mar-2015 Andrew Shulaev <ddrone@google.com> Added function to render a drawable in all available states

Change-Id: I230cc5775a09120efe9c82a4017b001aa510ddff
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
e12b3f96291cf0e3dc60d9db9ac3d3859325f3d4 16-Feb-2015 Diego Perez <diegoperez@google.com> Avoid caching mImage on the main render loop and use clipping.

+ Added a session flag that avoids caching mImage. This is useful when
mImage is just a Graphics2D wrapper that might change at any time.
+ Make GcSnapshot aware of the clipping so it doesn't need to render the
whole area if not needed.

Change-Id: Ie0134c2bc2741b5fa6648313864c851bbac066cf
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
7e6ad7b0f8c49ce288a0e2f4cf37a22838870fff 31-Jan-2015 Deepanshu Gupta <deepanshu@google.com> am 3d5535cf: Merge "Limited AppCompat support" into lmp-dev automerge: 7789447 automerge: 580937f automerge: c053438
automerge: df5a198

* commit 'df5a1987108539c703477adff3749d647ba313c5':
Limited AppCompat support
841330d24b2403832c91d379795f5bcbd938c3b7 16-Jan-2015 Deepanshu Gupta <deepanshu@google.com> Limited AppCompat support

Change-Id: I4ac7234c9533b9f47f070335c4cb6ae605d8a89f
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
0a4b222f10c81a797586c8d7ed8b9afcb8a9a66d 10-Jan-2015 Deepanshu Gupta <deepanshu@google.com> am f2e04ac7: am c598047d: am ca67a249: am bb600de6: am 74147527: am 8505c387: Special case AppCompat to show action bar. automerge: 8e2dd14
automerge: 2223018

* commit '22230189be8e811881ba24de1cde97f9882a7d45':
Special case AppCompat to show action bar.
d30ea50dd35c70c2e5676bb6625aaf1d4626c306 10-Jan-2015 Deepanshu Gupta <deepanshu@google.com> am bb600de6: am 74147527: am 8505c387: Special case AppCompat to show action bar.

* commit 'bb600de6e7c5c7a0a1d4b872d2ee100ccc353213':
Special case AppCompat to show action bar.
45d9520182663e47a1878ce51be756219799b2c9 09-Jan-2015 Deepanshu Gupta <deepanshu@google.com> Special case AppCompat to show action bar.

Bug: http://b.android.com/78944
Change-Id: I02d68d592d812016744716f99376cfefd519b21b
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
2d85666861c147531b2d130a04a8f869d501d830 07-Jan-2015 Deepanshu Gupta <deepanshu@google.com> am adcd2241: am c7fe9793: am 48ab6bec: am 8c686ddd: am d20a518c: Merge "Make Preference-cookie map non static." into lmp-dev

* commit 'adcd224135e3c12f483547ffa8bb2cb0250ba923':
Make Preference-cookie map non static.
dd41a787f03f2d08072cf1c87c3dd29af1c9ec1e 07-Jan-2015 Deepanshu Gupta <deepanshu@google.com> resolved conflicts for merge of 20db8770 to master

Change-Id: Ifffcf8e2741ec242d940c3ba81244d4df57642fc
de84301edebf36de5a32fac4b68ebd1316dc3f15 08-Oct-2014 Deepanshu Gupta <deepanshu@google.com> Make Preference-cookie map non static.

Moved the map from Preference to View Cookie to BridgeContext. This
means the map need not be static anymore.

NO_SQ: Depends on unsubmitted changes.
Change-Id: I662513def17bd6ec3a2646c3bec9bf4f9f89fc15
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
8a16d5d203a48e7b13761f329333b3dcb8f8210b 05-Oct-2014 Deepanshu Gupta <deepanshu@google.com> Add preferences rendering.

NO_SQ: Depends on updating layoutlib-api-prebuilt.jar
Change-Id: Iae93ab74c478e6f2158e1528467bec9ee2d7ee9b
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
b0cfd43d0e187a96af5193f48833ef8d7fca2480 11-Nov-2014 Diego Perez <diegoperez@google.com> Merge "Add new parameter to the render method to allow forcing a measure pass."
620f80a7ee9796c2c41ec0a42d10d2913fc50c90 05-Nov-2014 Diego Perez <diegoperez@google.com> Add new parameter to the render method to allow forcing a measure pass.

Change-Id: I60c09f3375fc85c257a449f4372220741e01db54
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
cc1ce2c8d83464c7be38e3281bf8da3963505a9b 27-Oct-2014 Deepanshu Gupta <deepanshu@google.com> Use the right layout for inflating Action Bar.

The choice of Action Bar layout depends on the theme. This also affects
the widget used to render the Action Bar.

Bug: http://b.android.com/77853
Change-Id: I6219a02853b4cd207a6125a5ed96fa5d16699460
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
dc15e6cc68aad9542ef0e544553420126c093881 02-Jul-2014 Deepanshu Gupta <deepanshu@google.com> am 036557b6: Merge "Update system icon resolution in LayoutLib." into lmp-preview-dev

* commit '036557b60df5e5425b3563e99ffb21685160e4ab':
Update system icon resolution in LayoutLib.
82ca7fe915ed30a7e30eb3de3ce816a9ad0867d6 27-Jun-2014 Deepanshu Gupta <deepanshu@google.com> Update system icon resolution in LayoutLib.

This fixes some bugs with the resolution of icons for Status Bar and
Navigation Bar by separating the icons into v21 and v11 directories. An
icon is searched in v21 directory by default. For simulating older
platforms, v11 directory is searched first and then v21 is used as a
fallback.

This also adds xxhdpi versions of home, back and recent icons.

Change-Id: Ia6eafc83856eacafc4fb0b13d87793d4aa24f106
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
23b7948811978d3c81ed88f55261a5e761fa3246 24-Jun-2014 Deepanshu Gupta <deepanshu@google.com> am 04703acd: Merge "Add navigtaion bar icons to simulate older platforms." into lmp-preview-dev

* commit '04703acdd214cd17aaf5757da75a862fb1797d1e':
Add navigtaion bar icons to simulate older platforms.
bf50447839d4cdb1765d308a67aca43bb77cedbc 23-Jun-2014 Deepanshu Gupta <deepanshu@google.com> Add navigtaion bar icons to simulate older platforms.

LayoutLib can simulate older versions of the platform to a very limited
extent. This change adds the old navigtaion bar icons back and moves the
latest ones to directories suffixed with "-v21". The code handles this
resolution in a very crude way.

This also removes a bunch of unused code and fixes some style warnings.

Change-Id: Ib6e7bfd8dfb34b2ccd87f660ca979eb5ef14bae7
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
673b5d1a560c5bf0bf999c66a07be37f83f73ff0 05-Jun-2014 Deepanshu Gupta <deepanshu@google.com> am dfc3bc9b: Fix build.

* commit 'dfc3bc9b3cf27a72dfd133ce62f5e791ef74659d':
Fix build.
0401dbdc9d4ffa675ead3963d5cd2f6f7a987e65 05-Jun-2014 Deepanshu Gupta <deepanshu@google.com> am 4c0d33f2: Merge "Add basic support for simulating older versions." into lmp-preview-dev

* commit '4c0d33f29f295e5ae27ba057fc8cb2270295865a':
Add basic support for simulating older versions.
7f340997822aed9acbaf96487361932007e7e33e 05-Jun-2014 Deepanshu Gupta <deepanshu@google.com> Fix build.

Change-Id: I877532b5056a035dbd4b0c6c55b5969d6292846a
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
dfa678d54262625befdba46a2821965f01cebe3b 05-Jun-2014 Deepanshu Gupta <deepanshu@google.com> Merge "Add basic support for simulating older versions." into lmp-preview-dev
b9a124441278e707bb2c6e2630689e4be51fd903 04-Jun-2014 Deepanshu Gupta <deepanshu@google.com> am e478c562: am 905e113f: am 03df93bc: am 5cde33a6: am dcfba78f: am ed5ab0f0: am 022d8a9f: am bad112f2: am c8235b8e: am ffcad247: am 904b89c5: am 295184bc: am 8782a120: resolved conflicts for merge of 61fb5784 to jb-mr1-dev

* commit 'e478c5624d5eeca5adc088d9328582bd5b487963':
Distinguish between menus in ActionBar and popup. [DO NOT MERGE]
1cdf22a76e2537e71f9313d5e2ae350780fbd1cd 04-Jun-2014 Deepanshu Gupta <deepanshu@google.com> am dcfba78f: am ed5ab0f0: am 022d8a9f: am bad112f2: am c8235b8e: am ffcad247: am 904b89c5: am 295184bc: am 8782a120: resolved conflicts for merge of 61fb5784 to jb-mr1-dev

* commit 'dcfba78fbb4dad6792113383b2d32eff7f2c1f88':
Distinguish between menus in ActionBar and popup. [DO NOT MERGE]
70114b33f8054cc38090a2bbd213ebf15abee63d 15-May-2014 Deepanshu Gupta <deepanshu@google.com> Distinguish between menus in ActionBar and popup.

Mark the menus in the ActionBar and the ones in the Overflow popup
separately. This enables the IDE to differentiate between the two and
enable gestures such as double-click to open the menu xml for menus in
the ActionBar and single click for the menus in the Overflow popup.

Change-Id: I7a23f87d34d618a134ffbe3a665be695915d4bae
(cherry picked from commit f542f28a31b38a4e454535a1fea63968811b418c)
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
94f8a231e3b673152d4981d20bfd54e4ee5e30c3 04-Jun-2014 Deepanshu Gupta <deepanshu@google.com> am 295184bc: am 8782a120: resolved conflicts for merge of 61fb5784 to jb-mr1-dev

* commit '295184bc71a32a4e9418d34b2adeb0cef4b39781':
Distinguish between menus in ActionBar and popup. [DO NOT MERGE]
6dfc47da3de8f5d704f77cd718125bb06be1d342 04-Jun-2014 Deepanshu Gupta <deepanshu@google.com> resolved conflicts for merge of 61fb5784 to jb-mr1-dev

Change-Id: I079d5db0d69fd1972e6754cdd1829dfd1645202d
9eed954e3f2c1d1f29019dd3ec9245310a14fab9 15-May-2014 Deepanshu Gupta <deepanshu@google.com> Distinguish between menus in ActionBar and popup. [DO NOT MERGE]

Mark the menus in the ActionBar and the ones in the Overflow popup
separately. This enables the IDE to differentiate between the two and
enable gestures such as double-click to open the menu xml for menus in
the ActionBar and single click for the menus in the Overflow popup.

Change-Id: I7a23f87d34d618a134ffbe3a665be695915d4bae
(cherry picked from commit 03c0735017a34bac9ea69600b8cf980775331f0e)
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
906497050ee5a7e0d2d0cdeba1f998c49fa0c91c 15-May-2014 Deepanshu Gupta <deepanshu@google.com> Distinguish between menus in ActionBar and popup. [DO NOT MERGE]

Mark the menus in the ActionBar and the ones in the Overflow popup
separately. This enables the IDE to differentiate between the two and
enable gestures such as double-click to open the menu xml for menus in
the ActionBar and single click for the menus in the Overflow popup.

Change-Id: I7a23f87d34d618a134ffbe3a665be695915d4bae
(cherry picked from commit 866d40fc39f7364d95085650244db59f52d4c002)
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
c87a91d1ebfffd1adca29398c3863e0f43cc4618 15-May-2014 Deepanshu Gupta <deepanshu@google.com> Distinguish between menus in ActionBar and popup. [DO NOT MERGE]

Mark the menus in the ActionBar and the ones in the Overflow popup
separately. This enables the IDE to differentiate between the two and
enable gestures such as double-click to open the menu xml for menus in
the ActionBar and single click for the menus in the Overflow popup.

Change-Id: I7a23f87d34d618a134ffbe3a665be695915d4bae
(cherry picked from commit f542f28a31b38a4e454535a1fea63968811b418c)
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
c3988819760b87dc92b77465b99730350f5d6eac 15-May-2014 Deepanshu Gupta <deepanshu@google.com> Distinguish between menus in ActionBar and popup.

Mark the menus in the ActionBar and the ones in the Overflow popup
separately. This enables the IDE to differentiate between the two and
enable gestures such as double-click to open the menu xml for menus in
the ActionBar and single click for the menus in the Overflow popup.

Change-Id: I7a23f87d34d618a134ffbe3a665be695915d4bae
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
f18273f698024ffa23ce457e7d30c683e7027680 29-May-2014 Deepanshu Gupta <deepanshu@google.com> Add basic support for simulating older versions.

This adds rudimentary support for older versions of layoutlib by
changing the color of the status bar to white for froyo and earlier and
omitting the navigation bar for pre-ICS devices.

The color of the icons in the status bar is not changed yet.

Change-Id: I56a16b206ad357b6f3bc5c3d10701d03551847bc
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
0a670482a0e506f73887d8bcc55fa35d332db701 14-May-2014 Deepanshu Gupta <deepanshu@google.com> am b5b47565: am 98822f0e: am 6e923e1b: am 90d57721: am 209745a3: am c251147a: am 85ec1445: am f266873c: am 1c55797d: Fix build

* commit 'b5b4756565a5f74c6eb2ca7f90ac839a4289daae':
Fix build
1ec5ca2af083714f392e0ad28e561da3695f1ae0 14-May-2014 Deepanshu Gupta <deepanshu@google.com> am f266873c: am 1c55797d: Fix build

* commit 'f266873c8059e78410bf43c83fb8f0fd5bfe3362':
Fix build
ba0c72880f23c985ecd2a0176c5a76066e582f5e 14-May-2014 Deepanshu Gupta <deepanshu@google.com> Fix build due to incorrect merges [DO NOT MERGE]

Change-Id: Ib3b4dafeed6ba4c07450d13d9908fb05a1a4542f
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
a4bc9b524b551048b301d8c4ea804a0445f0a56c 14-May-2014 Deepanshu Gupta <deepanshu@google.com> Fix build

remove a line that shouldn't have been merged into this branch.

The build will still be broken for this branch, but this will fix it for
many branches downstream.

Change-Id: I2f556636640eb823dc2834afae7b536e79b79607
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
35af4b5f764df51fefb654da7d4a1bb3bc2f775d 13-May-2014 Deepanshu Gupta <deepanshu@google.com> am fcfb8801: am 18b1525a: am ef24a509: am 900954e3: am 2100476a: am 31a3760a: am 964023c5: am 8bf73eae: am 0ad4f2ce: resolved conflicts for merge of 7377c7be to jb-mr1-dev

* commit 'fcfb8801b27fd40ff27c380b8bad9b9a210effca':
Add Navigation Bar to BridgeWindowManager [DO NOT MERGE]
2d0b7825bbc280a53f978c1aba464d06401c7d88 13-May-2014 Deepanshu Gupta <deepanshu@google.com> am 8bf73eae: am 0ad4f2ce: resolved conflicts for merge of 7377c7be to jb-mr1-dev

* commit '8bf73eae6c98532c8a597b885b948b9878555441':
Add Navigation Bar to BridgeWindowManager [DO NOT MERGE]
b704237dadf7cc95cddd2ac9abb7a6d1503d71b1 13-May-2014 Deepanshu Gupta <deepanshu@google.com> resolved conflicts for merge of 7377c7be to jb-mr1-dev

Change-Id: I26d2e3478536826608413094e17cd36da43b4e23
df842f9719f28cb67381763af32323a4ea52c2a6 13-May-2014 Deepanshu Gupta <deepanshu@google.com> resolved conflicts for merge of 00d09649 to jb-mr1-dev

Change-Id: Ib3c34a1989d4251c3ac4755c52fe05a81644930a
447106cb1f4a8e101cc6f5dd82631ff296faf24a 13-May-2014 Deepanshu Gupta <deepanshu@google.com> am 0df5ae65: am 0f209967: Add view cookies for action bar menus. [DO NOT MERGE]

* commit '0df5ae65a91174c99d1af633b45b3a1a7861cd1c':
Add view cookies for action bar menus. [DO NOT MERGE]
8cee8bec78e1b127169017ecf79204d8a3ef28f9 13-May-2014 Deepanshu Gupta <deepanshu@google.com> am 3027b69e: am f7e57949: Overflow menu popup for Action Bar in Layoutlib [DO NOT MERGE]

* commit '3027b69e154cffc6e286caf90b0f9af01c473c14':
Overflow menu popup for Action Bar in Layoutlib [DO NOT MERGE]
cf725ccfc11863e5169e0a536c1b2c7d204b965f 13-May-2014 Deepanshu Gupta <deepanshu@google.com> resolved conflicts for merge of 6d3c4ab2 to jb-mr1-dev

Change-Id: I5c4634897882deb663f32d8148202d7c9189521d
00915acbe2a584bc198647b0a68e62b02d697232 13-May-2014 Deepanshu Gupta <deepanshu@google.com> am 7bb8de58: am a2b34c96: Optimize layout rendering in layoutlib [DO NOT MERGE]

* commit '7bb8de580a451621480913d7839fd7eb784ab689':
Optimize layout rendering in layoutlib [DO NOT MERGE]
835ad76e300033f1d9cccd214bd7d61d78d0240a 07-May-2014 Deepanshu Gupta <deepanshu@google.com> Add Navigation Bar to BridgeWindowManager [DO NOT MERGE]

Return the right value for presence of software navigation bar in
BridgeWindowManager. This is required to render the overflow menu button
correctly in the Action Bar.

Change-Id: I73de3b299f6a3a113425c436a59e800cd1d6b97f
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
285dfb3dfc63e1128539df1f648729bdd589f20b 23-Apr-2014 Deepanshu Gupta <deepanshu@google.com> Fix style warnings in RenderSessionImpl [DO NOT MERGE]

Change-Id: I9d3cb23e4ea692f737a3e3d6c18cc8de18b66a3c
(cherry-picked from commit 22de7c4c3d44e51aef6937e1b39540703ad01f5c)
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
36e3754edd01941ec4be9e9b47890f3338d3b434 18-Apr-2014 Deepanshu Gupta <deepanshu@google.com> Add view cookies for action bar menus. [DO NOT MERGE]

The change adds the view cookies for the menus rendered in the action
bar. This enables the IDE to map the menu to the relevant XML Tag in the
menu xml and show the highlighting accordingly.

The change also contains a bugfix where a method wasn't renamed
properly.

Change-Id: Idcfc263a8ebe0a4f25afa3a1eb085fa628fd03ca
(cherry-picked from commit 094fd8ecb6f4b666be6c9e7332679bce28fdc3ca)
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
e8fd976e6455816ec96f91134e9e9182916a58a8 13-Feb-2014 Deepanshu Gupta <deepanshu@google.com> Overflow menu popup for Action Bar in Layoutlib [DO NOT MERGE]

In addition to the cherrypicked changes, appropriate changes due to
changes to com.android.internal.widget.ActionBarView are made.

The icon used in the Action Bar may not always be the right one due to
the above resolution.

Change-Id: Ib7cc314079099c010f7d53849e204db36c410357
(cherry-picked from commit 56759be8960ea1b5dc8b6de1810a84e2f10e2058)
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
896fa37dd4cf0a012099ac96459226d44210e6c7 12-Dec-2013 Deepanshu Gupta <deepanshu@google.com> Action bar rendering in layoutlib [DO NOT MERGE]

This also makes a couple of changes to the framework:
1. ShareActionProvider - Use edit mode to execute activity chooser code.
2. ActionBarImpl - add a new constructor for use by layoutlib.

This also relies on some changes to the plugin to pass the correct params.

Change-Id: Ia30fef816afd91ec1e439734d56b59b1323bfee2
(cherry-picked from fe38489f6734fefd0a216e9cfe12f8f978ff371f)
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
e829722541c9795dab53521ba599a4f003de93e6 21-Jan-2014 Deepanshu Gupta <deepanshu@google.com> Optimize layout rendering in layoutlib [DO NOT MERGE]

The height of a layout should be zero if it is assigned a layout_weight.
This way, the layout is measured only once and prevents spurious errors.

Bug: https://code.google.com/p/android/issues/detail?id=58398
Change-Id: If49a7480e5eb82cb86780e00f2f5b65ee053fc2a
(cherry-picked from 5712b5fc3fec0dc376e84f660f2fe0d1102c0cbb)
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
421b8e1708f5fd8b45aa24b3599ee0251297b378 23-Apr-2014 Deepanshu Gupta <deepanshu@google.com> Fix style warnings in RenderSessionImpl [DO NOT MERGE]

Change-Id: I9d3cb23e4ea692f737a3e3d6c18cc8de18b66a3c
(cherry-picked from commit a98121ef5251b5ebdb8c1b0b6780d570844284b2)
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
779cc66bba174d1d8322b0a457735ed9c0655567 18-Apr-2014 Deepanshu Gupta <deepanshu@google.com> Add view cookies for action bar menus. [DO NOT MERGE]

The change adds the view cookies for the menus rendered in the action
bar. This enables the IDE to map the menu to the relevant XML Tag in the
menu xml and show the highlighting accordingly.

The change also contains a bugfix where a method wasn't renamed
properly.

Change-Id: Idcfc263a8ebe0a4f25afa3a1eb085fa628fd03ca
(cherry-picked from commit 7704837947455909f295b088a3d15a20e107dbd7)
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
92b22850c129f5ef136b951059bf7508f5547c0b 13-Feb-2014 Deepanshu Gupta <deepanshu@google.com> Overflow menu popup for Action Bar in Layoutlib [DO NOT MERGE]

In addition to the cherrypicked changes, appropriate changes due to
changes to com.android.internal.widget.ActionBarView are made.

The icon used in the Action Bar may not always be the right one due to
the above resolution.

Change-Id: Ib7cc314079099c010f7d53849e204db36c410357
(cherry-picked from commit 1b87390c9426c4bc9119829e9375d712dfde11c3)
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
5cf85811d2640b5bbd1121bccb4e07188ae590db 12-Dec-2013 Deepanshu Gupta <deepanshu@google.com> Action bar rendering in layoutlib [DO NOT MERGE]

This also makes a couple of changes to the framework:
1. ShareActionProvider - Use edit mode to execute activity chooser code.
2. ActionBarImpl - add a new constructor for use by layoutlib.

This also relies on some changes to the plugin to pass the correct params.

Change-Id: Ia30fef816afd91ec1e439734d56b59b1323bfee2
(cherry-picked from 20e0695b554e883b095f5223be10b6e1097db49f)
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
8f6dd50d709482a14184553c30ab58ef11328152 21-Jan-2014 Deepanshu Gupta <deepanshu@google.com> Optimize layout rendering in layoutlib [DO NOT MERGE]

The height of a layout should be zero if it is assigned a layout_weight.
This way, the layout is measured only once and prevents spurious errors.

Bug: https://code.google.com/p/android/issues/detail?id=58398
Change-Id: If49a7480e5eb82cb86780e00f2f5b65ee053fc2a
(cherry-picked from 9e5e993c7969ad60ff70cfdcf707247f38a705a1)
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
d0495a974312a13da240ee6edd7d45b41d8e16ee 20-Jun-2013 Deepanshu Gupta <deepanshu@google.com> Fix layout rendering for RTL locales [DO NOT MERGE]

This changeset adds the framework resources for RTL locales and mirrors
the layout if the application is RTL aware.

Use ICU to check the character orientation of the locale - right to left
or left to right. Set the layout direction on the top level layout
accordingly. Also, load the RTL resources for Nav Bar when the locale is
RTL.

Change-Id: I1ed0d516ab64120a0abca413ba678036661508f8
(cherry picked from commit eee0ea7a0b85ea6345eb7b8da5dbf17306c7339c)
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
952c989b307d4b710ee1adba064f663808af9eb3 23-Apr-2014 Deepanshu Gupta <deepanshu@google.com> Fix style warnings in RenderSessionImpl [DO NOT MERGE]

Change-Id: I9d3cb23e4ea692f737a3e3d6c18cc8de18b66a3c
(cherry-picked from commit fbfeb1a90b6f8f3966c60a69d50ce8f608d9d861)
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
41670df819e35f5822cc166db775ed2e9e3dfb7d 18-Apr-2014 Deepanshu Gupta <deepanshu@google.com> Add view cookies for action bar menus. [DO NOT MERGE]

The change adds the view cookies for the menus rendered in the action
bar. This enables the IDE to map the menu to the relevant XML Tag in the
menu xml and show the highlighting accordingly.

The change also contains a bugfix where a method wasn't renamed
properly.

Change-Id: Idcfc263a8ebe0a4f25afa3a1eb085fa628fd03ca
(cherry-picked from commit 1001961f904bac5294aaf73a47c2497aa764bf7f)
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
8d43509cc2c0f95bd07d6585dadfac296bc5d24d 13-Feb-2014 Deepanshu Gupta <deepanshu@google.com> Overflow menu popup for Action Bar in Layoutlib [DO NOT MERGE]

Adds MenuBuilderAccessor in addition to the cherry-picked changes.

Change-Id: Ib7cc314079099c010f7d53849e204db36c410357
(cherry-picked from commit 929eea6bc1824bf98d244550c0984ecf8ea98811)
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
85c5ae75ab4b9041bb143f146ef5fc4547686210 12-Dec-2013 Deepanshu Gupta <deepanshu@google.com> Action bar rendering in layoutlib [DO NOT MERGE]

This also makes a couple of changes to the framework:
1. ShareActionProvider - Use edit mode to execute activity chooser code.
2. ActionBarImpl - add a new constructor for use by layoutlib.

This also relies on some changes to the plugin to pass the correct params.

Change-Id: Ia30fef816afd91ec1e439734d56b59b1323bfee2
(cherry-picked from 14bf0cef7eeed572a67c29a328581afac4decc20)
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
fa7ed38ae9c180ff12a7312e6ec740b5ba313a97 21-Jan-2014 Deepanshu Gupta <deepanshu@google.com> Optimize layout rendering in layoutlib

The height of a layout should be zero if it is assigned a layout_weight.
This way, the layout is measured only once and prevents spurious errors.

Bug: https://code.google.com/p/android/issues/detail?id=58398
Change-Id: If49a7480e5eb82cb86780e00f2f5b65ee053fc2a
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
9eee97394c428c595712c533b791695bc54e9337 05-Sep-2013 Deepanshu Gupta <deepanshu@google.com> am 97c88368: am c78d173b: am 68411471: Merge "Fix layout rendering for RTL locales" into jb-mr2-dev

* commit '97c88368e0036665507c8cd84c71d26953784c85':
Fix layout rendering for RTL locales
510148f0699abceb44a3634a648a589cc84f6cbf 20-Jun-2013 Deepanshu Gupta <deepanshu@google.com> Fix layout rendering for RTL locales

This changeset adds the framework resources for RTL locales and mirrors
the layout if the application is RTL aware.

Use ICU to check the character orientation of the locale - right to left
or left to right. Set the layout direction on the top level layout
accordingly. Also, load the RTL resources for Nav Bar when the locale is
RTL.

Change-Id: I1ed0d516ab64120a0abca413ba678036661508f8
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
1e3c4a072f4476cedb958d75e2a6edf3bde8378f 13-Jun-2013 John Spurlock <jspurlock@google.com> Remove concept of system bar from window manager.

It was already hardcoded to false, this change removes the dead code.

Change-Id: I5e543344e60f69cb9882a70ba29f7c09404ad9fc
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
683f9a9cc1abb2a50a8676a7f25ec0ba131355bc 17-Oct-2012 Xavier Ducrohet <xav@android.com> Update layoutlib for jb mr1. do not merge.

Status bar displayed on all devices.
Update logic for displaying nav bar to whether or not
device has soft button.

Update navigation buttons to new look.
Remove battery and signal from navigation bar.

(cherry picked from commit 891b703f7b1e0e396d16477cc66a286da7161b49)

Change-Id: Id7cc9ad4255d2c4d2e6461a565dfe2cc17e12e75
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
64f5dc0e6437e95695ed4048f047c3cbef447e0f 17-Oct-2012 Xavier Ducrohet <xav@android.com> Update layoutlib for jb mr1.

Status bar displayed on all devices.
Update logic for displaying nav bar to whether or not
device has soft button.

Update navigation buttons to new look.
Remove battery and signal from navigation bar.

Change-Id: I8241d71269a17126218a3062ba727e379a8e6c25
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
76f4c3e91d8579a580569c3d079da99511309727 15-Oct-2012 Xavier Ducrohet <xav@android.com> Fix SDK layout rendering in Eclipse.

Change-Id: I0e9e85632012c0929b987ee9d0ccf7c25eece322
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
02c2061ea651e872ad37b43d6ab4a1a49fe1e240 10-Jul-2012 Xavier Ducrohet <xav@android.com> Replace LruCache implementation for layoutlib. do not merge.

The android version depends on a custom version of LinkedHashMap
which is not present on desktop VMs. This new implementation is done
in a way that minimizes the difference between the two.

Also some minor fixes.

(cherry picked from commit 01b6c755dbcf24e71192dc44757e2eea2a426091)

Change-Id: Idc7bca820e472e281a3024a5b610fd55606cf428
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
41fb2853aa6de48c3b657bd6be32797dfac2103b 10-Jul-2012 Xavier Ducrohet <xav@android.com> Replace LruCache implementation for layoutlib.

The android version depends on a custom version of LinkedHashMap
which is not present on desktop VMs. This new implementation is done
in a way that minimizes the difference between the two.

Also some minor fixes.

Change-Id: Ib27b0419f9d0e6ba4d4abb26b2ccd968af59eba8
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
d98e133b3911b8db3430ce9d85efd5a6adcf70bf 03-Feb-2012 Xavier Ducrohet <xav@android.com> Make Layoutlib compile on Java 6.

Change-Id: Ic8f0e321c6c218de83664fc01f253a07fa80852c
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
994236e95e9809ec8c1d06a218f606f1af2083af 11-Aug-2011 Xavier Ducrohet <xav@android.com> Make some methods/fields package private so that layoutlib can access them.

Change-Id: I4aeadfbaf8a4f6a459fa19937c21ac23d9e5fb64
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
d7e9eda58981700df39f08ee8465de236eeed2d4 10-Jun-2011 Xavier Ducrohet <xav@android.com> Bring in more layout lib changes from hc-mr1.

fe051bb2 : Change the way the layoutlib instantiate its XmlPullParser.

A lot of the init code was duplicated so I made a ParserFactory class.

Also created an extension of the KXmlPullParser to override toString().
This allows easier debugging when dealing with multiple parsers (which
is always the case).

Also added some (disabled) debugging printf to deal with parser stack
as it can be tricky figuring out which parsers are in the stack at
which point.

8969147c : Fix case where the int[] attrs doesn't directly match a styleable.

In the case of the FastScroller the int[] is a custom mix of attr
instead of a int[] that exists as R.styleable.foo.

This makes our reflection based mechanism used to find the styleable
fail, so instead we search for each attribute separately (like
we probably should have done from the beginning).

0c264b35: Fix various cases of getDimension to report error if unit is missing.

if getDimention###() is called for a string that has no unit,
then an error is output through LayoutLog, but the rendering keeps
going by using dp as a default.

0beb7eea: Make (Bridge)TypedArray.getInteger() call out to getInt()

Only getInt() resolved attribute flags/enum and I'm not sure why
there's two to begin with.
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
6208081afd488af51d4f7cbf858e2de59d47e4e5 17-May-2011 Xavier Ducrohet <xav@android.com> LayoutLib: support the new baseline/margin query API.

Change-Id: I856489df655960820b8eaa4c6179515a5c069b00
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
7062c1ad9adcb216ac49100ca1044e9d89e8f8c1 29-Mar-2011 Xavier Ducrohet <xav@android.com> LayoutLib: implement data binding for most AdapterView

Change-Id: I27be96ed2c37573eb22cfbb391d96b6137b3df8c
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
8ae691c1148038995d1185716f629b82c582897f 06-Apr-2011 Xavier Ducrohet <xav@android.com> LayoutLib: Fix issue with rendering mode.

When the layout content is embedded inside a decor layout
to emulate system bar (top or bottom) and title bar (or action bar)
then the code computing the full required size based on the RenderingMode
would fail because the decor layout would prevents the content layout to
take as much room as possible.
There is also an issue with the way we know render dialogs as the
dialogs usually as a frame with some padding and the previous measurements
would not take into account the dialog padding when increasing the
screen size.

This fix makes the code measure the size of the content layout in the
normal rendering, and then separately from the root layout with the proper
MeasureSpec to let the content grown. The difference in size is then added
to the screen size.

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

Change-Id: Ibb9ca2a67c6c450d10d9f9a8050536e094650f8b
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
f27575799aab2e552c0491a07b34389e1422fc27 17-Feb-2011 Xavier Ducrohet <xav@android.com> LayoutLib: add support for layout_only render.

Change-Id: I1cd791cf9560156c1ac488f8e454240c84e29cc6
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
a732a0101ad07b28e828bbbc8fb81be0580d53b5 14-Feb-2011 Xavier Ducrohet <xav@android.com> LayoutLib: When possible ensure parsers are popped from the stack.

Some parser consumers (seems to be mostly resource inflation)
don't use the pull parser up to the END_DOCUMENT tag, making
the parser not pop itself from the parser stack automatically.

This is likely due to the XML resources being very shallow (1-2 levels
max), and the inflater just reading the content that it expects instead
of parsing till the document is done.

This ensures that *some* parsers are pop'ed from the stack when
used. Some other parsers we don't really control and hope the
user will parse till END_DOCUMENT.

Change-Id: Ie1f5762983fed2b2ae97b896218ae12b493e7ad9
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
cd85db6ff592d37faf751d262d5b9c152adfd632 08-Feb-2011 Xavier Ducrohet <xav@android.com> LayoutLib: fix the background of title/action bars.

The bars are supposed to sit on top of the window so
that if they are transparent (which is the default case
for the action bar), the window background shows through.

Fix this using a layout to represent the window content
(all but the system bar) in which the title/action bars
and the layout content sits. This layout receives the
windowBackground drawable.

Change-Id: I8072c5ff52f585fa32acb589d8526e1c13cbcd94
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
0fde9af6be75b32a401eafc8904426424e00e70c 05-Feb-2011 Xavier Ducrohet <xav@android.com> LayoutLib: split RenderSession's base method into RenderAction.

This will allow us to create RenderDrawable that extends RenderAction.

Change-Id: If9cd350453ceffae4859a925a7b436502b311f9c
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
b32414fe256a6fe1d65e7a1443cd6ea77db8bd95 05-Feb-2011 Xavier Ducrohet <xav@android.com> LayoutLib: update to the new API.

Change-Id: Ice028933cd2270c81c3d17f7bef7c5a9d14bd802
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
799fe3b371c812a0e94872f896b54afa44e94868 28-Jan-2011 Xavier Ducrohet <xav@android.com> LayoutLib: render system/title/action bars.

Also a few generic fixes in the layoutlib itself to support
this.

Change-Id: Ie3f24c9056bd3cc72f39f8a4f2c0861be15bff55
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
a2378f55b81e7d29f451d7f65527de49417a3f0c 03-Feb-2011 Xavier Ducrohet <xav@android.com> LayoutLib: Fix some rendering issues

Change-Id: I662a39a783de5bc7f3063f46cedaab11c7e6496e
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
88aa1f36d93e9e214c3c64864a8c692d6a733892 02-Feb-2011 Xavier Ducrohet <xav@android.com> Make TimePicker/DatePicker/CalendarView render in Eclipse.

Change-Id: Id5313a6f0f53bf45f6eaabc0e10fcf0660eeac08
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
947b979a91ac1cd556244d875d8b8d4fec8fd474 28-Jan-2011 Xavier Ducrohet <xav@android.com> LayoutLib: update with Pair API.

Change-Id: Iba945153f7544872ea84e3311584223aea740e2e
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
1b5ef2d19e1d7cb491c1c79f867e38ec0bde2770 28-Jan-2011 Xavier Ducrohet <xav@android.com> LayoutLib: Update with the new resource map APIs.

Change-Id: I30d83c2bb4569513f4f5e22670cffe938706f105
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
a6a38c02bfd3f6a678ac1671f5744b8e439e075a 28-Jan-2011 Xavier Ducrohet <xav@android.com> LayoutLib: Properly compute available space to layouts.

Also display placeholders for status/title/action bars depending
on if the app is a tablet and its theme.

Change-Id: I651c1a2e5cfde165e004c11b236e6df056853dec
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
62c9c3463a9b4a4bc899f5db353f2856876e6590 27-Jan-2011 Xavier Ducrohet <xav@android.com> LayoutLib: put a default image on the quickcontactbadge.

Change-Id: I64b3f4004801ec03f374460384f9a492e66bfaf0
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
4c6c050f68c67097b92eb38e9f01dae9885907ca 27-Jan-2011 Xavier Ducrohet <xav@android.com> LayoutLib: properly erase the bitmap when rendering a new session.

This fix the issue where going from a full theme to a dialog theme
would show the dialog on top of the previous rendering.

Change-Id: Ib52b9719f44b04969423547b9de8d039f90b6f46
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
e9a2ea4ac32589b372ec195d8be59391c686a8c6 26-Jan-2011 Xavier Ducrohet <xav@android.com> LayoutLib: return ViewInfo for all merged items + Build init.

android.os.Build is now initialized from the build properties
parsed from the SDK build.prop file.

Change-Id: If16953215ca90fb0beacb51bf405b89a5c8a34fa
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
0d8c2a8b1c307453a54211fdcebb68b564344fea 18-Jan-2011 Xavier Ducrohet <xav@android.com> LayoutLib: properly configure ApplicationInfo with targetSdkVersion.

Change-Id: I1bfef890206552843d1a7a8d0564741f2a37494f
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
f14c342b8a0024e5ca8c2c3ffce8b79abe03e941 18-Jan-2011 Tor Norbye <tnorbye@google.com> Allow TabHosts to have no children in the tabcontent widget

Replace the code which throws an exception if there are no children in
the FrameLayout that is the tabcontent, with code to add a single
dummy tab.

This makes the TabHost renderable in those scenarios where the real
tabs are added dynamically rather than via XML.

Change-Id: I72442bd7d40eddd875b3507585c1f372fcae3329
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
0d829bd739dfcb3374971c776676bf2e53bab43c 17-Jan-2011 Xavier Ducrohet <xav@android.com> LayoutLib: Update to use the new RenderResources API.

Change-Id: Ic64eff3f324c4519da89bab10e6d59f0a9341a04
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
089143ffed72bb47fd8d870f29caffb646138781 16-Jan-2011 Xavier Ducrohet <xav@android.com> LayoutLib: extract resource resolution into its own class.

Next step is to make it a jar that will also live in
ADT.
The version in layoutlib will be through a prebuilt jar
file, like ninepatch.

Also add ninepatch.jar inside the layoutlib.jar file.

Change-Id: I4a0cc9f2dd99709de6408386054c6d4abae7c824
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
f69bb29490b24ed4c31ad248e87bffbf923fd4da 15-Jan-2011 Xavier Ducrohet <xav@android.com> LayoutLib: update logs to use new data bundle

Also change some resource.resolve tags to resource.format

Change-Id: I3f0b0d2eb69a5ec98375e4014a3bb1bfceb8c855
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
3f9b0376c69a5f679661d773ea7b59b1e6787090 13-Jan-2011 Xavier Ducrohet <xav@android.com> LayoutLib: Use the new log tag constants from LayoutLog

Change-Id: I29dd578ae16405358d3673caf13528be393f0967
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
ef78fd2b92ad4155d48b02d194ebc2925e9e579b 13-Jan-2011 Xavier Ducrohet <xav@android.com> LayoutLib: use tags in logs.

Change-Id: Ib85272249d285ecef409bf063903bcd91514a424
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
66fec89231b7cfa5223c0b5ff0d471d624e99e02 11-Jan-2011 Xavier Ducrohet <xav@android.com> LayoutLib: Improve error reporting.

Change-Id: I37cad7e2efb959202960c57b271c55c759867139
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
abce70175bca563c2bf6e5de91c934330fc033dd 11-Jan-2011 Xavier Ducrohet <xav@android.com> LayoutLib: only support animator-type animations.

Change-Id: Ia3609fc5d11555190bc323d61a3577144a4692fd
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
551346323dace2bdb2509a7f5c9a0a200794b29c 11-Jan-2011 Xavier Ducrohet <xav@android.com> LayoutLib: fix some issue with resource resolution.

TypedArray.getResourceId() is not only about id/foo,
it can be any type of resources.

Change-Id: Ia5e147bc078bb349a3fa500a04c596ae44ea34ce
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
24cdf6c407351a157880a0a1bbf65c95af753418 09-Jan-2011 Xavier Ducrohet <xav@android.com> LayoutLib: Fix moveChild animation.

Only support animation for view move inside
the same layout.

Also fix animation thread to property support multiple
animation running at once.

Change-Id: I45cad84e7b9f3a4f281c956d32934eb74e807afb
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
90f9956c17660c35ee6fe934815c16e97bf0d3f8 08-Jan-2011 Xavier Ducrohet <xav@android.com> LayoutLib: finish Typeface and unload them in dispose.

Change-Id: I3a48f84678f62d669d303fc73b041bb3fe5f333b
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
5562208aafcaccf366dd8cd906700f48c6c342a8 08-Jan-2011 Xavier Ducrohet <xav@android.com> LayoutLib: remove fade in/out transition on moveChild.

Change-Id: I69a70ecb165f19feca55fc30a3f48ebea896daa3
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
907c716cce7b8fa785d9005081d25d3ecc2d5365 08-Jan-2011 Xavier Ducrohet <xav@android.com> LayoutLib: fix moveChild again.

Change-Id: Ib69a06e44be1e332f0f43c36c795c86270cb1b71
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
62039873060d26a7be141573b0f468c5ba0414dc 07-Jan-2011 Xavier Ducrohet <xav@android.com> LayoutLib: fix animated moveChild.

The child can only be added to the new viewgroup
after it's been removed from the previous one, which
is delayed if there's an animation.

Change-Id: I9123a2670d0d17b3eb6f8f89085ebab8ca2b800f
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
ecb67b629266bd616da571c1e391164a4f8c8e93 16-Dec-2010 Xavier Ducrohet <xav@android.com> LayoutLib: Update layoutlib with revised API.

Change-Id: I78929df621f48e85d9cbefe1f5590f9ce99bbaff
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java