David Su | 754fcc2 | 2019-09-04 14:31:58 -0700 | [diff] [blame] | 1 | // 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 | |
| 16 | filegroup { |
| 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 | |
| 28 | filegroup { |
| 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", |
David Su | 754fcc2 | 2019-09-04 14:31:58 -0700 | [diff] [blame] | 35 | "java/android/net/wifi/wificond/*.java", |
| 36 | ":libwificond_ipc_aidl", |
| 37 | ], |
| 38 | } |
| 39 | |
David Su | 130441b | 2019-12-14 21:37:20 -0800 | [diff] [blame] | 40 | filegroup { |
| 41 | name: "framework-wifi-annotations", |
| 42 | srcs: ["java/android/net/wifi/WifiAnnotations.java"], |
| 43 | } |
| 44 | |
David Su | 754fcc2 | 2019-09-04 14:31:58 -0700 | [diff] [blame] | 45 | java_library { |
| 46 | name: "framework-wifi", |
| 47 | sdk_version: "core_platform", // TODO(b/140299412) should be core_current |
| 48 | libs: [ |
| 49 | "framework-minus-apex", // TODO(b/140299412) should be framework-system-stubs |
| 50 | ], |
| 51 | srcs: [ |
| 52 | ":framework-wifi-updatable-sources", |
| 53 | ], |
| 54 | installable: true, |
| 55 | optimize: { |
| 56 | enabled: false |
| 57 | } |
| 58 | } |
| 59 | |
David Su | 754fcc2 | 2019-09-04 14:31:58 -0700 | [diff] [blame] | 60 | droidstubs { |
| 61 | name: "framework-wifi-stubs-srcs", |
| 62 | srcs: [ |
| 63 | ":framework-annotations", |
| 64 | ":framework-wifi-updatable-sources", |
| 65 | ], |
| 66 | aidl: { |
| 67 | include_dirs: ["frameworks/base/core/java"], |
| 68 | }, |
Anton Hansson | 0c2ebe2 | 2019-12-17 10:03:52 +0000 | [diff] [blame] | 69 | defaults: [ "framework-module-stubs-defaults-systemapi" ], |
David Su | 754fcc2 | 2019-09-04 14:31:58 -0700 | [diff] [blame] | 70 | sdk_version: "core_current", |
| 71 | libs: ["android_system_stubs_current"], |
| 72 | } |
| 73 | |
| 74 | java_library { |
| 75 | name: "framework-wifi-stubs", |
| 76 | srcs: [":framework-wifi-stubs-srcs"], |
| 77 | aidl: { |
| 78 | export_include_dirs: [ |
| 79 | "java", |
| 80 | ], |
| 81 | }, |
| 82 | sdk_version: "core_current", |
| 83 | libs: ["android_system_stubs_current"], |
| 84 | installable: false, |
| 85 | } |
| 86 | |