blob: c8becce7be8249e7e34548712a7090884286a4ea [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
Paul Duffin2dae2722020-05-13 12:28:49 +010016java_sdk_library {
markchien9d353822019-12-16 20:15:20 +080017 name: "framework-tethering",
Paul Duffin2dae2722020-05-13 12:28:49 +010018 defaults: ["framework-module-defaults"],
Paul Duffin2a8d3802020-06-02 11:36:56 +010019
20 // Allow access to the stubs from anywhere.
21 visibility: ["//visibility:public"],
22
23 // Restrict access to implementation library.
24 impl_library_visibility: [
25 "//visibility:override", // Ignore the visibility property.
26 "//frameworks/base/packages/Tethering:__subpackages__",
27 ],
28
markchien9d353822019-12-16 20:15:20 +080029 srcs: [
Paul Duffin82e71652020-05-13 09:56:18 +010030 ":framework-tethering-srcs",
markchien932da862019-08-27 10:19:38 +080031 ],
Paul Duffin2dae2722020-05-13 12:28:49 +010032
markchien9d353822019-12-16 20:15:20 +080033 jarjar_rules: "jarjar-rules.txt",
34 installable: true,
35
Jiyong Park1eb89332020-01-06 13:30:59 +090036 hostdex: true, // for hiddenapi check
Jiyong Park1eb89332020-01-06 13:30:59 +090037 apex_available: ["com.android.tethering"],
Vladimir Markoeae43d42020-03-25 11:19:36 +000038 permitted_packages: ["android.net"],
markchien932da862019-08-27 10:19:38 +080039}
markchienee6ad372019-09-30 14:40:57 +080040
markchienee6ad372019-09-30 14:40:57 +080041filegroup {
markchien9d353822019-12-16 20:15:20 +080042 name: "framework-tethering-srcs",
43 srcs: [
Remi NGUYEN VAN3662c1b2020-01-20 21:26:34 +090044 "src/android/net/TetheredClient.aidl",
45 "src/android/net/TetheredClient.java",
markchien9d353822019-12-16 20:15:20 +080046 "src/android/net/TetheringManager.java",
markchien249752d2020-01-21 13:11:06 +080047 "src/android/net/TetheringConstants.java",
markchien9d353822019-12-16 20:15:20 +080048 "src/android/net/IIntResultListener.aidl",
49 "src/android/net/ITetheringEventCallback.aidl",
50 "src/android/net/ITetheringConnector.aidl",
markchien249752d2020-01-21 13:11:06 +080051 "src/android/net/TetheringCallbackStartedParcel.aidl",
markchien9d353822019-12-16 20:15:20 +080052 "src/android/net/TetheringConfigurationParcel.aidl",
markchienf6761bd2020-01-20 19:31:56 +080053 "src/android/net/TetheringRequestParcel.aidl",
markchien9d353822019-12-16 20:15:20 +080054 "src/android/net/TetherStatesParcel.aidl",
55 ],
56 path: "src"
markchienee6ad372019-09-30 14:40:57 +080057}