8b5212450d394c8fb40e80b322369d1d7db3e5db |
|
24-Jun-2016 |
Diego Perez <diegoperez@google.com> |
More fixes for VectorDrawable memory management Make the release of all the VGroups deterministic once the root group has been freed by a finalize call. Also, free and clear the children array. Disable assert in DelegateManager that would slow down layoutlib when there are many delegates and assertions are enabled (dev and canary builds). Bug: http://b.android.com/214026 Change-Id: Ic7775d360ae4997f54f30fb75851879acaf8d824 (cherry picked from commit f6d8bba638baedc39d1d8f7bd3c69f4956819c71)
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/DelegateManager.java
|
ca7b05455262ebd3dd5e8b1969b1b62a93233f09 |
|
14-Jun-2016 |
Diego Perez <diegoperez@google.com> |
Fix leak in VPathRenderer The pointer to the root group in the VPathRenderer is not freed anywhere in the Java side so we need to take care of it on the "native" side. Change-Id: I2ca60b1f0e975a0b5d29799c5f6f31b5f8d42b9d (cherry picked from commit ffdb1b241d9458196403c8f16264aa7053487323)
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/DelegateManager.java
|
82c43ed36422ff673aff03983fdc97bc3adb45f6 |
|
29-Jun-2016 |
Jerome Gaillard <jgaillard@google.com> |
Use a HashSet to store delegate references in layoutlib More efficient than an ArrayList since we do a lot of remove operations. Change-Id: Ic4c89df4560066f1a3ab0e71a3b180a9734f9cd6 (cherry picked from commit 12754d621b20e6a925999096ab6f21c4cbfe594a)
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/DelegateManager.java
|
852bc917136aef751cfb82bef74a9e66bafdd3c8 |
|
26-Feb-2016 |
Diego Perez <diegoperez@google.com> |
Implement VirtualRefBasePtr native methods The VirtualRefBasePtr is used to track the usage of native objects from the java side by reference counting. Implementing the class delegate to make sure we dispose the objects correctly. Change-Id: I3dd4717944b0dbe79f30e49b3083bf65c6e5276d
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/DelegateManager.java
|
c445f85ce5fd6933ab4bbac7226942a925e2db2e |
|
06-Aug-2015 |
Diego Perez <diegoperez@google.com> |
Make DelegateManager thread safe We have been seeing crashes on the Theme editor related to an assertion on getDelegate when the object does not exist (http://b.android.com/181951). When debugging, the crash was happening without seeing a previous call to removeJavaReference. This seems to completely remove that crash. Since the DelegateManager can be called at least from two threads (main thread and the finalizer), it should be thread safe. Bug: http://b.android.com/181951 Change-Id: I1b28f863ff198f8592f170a98f9de391b2ac3ea2
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/DelegateManager.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/DelegateManager.java
|
9fe7fca9bcdceade9c654c6a8dcf0c48be16d78d |
|
12-May-2015 |
Deepanshu Gupta <deepanshu@google.com> |
Add missing delegates for M preview. - Remove ICU dependency (use the version bundled with platform). - Restructure intelliJ project to move dependencies to module. - Minor fixes to layoutlib tests. TODO: - Load ICU data. - Hyphenator doesn't work. - High quality line breaker not present. Change-Id: I965e096e17bfc97ee995a649c3f4f6f64bb4f70d
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/DelegateManager.java
|
ec4118922fa844ef31b73d16adc76f4da4c6c8e6 |
|
27-Jan-2014 |
Narayan Kamath <narayan@google.com> |
Track 64bit changes to android/graphics. All pointers are now 64bits wide, so should be represented as java longs and not ints. Also changed DelegateManager and SparseWeakArray to reflect the new world order. Change-Id: Ic32b6b53818dbae9b949f03004c4fb6dae26cdbe
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/DelegateManager.java
|
ab775ecdd189b32e35b0d3f4a821502f88b03a4b |
|
24-Jan-2014 |
Adam Lesinski <adamlesinski@google.com> |
Revert "Move frameworks/base/tools/ to frameworks/tools/" This reverts commit 9f6a119c8aa276432ece4fe2118bd8a3c9b1067e.
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/DelegateManager.java
|