summaryrefslogtreecommitdiff
path: root/tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
diff options
context:
space:
mode:
authorAshley Rose <ashleyrose@google.com>2019-03-13 18:15:44 -0400
committerAshley Rose <ashleyrose@google.com>2019-03-15 15:47:53 -0400
commit83bac9f33a064baef9f1755942b623c7764a9950 (patch)
tree739f17a465ce724c0261286bf4bd713846c6bf57 /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
parent0a6dc7537157949ec6b09a18fdab5d32f1c1692c (diff)
Use IntFunction for inspector flag and enum mapping
+ Remove IntEnumMapping class, (use a bound lambda of SparseArray#get(int) instead). + Remove IntFlagMapping.Builder, and make IntFlagMapping mutable. The immuability guarantees are provided by using a lambda of IntFlagMapping#get(int). + Change PropertyMapper#mapIntEnum(String, int, IntFunction<String>) and #mapIntFlag(String, int, IntFunction<Set<String>>) to take IntFunctions instead of semantic types. + Changes to the annotation processor to support code generation for the lambdas and additional internal cleanups. Bug: 124448834 Test: atest --host view-inspector-annotation-processor-test Change-Id: I3e7ccac63d50caa6ff49be1e78732831886e7f6e
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions