blob: 6f7e73b54841138e26fff5666afd7a3b848e6663 [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 {
Aditya Choudharyad2ba1b2024-02-05 15:45:22 +000018 default_team: "trendy_team_camera_framework",
Avichal Rakesh362242f2022-02-08 12:40:53 -080019 // 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: "VtsAidlHalCameraProvider_TargetTest",
29 defaults: [
30 "VtsHalTargetTestDefaults",
Sally Qi784c2532022-08-22 13:50:32 -070031 "android.hardware.graphics.common-ndk_static",
Avichal Rakesh362242f2022-02-08 12:40:53 -080032 "use_libaidlvintf_gtest_helper_static",
33 ],
34 srcs: [
35 "camera_aidl_test.cpp",
36 "device_cb.cpp",
37 "empty_device_cb.cpp",
38 "simple_device_cb.cpp",
39 "torch_provider_cb.cpp",
40 "VtsAidlHalCameraProvider_TargetTest.cpp",
41 ],
42
43 // TODO(b/64437680): Assume these are always available on the device.
44 shared_libs: [
45 "libbinder_ndk",
46 "libcamera_metadata",
47 "libcutils",
48 "libfmq",
49 "libgui",
50 "libui",
51 "libbase",
52 "android.hardware.common-V2-ndk",
53 "android.hardware.common.fmq-V1-ndk",
54 "android.hardware.graphics.mapper@2.0",
55 "android.hardware.graphics.mapper@3.0",
56 "android.hardware.graphics.mapper@4.0",
57 ],
58
59 // Statically link to libs not guaranteed to be present on the device.
60 static_libs: [
61 "android.hardware.camera.common@1.0-helper",
62 "android.hardware.camera.common-V1-ndk",
Austin Borger4728fc42022-07-15 11:27:53 -070063 "android.hardware.camera.device-V2-ndk",
64 "android.hardware.camera.metadata-V2-ndk",
65 "android.hardware.camera.provider-V2-ndk",
Avichal Rakesh362242f2022-02-08 12:40:53 -080066 "android.hidl.allocator@1.0",
67 "libgrallocusage",
68 "libhidlmemory",
69 "libgralloctypes",
70 "libaidlcommonsupport",
71 ],
Steven Morelanda405bae2023-06-02 20:25:51 +000072
73 require_root: true,
74 test_options: {
75 test_runner_options: [
76 {
77 name: "native-test-timeout",
78 value: "1800000",
79 },
80 ],
81 },
Avichal Rakesh362242f2022-02-08 12:40:53 -080082 test_suites: [
83 "general-tests",
84 "vts",
85 ],
86}