blob: 08115ecb6b2b4be1804ce9428c5bae9917ed77f9 [file] [log] [blame]
David Su754fcc22019-09-04 14:31:58 -07001// Copyright (C) 2019 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15
16filegroup {
17 name: "framework-wifi-updatable-sources",
18 srcs: [
19 "java/**/*.java",
20 "java/**/*.aidl",
21 ],
22 exclude_srcs: [
23 ":framework-wifi-non-updatable-sources"
24 ],
25 path: "java",
26}
27
28filegroup {
29 name: "framework-wifi-non-updatable-sources",
30 srcs: [
31 // TODO(b/146011398) package android.net.wifi is now split amongst 2 jars: framework.jar and
32 // framework-wifi.jar. This is not a good idea, should move WifiNetworkScoreCache
33 // to a separate package.
34 "java/android/net/wifi/WifiNetworkScoreCache.java",
35 "java/android/net/wifi/WifiCondManager.java",
36 "java/android/net/wifi/wificond/*.java",
37 ":libwificond_ipc_aidl",
38 ],
39}
40
David Su130441b2019-12-14 21:37:20 -080041filegroup {
42 name: "framework-wifi-annotations",
43 srcs: ["java/android/net/wifi/WifiAnnotations.java"],
44}
45
David Su754fcc22019-09-04 14:31:58 -070046java_library {
47 name: "framework-wifi",
48 sdk_version: "core_platform", // TODO(b/140299412) should be core_current
49 libs: [
50 "framework-minus-apex", // TODO(b/140299412) should be framework-system-stubs
51 ],
52 srcs: [
53 ":framework-wifi-updatable-sources",
54 ],
55 installable: true,
56 optimize: {
57 enabled: false
58 }
59}
60
David Su754fcc22019-09-04 14:31:58 -070061droidstubs {
62 name: "framework-wifi-stubs-srcs",
63 srcs: [
64 ":framework-annotations",
65 ":framework-wifi-updatable-sources",
66 ],
67 aidl: {
68 include_dirs: ["frameworks/base/core/java"],
69 },
Anton Hansson0c2ebe22019-12-17 10:03:52 +000070 defaults: [ "framework-module-stubs-defaults-systemapi" ],
David Su754fcc22019-09-04 14:31:58 -070071 sdk_version: "core_current",
72 libs: ["android_system_stubs_current"],
73}
74
75java_library {
76 name: "framework-wifi-stubs",
77 srcs: [":framework-wifi-stubs-srcs"],
78 aidl: {
79 export_include_dirs: [
80 "java",
81 ],
82 },
83 sdk_version: "core_current",
84 libs: ["android_system_stubs_current"],
85 installable: false,
86}
87