blob: 8c4f733fb62a59c330a5f3722dbc0cb9eb7b3e6d [file] [log] [blame]
markchien932da862019-08-27 10:19:38 +08001//
2// Copyright (C) 2019 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.
markchien932da862019-08-27 10:19:38 +080015
16// AIDL interfaces between the core system and the tethering mainline module.
17aidl_interface {
18 name: "tethering-aidl-interfaces",
19 local_include_dir: "src",
markchien2c4cc6f2019-09-30 14:40:57 +080020 include_dirs: ["frameworks/base/core/java"], // For framework parcelables.
markchien932da862019-08-27 10:19:38 +080021 srcs: [
Remi NGUYEN VAN2781c802020-01-20 21:26:34 +090022 // @JavaOnlyStableParcelable aidl declarations must not be listed here, as this would cause
23 // compilation to fail (b/148001843).
24 "src/android/net/IIntResultListener.aidl",
25 "src/android/net/ITetheringConnector.aidl",
26 "src/android/net/ITetheringEventCallback.aidl",
27 "src/android/net/TetheringCallbackStartedParcel.aidl",
28 "src/android/net/TetheringConfigurationParcel.aidl",
29 "src/android/net/TetheringRequestParcel.aidl",
30 "src/android/net/TetherStatesParcel.aidl",
markchien932da862019-08-27 10:19:38 +080031 ],
32 backend: {
33 ndk: {
34 enabled: false,
35 },
36 cpp: {
37 enabled: false,
38 },
39 },
40}
41
42java_library {
markchiene7ccfca2019-12-16 20:15:20 +080043 name: "framework-tethering",
markchien2c4cc6f2019-09-30 14:40:57 +080044 sdk_version: "system_current",
markchiene7ccfca2019-12-16 20:15:20 +080045 srcs: [
Remi NGUYEN VAN2781c802020-01-20 21:26:34 +090046 "src/android/net/TetheredClient.java",
markchiene7ccfca2019-12-16 20:15:20 +080047 "src/android/net/TetheringManager.java",
markchien5786b6d2020-01-21 13:11:06 +080048 "src/android/net/TetheringConstants.java",
markchiene7ccfca2019-12-16 20:15:20 +080049 ":framework-tethering-annotations",
50 ],
markchien932da862019-08-27 10:19:38 +080051 static_libs: [
52 "tethering-aidl-interfaces-java",
53 ],
markchiene7ccfca2019-12-16 20:15:20 +080054 jarjar_rules: "jarjar-rules.txt",
55 installable: true,
56
57 libs: [
58 "android_system_stubs_current",
59 ],
Jiyong Park489e09a2020-01-06 13:30:59 +090060
61 hostdex: true, // for hiddenapi check
markchien44fc26d2020-02-06 19:23:26 +080062 visibility: ["//frameworks/base/packages/Tethering:__subpackages__"],
Jiyong Park489e09a2020-01-06 13:30:59 +090063 apex_available: ["com.android.tethering"],
markchien932da862019-08-27 10:19:38 +080064}
markchien2c4cc6f2019-09-30 14:40:57 +080065
markchien44fc26d2020-02-06 19:23:26 +080066droidstubs {
67 name: "framework-tethering-stubs-sources",
68 defaults: ["framework-module-stubs-defaults-module_libs_api"],
69 srcs: [
70 "src/android/net/TetheredClient.java",
71 "src/android/net/TetheringManager.java",
72 "src/android/net/TetheringConstants.java",
73 ],
74 libs: [
75 "tethering-aidl-interfaces-java",
76 "framework-all",
77 ],
78 sdk_version: "core_platform",
79}
80
81java_library {
82 name: "framework-tethering-stubs",
83 srcs: [":framework-tethering-stubs-sources"],
84 libs: ["framework-all"],
85 static_libs: ["tethering-aidl-interfaces-java"],
86 sdk_version: "core_platform",
87}
88
markchien2c4cc6f2019-09-30 14:40:57 +080089filegroup {
markchiene7ccfca2019-12-16 20:15:20 +080090 name: "framework-tethering-srcs",
91 srcs: [
Remi NGUYEN VAN2781c802020-01-20 21:26:34 +090092 "src/android/net/TetheredClient.aidl",
93 "src/android/net/TetheredClient.java",
markchiene7ccfca2019-12-16 20:15:20 +080094 "src/android/net/TetheringManager.java",
markchien5786b6d2020-01-21 13:11:06 +080095 "src/android/net/TetheringConstants.java",
markchiene7ccfca2019-12-16 20:15:20 +080096 "src/android/net/IIntResultListener.aidl",
97 "src/android/net/ITetheringEventCallback.aidl",
98 "src/android/net/ITetheringConnector.aidl",
markchien5786b6d2020-01-21 13:11:06 +080099 "src/android/net/TetheringCallbackStartedParcel.aidl",
markchiene7ccfca2019-12-16 20:15:20 +0800100 "src/android/net/TetheringConfigurationParcel.aidl",
markchienecaba162020-01-20 19:31:56 +0800101 "src/android/net/TetheringRequestParcel.aidl",
markchiene7ccfca2019-12-16 20:15:20 +0800102 "src/android/net/TetherStatesParcel.aidl",
103 ],
104 path: "src"
markchien2c4cc6f2019-09-30 14:40:57 +0800105}