markchien | 017fef2 | 2019-08-27 10:19:38 +0800 | [diff] [blame] | 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. |
markchien | 017fef2 | 2019-08-27 10:19:38 +0800 | [diff] [blame] | 15 | |
| 16 | // AIDL interfaces between the core system and the tethering mainline module. |
| 17 | aidl_interface { |
| 18 | name: "tethering-aidl-interfaces", |
Jiyong Park | db589dd | 2020-04-13 12:55:24 +0900 | [diff] [blame] | 19 | unstable: true, |
markchien | 017fef2 | 2019-08-27 10:19:38 +0800 | [diff] [blame] | 20 | local_include_dir: "src", |
markchien | 0f63ca6 | 2019-09-30 14:40:57 +0800 | [diff] [blame] | 21 | include_dirs: ["frameworks/base/core/java"], // For framework parcelables. |
markchien | 017fef2 | 2019-08-27 10:19:38 +0800 | [diff] [blame] | 22 | srcs: [ |
Remi NGUYEN VAN | de933af | 2020-01-20 21:26:34 +0900 | [diff] [blame] | 23 | // @JavaOnlyStableParcelable aidl declarations must not be listed here, as this would cause |
| 24 | // compilation to fail (b/148001843). |
| 25 | "src/android/net/IIntResultListener.aidl", |
| 26 | "src/android/net/ITetheringConnector.aidl", |
| 27 | "src/android/net/ITetheringEventCallback.aidl", |
| 28 | "src/android/net/TetheringCallbackStartedParcel.aidl", |
| 29 | "src/android/net/TetheringConfigurationParcel.aidl", |
| 30 | "src/android/net/TetheringRequestParcel.aidl", |
| 31 | "src/android/net/TetherStatesParcel.aidl", |
markchien | 017fef2 | 2019-08-27 10:19:38 +0800 | [diff] [blame] | 32 | ], |
| 33 | backend: { |
| 34 | ndk: { |
| 35 | enabled: false, |
| 36 | }, |
| 37 | cpp: { |
| 38 | enabled: false, |
| 39 | }, |
| 40 | }, |
| 41 | } |
| 42 | |
| 43 | java_library { |
markchien | ae8aa64 | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 44 | name: "framework-tethering", |
Automerger Merge Worker | 561564d | 2020-02-25 04:34:26 +0000 | [diff] [blame] | 45 | sdk_version: "module_current", |
markchien | ae8aa64 | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 46 | srcs: [ |
Remi NGUYEN VAN | de933af | 2020-01-20 21:26:34 +0900 | [diff] [blame] | 47 | "src/android/net/TetheredClient.java", |
markchien | ae8aa64 | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 48 | "src/android/net/TetheringManager.java", |
markchien | 40898ca | 2020-01-21 13:11:06 +0800 | [diff] [blame] | 49 | "src/android/net/TetheringConstants.java", |
markchien | ae8aa64 | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 50 | ], |
markchien | 017fef2 | 2019-08-27 10:19:38 +0800 | [diff] [blame] | 51 | static_libs: [ |
| 52 | "tethering-aidl-interfaces-java", |
| 53 | ], |
markchien | ae8aa64 | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 54 | jarjar_rules: "jarjar-rules.txt", |
| 55 | installable: true, |
| 56 | |
| 57 | libs: [ |
Remi NGUYEN VAN | eb22daa | 2020-01-31 15:05:22 +0900 | [diff] [blame] | 58 | "framework-annotations-lib", |
markchien | ae8aa64 | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 59 | ], |
Jiyong Park | c81df3f | 2020-01-06 13:30:59 +0900 | [diff] [blame] | 60 | |
| 61 | hostdex: true, // for hiddenapi check |
markchien | 2c15370 | 2020-02-06 19:23:26 +0800 | [diff] [blame] | 62 | visibility: ["//frameworks/base/packages/Tethering:__subpackages__"], |
Jiyong Park | c81df3f | 2020-01-06 13:30:59 +0900 | [diff] [blame] | 63 | apex_available: ["com.android.tethering"], |
Vladimir Marko | c8ad372 | 2020-03-25 11:19:36 +0000 | [diff] [blame] | 64 | permitted_packages: ["android.net"], |
markchien | 017fef2 | 2019-08-27 10:19:38 +0800 | [diff] [blame] | 65 | } |
markchien | 0f63ca6 | 2019-09-30 14:40:57 +0800 | [diff] [blame] | 66 | |
Anton Hansson | fe8b045 | 2020-03-07 12:36:42 +0000 | [diff] [blame] | 67 | stubs_defaults { |
| 68 | name: "framework-tethering-stubs-defaults", |
Anton Hansson | 8f56a69 | 2020-03-27 12:29:18 +0000 | [diff] [blame] | 69 | srcs: [":framework-tethering-srcs"], |
Anton Hansson | 8bf731c | 2020-04-30 14:26:22 +0100 | [diff] [blame] | 70 | dist: { dest: "framework-tethering.txt" }, |
markchien | 2c15370 | 2020-02-06 19:23:26 +0800 | [diff] [blame] | 71 | } |
| 72 | |
markchien | 0f63ca6 | 2019-09-30 14:40:57 +0800 | [diff] [blame] | 73 | filegroup { |
markchien | ae8aa64 | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 74 | name: "framework-tethering-srcs", |
| 75 | srcs: [ |
Remi NGUYEN VAN | de933af | 2020-01-20 21:26:34 +0900 | [diff] [blame] | 76 | "src/android/net/TetheredClient.aidl", |
| 77 | "src/android/net/TetheredClient.java", |
markchien | ae8aa64 | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 78 | "src/android/net/TetheringManager.java", |
markchien | 40898ca | 2020-01-21 13:11:06 +0800 | [diff] [blame] | 79 | "src/android/net/TetheringConstants.java", |
markchien | ae8aa64 | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 80 | "src/android/net/IIntResultListener.aidl", |
| 81 | "src/android/net/ITetheringEventCallback.aidl", |
| 82 | "src/android/net/ITetheringConnector.aidl", |
markchien | 40898ca | 2020-01-21 13:11:06 +0800 | [diff] [blame] | 83 | "src/android/net/TetheringCallbackStartedParcel.aidl", |
markchien | ae8aa64 | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 84 | "src/android/net/TetheringConfigurationParcel.aidl", |
markchien | e8b9d75 | 2020-01-20 19:31:56 +0800 | [diff] [blame] | 85 | "src/android/net/TetheringRequestParcel.aidl", |
markchien | ae8aa64 | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 86 | "src/android/net/TetherStatesParcel.aidl", |
| 87 | ], |
| 88 | path: "src" |
markchien | 0f63ca6 | 2019-09-30 14:40:57 +0800 | [diff] [blame] | 89 | } |
Anton Hansson | fe8b045 | 2020-03-07 12:36:42 +0000 | [diff] [blame] | 90 | |
| 91 | droidstubs { |
| 92 | name: "framework-tethering-stubs-srcs-publicapi", |
| 93 | defaults: [ |
| 94 | "framework-module-stubs-defaults-publicapi", |
| 95 | "framework-tethering-stubs-defaults", |
| 96 | ], |
Anton Hansson | 340954c | 2020-05-01 18:25:09 +0100 | [diff] [blame] | 97 | check_api: { |
| 98 | last_released: { |
| 99 | api_file: ":framework-tethering.api.public.latest", |
| 100 | removed_api_file: ":framework-tethering-removed.api.public.latest", |
| 101 | }, |
| 102 | api_lint: { |
| 103 | new_since: ":framework-tethering.api.public.latest", |
| 104 | }, |
| 105 | }, |
Anton Hansson | fe8b045 | 2020-03-07 12:36:42 +0000 | [diff] [blame] | 106 | } |
| 107 | |
| 108 | droidstubs { |
| 109 | name: "framework-tethering-stubs-srcs-systemapi", |
| 110 | defaults: [ |
| 111 | "framework-module-stubs-defaults-systemapi", |
| 112 | "framework-tethering-stubs-defaults", |
| 113 | ], |
Anton Hansson | 340954c | 2020-05-01 18:25:09 +0100 | [diff] [blame] | 114 | check_api: { |
| 115 | last_released: { |
| 116 | api_file: ":framework-tethering.api.system.latest", |
| 117 | removed_api_file: ":framework-tethering-removed.api.system.latest", |
| 118 | }, |
| 119 | api_lint: { |
| 120 | new_since: ":framework-tethering.api.system.latest", |
| 121 | }, |
| 122 | }, |
Anton Hansson | fe8b045 | 2020-03-07 12:36:42 +0000 | [diff] [blame] | 123 | } |
| 124 | |
| 125 | droidstubs { |
| 126 | name: "framework-tethering-api-module_libs_api", |
| 127 | defaults: [ |
| 128 | "framework-module-api-defaults-module_libs_api", |
| 129 | "framework-tethering-stubs-defaults", |
| 130 | ], |
Anton Hansson | 340954c | 2020-05-01 18:25:09 +0100 | [diff] [blame] | 131 | check_api: { |
| 132 | last_released: { |
| 133 | api_file: ":framework-tethering.api.module-lib.latest", |
| 134 | removed_api_file: ":framework-tethering-removed.api.module-lib.latest", |
| 135 | }, |
| 136 | api_lint: { |
| 137 | new_since: ":framework-tethering.api.module-lib.latest", |
| 138 | }, |
| 139 | }, |
Anton Hansson | fe8b045 | 2020-03-07 12:36:42 +0000 | [diff] [blame] | 140 | } |
| 141 | |
| 142 | droidstubs { |
| 143 | name: "framework-tethering-stubs-srcs-module_libs_api", |
| 144 | defaults: [ |
| 145 | "framework-module-stubs-defaults-module_libs_api", |
| 146 | "framework-tethering-stubs-defaults", |
| 147 | ], |
| 148 | } |
| 149 | |
| 150 | java_library { |
| 151 | name: "framework-tethering-stubs-publicapi", |
| 152 | srcs: [":framework-tethering-stubs-srcs-publicapi"], |
Anton Hansson | c868e77 | 2020-03-24 19:52:44 +0000 | [diff] [blame] | 153 | defaults: ["framework-module-stubs-lib-defaults-publicapi"], |
Anton Hansson | 8bf731c | 2020-04-30 14:26:22 +0100 | [diff] [blame] | 154 | dist: { dest: "framework-tethering.jar" }, |
Anton Hansson | fe8b045 | 2020-03-07 12:36:42 +0000 | [diff] [blame] | 155 | } |
| 156 | |
| 157 | java_library { |
| 158 | name: "framework-tethering-stubs-systemapi", |
| 159 | srcs: [":framework-tethering-stubs-srcs-systemapi"], |
Anton Hansson | c868e77 | 2020-03-24 19:52:44 +0000 | [diff] [blame] | 160 | defaults: ["framework-module-stubs-lib-defaults-systemapi"], |
Anton Hansson | 8bf731c | 2020-04-30 14:26:22 +0100 | [diff] [blame] | 161 | dist: { dest: "framework-tethering.jar" }, |
Anton Hansson | fe8b045 | 2020-03-07 12:36:42 +0000 | [diff] [blame] | 162 | } |
| 163 | |
| 164 | java_library { |
| 165 | name: "framework-tethering-stubs-module_libs_api", |
| 166 | srcs: [":framework-tethering-stubs-srcs-module_libs_api"], |
Anton Hansson | adce9b5 | 2020-04-30 17:02:07 +0100 | [diff] [blame] | 167 | defaults: ["framework-module-stubs-lib-defaults-module_libs_api"], |
Anton Hansson | 8bf731c | 2020-04-30 14:26:22 +0100 | [diff] [blame] | 168 | dist: { dest: "framework-tethering.jar" }, |
Anton Hansson | fe8b045 | 2020-03-07 12:36:42 +0000 | [diff] [blame] | 169 | } |