| // Copyright (C) 2023 The Android Open Source Project |
| // |
| // Licensed under the Apache License, Version 2.0 (the "License"); |
| // you may not use this file except in compliance with the License. |
| // You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| |
| package { |
| default_team: "trendy_team_windowing_infra_", |
| default_applicable_licenses: ["Android-Apache-2.0"], |
| } |
| |
| java_defaults { |
| name: "CtsSurfaceControlTests_javalibs", |
| |
| libs: [ |
| "android.test.runner.stubs", |
| "android.test.base.stubs", |
| "android.view.flags-aconfig-java", |
| ], |
| |
| static_libs: [ |
| "androidx.test.rules", |
| "androidx.test.ext.junit", |
| "android.hardware.flags-aconfig-java", |
| "compatibility-device-util-axt", |
| "ctsdeviceutillegacy-axt", |
| "ctstestrunner-axt", |
| "cts-input-lib", |
| "cts-hardware-lib", |
| "junit-params", |
| "mockito-target-minus-junit4", |
| "platform-test-annotations", |
| "androidx.test.uiautomator_uiautomator", |
| "truth", |
| "CtsSurfaceValidatorLib", |
| "cts-wm-util", |
| "CtsMockInputMethodLib", |
| "CtsCrossProcessSurfaceControlViewHostTestService", |
| "CtsVirtualDeviceCommonLib", |
| "flag-junit", |
| "com.android.window.flags.window-aconfig-java", |
| "hwui_flags_java_lib", |
| "ui-trace-collector", |
| "collector-device-lib", |
| "cts_backported_fixes", |
| "surfaceflinger_flags_java_lib", |
| "ravenwood-junit", |
| "bedstead-enterprise", |
| "TestParameterInjector", |
| ], |
| |
| javacflags: ["-parameters"], |
| } |
| |
| android_test { |
| name: "CtsSurfaceControlTests", |
| defaults: [ |
| "cts_defaults", |
| "CtsSurfaceControlTests_javalibs", |
| ], |
| |
| // Tag this module as a cts test artifact |
| // Adding the test SurfaceFlingerTest to CTS downstreaming to be run in GTS |
| test_suites: [ |
| "cts", |
| "general-tests", |
| ], |
| |
| compile_multilib: "both", |
| |
| jni_libs: [ |
| "libctssurfacecontrol_jni", |
| "libnativehelper_compat_libc++", |
| ], |
| |
| srcs: [ |
| "src/**/*.java", |
| "src/**/*.aidl", |
| ], |
| |
| data: [ |
| ":CtsCrossProcessSurfaceControlViewHostTestService", |
| ":CtsMockInputMethod", |
| ], |
| |
| sdk_version: "test_current", |
| } |
| |
| android_ravenwood_test { |
| name: "CtsSurfaceControlTestsRavenwood", |
| auto_gen_config: true, |
| defaults: [ |
| "CtsSurfaceControlTests_javalibs", |
| ], |
| |
| srcs: [ |
| "src/android/view/surfacecontrol/cts/ChoreographerTest.java", |
| "src/**/*.aidl", |
| ], |
| |
| sdk_version: "test_current", |
| |
| ravenizer: { |
| strip_mockito: true, |
| }, |
| } |
| |
| test_module_config { |
| name: "CtsSurfaceControlTests_input_related", |
| base: "CtsSurfaceControlTests", |
| test_suites: ["general-tests"], |
| include_filters: [ |
| "android.view.surfacecontrol.cts.ASurfaceControlInputReceiverTest", |
| "android.view.surfacecontrol.cts.SetTouchableRegionTest", |
| "android.view.surfacecontrol.cts.SurfaceControlInputReceiverTests", |
| "android.view.surfacecontrol.cts.SurfaceControlViewHostTests", |
| ], |
| } |