History log of /frameworks/base/libs/androidfw/include/androidfw/AttributeResolution.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
06d3e8fec7e2b29f99d755bee849023d88957953 06-Jan-2017 Adam Lesinski <adamlesinski@google.com> libandroidfw: Revert null check in ApplyStyle

The out parameter `out_indices` is expected to be non-null
and so the extra null check adds a cost to performance
and opens the door to misusing the API by not supplying
`out_indices`.

Test: make libandroidfw_tests
Change-Id: Ie66fd837c5e24ec2838156e7b67f54c15cd27933
/frameworks/base/libs/androidfw/include/androidfw/AttributeResolution.h
f32adf447511d54c2aa0948d3c1ef44d461538ac 23-Nov-2016 John Reck <jreck@google.com> Clean up ApplyStyle JNI

Bug: 32573798

Mark input uint32_t[] as const. Use Read-only JNI
array access for input as it's faster than critical access.

Use non-movable arrays for TypedArray so that the address can
be resolved and stored, avoiding the need to do JNI array
access for the output.

Indicies is always non-null, so remove the optional checks.

Eliminate unused return value.

Benchmark results:
twelveKeyInflate 4963us -> 4713us
simpleViewInflate 73us -> 60us

Test: Device boots, benchmarks show faster

Change-Id: Ic3bde5aee31407d8903913f97f2218daf074499a
/frameworks/base/libs/androidfw/include/androidfw/AttributeResolution.h
f6113af2d6f6eebee68d3ac510fe96d38a7a39e9 04-Nov-2016 John Reck <jreck@google.com> Re-unite sources with their headers

Move all the includes for androidfw under
a common base path for that library instead
of frameworks/base/includes.

Also fixes -Werror issues that resulted in
no longer being -isystem.

Test: builds
Change-Id: Ic4312eb61b197af114dded5691d5ae1ec82923f7
/frameworks/base/libs/androidfw/include/androidfw/AttributeResolution.h