blob: 24762ff7065a296d3ff678e3d3e5662a1ffea0a1 [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",
Remi NGUYEN VAN63dc2792020-01-31 15:05:22 +090044 // TODO (b/146757305): change to module_app_current once available
45 sdk_version: "core_platform",
markchiene7ccfca2019-12-16 20:15:20 +080046 srcs: [
Remi NGUYEN VAN2781c802020-01-20 21:26:34 +090047 "src/android/net/TetheredClient.java",
markchiene7ccfca2019-12-16 20:15:20 +080048 "src/android/net/TetheringManager.java",
markchien5786b6d2020-01-21 13:11:06 +080049 "src/android/net/TetheringConstants.java",
markchiene7ccfca2019-12-16 20:15:20 +080050 ],
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: [
Remi NGUYEN VAN63dc2792020-01-31 15:05:22 +090058 "framework-annotations-lib",
markchiene7ccfca2019-12-16 20:15:20 +080059 "android_system_stubs_current",
60 ],
Jiyong Park489e09a2020-01-06 13:30:59 +090061
62 hostdex: true, // for hiddenapi check
63 visibility: [
64 "//frameworks/base/packages/Tethering:__subpackages__",
65 //TODO(b/147200698) remove below lines when the platform is built with stubs
66 "//frameworks/base",
67 "//frameworks/base/services",
68 "//frameworks/base/services/core",
69 ],
70 apex_available: ["com.android.tethering"],
markchien932da862019-08-27 10:19:38 +080071}
markchien2c4cc6f2019-09-30 14:40:57 +080072
markchien2c4cc6f2019-09-30 14:40:57 +080073filegroup {
markchiene7ccfca2019-12-16 20:15:20 +080074 name: "framework-tethering-srcs",
75 srcs: [
Remi NGUYEN VAN2781c802020-01-20 21:26:34 +090076 "src/android/net/TetheredClient.aidl",
77 "src/android/net/TetheredClient.java",
markchiene7ccfca2019-12-16 20:15:20 +080078 "src/android/net/TetheringManager.java",
markchien5786b6d2020-01-21 13:11:06 +080079 "src/android/net/TetheringConstants.java",
markchiene7ccfca2019-12-16 20:15:20 +080080 "src/android/net/IIntResultListener.aidl",
81 "src/android/net/ITetheringEventCallback.aidl",
82 "src/android/net/ITetheringConnector.aidl",
markchien5786b6d2020-01-21 13:11:06 +080083 "src/android/net/TetheringCallbackStartedParcel.aidl",
markchiene7ccfca2019-12-16 20:15:20 +080084 "src/android/net/TetheringConfigurationParcel.aidl",
markchienecaba162020-01-20 19:31:56 +080085 "src/android/net/TetheringRequestParcel.aidl",
markchiene7ccfca2019-12-16 20:15:20 +080086 "src/android/net/TetherStatesParcel.aidl",
87 ],
88 path: "src"
markchien2c4cc6f2019-09-30 14:40:57 +080089}