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/ReplaceMethodCallsAdapter.java
|
7c4420bd04f8f56f6044f88e34616d8c5d96c7e9 |
|
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/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/ReplaceMethodCallsAdapter.java
|
8390b2ac85765e768d4b685077a96e6395d208b4 |
|
02-Dec-2015 |
Diego Perez <diegoperez@google.com> |
Revert "Add support for Choreographer animations" This reverts commit 29ed07524ce0fc2e5950f5340d306247145d0efa.
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/ReplaceMethodCallsAdapter.java
|
29ed07524ce0fc2e5950f5340d306247145d0efa |
|
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/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/ReplaceMethodCallsAdapter.java
|
82c7fdb1f6346862de373c95c618e370f81d8df6 |
|
05-Aug-2015 |
Deepanshu Gupta <deepanshu@google.com> |
Replace Locale.getDefault with custom impl. In LayoutLib the default locale should always be the locale set the rendering params. This change replaces all calls to Locale.getDefault in the framework with calls to AndroidLocale.getDefault() which tries to find the locale from the current context, but falls back to the original call. Change-Id: I496b35dcfc17fd61fedee21c7495541ab870b1fc
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/ReplaceMethodCallsAdapter.java
|
f8ea750455eec81e4e6d877b3e18e29a86d4ec95 |
|
19-May-2015 |
Deepanshu Gupta <deepanshu@google.com> |
Make Context.getClassLoader() work. Context.getClassLoader() is used by the LayoutInflater and can be used by custom views. However, when called from the LayoutInflater, this needs to return only the Framework classes. This is so that the IDE gets a chance to instantiate the custom views, which helps in better error reporting and better fallback in case of exceptions, like MockView. To workaround this need of the same method returning different results based on where it's called from, the method call in LayoutInflater is renamed to getFrameworkClassLoader() and the new method is injected in Context. The implementation of getFrameworkClassLoader() maintains the existing behaviour of getClassLoader(). Context.getClassLoader() is now modified to return classes from both Framework and the app namespace. Also, update the list of packages to search for Framework views. Change-Id: I1a6be4aa1fc5c1c5520b5440a348a52f10b6eb3b
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/ReplaceMethodCallsAdapter.java
|
1330f79f95fd14b53c393402fbcbf7b7bbdcbc60 |
|
08-Jan-2015 |
Deepanshu Gupta <deepanshu@google.com> |
Replace java.util.LinkedHashMap.eldest() Provide an alternate implementation for the above method and replace the calls to it, since the method is not available on host VM. Change-Id: I329d86b457d1859b137da8fb2790ddd7f8efa788
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/ReplaceMethodCallsAdapter.java
|
17a6170c62e6f74f2881623a9c16f0b6fea54721 |
|
21-Nov-2014 |
Deepanshu Gupta <deepanshu@google.com> |
Fix AnalogClock rendering 1. Change calls to java.lang.System.log* since they don't exist on the host. 2. Clean up method rewrite mechanism in ReplaceMethodCallsAdapter. 3. Stub out creation of uninitialized GregorianCalendar. 4. Memory map the time zone data base file and provide a custom implementation of BufferIterator for use by ZoneInfoDB 5. Delete unused Time_Delegate Also fixed a comment in BridgeAssetManager and an error message in FontFamily_Delegate. Bug: http://b.android.com/79160 Change-Id: Iae5ef65678f0e6c7c5af520c45bd15980ce3fa55
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/ReplaceMethodCallsAdapter.java
|
b80e42f93ff26984c410da0235dd10f463e5722a |
|
31-Jul-2014 |
Deepanshu Gupta <deepanshu@google.com> |
Replace more Locale methods. This change replaces some methods of java.util.Locale. Some of them were added in 1.7 and some are not present in the Desktop VM. Change-Id: Ifdf8451bb2acf55e01dce8b5e15c40c8160107cc
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/ReplaceMethodCallsAdapter.java
|
72c60ab7d487c487806f0f20564693c2264fc99d |
|
31-Jul-2014 |
Deepanshu Gupta <deepanshu@google.com> |
Fix classpath for AndroidLocale Change-Id: I9af9ac05ec26f12529d51e566bf38789a2579390
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/ReplaceMethodCallsAdapter.java
|
5cd9dde5a2a77c5095f985186d8f03147fd22870 |
|
15-Jul-2014 |
Deepanshu Gupta <deepanshu@google.com> |
Support Locale.toLanguageTag on Java 6 Change-Id: I255e79e2c288cd24b350b7c26128bbbb0b2cb9a3
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/ReplaceMethodCallsAdapter.java
|
e1960cc0b541cda93db94de5bef42dff922b9ec3 |
|
10-Jul-2014 |
Deepanshu Gupta <deepanshu@google.com> |
LayoutLib: Fix System.arraycopy() Framework has specialized versions of java.lang.System.arraycopy() for all primitive data types. These versions are not present on the Desktop VM. This change replaces calls to any of the specialized versions with the more general alternative - the one using Objects. Note that this was already being done for char. Change-Id: If1584125fea8ecc080fb39a5ee6cdb4d922d0c98
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/ReplaceMethodCallsAdapter.java
|
1160e6d2f7018117b0c29a7e2adba9ece36faec1 |
|
10-Jun-2014 |
Deepanshu Gupta <deepanshu@google.com> |
LayoutLib: Fix EditText rendering Framework has overloaded java.lang.System.arraycopy() for char[]. The method is not present on the Desktop VMs. This change replaces the calls to this method by its more general alternative - the one using Objects. TODO: Make it more configurable and flexible to allow rewrite of any such methods in the future. Change-Id: I6823b13e52b1c555eb257d02b79707d84e73236f
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/ReplaceMethodCallsAdapter.java
|