History log of /frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/DelegateMethodAdapter.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
23e47f5621271db9b84f53f15a3e3d81d8b8b48d 08-Jan-2016 Deepanshu Gupta <deepanshu@google.com> Java 8 in layoutlib-create

Upgrade to ASM 5 and diamond operators.

Also minor fixes here and there.

Bug: 26442940
Change-Id: I5611ed0889aa94cca8655fec47799e1ddccb0150
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/DelegateMethodAdapter.java
6777f54fa44341dd4b23456c97d97c6e4ffe915f 13-Nov-2015 Diego Perez <diegoperez@google.com> Fix delegation of methods within inner static classes

Currently, delegation of inner static classes methods is broken since
the rewritten method tries to pass an instance to the outer class. This
updates the method generation to only pass the reference if the inner
class is not static.

Change-Id: I8493929cafdbd80968989b422af0f956fa65681a
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/DelegateMethodAdapter.java
c5a58437e62698f34abde93ec785c4cbe36aec2d 11-Jul-2014 Deepanshu Gupta <deepanshu@google.com> Style improvements to LayoutLib create.

This change doesn't change the functionality but removes dead code and
simplifies various places to remove warnings.

Change-Id: I371e06bfbd587dbf0eeafc69787b9805f7008f62
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/DelegateMethodAdapter.java
865c3bef54228a353fd449a093b0c8d155618296 18-Jun-2011 Raphael Moll <ralf@android.com> Laoutlib_creator: keep original of delegate methods.

For specific methods, Layoublib_create can rewrite the implementation
of a method to invoke a delegate instead of the original code. This
allows layoutlib to implement native code or override existing behavior.

This patch also 'saves' the original implementation of a rewritten
method so that the delegate can access the original implementation
as needed. Obviously this is only done for non-native methods.

Given a non-native SomeClass.MethodName, we generate 2 methods:
- A copy of the original method named "SomeClass.MethodName_original".
The content is the original method as-is from the reader.
- A brand new implementation of SomeClass.MethodName which calls to a
non-existing method named "SomeClass_delegate.MethodName".
The implementation of this 'delegate' method is done in layoutlib_brigde.

Change-Id: I5ca2cd3ac55991a8e8a51c417e75ee447bf9e9e6
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/DelegateMethodAdapter.java
4b52ec49fee79b0488d6a9eaaa4ea5d74ce90905 08-Feb-2011 Xavier Ducrohet <xav@android.com> LayoutLib: Original import of Honeycomb's layoutlib. do not merge.

frameworks/base.git @ f0a53435f14d23d9555fc46014352ee6a7baa647

Change-Id: Ibc215751693dc7650683b61bb458f7c8beaf8060
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/DelegateMethodAdapter.java