| // Copyright (C) 2015 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_fwk_telephony", |
| default_applicable_licenses: ["Android-Apache-2.0"], |
| } |
| |
| filegroup { |
| name: "car-mode-app-srcs", |
| srcs: [ |
| "src/android/telecom/cts/carmodetestapp/CtsCarModeInCallService.java", |
| "src/android/telecom/cts/carmodetestapp/CtsCarModeInCallServiceControl.java", |
| ], |
| path: "src/", |
| } |
| |
| filegroup { |
| name: "car-mode-app-aidl", |
| srcs: [ |
| "aidl/android/telecom/cts/carmodetestapp/ICtsCarModeInCallServiceControl.aidl", |
| ], |
| path: "aidl/", |
| } |
| |
| filegroup { |
| name: "self-managed-cs-app-srcs", |
| srcs: [ |
| "src/android/telecom/cts/selfmanagedcstestapp/ConnectionServiceCallController.java", |
| "src/android/telecom/cts/CtsSelfManagedConnectionService.java", |
| "src/android/telecom/cts/selfmanagedcstestapp/CtsSelfManagedConnectionServiceControl.java", |
| ], |
| path: "src/", |
| } |
| |
| filegroup { |
| name: "self-managed-cs-app-aidl", |
| srcs: [ |
| "aidl/android/telecom/cts/selfmanagedcstestapp/ICtsSelfManagedConnectionServiceControl.aidl", |
| ], |
| path: "aidl/", |
| } |
| |
| filegroup { |
| name: "third-pty-dialer-app-srcs", |
| srcs: [ |
| "ThirdPtyInCallServiceTestApp/src/android/telecom/cts/thirdptyincallservice/CtsThirdPartyInCallService.java", |
| "ThirdPtyInCallServiceTestApp/src/android/telecom/cts/thirdptyincallservice/CtsThirdPartyInCallServiceControl.java", |
| "ThirdPtyInCallServiceTestApp/src/android/telecom/cts/thirdptyincallservice/CtsThirdPartyInCallServiceActivity.java", |
| ], |
| path: "ThirdPtyInCallServiceTestApp/", |
| } |
| |
| filegroup { |
| name: "third-pty-dialer-app-aidl", |
| srcs: [ |
| "ThirdPtyInCallServiceTestApp/aidl/android/telecom/cts/thirdptyincallservice/ICtsThirdPartyInCallServiceControl.aidl", |
| ], |
| path: "ThirdPtyInCallServiceTestApp/", |
| } |
| |
| filegroup { |
| name: "non-ui-ics-wo-export-srcs", |
| srcs: [ |
| "NonUiInCallServiceWoExport/src/android/telecom/cts/nonuiincallservicewoexport/CtsNonUiInCallServiceWoExport.java", |
| "NonUiInCallServiceWoExport/src/android/telecom/cts/nonuiincallservicewoexport/CtsNonUiInCallServiceWoExportControl.java", |
| ], |
| path: "NonUiInCallServiceWoExport/", |
| } |
| |
| filegroup { |
| name: "non-ui-ics-wo-export-aidl", |
| srcs: [ |
| "NonUiInCallServiceWoExport/aidl/android/telecom/cts/nonuiincallservicewoexport/ICtsNonUiInCallServiceWoExportControl.aidl", |
| ], |
| path: "NonUiInCallServiceWoExport/", |
| } |
| |
| android_test { |
| name: "CtsTelecomTestCases", |
| defaults: ["cts_defaults"], |
| static_libs: [ |
| "compatibility-device-util-axt", |
| "ctstestrunner-axt", |
| "androidx.test.core", |
| "androidx.test.rules", |
| "CtsTelecomUtilLib", |
| "telecom_flags_core_java_lib", |
| ], |
| libs: [ |
| "android.test.base", |
| "android.test.runner", |
| ], |
| srcs: [ |
| "src/**/*.java", |
| "aidl/**/I*.aidl", |
| "CallScreeningServiceTestApp/**/*.java", |
| "CallScreeningServiceTestApp/**/I*.aidl", |
| "CallStreamingServiceTestApp/**/*.java", |
| "CallStreamingServiceTestApp/**/I*.aidl", |
| "ThirdPtyInCallServiceTestApp/**/*.java", |
| "ThirdPtyInCallServiceTestApp/**/I*.aidl", |
| "CallRedirectionServiceTestApp/**/*.java", |
| "CallRedirectionServiceTestApp/**/I*.aidl", |
| "Api29InCallServiceTestApp/**/*.java", |
| "Api29InCallServiceTestApp/**/I*.aidl", |
| "NonUiInCallServiceWoExport/**/*.java", |
| "NonUiInCallServiceWoExport/**/I*.aidl", |
| "ThirdPtyDialerTestApp/**/*.java", |
| "ThirdPtyDialerTestAppTwo/**/*.java", |
| "CarModeTestAppSelfManaged/**/*.java", |
| "CarModeTestAppTwo/**/*.java", |
| "SelfManagedCSTestAppOne/**/*.java", |
| ], |
| exclude_srcs: [ |
| "src/android/telecom/cts/SelfManagedConnection.java", |
| "src/android/telecom/cts/CtsSelfManagedConnectionService.java", |
| "src/android/telecom/cts/TestUtils.java", |
| ], |
| aidl: { |
| local_include_dirs: [ |
| "NonUiInCallServiceWoExport/aidl/", |
| "ThirdPtyInCallServiceTestApp/aidl/", |
| "CallRedirectionServiceTestApp/aidl/", |
| "CallScreeningServiceTestApp/aidl/", |
| "CallStreamingServiceTestApp/aidl/", |
| "aidl/", |
| ], |
| }, |
| sdk_version: "test_current", |
| min_sdk_version: "21", |
| // Tag this module as a cts test artifact |
| test_suites: [ |
| "cts", |
| "general-tests", |
| ], |
| data: [ |
| ":NonUiInCallServiceWoExport", |
| ":ThirdPtyInCallServiceTestApp", |
| ":CarModeTestAppTwo", |
| ":SelfManagedCSTestAppOne", |
| ":Api29InCallServiceTestApp", |
| ":CallRedirectionServiceTestApp", |
| ":ThirdPtyDialerTestAppTwo", |
| ":ThirdPtyDialerTestApp", |
| ":CarModeTestApp", |
| ":CarModeTestAppSelfManaged", |
| ":CallScreeningServiceTestApp", |
| ":CallStreamingServiceTestApp", |
| ], |
| per_testcase_directory: true, |
| } |
| |
| java_library { |
| name: "CtsTelecomMockLib", |
| srcs: [ |
| "src/android/telecom/cts/MockInCallService.java", |
| "src/android/telecom/cts/MockVideoCallCallback.java", |
| "src/android/telecom/cts/MockVideoProvider.java", |
| "src/android/telecom/cts/MockConnection.java", |
| ], |
| static_libs: ["CtsTelecomUtilLib"], |
| libs: [ |
| "androidx.test.core", |
| "androidx.test.rules", |
| ], |
| } |
| |
| java_library { |
| name: "CtsTelecomUtilLib", |
| srcs: [ |
| "src/android/telecom/cts/SelfManagedConnection.java", |
| "src/android/telecom/cts/CtsSelfManagedConnectionService.java", |
| "src/android/telecom/cts/TestUtils.java", |
| ], |
| libs: [ |
| "androidx.test.core", |
| "androidx.test.rules", |
| ], |
| } |