Files
frameworks_base/tools/processors/view_inspector/Android.bp
Ashley Rose 83bac9f33a 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
2019-03-15 15:47:53 -04:00

31 lines
629 B
Plaintext

java_plugin {
name: "view-inspector-annotation-processor",
processor_class: "android.processor.view.inspector.PlatformInspectableProcessor",
srcs: ["src/java/**/*.java"],
java_resource_dirs: ["src/resources"],
static_libs: [
"javapoet",
"stub-annotations",
],
use_tools_jar: true,
}
java_test_host {
name: "view-inspector-annotation-processor-test",
srcs: ["test/java/**/*.java"],
java_resource_dirs: ["test/resources"],
static_libs: [
"junit",
"guava",
"view-inspector-annotation-processor"
],
test_suites: ["general-tests"],
}