1// Copyright (C) 2008 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_android_core_graphics_stack",
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20android_test {
21    name: "CtsGraphicsTestCases",
22    defaults: ["cts_defaults"],
23    compile_multilib: "both",
24    libs: [
25        "android.test.runner",
26        "android.test.base",
27    ],
28    static_libs: [
29        "androidx.test.rules",
30        "mockito-target-minus-junit4",
31        "compatibility-device-util-axt",
32        "ctsdeviceutillegacy-axt",
33        "ctstestrunner-axt",
34        "androidx.annotation_annotation",
35        "hamcrest-library",
36        "junit",
37        "flag-junit",
38        "junit-params",
39        "SurfaceFlingerProperties",
40        "testng",
41        "androidx.core_core",
42        "framework_graphics_flags_java_lib",
43        "com.android.text.flags-aconfig-java",
44        "com.android.window.flags.window-aconfig-java",
45        "hwui_flags_java_lib",
46        "libmonet",
47        "android.view.flags-aconfig-java",
48        "ravenwood-junit",
49    ],
50    jni_libs: ["libctsgraphics_jni"],
51    srcs: [
52        "src/**/*.kt",
53        "src/**/*.java",
54    ],
55    // Tag this module as a cts test artifact
56    test_suites: [
57        "cts",
58        "general-tests",
59    ],
60    // Enforce public / test api only
61    sdk_version: "test_current",
62}
63
64android_ravenwood_test {
65    name: "CtsGraphicsTestCasesRavenwood",
66    defaults: ["cts_defaults"],
67    static_libs: [
68        "androidx.annotation_annotation",
69        "androidx.test.rules",
70        "compatibility-device-util-axt",
71        "junit-params",
72    ],
73    srcs: [
74        "src/android/graphics/cts/ColorTest.java",
75        "src/android/graphics/cts/ColorSpaceTest.java",
76        "src/android/graphics/cts/InsetsTest.java",
77        "src/android/graphics/cts/InterpolatorTest.java",
78        "src/android/graphics/cts/MatrixTest.java",
79        "src/android/graphics/cts/PathTest.java",
80        "src/android/graphics/cts/PointFTest.java",
81        "src/android/graphics/cts/PointTest.java",
82        "src/android/graphics/cts/RectFTest.java",
83        "src/android/graphics/cts/RectTest.java",
84    ],
85    auto_gen_config: true,
86}
87