1// AIDL interfaces between the core system and the networking mainline module.
2aidl_interface {
3    name: "ipmemorystore-aidl-interfaces",
4    local_include_dir: "java",
5    srcs: [
6        "java/android/net/IIpMemoryStore.aidl",
7        "java/android/net/IIpMemoryStoreCallbacks.aidl",
8        "java/android/net/ipmemorystore/**/*.aidl",
9    ],
10    backend: {
11        ndk: {
12            enabled: false,
13        },
14        cpp: {
15            enabled: false,
16        },
17    },
18    api_dir: "aidl/ipmemorystore",
19    versions: [
20        "1",
21        "2",
22        "3",
23    ],
24}
25
26aidl_interface {
27    name: "networkstack-aidl-interfaces",
28    local_include_dir: "java",
29    include_dirs: ["frameworks/base/core/java"], // For framework parcelables.
30    srcs: [
31        "java/android/net/DhcpResultsParcelable.aidl",
32        "java/android/net/INetworkMonitor.aidl",
33        "java/android/net/INetworkMonitorCallbacks.aidl",
34        "java/android/net/INetworkStackConnector.aidl",
35        "java/android/net/INetworkStackStatusCallback.aidl",
36        "java/android/net/InitialConfigurationParcelable.aidl",
37        "java/android/net/NattKeepalivePacketDataParcelable.aidl",
38        "java/android/net/PrivateDnsConfigParcel.aidl",
39        "java/android/net/ProvisioningConfigurationParcelable.aidl",
40        "java/android/net/TcpKeepalivePacketDataParcelable.aidl",
41        "java/android/net/dhcp/DhcpServingParamsParcel.aidl",
42        "java/android/net/dhcp/IDhcpServer.aidl",
43        "java/android/net/dhcp/IDhcpServerCallbacks.aidl",
44        "java/android/net/ip/IIpClient.aidl",
45        "java/android/net/ip/IIpClientCallbacks.aidl",
46    ],
47    backend: {
48        ndk: {
49            enabled: false,
50        },
51        cpp: {
52            enabled: false,
53        },
54    },
55    api_dir: "aidl/networkstack",
56    imports: ["ipmemorystore-aidl-interfaces"],
57    versions: [
58        "1",
59        "2",
60        "3",
61    ],
62}
63
64java_library_static {
65    name: "services.net",
66    srcs: ["java/**/*.java"],
67    static_libs: [
68        "dnsresolver_aidl_interface-V2-java",
69        "ipmemorystore-client",
70        "netd_aidl_interface-V2-java",
71        "networkstack-aidl-interfaces-V3-java",
72    ],
73}
74
75java_library_static {
76    name: "ipmemorystore-client",
77    sdk_version: "system_current",
78    srcs: [
79        ":framework-annotations",
80        "java/android/net/IpMemoryStoreClient.java",
81        "java/android/net/ipmemorystore/**/*.java",
82    ],
83    static_libs: [
84        "ipmemorystore-aidl-interfaces-V3-java",
85    ],
86}
87
88filegroup {
89    name: "services-networkstack-shared-srcs",
90    srcs: [
91        "java/android/net/ip/InterfaceController.java", // TODO: move to NetworkStack with tethering
92        "java/android/net/util/InterfaceParams.java", // TODO: move to NetworkStack with IpServer
93        "java/android/net/shared/*.java",
94        "java/android/net/netlink/*.java",
95    ],
96}
97