1// Copyright (C) 2017 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_team: "trendy_team_biometrics_framework",
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20android_test {
21    name: "CtsBiometricsTestCases",
22
23    defaults: ["cts_defaults"],
24    test_suites: [
25        "cts",
26        "vts10",
27        "general-tests",
28    ],
29
30    compile_multilib: "both",
31    libs: [
32        "android.test.runner",
33        "android.test.base",
34    ],
35    static_libs: [
36        "androidx.annotation_annotation",
37        "androidx.test.ext.junit",
38        "compatibility-device-util-axt",
39        "com_android_systemui_flags_lib",
40        "cts-biometric-util",
41        "cts-input-lib",
42        "cts-wm-util",
43        "ctstestrunner-axt",
44        "mockito-target-minus-junit4",
45        "platform-test-annotations",
46        "platformprotosnano",
47        "androidx.test.uiautomator_uiautomator",
48        "android.hardware.biometrics.flags-aconfig-java",
49        "flag-junit",
50    ],
51
52    srcs: ["src/android/server/biometrics/*.java"],
53    data: [
54        ":CtsBiometricServiceTestApp",
55        ":CtsBiometricServiceUtilTestApp",
56    ],
57
58    sdk_version: "test_current",
59
60    manifest: "AndroidManifest.xml",
61    test_config: "AndroidTest.xml",
62}
63
64android_test {
65    name: "CtsFingerprintTestCases",
66
67    defaults: ["cts_defaults"],
68    test_suites: [
69        "cts",
70        "vts10",
71        "general-tests",
72    ],
73
74    compile_multilib: "both",
75    libs: [
76        "android.test.runner",
77        "android.test.base",
78    ],
79    static_libs: [
80        "androidx.annotation_annotation",
81        "androidx.test.ext.junit",
82        "compatibility-device-util-axt",
83        "cts-biometric-util",
84        "cts-biometric-util-fpm",
85        "cts-input-lib",
86        "cts-wm-util",
87        "ctstestrunner-axt",
88        "mockito-target-minus-junit4",
89        "platform-test-annotations",
90        "platformprotosnano",
91        "androidx.test.uiautomator_uiautomator",
92        "android.hardware.biometrics.flags-aconfig-java",
93        "flag-junit",
94        "Harrier",
95        "truth",
96    ],
97
98    srcs: ["src/android/server/biometrics/fingerprint/*.java"],
99    data: [
100        ":CtsFingerprintServiceTestApp",
101        ":CtsBiometricServiceUtilTestApp",
102    ],
103
104    // removed in 35+
105    platform_apis: true,
106
107    manifest: "AndroidManifest-fpm.xml",
108    test_config: "AndroidTest-fpm.xml",
109}
110
111java_test_helper_library {
112    name: "cts-biometric-util",
113    sdk_version: "test_current",
114    static_libs: [
115        "androidx.annotation_annotation",
116        "cts-wm-util",
117        "android.hardware.biometrics.flags-aconfig-java",
118    ],
119
120    srcs: ["src/android/server/biometrics/util/*.java"],
121}
122
123java_test_helper_library {
124    name: "cts-biometric-util-fpm",
125
126    static_libs: [
127        "androidx.annotation_annotation",
128        "cts-wm-util",
129    ],
130
131    srcs: ["src/android/server/biometrics/fingerprint/util/*.java"],
132}
133