1package { 2 default_team: "trendy_team_android_kernel", 3 // See: http://go/android-license-faq 4 // A large-scale-change added 'default_applicable_licenses' to import 5 // all of the 'license_kinds' from "system_tools_hidl_license" 6 // to get the below license kinds: 7 // SPDX-license-identifier-Apache-2.0 8 default_applicable_licenses: ["system_tools_hidl_license"], 9} 10 11python_test_host { 12 name: "hidl_test_java", 13 main: "hidl_test_java.py", 14 srcs: ["hidl_test_java.py"], 15 test_config: "hidl_test_java.xml", 16 test_suites: [ 17 "general-tests", 18 "vts", 19 ], 20 test_options: { 21 unit_test: false, 22 }, 23 data_device_bins_both: ["hidl_test_java_native"], 24 device_common_data: [ 25 ":hidl_test_java_java", 26 ], 27} 28 29cc_test { 30 name: "hidl_test_java_native", 31 tidy_timeout_srcs: ["hidl_test_java_native.cpp"], 32 srcs: ["hidl_test_java_native.cpp"], 33 34 cflags: [ 35 "-Wall", 36 "-Werror", 37 ], 38 39 // Allow dlsym'ing self for statically linked passthrough implementations 40 ldflags: ["-rdynamic"], 41 42 shared_libs: [ 43 "libbase", 44 "libcutils", 45 "libhidlbase", 46 "libhidlmemory", 47 "liblog", 48 "libutils", 49 ], 50 51 static_libs: [ 52 "[email protected]", 53 "[email protected]", 54 "[email protected]", 55 "[email protected]", 56 "[email protected]", 57 "[email protected]", 58 ], 59 60 // impls should never be static, these are used only for testing purposes 61 // and test portability since this test pairs with specific hal 62 // implementations 63 whole_static_libs: [ 64 "[email protected]", 65 "[email protected]", 66 ], 67 68 compile_multilib: "both", 69 multilib: { 70 lib32: { 71 suffix: "32", 72 }, 73 lib64: { 74 suffix: "64", 75 }, 76 }, 77 test_suites: [ 78 "general-tests", 79 "vts", 80 ], 81 auto_gen_config: false, 82} 83 84java_test { 85 name: "hidl_test_java_java", 86 srcs: ["**/*.java"], 87 88 static_libs: [ 89 "android.hidl.manager-V1.0-java", 90 "android.hardware.tests.baz-V1.0-java", 91 "android.hardware.tests.expression-V1.0-java", 92 "android.hardware.tests.inheritance-V1.0-java", 93 "android.hardware.tests.memory-V2.0-java", 94 "android.hardware.tests.safeunion-V1.0-java", 95 ], 96 test_suites: [ 97 "general-tests", 98 "vts", 99 ], 100 auto_gen_config: false, 101} 102