| // Copyright (C) 2021 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_applicable_licenses: ["Android-Apache-2.0"], |
| } |
| |
| genrule { |
| name: "statslog-qns-java-gen", |
| tools: ["stats-log-api-gen"], |
| cmd: "$(location stats-log-api-gen) --java $(out) --module qns --javaPackage com.android.telephony.qns.stats --javaClass QnsStatsLog --worksource", |
| out: ["com/android/telephony/qns/stats/QnsStatsLog.java"], |
| } |
| |
| android_app { |
| name: "QualifiedNetworksService", |
| system_ext_specific: true, |
| platform_apis: true, |
| manifest: "AndroidManifest.xml", |
| srcs: [ |
| "src/**/*.java", |
| "src/**/I*.aidl", |
| ":statslog-qns-java-gen", |
| ], |
| |
| static_libs: [ |
| "androidx.appcompat_appcompat", |
| "androidx.browser_browser", |
| "TelephonyStatsLib", |
| ], |
| |
| libs: [ |
| "telephony-common", |
| "ims-common", |
| "framework-annotations-lib", |
| "framework-connectivity", |
| "framework-wifi", |
| ], |
| |
| plugins: ["auto_value_plugin"], |
| |
| required: [ |
| "privapp-permissions_com.android.telephony.qns", |
| ], |
| |
| apex_available: [ |
| "//apex_available:platform", |
| "com.android.telephonymodules", |
| ], |
| |
| owner: "google", |
| privileged: true, |
| certificate: "platform", |
| } |
| |
| prebuilt_etc { |
| name: "privapp-permissions_com.android.telephony.qns", |
| sub_dir: "permissions", |
| src: "privapp-permissions_com.android.telephony.qns.xml", |
| filename_from_src: true, |
| system_ext_specific: true, |
| } |
| |
| android_test { |
| name: "QualifiedNetworksServiceTests", |
| manifest: "tests/AndroidManifest.xml", |
| srcs: [ |
| "src/**/*.java", |
| "src/**/I*.aidl", |
| "tests/**/*.java", |
| ":statslog-qns-java-gen", |
| ], |
| libs: [ |
| "android.test.runner", |
| "telephony-common", |
| "ims-common", |
| "android.test.mock", |
| "android.test.base", |
| ], |
| static_libs: [ |
| "androidx.appcompat_appcompat", |
| "androidx.browser_browser", |
| "androidx.test.ext.truth", |
| "androidx.test.ext.junit", |
| "androidx.test.rules", |
| "androidx.test.core", |
| "frameworks-base-testutils", |
| "mockito-target-extended-minus-junit4", |
| "platform-test-annotations", |
| "truth", |
| "testables", |
| "TelephonyStatsLib", |
| ], |
| jni_libs: [ |
| "libdexmakerjvmtiagent", |
| "libstaticjvmtiagent", |
| ], |
| platform_apis: true, |
| certificate: "platform", |
| instrumentation_for: "QualifiedNetworksService", |
| test_suites: ["device-tests"], |
| } |