• Home
  • History
  • Annotate
  • only in /frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
History log of /frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
116000a4c644ddd562efeb1ee549909be0d7b332 07-Mar-2018 Adrian Roos <roosa@google.com> layoutlib: get rid of some more stub bridges

Bug: 27297992
Test: mmm frameworks/layoutlib
Change-Id: I6cc2ec078230064fcce3656788589af59a1f7e2d
eflectionUtils.java
6ec650799e4fc9bdea0882af6415f76853beb194 31-Jan-2018 Diego Perez <diegoperez@google.com> Changes to support both androidx and support package

This includes the changes needed in layoutlib to support both androidx
and the "old" android.support namespaces. In most cases it's just a
matter of trying both names.

Test: Existing tests pass
Bug: 72540342
Change-Id: I91dbf39aade96b68817b8af51338da2284cae723
(cherry picked from commit a094e4734b1e3294f12e03e361cdb16e9a58e9de)
eflectionUtils.java
bca9e5623c820c9aa1e959e3874442de9a9a6c32 03-Feb-2017 Diego Perez <diegoperez@google.com> A bit of warning cleanup

Test: Covered by existing tests
Change-Id: I3f27540efdb47e3c1db02f85c67c81e36d159a79
inePatchInputStream.java
eflectionUtils.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)
eflectionUtils.java
49b3939b0fbf72298a9d8d1c37f43440b5220166 19-Mar-2016 Deepanshu Gupta <deepanshu@google.com> Support getResource*Name() methods for Resources

The following methods are now supported:
getResourceEntryName
getResourcePackageName
getResourceTypeName
getResourceName

Bug: http://b.android.com/181872
Change-Id: If06b5e0687ab6f8cb20ab77f339870dd08a84ce1
ynamicIdMap.java
896eb1c37f6a44d65d3a459891475e99170b657c 04-Mar-2016 Deepanshu Gupta <deepanshu@google.com> Change BridgeResources to Resources_Delegate

This is a very hacky fix to make layoutlib work with the latest support
lib. Inject a couple of fields in android.content.res.Resources to
allow using most of the earlier code as is.

Bug: 27403642
Bug: http://b.android.com/201934
Change-Id: Ia96a1b4642a1907a77d9ca7a2392f78809b92e38
inePatchInputStream.java
a1c6015169815e90684917ac215926ae22e61d7a 18-Dec-2015 Diego Perez <diegoperez@google.com> New path interpolation to paint vector drawables

Before this CL, PathMeasure_Delegate would use Path_Delegate.approximate
to get a path segment to draw. Path_Delegate.approximate uses a
flattening iterator to do the path approximation.
Unfortunately, because we do not control the stroke mode while painting,
in some cases the approximation would draw unwanted artifacts caused by
the rough approximation and the use of wrong miter values.
This CL does a much better calculation of the path and interpolates the
segments of the curves instead of replacing them with line segments.

This also fixes an issue with the calculation of empty paths.

Bug: http://b.android.com/187256

Change-Id: I450f7aa4c3d9efcbf902a40c3b4d6d388546893f
achedPathIteratorFactory.java
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
eflectionUtils.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
eflectionUtils.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
ynamicIdMap.java
eflectionUtils.java
432578acb80cf2fa827ddb9595cf46edf0b340b0 06-Mar-2015 Deepanshu Gupta <deepanshu@google.com> Add RecyclerView support.

Bug: http://b.android.com/72117
Change-Id: Iba95baff59f1b715f91da25e15acf27bc052d95e
eflectionUtils.java
d972ff0acb8d3e6f8ce16db8cab5802799d65511 30-Oct-2014 Deepanshu Gupta <deepanshu@google.com> Fix BridgeContext.get*ResourceValue()

getFrameworkResourceValue() and getProjectResourceValue() never really
returned the defValue passed to them, instead creating a new id for
non-existent resources. We now checks for the existence of the resources
before trying to obtain the id.

Change-Id: Ie3103ba32af6186651a5f77c27d1efc33dc2bcc7
ynamicIdMap.java
3acc4043a9db6c7992cd209d9c329b2d1eb349b4 07-Mar-2014 Adam Lesinski <adamlesinski@google.com> Uses VMRuntime.newUnpaddedArray for ideal array sizes

Bug:13028925

Change-Id: I0a9301248b10a339afbdc5e4ffe3310ac4fa1fb7
parseWeakArray.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
parseWeakArray.java
ab775ecdd189b32e35b0d3f4a821502f88b03a4b 24-Jan-2014 Adam Lesinski <adamlesinski@google.com> Revert "Move frameworks/base/tools/ to frameworks/tools/"

This reverts commit 9f6a119c8aa276432ece4fe2118bd8a3c9b1067e.
ebug.java
ynamicIdMap.java
parseWeakArray.java