1package { 2 // See: http://go/android-license-faq 3 // A large-scale-change added 'default_applicable_licenses' to import 4 // all of the 'license_kinds' from "system_tools_hidl_license" 5 // to get the below license kinds: 6 // SPDX-license-identifier-Apache-2.0 7 default_applicable_licenses: ["system_tools_hidl_license"], 8} 9 10java_genrule { 11 name: "hidl_partial_java_test_gen", 12 tools: [ 13 "hidl-gen", 14 ], 15 srcs: [ 16 "1.0/types.hal", 17 ], 18 cmd: "$(location hidl-gen) -o $(genDir) -Ljava " + 19 "-r hidl_java_partial_test:system/tools/hidl/test/java_partial_test " + 20 "hidl_java_partial_test@1.0 && " + 21 "[ \"$(genDir)/hidl_java_partial_test/V1_0/ExistsInJava.java\" == " + 22 "\"$$(find $(genDir) -type f)\" ]", 23 out: [ 24 "hidl_java_partial_test/V1_0/ExistsInJava.java", 25 ], 26} 27 28java_library { 29 name: "hidl_partial_java_test", 30 srcs: [ 31 ":hidl_partial_java_test_gen", 32 ], 33} 34