• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
16package {
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20java_sdk_library {
21    name: "framework-tethering",
22    defaults: ["framework-module-defaults"],
23    impl_library_visibility: [
24        "//packages/modules/Connectivity/Tethering:__subpackages__",
25        "//packages/modules/Connectivity/tests:__subpackages__",
26    ],
27
28    srcs: [":framework-tethering-srcs"],
29    libs: ["framework-connectivity.stubs.module_lib"],
30    stub_only_libs: ["framework-connectivity.stubs.module_lib"],
31    aidl: {
32        include_dirs: [
33            "packages/modules/Connectivity/framework/aidl-export",
34        ],
35    },
36
37    jarjar_rules: "jarjar-rules.txt",
38    installable: true,
39
40    hostdex: true, // for hiddenapi check
41    apex_available: ["com.android.tethering"],
42    permitted_packages: ["android.net"],
43    min_sdk_version: "30",
44}
45
46filegroup {
47    name: "framework-tethering-srcs",
48    srcs: [
49        "src/android/net/TetheredClient.aidl",
50        "src/android/net/TetheredClient.java",
51        "src/android/net/TetheringManager.java",
52        "src/android/net/TetheringConstants.java",
53        "src/android/net/IIntResultListener.aidl",
54        "src/android/net/ITetheringEventCallback.aidl",
55        "src/android/net/ITetheringConnector.aidl",
56        "src/android/net/TetheringCallbackStartedParcel.aidl",
57        "src/android/net/TetheringConfigurationParcel.aidl",
58        "src/android/net/TetheringRequestParcel.aidl",
59        "src/android/net/TetherStatesParcel.aidl",
60        "src/android/net/TetheringInterface.aidl",
61        "src/android/net/TetheringInterface.java",
62    ],
63    path: "src"
64}
65