blob: 59f6c660515f9b437cc1188f7718cbf093fe28c8 [file] [log] [blame]
Avichal Rakesh362242f2022-02-08 12:40:53 -08001//
2// Copyright (C) 2022 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 // See: http://go/android-license-faq
19 // A large-scale-change added 'default_applicable_licenses' to import
20 // all of the 'license_kinds' from "hardware_interfaces_license"
21 // to get the below license kinds:
22 // SPDX-license-identifier-Apache-2.0
23 default_applicable_licenses: ["hardware_interfaces_license"],
24}
25
26cc_test {
27 name: "VtsAidlHalCameraProvider_TargetTest",
28 defaults: [
29 "VtsHalTargetTestDefaults",
Sally Qi784c2532022-08-22 13:50:32 -070030 "android.hardware.graphics.common-ndk_static",
Avichal Rakesh362242f2022-02-08 12:40:53 -080031 "use_libaidlvintf_gtest_helper_static",
32 ],
33 srcs: [
34 "camera_aidl_test.cpp",
35 "device_cb.cpp",
36 "empty_device_cb.cpp",
37 "simple_device_cb.cpp",
38 "torch_provider_cb.cpp",
39 "VtsAidlHalCameraProvider_TargetTest.cpp",
40 ],
41
42 // TODO(b/64437680): Assume these are always available on the device.
43 shared_libs: [
44 "libbinder_ndk",
45 "libcamera_metadata",
46 "libcutils",
47 "libfmq",
48 "libgui",
49 "libui",
50 "libbase",
51 "android.hardware.common-V2-ndk",
52 "android.hardware.common.fmq-V1-ndk",
53 "android.hardware.graphics.mapper@2.0",
54 "android.hardware.graphics.mapper@3.0",
55 "android.hardware.graphics.mapper@4.0",
56 ],
57
58 // Statically link to libs not guaranteed to be present on the device.
59 static_libs: [
60 "android.hardware.camera.common@1.0-helper",
61 "android.hardware.camera.common-V1-ndk",
Austin Borger4728fc42022-07-15 11:27:53 -070062 "android.hardware.camera.device-V2-ndk",
63 "android.hardware.camera.metadata-V2-ndk",
64 "android.hardware.camera.provider-V2-ndk",
Avichal Rakesh362242f2022-02-08 12:40:53 -080065 "android.hidl.allocator@1.0",
66 "libgrallocusage",
67 "libhidlmemory",
68 "libgralloctypes",
69 "libaidlcommonsupport",
70 ],
Steven Morelanda405bae2023-06-02 20:25:51 +000071
72 require_root: true,
73 test_options: {
74 test_runner_options: [
75 {
76 name: "native-test-timeout",
77 value: "1800000",
78 },
79 ],
80 },
Avichal Rakesh362242f2022-02-08 12:40:53 -080081 test_suites: [
82 "general-tests",
83 "vts",
84 ],
85}