blob: 5b73dd53a285b7c26f8c9bfeadcff3ba5f9ba7bf [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",
markchienee6ad372019-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 VAN3662c1b2020-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 {
markchien9d353822019-12-16 20:15:20 +080043 name: "framework-tethering",
markchien9e0792f2020-02-25 00:22:44 +080044 sdk_version: "module_current",
markchien9d353822019-12-16 20:15:20 +080045 srcs: [
Remi NGUYEN VAN3662c1b2020-01-20 21:26:34 +090046 "src/android/net/TetheredClient.java",
markchien9d353822019-12-16 20:15:20 +080047 "src/android/net/TetheringManager.java",
markchien249752d2020-01-21 13:11:06 +080048 "src/android/net/TetheringConstants.java",
markchien9d353822019-12-16 20:15:20 +080049 ],
markchien932da862019-08-27 10:19:38 +080050 static_libs: [
51 "tethering-aidl-interfaces-java",
52 ],
markchien9d353822019-12-16 20:15:20 +080053 jarjar_rules: "jarjar-rules.txt",
54 installable: true,
55
56 libs: [
Remi NGUYEN VAN293d3512020-01-31 15:05:22 +090057 "framework-annotations-lib",
markchien9d353822019-12-16 20:15:20 +080058 ],
Jiyong Park1eb89332020-01-06 13:30:59 +090059
60 hostdex: true, // for hiddenapi check
markchienb6ad1962020-02-14 11:55:48 +080061 visibility: ["//frameworks/base/packages/Tethering:__subpackages__"],
Jiyong Park1eb89332020-01-06 13:30:59 +090062 apex_available: ["com.android.tethering"],
markchien932da862019-08-27 10:19:38 +080063}
markchienee6ad372019-09-30 14:40:57 +080064
markchienb6ad1962020-02-14 11:55:48 +080065droidstubs {
66 name: "framework-tethering-stubs-sources",
67 defaults: ["framework-module-stubs-defaults-module_libs_api"],
68 srcs: [
69 "src/android/net/TetheredClient.java",
70 "src/android/net/TetheringManager.java",
71 "src/android/net/TetheringConstants.java",
72 ],
73 libs: [
74 "tethering-aidl-interfaces-java",
75 "framework-all",
76 ],
77 sdk_version: "core_platform",
78}
79
80java_library {
81 name: "framework-tethering-stubs",
82 srcs: [":framework-tethering-stubs-sources"],
83 libs: ["framework-all"],
markchienb6ad1962020-02-14 11:55:48 +080084 sdk_version: "core_platform",
85}
86
markchienee6ad372019-09-30 14:40:57 +080087filegroup {
markchien9d353822019-12-16 20:15:20 +080088 name: "framework-tethering-srcs",
89 srcs: [
Remi NGUYEN VAN3662c1b2020-01-20 21:26:34 +090090 "src/android/net/TetheredClient.aidl",
91 "src/android/net/TetheredClient.java",
markchien9d353822019-12-16 20:15:20 +080092 "src/android/net/TetheringManager.java",
markchien249752d2020-01-21 13:11:06 +080093 "src/android/net/TetheringConstants.java",
markchien9d353822019-12-16 20:15:20 +080094 "src/android/net/IIntResultListener.aidl",
95 "src/android/net/ITetheringEventCallback.aidl",
96 "src/android/net/ITetheringConnector.aidl",
markchien249752d2020-01-21 13:11:06 +080097 "src/android/net/TetheringCallbackStartedParcel.aidl",
markchien9d353822019-12-16 20:15:20 +080098 "src/android/net/TetheringConfigurationParcel.aidl",
markchienf6761bd2020-01-20 19:31:56 +080099 "src/android/net/TetheringRequestParcel.aidl",
markchien9d353822019-12-16 20:15:20 +0800100 "src/android/net/TetherStatesParcel.aidl",
101 ],
102 path: "src"
markchienee6ad372019-09-30 14:40:57 +0800103}