blob: 6716b8e2f0d6ce364795c578ab7b2d76deecfd8e [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",
Rucha Katakward08a0152023-10-13 15:47:58 -070057 "camera_platform_flags_c_lib",
Avichal Rakesh362242f2022-02-08 12:40:53 -080058 ],
59
60 // Statically link to libs not guaranteed to be present on the device.
61 static_libs: [
62 "android.hardware.camera.common@1.0-helper",
63 "android.hardware.camera.common-V1-ndk",
Jayant Chowdhary644676a2023-11-22 21:33:53 +000064 "android.hardware.camera.device-V3-ndk",
Avichal Rakesh468341e2024-01-05 13:29:09 -080065 "android.hardware.camera.metadata-V3-ndk",
Shuzhen Wangdf89cb92023-11-09 18:24:42 -080066 "android.hardware.camera.provider-V3-ndk",
Avichal Rakesh362242f2022-02-08 12:40:53 -080067 "android.hidl.allocator@1.0",
68 "libgrallocusage",
69 "libhidlmemory",
70 "libgralloctypes",
71 "libaidlcommonsupport",
Rucha Katakward08a0152023-10-13 15:47:58 -070072 "libgtest",
Avichal Rakesh362242f2022-02-08 12:40:53 -080073 ],
Steven Morelanda405bae2023-06-02 20:25:51 +000074
75 require_root: true,
76 test_options: {
77 test_runner_options: [
78 {
79 name: "native-test-timeout",
80 value: "1800000",
81 },
82 ],
83 },
Avichal Rakesh362242f2022-02-08 12:40:53 -080084 test_suites: [
85 "general-tests",
86 "vts",
87 ],
88}