History log of /frameworks/base/tools/layoutlib/bridge/src/android/content/res/BridgeTypedArray.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b6864ac6cde109be320e18188209eb8420c585f1 16-Jan-2015 Deepanshu Gupta <deepanshu@google.com> Resource resolution fixes.

1. Some dynamic ids weren't created and resulted in ResourceNotFound
exceptions.
2. Prevent NPE if a style attribute (eg. style="?attr/foo"), which
cannot be resolved, is resolved. This effectively, also results in
making it harder to catch misconfigured themes. However, support
library does it, and we don't want to throw errors when the library is
working as intended.

Change-Id: I731d8fb9209eb72b464d235d1072d416e132970b
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/BridgeTypedArray.java
4a605c6fa0027ee116beb29fbc9625721f0441f0 28-Oct-2014 Deepanshu Gupta <deepanshu@google.com> Use right theme for drawable inflation.

The theme information was lost when inflating drawables. As a result,
drawables inflated in the ActionBar did not have the right tint.

Change-Id: I13d5c78039e35085ed4902289fcb735bb15d972e
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/BridgeTypedArray.java
3c8140ab4b39922f92682910ce24de77fd512db4 02-Oct-2014 Deepanshu Gupta <deepanshu@google.com> Minor style changes.

Addressing code review comments on previous change: 171804201dd

Change-Id: I2c9e0ce35e755c23d8292749828d15a87109d6dc
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/BridgeTypedArray.java
171804201dd556f8ce7ee7618661a5c8ee71507a 29-Sep-2014 Deepanshu Gupta <deepanshu@google.com> Always resolve enum when resolving resources.

Enums were resolved only for integers and dimensions. This change
resolves enums for all resource types. Well, almost all. For color and
colorStateList, enums are still not referenced.

Bug: http://b.android.com/76091
Change-Id: Ie43bd1b54fb9877655d31773bdf71d9a6a65c473
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/BridgeTypedArray.java
cd0bb17d30e360c44e03b33bae3d42114b8cc2fb 04-Sep-2014 Deepanshu Gupta <deepanshu@google.com> Remove warning for null entries in resource array.

Change-Id: I32e0b8129e29f3e1e5a472b26e16f3fd06d4b91b
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/BridgeTypedArray.java
bc34eb11f67c46b0808d2a65628077faed0eefb0 26-Aug-2014 Deepanshu Gupta <deepanshu@google.com> enums in dimension attributes.

enums in resources were only read for integer attributes. This change
parses the enums for dimension resources also. This also means that we
don't have to hardcode the resolution for match_parent and wrap_content.

TODO: Fix this for all resource types.

Bug: http://b.android.com/75285
Change-Id: I86752b2322ea017499942a87568ba5c54b8654e4
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/BridgeTypedArray.java
d4cf391c618e5f370f2cfd9f344baa895d5d3242 26-Aug-2014 Deepanshu Gupta <deepanshu@google.com> Null out "@null" attributes.

Remove references to the resourceValue for "@null". This saves needless
checking for "@null" every time an attribute is requested.

Change-Id: I816e78619fa0b1ddcacd1ef5ac90765e30a9a44c
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/BridgeTypedArray.java
151b68ddc222d66b60b5447a60ab6e246a4d2ac0 20-Aug-2014 Deepanshu Gupta <deepanshu@google.com> Fix "@null" resource values in LayoutLib.

Bug: http://b.android.com/74072
Change-Id: Ib84906d86772ac3df2407e71ad2167797bec4542
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/BridgeTypedArray.java
26e32ea559da98dcdebaefb74d4f3c1a5ce705c3 10-Jul-2014 Deepanshu Gupta <deepanshu@google.com> Update delegates

Change-Id: Icd93c31b4e8c8ee5ea242fb8295578937f48ff2a
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/BridgeTypedArray.java
dc62340f18becf51f6f3c94d3994665bcd7dd537 23-May-2014 Deepanshu Gupta <deepanshu@google.com> Stopgap fix for layoutlib.

This is a temporary fix for changes made to TypedArray regrading theme
attributes.

Change-Id: I173fde6d8d3259479b0654ff331bc27bf2814fb0
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/BridgeTypedArray.java
831f3ce9b5b330101b090daf3163a843e0c6317e 26-Mar-2014 Deepanshu Gupta <deepanshu@google.com> Add stub getThemeAttributeId() to BridgeTypedArray

The method is used to obtain theme attribute IDs for drawables for
caching.

The changeset also fixes some minor style issues found by code
inspection.

Change-Id: Ib5fe05511397b5ec7cb8e64f6b2769ec2c355f41
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/BridgeTypedArray.java
857ba4af8519479298a671461cd6f5cace35b99b 15-Feb-2014 Deepanshu Gupta <deepanshu@google.com> Fix layoutlib by avoiding Java7 calls

This change also fixes a NPE in TypedArray caused by changes in the
framework.

Change-Id: Ie64237c567fa16c35c807db22ce9a4b609ee411d
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/BridgeTypedArray.java
282e181b58cf72b6ca770dc7ca5f91f135444502 24-Jan-2014 Adam Lesinski <adamlesinski@google.com> Revert "Move frameworks/base/tools/ to frameworks/tools/"

This reverts commit 9f6a119c8aa276432ece4fe2118bd8a3c9b1067e.
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/BridgeTypedArray.java
9f6a119c8aa276432ece4fe2118bd8a3c9b1067e 28-Aug-2013 Mike Lockwood <lockwood@google.com> Move frameworks/base/tools/ to frameworks/tools/

Change-Id: I3ffafdab27cc4aca256c3a5806b630795b75d5c8
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/BridgeTypedArray.java
72c6137a7aa5e5ada6a4aeca52f33d060742beb6 05-Jan-2013 Tor Norbye <tnorbye@google.com> Handle empty flag attributes, such as gravity=""

Without this, an empty string will be passed into
XmlUtils.convertValueToInt, which throws an
index out of range exception.

Change-Id: Ibd1a140e207653b205852087f33ccb87fbbb9bbc
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/BridgeTypedArray.java
330dd534848562515c6c67cb3de13067e86866a1 18-Dec-2012 John Spurlock <jspurlock@google.com> Remove remaining doc references to StyledAttributes.

It appears StyledAttributes was renamed to TypedArray
prior to fw 1.0. Leaving references to the old name
around in the public docs is confusing.

Deliberating leaving...
tests/coretests/src/android/widget/LabelView.java
... as is - it's clearly unused.

Change-Id: I3f66e5f9cbe945d9d86530d37b88369b401f054d
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/BridgeTypedArray.java
5d701eddcf7f4abd5867ec3bf2091916d5ebbdf1 16-Mar-2012 Xavier Ducrohet <xav@android.com> LayoutLib: Properly support attr ns when used in styles.

Change-Id: I885864588928589d7c9a34b94339917c5be47fa5
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/BridgeTypedArray.java
7f9f99ea11051614a7727dfb9f9578b518e76e3c 11-Aug-2011 Xavier Ducrohet <xav@android.com> Make some methods/fields package private so that layoutlib can access them.

Change-Id: I4aeadfbaf8a4f6a459fa19937c21ac23d9e5fb64
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/BridgeTypedArray.java
d2f664d42cc29507b01a98622298b69131463825 30-Jul-2011 Xavier Ducrohet <xav@android.com> Misc layoutlib fix in preparation of the access change in framework code.

Change-Id: I873adb7345514be6daa5c4fea4ebabb515f203e2
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/BridgeTypedArray.java