1//
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.
15
16java_sdk_library {
17    name: "framework-tethering",
18    defaults: ["framework-module-defaults"],
19
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
29    srcs: [
30        ":framework-tethering-srcs",
31    ],
32
33    jarjar_rules: "jarjar-rules.txt",
34    installable: true,
35
36    hostdex: true, // for hiddenapi check
37    apex_available: ["com.android.tethering"],
38    permitted_packages: ["android.net"],
39}
40
41filegroup {
42    name: "framework-tethering-srcs",
43    srcs: [
44        "src/android/net/TetheredClient.aidl",
45        "src/android/net/TetheredClient.java",
46        "src/android/net/TetheringManager.java",
47        "src/android/net/TetheringConstants.java",
48        "src/android/net/IIntResultListener.aidl",
49        "src/android/net/ITetheringEventCallback.aidl",
50        "src/android/net/ITetheringConnector.aidl",
51        "src/android/net/TetheringCallbackStartedParcel.aidl",
52        "src/android/net/TetheringConfigurationParcel.aidl",
53        "src/android/net/TetheringRequestParcel.aidl",
54        "src/android/net/TetherStatesParcel.aidl",
55    ],
56    path: "src"
57}
58