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 10python_test_host { 11 name: "hidl_test_java", 12 main: "hidl_test_java.py", 13 srcs: ["hidl_test_java.py"], 14 test_config: "hidl_test_java.xml", 15 target_required: [ 16 "hidl_test_java_native", 17 "hidl_test_java_java", 18 ], 19 test_suites: [ 20 "general-tests", 21 "vts", 22 ], 23 test_options: { 24 unit_test: false, 25 }, 26} 27 28cc_test { 29 name: "hidl_test_java_native", 30 srcs: ["hidl_test_java_native.cpp"], 31 32 cflags: [ 33 "-Wall", 34 "-Werror", 35 ], 36 37 // Allow dlsym'ing self for statically linked passthrough implementations 38 ldflags: ["-rdynamic"], 39 40 shared_libs: [ 41 "libbase", 42 "libcutils", 43 "libhidlbase", 44 "libhidlmemory", 45 "liblog", 46 "libutils", 47 ], 48 49 static_libs: [ 50 "android.hardware.tests.baz@1.0", 51 "android.hardware.tests.expression@1.0", 52 "android.hardware.tests.inheritance@1.0", 53 "android.hardware.tests.memory@2.0", 54 "android.hardware.tests.safeunion@1.0", 55 "android.hidl.allocator@1.0", 56 ], 57 58 // impls should never be static, these are used only for testing purposes 59 // and test portability since this test pairs with specific hal 60 // implementations 61 whole_static_libs: [ 62 "android.hardware.tests.baz@1.0-impl", 63 "android.hardware.tests.safeunion@1.0-impl", 64 ], 65 66 compile_multilib: "both", 67 multilib: { 68 lib32: { 69 suffix: "32", 70 }, 71 lib64: { 72 suffix: "64", 73 }, 74 }, 75 test_suites: [ 76 "general-tests", 77 "vts", 78 ], 79 auto_gen_config: false, 80} 81 82java_test { 83 name: "hidl_test_java_java", 84 srcs: ["**/*.java"], 85 86 static_libs: [ 87 "android.hidl.manager-V1.0-java", 88 "android.hardware.tests.baz-V1.0-java", 89 "android.hardware.tests.expression-V1.0-java", 90 "android.hardware.tests.inheritance-V1.0-java", 91 "android.hardware.tests.memory-V2.0-java", 92 "android.hardware.tests.safeunion-V1.0-java", 93 ], 94 test_suites: [ 95 "general-tests", 96 "vts", 97 ], 98 auto_gen_config: false, 99} 100