Bob Badour | 051ef78 | 2021-02-12 17:07:05 -0800 | [diff] [blame] | 1 | package { |
| 2 | // See: http://go/android-license-faq |
| 3 | // A large-scale-change added 'default_applicable_licenses' to import |
| 4 | // all of the 'license_kinds' from "frameworks_base_license" |
| 5 | // to get the below license kinds: |
| 6 | // SPDX-license-identifier-Apache-2.0 |
| 7 | default_applicable_licenses: ["frameworks_base_license"], |
| 8 | } |
| 9 | |
Jiyong Park | e86e89a | 2019-11-17 13:11:19 +0900 | [diff] [blame] | 10 | filegroup { |
| 11 | name: "services.net-sources", |
| 12 | srcs: ["java/**/*.java"], |
| 13 | path: "java", |
| 14 | visibility: ["//frameworks/base/services"], |
| 15 | } |
| 16 | |
Colin Cross | eb652a4 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 17 | java_library_static { |
| 18 | name: "services.net", |
Jeff Sharkey | 4d1d7b5 | 2020-05-04 15:31:07 -0600 | [diff] [blame] | 19 | defaults: ["services_defaults"], |
markchien | 08cc030 | 2019-09-09 20:50:49 +0800 | [diff] [blame] | 20 | srcs: [ |
Remi NGUYEN VAN | 882d8b3 | 2019-08-09 15:52:06 +0900 | [diff] [blame] | 21 | ":net-module-utils-srcs", |
Jiyong Park | e86e89a | 2019-11-17 13:11:19 +0900 | [diff] [blame] | 22 | ":services.net-sources", |
markchien | 08cc030 | 2019-09-09 20:50:49 +0800 | [diff] [blame] | 23 | ], |
Remi NGUYEN VAN | dacee14 | 2019-02-13 18:28:35 +0900 | [diff] [blame] | 24 | static_libs: [ |
lucaslin | 91b21dd | 2020-12-25 18:06:53 +0800 | [diff] [blame] | 25 | "netd-client", |
Remi NGUYEN VAN | 882d8b3 | 2019-08-09 15:52:06 +0900 | [diff] [blame] | 26 | "netlink-client", |
Remi NGUYEN VAN | ee27a94 | 2019-08-08 15:49:46 +0900 | [diff] [blame] | 27 | "networkstack-client", |
Lorenzo Colitti | a0d4391 | 2020-01-14 14:22:23 +0900 | [diff] [blame] | 28 | "net-utils-services-common", |
Remi NGUYEN VAN | 1232fe3 | 2019-04-05 15:15:48 +0900 | [diff] [blame] | 29 | ], |
Chalard Jean | 9521351 | 2019-01-30 21:04:58 +0900 | [diff] [blame] | 30 | } |
| 31 | |
Roshan Pius | b6361f9 | 2020-02-21 07:37:30 -0800 | [diff] [blame] | 32 | // Version of services.net for usage by the wifi mainline module. |
| 33 | // Note: This is compiled against module_current. |
David Su | 9ea81e9 | 2020-11-04 17:19:16 +0000 | [diff] [blame] | 34 | // TODO(b/172457099): This should be moved to networkstack-client, |
Roshan Pius | b6361f9 | 2020-02-21 07:37:30 -0800 | [diff] [blame] | 35 | // with dependencies moved to frameworks/libs/net right. |
| 36 | java_library { |
| 37 | name: "services.net-module-wifi", |
| 38 | srcs: [ |
| 39 | ":framework-services-net-module-wifi-shared-srcs", |
Chalard Jean | e65972e | 2021-04-26 20:48:11 +0900 | [diff] [blame^] | 40 | ":net-module-utils-srcs", |
David Su | 9ea81e9 | 2020-11-04 17:19:16 +0000 | [diff] [blame] | 41 | ":net-utils-services-common-srcs", |
Roshan Pius | b6361f9 | 2020-02-21 07:37:30 -0800 | [diff] [blame] | 42 | ], |
| 43 | sdk_version: "module_current", |
David Su | 9ea81e9 | 2020-11-04 17:19:16 +0000 | [diff] [blame] | 44 | min_sdk_version: "30", |
Roshan Pius | b6361f9 | 2020-02-21 07:37:30 -0800 | [diff] [blame] | 45 | libs: [ |
| 46 | "unsupportedappusage", |
David Su | 57bca31 | 2020-04-21 19:49:32 -0700 | [diff] [blame] | 47 | "framework-wifi-util-lib", |
Chalard Jean | e65972e | 2021-04-26 20:48:11 +0900 | [diff] [blame^] | 48 | "framework-connectivity", |
| 49 | "modules-utils-build_system", |
Roshan Pius | b6361f9 | 2020-02-21 07:37:30 -0800 | [diff] [blame] | 50 | ], |
| 51 | static_libs: [ |
Lorenzo Colitti | a1c5d931 | 2020-04-11 00:54:45 +0900 | [diff] [blame] | 52 | // All the classes in netd_aidl_interface must be jarjar so they do not conflict with the |
| 53 | // classes generated by netd_aidl_interfaces-platform-java above. |
Luke Huang | 76fc58e | 2020-04-07 15:45:02 +0000 | [diff] [blame] | 54 | "netd_aidl_interface-V3-java", |
Roshan Pius | b6361f9 | 2020-02-21 07:37:30 -0800 | [diff] [blame] | 55 | "networkstack-client", |
Chalard Jean | e65972e | 2021-04-26 20:48:11 +0900 | [diff] [blame^] | 56 | "modules-utils-build_system", |
Roshan Pius | b6361f9 | 2020-02-21 07:37:30 -0800 | [diff] [blame] | 57 | ], |
| 58 | apex_available: [ |
| 59 | "com.android.wifi", |
| 60 | ], |
| 61 | visibility: [ |
| 62 | "//frameworks/opt/net/wifi/service", |
| 63 | "//frameworks/opt/net/wifi/tests/wifitests", |
Baligh Uddin | 5879a83 | 2020-12-24 06:05:52 +0000 | [diff] [blame] | 64 | "//packages/modules/Wifi/service", |
| 65 | "//packages/modules/Wifi/service/tests/wifitests", |
Roshan Pius | b6361f9 | 2020-02-21 07:37:30 -0800 | [diff] [blame] | 66 | ], |
| 67 | } |
| 68 | |
Remi NGUYEN VAN | e67b0c3a | 2018-12-27 16:43:56 +0900 | [diff] [blame] | 69 | filegroup { |
markchien | a6ba54d | 2019-09-03 15:58:06 +0800 | [diff] [blame] | 70 | name: "services-tethering-shared-srcs", |
| 71 | srcs: [ |
| 72 | ":framework-annotations", |
markchien | 08cc030 | 2019-09-09 20:50:49 +0800 | [diff] [blame] | 73 | "java/android/net/util/NetworkConstants.java", |
markchien | a6ba54d | 2019-09-03 15:58:06 +0800 | [diff] [blame] | 74 | ], |
Baligh Uddin | ff8ff12 | 2020-10-29 02:11:55 +0000 | [diff] [blame] | 75 | visibility: [ |
| 76 | "//frameworks/base/packages/Tethering", |
Chalard Jean | e65972e | 2021-04-26 20:48:11 +0900 | [diff] [blame^] | 77 | "//packages/modules/Connectivity/Tethering", |
Baligh Uddin | ff8ff12 | 2020-10-29 02:11:55 +0000 | [diff] [blame] | 78 | ], |
markchien | a6ba54d | 2019-09-03 15:58:06 +0800 | [diff] [blame] | 79 | } |
Remi NGUYEN VAN | 9ee2cc8 | 2021-03-22 10:25:12 +0000 | [diff] [blame] | 80 | |
| 81 | filegroup { |
| 82 | name: "services-connectivity-shared-srcs", |
| 83 | srcs: [ |
Remi NGUYEN VAN | 9ee2cc8 | 2021-03-22 10:25:12 +0000 | [diff] [blame] | 84 | // TODO: move to libs/net |
Remi NGUYEN VAN | 9ee2cc8 | 2021-03-22 10:25:12 +0000 | [diff] [blame] | 85 | "java/android/net/util/NetworkConstants.java", |
| 86 | ], |
| 87 | } |