1java_genrule {
2    name: "hidl_partial_java_test_gen",
3    tools: [
4        "hidl-gen",
5    ],
6    srcs: [
7        "1.0/types.hal",
8    ],
9    cmd: "$(location hidl-gen) -o $(genDir) -Ljava " +
10        "-r hidl_java_partial_test:system/tools/hidl/test/java_partial_test " +
11        "hidl_java_partial_test@1.0 && " +
12        "[ \"$(genDir)/hidl_java_partial_test/V1_0/ExistsInJava.java\" == " +
13        "\"$$(find $(genDir) -type f)\" ]",
14    out: [
15        "hidl_java_partial_test/V1_0/ExistsInJava.java",
16    ],
17}
18
19java_library {
20    name: "hidl_partial_java_test",
21    srcs: [
22        ":hidl_partial_java_test_gen",
23    ],
24}
25