• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2024 The Android Open-Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16    default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19rust_defaults {
20    name: "hw_crypto_hal_aidl_rust_defaults",
21    enabled: false,
22    prefer_rlib: true,
23    vendor_available: true,
24    rustlibs: [
25        "libbinder_rs",
26        "android.hardware.security.see.hwcrypto-V1-rust",
27        "liblogger",
28        "liblog_rust",
29        "libanyhow",
30        "libvsock",
31        "librpcbinder_rs",
32        "librustutils",
33        "libhwcryptohal_common",
34    ],
35    arch: {
36        arm64: {
37            enabled: true,
38        },
39        arm: {
40            enabled: true,
41        },
42    },
43}
44
45rust_library {
46    name: "libhwcryptohal_vts_test",
47    crate_name: "hwcryptohal_vts_test",
48    srcs: [
49        "lib.rs",
50    ],
51    defaults: [
52        "hw_crypto_hal_aidl_rust_defaults",
53    ],
54}
55
56rust_test {
57    name: "VtsAidlHwCryptoTests",
58    srcs: ["hwcryptokey_tests.rs"],
59    test_config: "AndroidKeyOperations.xml",
60    require_root: true,
61    defaults: [
62        "hw_crypto_hal_aidl_rust_defaults",
63        "rdroidtest.defaults",
64    ],
65    rustlibs: [
66        "libhwcryptohal_vts_test",
67    ],
68    test_suites: [
69        "general-tests",
70        "vts",
71    ],
72}
73
74rust_test {
75    name: "VtsAidlHwCryptoOperationsTests",
76    srcs: ["hwcrypto_operations_tests.rs"],
77    test_config: "AndroidTestOperations.xml",
78    require_root: true,
79    defaults: [
80        "hw_crypto_hal_aidl_rust_defaults",
81        "rdroidtest.defaults",
82    ],
83    rustlibs: [
84        "libhwcryptohal_vts_test",
85    ],
86    test_suites: [
87        "general-tests",
88        "vts",
89    ],
90}
91