• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
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    default_team: "trendy_team_camera_framework",
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: "VtsAidlHalCameraProvider_TargetTest",
29    defaults: [
30        "VtsHalTargetTestDefaults",
31        "android.hardware.graphics.common-ndk_static",
32        "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        "camera_platform_flags_c_lib",
58    ],
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",
64        "android.hardware.camera.device-V3-ndk",
65        "android.hardware.camera.metadata-V3-ndk",
66        "android.hardware.camera.provider-V3-ndk",
67        "android.hidl.allocator@1.0",
68        "libgrallocusage",
69        "libhidlmemory",
70        "libgralloctypes",
71        "libaidlcommonsupport",
72        "libgtest",
73    ],
74
75    require_root: true,
76    test_options: {
77        test_runner_options: [
78            {
79                name: "native-test-timeout",
80                value: "1800000",
81            },
82        ],
83    },
84    test_suites: [
85        "general-tests",
86        "vts",
87    ],
88}
89