1// 2// Copyright (C) 2021 The Android Open Source Project 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// See the License for the specific language governing permissions and 14// limitations under the License. 15// 16 17package { 18 default_team: "trendy_team_android_kernel", 19 // See: http://go/android-license-faq 20 // A large-scale-change added 'default_applicable_licenses' to import 21 // all of the 'license_kinds' from "hardware_interfaces_license" 22 // to get the below license kinds: 23 // SPDX-license-identifier-Apache-2.0 24 default_applicable_licenses: ["hardware_interfaces_license"], 25} 26 27cc_test { 28 name: "VtsHalNeuralnetworksTargetTest", 29 defaults: [ 30 "neuralnetworks_use_latest_utils_hal_aidl", 31 "neuralnetworks_vts_functional_defaults", 32 "use_libaidlvintf_gtest_helper_static", 33 ], 34 host_supported: true, 35 tidy_timeout_srcs: [ 36 "CompilationCachingTests.cpp", 37 "MemoryDomainTests.cpp", 38 ], 39 srcs: [ 40 "BasicTests.cpp", 41 "Callbacks.cpp", 42 "CompilationCachingTests.cpp", 43 "GeneratedTestHarness.cpp", 44 "MemoryDomainTests.cpp", 45 "QualityOfServiceTests.cpp", 46 "TestAssertions.cpp", 47 "TestMain.cpp", 48 "Utils.cpp", 49 "ValidateModel.cpp", 50 "ValidateRequest.cpp", 51 "VtsHalNeuralnetworks.cpp", 52 ], 53 shared_libs: [ 54 "libbinder_ndk", 55 ], 56 static_libs: [ 57 "libaidlcommonsupport", 58 "libneuralnetworks_common", 59 "libneuralnetworks_generated_test_harness", 60 ], 61 whole_static_libs: [ 62 "neuralnetworks_generated_AIDL_V3_example", 63 "neuralnetworks_generated_AIDL_V2_example", 64 "neuralnetworks_generated_V1_0_example", 65 "neuralnetworks_generated_V1_1_example", 66 "neuralnetworks_generated_V1_2_example", 67 "neuralnetworks_generated_V1_3_example", 68 ], 69 header_libs: [ 70 "libbase_headers", 71 "libneuralnetworks_headers", 72 ], 73 test_suites: [ 74 "general-tests", 75 ], 76 target: { 77 android: { 78 shared_libs: [ 79 "libnativewindow", 80 "libvndksupport", 81 ], 82 static_libs: [ 83 "libsync", 84 ], 85 test_suites: [ 86 "vts", 87 ], 88 test_config: "AndroidTestDevice.xml", 89 }, 90 host: { 91 shared_libs: [ 92 "libtextclassifier_hash", 93 ], 94 static_libs: [ 95 "neuralnetworks_canonical_sample_driver", 96 "neuralnetworks_utils_hal_adapter_aidl", 97 ], 98 exclude_static_libs: [ 99 "VtsHalHidlTestUtils", 100 "libaidlvintf_gtest_helper", 101 ], 102 test_config: "AndroidTestHost.xml", 103 }, 104 }, 105} 106