1// 2// Copyright (C) 2018 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_windowing_tools", 19 default_applicable_licenses: ["Android-Apache-2.0"], 20} 21 22java_defaults { 23 name: "FlickerLibTestDefault", 24 manifest: "manifests/AndroidManifest.xml", 25 test_config_template: "AndroidTestTemplate.xml", 26 // sign this with platform cert, so this test is allowed to call private platform apis 27 certificate: "platform", 28 platform_apis: true, 29 test_suites: ["device-tests"], 30 libs: ["android.test.runner"], 31 optimize: { 32 enabled: false, 33 }, 34 static_libs: [ 35 "flickerlib", 36 "flickerlib-trace_processor_shell", 37 "FlickerLibTest-Utils", 38 "launcher-aosp-tapl", 39 "mockito-target-extended-minus-junit4", 40 ], 41 data: [ 42 "trace_config/*", 43 ] 44} 45 46android_test { 47 name: "FlickerLibTest", 48 defaults: ["FlickerLibTestDefault"], 49 additional_manifests: ["manifests/AndroidManifestUnit.xml"], 50 package_name: "android.tools", 51 instrumentation_target_package: "android.tools", 52 srcs: [ 53 "src/**/*.kt", 54 ], 55 exclude_srcs: [ 56 "src/android/tools/integration/**/*.kt", 57 ], 58 static_libs: [ 59 "//frameworks/base/packages/SystemUI/aconfig:com_android_systemui_flags_lib", 60 ], 61} 62 63android_test { 64 name: "FlickerLibTestE2e", 65 defaults: ["FlickerLibTestDefault"], 66 additional_manifests: ["manifests/AndroidManifestIntegration.xml"], 67 package_name: "android.tools.integration", 68 instrumentation_target_package: "android.tools.integration", 69 srcs: [ 70 "src/android/tools/integration/**/*.kt", 71 "src/android/tools/rules/**/*.kt", 72 "src/android/tools/Utils.kt", 73 ], 74 static_libs: [ 75 "//frameworks/base/packages/SystemUI/aconfig:com_android_systemui_flags_lib", 76 ], 77} 78