1// Copyright (C) 2021 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_fwk_telephony", 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20genrule { 21 name: "statslog-qns-java-gen", 22 tools: ["stats-log-api-gen"], 23 cmd: "$(location stats-log-api-gen) --java $(out) --module qns --javaPackage com.android.telephony.qns.stats --javaClass QnsStatsLog --worksource", 24 out: ["com/android/telephony/qns/stats/QnsStatsLog.java"], 25} 26 27android_app { 28 name: "QualifiedNetworksService", 29 system_ext_specific: true, 30 platform_apis: true, 31 manifest: "AndroidManifest.xml", 32 srcs: [ 33 "src/**/*.java", 34 "src/**/I*.aidl", 35 ":statslog-qns-java-gen", 36 ], 37 38 static_libs: [ 39 "androidx.appcompat_appcompat", 40 "androidx.browser_browser", 41 "TelephonyStatsLib", 42 ], 43 44 libs: [ 45 "telephony-common", 46 "ims-common", 47 "framework-annotations-lib", 48 "framework-connectivity", 49 "framework-wifi", 50 ], 51 52 plugins: ["auto_value_plugin"], 53 54 required: [ 55 "privapp-permissions_com.android.telephony.qns", 56 ], 57 58 apex_available: [ 59 "//apex_available:platform", 60 "com.android.telephonymodules", 61 ], 62 63 owner: "google", 64 privileged: true, 65 certificate: "platform", 66} 67 68prebuilt_etc { 69 name: "privapp-permissions_com.android.telephony.qns", 70 sub_dir: "permissions", 71 src: "privapp-permissions_com.android.telephony.qns.xml", 72 filename_from_src: true, 73 system_ext_specific: true, 74} 75 76android_test { 77 name: "QualifiedNetworksServiceTests", 78 manifest: "tests/AndroidManifest.xml", 79 srcs: [ 80 "src/**/*.java", 81 "src/**/I*.aidl", 82 "tests/**/*.java", 83 ":statslog-qns-java-gen", 84 ], 85 libs: [ 86 "android.test.runner", 87 "telephony-common", 88 "ims-common", 89 "android.test.mock", 90 "android.test.base", 91 ], 92 static_libs: [ 93 "androidx.appcompat_appcompat", 94 "androidx.browser_browser", 95 "androidx.test.ext.truth", 96 "androidx.test.ext.junit", 97 "androidx.test.rules", 98 "androidx.test.core", 99 "frameworks-base-testutils", 100 "mockito-target-extended-minus-junit4", 101 "platform-test-annotations", 102 "truth", 103 "testables", 104 "TelephonyStatsLib", 105 ], 106 jni_libs: [ 107 "libdexmakerjvmtiagent", 108 "libstaticjvmtiagent", 109 ], 110 platform_apis: true, 111 certificate: "platform", 112 instrumentation_for: "QualifiedNetworksService", 113 test_suites: ["device-tests"], 114} 115