blob: b1c4d597d7b709c2116ced4357ed41da0a27e582 [file] [log] [blame]
Colin Crossaf0b54c2017-09-27 17:22:32 -07001// Copyright (C) 2007 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//
Neil Fuller77e3f3b2018-10-19 10:22:32 +010016// Definitions for building the Android core library and associated tests.
Colin Crossaf0b54c2017-09-27 17:22:32 -070017//
18
Neil Fuller77e3f3b2018-10-19 10:22:32 +010019// The Android core library provides low-level APIs for use by the rest of the
20// Android software stack. It is made up of various parts, some of which can be
21// found in libcore/ and other parts that can be found in various external/
Paul Duffinfb46f732019-09-25 16:04:21 +010022// directories.
23//
Neil Fullercf756882018-08-28 18:42:22 +010024// libcore has some sub-directories that follow a common structure:
25// e.g. dalvik, dom, harmony-tests, json, jsr166-tests, luni, libart, ojluni,
26// support, xml, xmlpull.
Colin Crossaf0b54c2017-09-27 17:22:32 -070027//
Neil Fullercf756882018-08-28 18:42:22 +010028// The structure of these is generally:
Colin Crossaf0b54c2017-09-27 17:22:32 -070029//
30// src/
31// main/ # To be shipped on every device.
32// java/ # Java source for library code.
Neil Fullercf756882018-08-28 18:42:22 +010033// native/ # C/C++ source for library code.
Colin Crossaf0b54c2017-09-27 17:22:32 -070034// resources/ # Support files.
35// test/ # Built only on demand, for testing.
36// java/ # Java source for tests.
Neil Fullercf756882018-08-28 18:42:22 +010037// native/ # C/C++ source for tests (rare).
Colin Crossaf0b54c2017-09-27 17:22:32 -070038// resources/ # Support files.
39//
Neil Fullercf756882018-08-28 18:42:22 +010040// All subdirectories are optional.
Colin Crossaf0b54c2017-09-27 17:22:32 -070041
42build = [
43 "openjdk_java_files.bp",
44 "non_openjdk_java_files.bp",
45]
46
47// The Java files and their associated resources.
Tobias Thierer79eea262019-08-01 14:05:11 +010048filegroup {
49 name: "core-luni-resources",
50 visibility: [
51 "//libcore:__subpackages__",
52 ],
53 path: "luni/src/main/java/",
54 srcs: [
Tobias Thierer79eea262019-08-01 14:05:11 +010055 "luni/src/main/java/java/util/logging/logging.properties",
56 "luni/src/main/java/java/security/security.properties",
57 ],
58}
59
60filegroup {
61 name: "core-ojluni-resources",
62 visibility: [
63 "//libcore:__subpackages__",
64 ],
65 path: "ojluni/src/main/resources/",
66 srcs: [
67 "ojluni/src/main/resources/**/*",
68 ],
69}
70
71core_resources = [
72 ":core-luni-resources",
73 ":core-ojluni-resources",
Colin Crossaf0b54c2017-09-27 17:22:32 -070074]
75
Neil Fuller866ed4a2018-09-06 12:05:46 +010076// The source files that go into core-oj.
77filegroup {
78 name: "core_oj_java_files",
Paul Duffinc241d6a2019-06-25 15:40:29 +010079 visibility: [
80 "//libcore:__subpackages__",
81 ],
Neil Fuller866ed4a2018-09-06 12:05:46 +010082 srcs: [":openjdk_java_files"],
83}
84
Neil Fullere32e2e12019-02-26 11:48:30 +000085// OpenJDK source is not annotated with @hide so we need this separate
Neil Fuller866ed4a2018-09-06 12:05:46 +010086// filegroup for just the parts that contribute to the API.
87filegroup {
88 name: "core_oj_api_files",
89 srcs: [":openjdk_javadoc_files"],
90}
91
92// The source files that go into core-libart.
93filegroup {
94 name: "core_libart_java_files",
Paul Duffinc241d6a2019-06-25 15:40:29 +010095 visibility: [
96 "//libcore:__subpackages__",
97 ],
Neil Fuller866ed4a2018-09-06 12:05:46 +010098 srcs: [
99 ":non_openjdk_java_files",
Neil Fuller866ed4a2018-09-06 12:05:46 +0100100 ],
101}
102
Neil Fullere32e2e12019-02-26 11:48:30 +0000103// Some parts of libart are not annotated with @hide so we need this separate
Neil Fuller866ed4a2018-09-06 12:05:46 +0100104// filegroup for just the parts that contribute to the API.
105filegroup {
106 name: "core_libart_api_files",
107 srcs: [
108 ":non_openjdk_javadoc_files",
Neil Fuller866ed4a2018-09-06 12:05:46 +0100109 ],
110}
111
Neil Fullere32e2e12019-02-26 11:48:30 +0000112// The set of files for the core library that have been marked up with @hide
113// for the public SDK APIs. Used from frameworks/base/ to indicate the source
114// files for inclusion in the public SDK docs.
Paul Duffine59d0aa2019-10-04 09:52:59 +0100115//
116// Deprecated: Will be replaced by core-current-stubs-source.
Neil Fullere32e2e12019-02-26 11:48:30 +0000117filegroup {
118 name: "core_public_api_files",
Paul Duffinc241d6a2019-06-25 15:40:29 +0100119 visibility: [
120 "//frameworks/base",
121 ],
Neil Fullere32e2e12019-02-26 11:48:30 +0000122 srcs: [
Victor Changcad47af2019-08-06 16:33:38 +0100123 ":android_icu4j_src_files",
Neil Fullere32e2e12019-02-26 11:48:30 +0000124 ":core_oj_api_files",
125 ":core_libart_api_files",
126 ":conscrypt_public_api_files",
127 ],
128}
129
Paul Duffine59d0aa2019-10-04 09:52:59 +0100130// Contains the stubs source for the part of the Android SDK public API which
131// is provided by the core libraries.
132//
133// Currently is only a placeholder that creates an empty srcjar due to issues
134// caused by http://b/142113901.
135//
136// TODO(http://b/142113521) - Add stubs source for the core library modules.
137genrule {
138 name: "core-current-stubs-source",
139 visibility: [
140 "//frameworks/base",
141 ],
142 tools: [
143 "merge_zips",
144 ],
145 out: ["core-current-stubs-source.srcjar"],
146 cmd: "$(location merge_zips) $(out)",
147}
148
Paul Duffina38da2d2019-10-01 17:49:50 +0100149// The set of files for the ART module that contribute to one or more API
150// surfaces. This includes files that are in the public API as well as those
151// that are not but which have been marked up with @hide plus one or more of
152// the API defining annotations.
153//
154// Some source files in :core_oj_api_files and :openjdk_mmodule_extra_files are
155// annotated by applying annotations to the .annotated.java stubs files in
156// ojluni/annotated/mmodules and rather than in the original source. See the comments
157// in openjdk_java_files.bp for more details.
158filegroup {
159 name: "art_module_api_files",
160 visibility: [
161 "//libcore:__subpackages__",
162 ],
163 srcs: [
Neil Fullerd129bc92018-09-26 11:12:58 +0100164 ":apache-xml_api_files",
Neil Fullera77f7102018-09-21 19:04:41 +0100165 ":bouncycastle_java_files",
Neil Fuller866ed4a2018-09-06 12:05:46 +0100166 ":core_oj_api_files",
167 ":core_libart_api_files",
Neil Fuller641d5f92018-09-24 15:40:39 +0100168 ":okhttp_api_files",
Pete Gillinc9935b62018-09-25 14:42:40 +0100169 ":openjdk_mmodule_extra_files",
Neil Fuller866ed4a2018-09-06 12:05:46 +0100170 ],
171}
172
Colin Crossaf0b54c2017-09-27 17:22:32 -0700173java_defaults {
174 name: "libcore_java_defaults",
175 javacflags: [
176 //"-Xlint:all",
177 //"-Xlint:-serial,-deprecation,-unchecked",
178 ],
179 dxflags: ["--core-library"],
Andreas Gampe66b31732018-02-20 09:22:16 -0800180 errorprone: {
181 javacflags: [
Paul Duffinc31f6bb2019-05-15 12:32:44 +0100182 "-Xep:MissingOverride:OFF", // Ignore missing @Override.
183 "-Xep:ConstantOverflow:WARN", // Known constant overflow in SplittableRandom
Andreas Gampe66b31732018-02-20 09:22:16 -0800184 ],
185 },
Colin Crossaf0b54c2017-09-27 17:22:32 -0700186}
187
188//
189// Build for the target (device).
190//
191
Tobias Thierer52331642019-05-29 12:11:39 +0000192// A target used to bootstrap compilation for the core library.
Paul Duffina8173c52019-09-24 13:04:42 +0100193//
Tobias Thierer52331642019-05-29 12:11:39 +0000194// See core-all-system-modules for more details.
195java_library {
196 name: "core-all",
Tobias Thierer52331642019-05-29 12:11:39 +0000197 defaults: ["libcore_java_defaults"],
Colin Crossaf0b54c2017-09-27 17:22:32 -0700198
199 srcs: [
Paul Duffinf975b712019-10-02 12:37:38 +0100200 // Use the source code for the I18N module intra core API as using the
201 // compiled version does not work due to limitations in either soong or the javac
202 // toolchain. See http://b/142056316 for more details.
203 ":i18n-module-intra-core-api-stubs-source",
Neil Fuller866ed4a2018-09-06 12:05:46 +0100204 ":core_oj_java_files",
205 ":core_libart_java_files",
Colin Crossaf0b54c2017-09-27 17:22:32 -0700206 ":openjdk_lambda_stub_files",
Pete Gillin54035812019-05-08 15:09:39 +0100207 ":openjdk_generated_annotation_stub_files",
Colin Crossaf0b54c2017-09-27 17:22:32 -0700208 ],
Colin Crossec80f4f2018-08-15 21:17:11 -0700209
Paul Duffin83c25382019-06-07 14:10:49 +0100210 sdk_version: "none",
Colin Crossec80f4f2018-08-15 21:17:11 -0700211 system_modules: "none",
Paul Duffin1d7d4a72019-10-10 18:15:01 +0100212 patch_module: "java.base",
Colin Crossa4d9fc42017-09-29 18:04:37 -0700213 openjdk9: {
214 srcs: ["luni/src/module/java/module-info.java"],
Colin Crossa4d9fc42017-09-29 18:04:37 -0700215 },
Colin Crossec80f4f2018-08-15 21:17:11 -0700216
Tobias Thierer79eea262019-08-01 14:05:11 +0100217 java_resources: core_resources,
Tobias Thiererde991232018-03-07 15:10:46 +0000218 java_version: "1.9",
Colin Crossaf0b54c2017-09-27 17:22:32 -0700219
Colin Crossaf0b54c2017-09-27 17:22:32 -0700220 installable: false,
atrost98ec08d2019-08-05 12:23:41 +0100221
222 plugins: ["compat-changeid-annotation-processor"],
223}
224
225platform_compat_config {
226 name: "libcore-platform-compat-config",
atrost98ec08d2019-08-05 12:23:41 +0100227 src: ":core-all",
Colin Crossaf0b54c2017-09-27 17:22:32 -0700228}
229
Neil Fuller77e3f3b2018-10-19 10:22:32 +0100230// A system modules definition for use by core library targets only. It only
231// contains the core-all jar, which contains the classes that end up in core-oj,
232// core-libart as well as the lambda stubs needed to compile Java lambda code.
233// It does not contain other parts of core library like conscrypt, bouncycastle,
234// etc. This system_modules definition is used to bootstrap compilation for
Paul Duffin00b174e2019-09-26 16:22:17 +0100235// other parts of the core library like core-oj, core-libart, conscrypt,
Neil Fuller77e3f3b2018-10-19 10:22:32 +0100236// bouncycastle, etc.
Colin Crossa4d9fc42017-09-29 18:04:37 -0700237java_system_modules {
238 name: "core-all-system-modules",
Paul Duffina8173c52019-09-24 13:04:42 +0100239
240 // Visibility is deliberately restricted to a small set of build modules that
241 // the core library team control.
242 visibility: [
243 "//external/apache-harmony:__subpackages__",
244 "//external/apache-xml",
Paul Duffina8173c52019-09-24 13:04:42 +0100245 "//external/okhttp",
246 "//libcore:__subpackages__",
247 ],
248
Colin Crossa4d9fc42017-09-29 18:04:37 -0700249 libs: ["core-all"],
250}
251
Neil Fuller77e3f3b2018-10-19 10:22:32 +0100252// Contains the parts of core library associated with OpenJDK.
Colin Crossaf0b54c2017-09-27 17:22:32 -0700253java_library {
254 name: "core-oj",
Paul Duffin48ac7b62019-03-28 14:28:06 +0000255 visibility: [
256 "//art/build/apex",
257 "//external/wycheproof",
Paul Duffin94f70232019-05-22 16:22:29 +0100258 "//libcore/benchmarks",
Paul Duffin48ac7b62019-03-28 14:28:06 +0000259 ],
Colin Crossaf0b54c2017-09-27 17:22:32 -0700260 defaults: ["libcore_java_defaults"],
Colin Cross5b75cdd2018-06-27 11:00:13 -0700261 installable: true,
Colin Crossbb180be2017-10-09 14:54:53 -0700262 hostdex: true,
Colin Crossaf0b54c2017-09-27 17:22:32 -0700263
Neil Fuller866ed4a2018-09-06 12:05:46 +0100264 srcs: [":core_oj_java_files"],
Tobias Thierer79eea262019-08-01 14:05:11 +0100265 java_resources: core_resources,
Colin Crossec80f4f2018-08-15 21:17:11 -0700266
Paul Duffin83c25382019-06-07 14:10:49 +0100267 sdk_version: "none",
Colin Crossa4d9fc42017-09-29 18:04:37 -0700268 system_modules: "core-all-system-modules",
Paul Duffin1d7d4a72019-10-10 18:15:01 +0100269 patch_module: "java.base",
Colin Crossec80f4f2018-08-15 21:17:11 -0700270
Pete Gillin7a7a6d22017-12-19 14:56:03 +0000271 jacoco: {
Pete Gillin27ca0582018-01-10 17:04:17 +0000272 exclude_filter: [
Pete Gillin3f59bad2018-01-30 11:20:29 +0000273 "java.lang.Class",
274 "java.lang.Long",
275 "java.lang.Number",
276 "java.lang.Object",
277 "java.lang.String",
278 "java.lang.invoke.MethodHandle",
279 "java.lang.ref.Reference",
280 "java.lang.reflect.Proxy",
Pete Gillinb1868ada2018-01-17 11:03:10 +0000281 "java.util.AbstractMap",
Pete Gillin3f59bad2018-01-30 11:20:29 +0000282 "java.util.HashMap",
283 "java.util.HashMap$Node",
Pete Gillinb1868ada2018-01-17 11:03:10 +0000284 "java.util.Map",
Pete Gillin7a7a6d22017-12-19 14:56:03 +0000285 ],
286 },
Colin Crossaf0b54c2017-09-27 17:22:32 -0700287
288 notice: "ojluni/NOTICE",
289
Colin Crossaf0b54c2017-09-27 17:22:32 -0700290}
291
Neil Fuller77e3f3b2018-10-19 10:22:32 +0100292// Contains parts of core library not associated with OpenJDK. Contains not
Victor Changcad47af2019-08-06 16:33:38 +0100293// just java.*, javax.* code but also android.system.* and various internal
294// libcore.* packages.
Colin Crossaf0b54c2017-09-27 17:22:32 -0700295java_library {
296 name: "core-libart",
Paul Duffin48ac7b62019-03-28 14:28:06 +0000297 visibility: [
298 "//art/build/apex",
299 "//external/robolectric-shadows",
300 "//external/wycheproof",
Paul Duffin94f70232019-05-22 16:22:29 +0100301 "//libcore/benchmarks",
Colin Crossf0ef6252019-05-31 08:26:47 -0700302 "//frameworks/layoutlib",
Paul Duffin48ac7b62019-03-28 14:28:06 +0000303 ],
Colin Crossaf0b54c2017-09-27 17:22:32 -0700304 defaults: ["libcore_java_defaults"],
Colin Cross5b75cdd2018-06-27 11:00:13 -0700305 installable: true,
Colin Crossbb180be2017-10-09 14:54:53 -0700306 hostdex: true,
Colin Crossaf0b54c2017-09-27 17:22:32 -0700307
Neil Fuller866ed4a2018-09-06 12:05:46 +0100308 srcs: [":core_libart_java_files"],
Tobias Thiererde991232018-03-07 15:10:46 +0000309 java_version: "1.9",
Colin Crossaf0b54c2017-09-27 17:22:32 -0700310
Paul Duffin83c25382019-06-07 14:10:49 +0100311 sdk_version: "none",
Colin Crossa4d9fc42017-09-29 18:04:37 -0700312 system_modules: "core-all-system-modules",
Paul Duffin1d7d4a72019-10-10 18:15:01 +0100313 patch_module: "java.base",
Colin Crossec80f4f2018-08-15 21:17:11 -0700314
Pete Gillin80ebe872018-02-13 15:21:20 +0000315 jacoco: {
316 exclude_filter: [
317 "java.lang.DexCache",
318 "dalvik.system.ClassExt",
319 ],
320 },
Colin Crossaf0b54c2017-09-27 17:22:32 -0700321
Andreas Gampe9a1ba892019-04-24 12:35:40 -0700322 target: {
323 hostdex: {
324 required: [
Neil Fuller53c5f032019-06-05 13:47:39 +0100325 // Files used to simulate the /system, runtime APEX and tzdata
326 // APEX dir structure on host.
327 "icu_tzdata.dat_host_tzdata_apex",
Andreas Gampe9a1ba892019-04-24 12:35:40 -0700328 "tzdata_host",
Neil Fuller53c5f032019-06-05 13:47:39 +0100329 "tzdata_host_tzdata_apex",
Neil Fuller53c5f032019-06-05 13:47:39 +0100330 "tzlookup.xml_host_tzdata_apex",
Andreas Gampe9a1ba892019-04-24 12:35:40 -0700331 "tz_version_host",
Neil Fuller53c5f032019-06-05 13:47:39 +0100332 "tz_version_host_tzdata_apex",
Andreas Gampe9a1ba892019-04-24 12:35:40 -0700333 ],
334 },
335 },
Colin Crossaf0b54c2017-09-27 17:22:32 -0700336}
337
Paul Duffin7bb8d232018-10-23 11:48:38 +0100338// Provided solely to contribute information about which hidden parts of the
339// core-oj API are used by apps.
Paul Duffinc6bf27b2019-05-15 14:41:00 +0100340//
341// The build system determines that this library provides hiddenapi information
342// for the core-oj bootjar because its name is of the form <x>-hiddenapi, where
343// <x> is the name of a boot jar. That triggers the generation of a flags.csv
344// file which encapsulates information extracted from the UnsupportedAppUsage
345// annotations in the dex. The information from that file is then encoded into
346// the core-oj file.
347//
348// Usually, e.g. for core-libart, the UnsupportedAppUsage annotations are
349// added to the source that is compiled directly into the bootjar and the build
350// system extracts the information about UnsupportedAppUsage directly from
351// there.
352//
353// This approach of having separate annotated source and a separate build
354// target was taken for ojluni to avoid having to maintain local patches in the
355// ojluni source for UnsupportedAppUsage annotations as that would make it more
356// difficult to pull down changes from upstream.
357//
Paul Duffin7bb8d232018-10-23 11:48:38 +0100358java_library {
359 name: "core-oj-hiddenapi",
Paul Duffin48ac7b62019-03-28 14:28:06 +0000360 // Do not allow this to be accessed from outside this directory.
361 visibility: ["//visibility:private"],
Paul Duffin7bb8d232018-10-23 11:48:38 +0100362 defaults: ["libcore_java_defaults"],
363 compile_dex: true,
364
365 srcs: [":openjdk_hiddenapi_javadoc_files"],
366
Paul Duffin83c25382019-06-07 14:10:49 +0100367 sdk_version: "none",
Paul Duffin7bb8d232018-10-23 11:48:38 +0100368 system_modules: "core-all-system-modules",
Paul Duffin1d7d4a72019-10-10 18:15:01 +0100369 patch_module: "java.base",
Paul Duffin7bb8d232018-10-23 11:48:38 +0100370}
371
Neil Fuller77e3f3b2018-10-19 10:22:32 +0100372//
Paul Duffin00b174e2019-09-26 16:22:17 +0100373// Guaranteed unstripped versions of core-oj and core-libart.
Neil Fuller77e3f3b2018-10-19 10:22:32 +0100374//
Colin Cross3c6c2e22017-10-18 13:24:52 -0700375// The build system may or may not strip the core-oj and core-libart jars,
376// but these will not be stripped. See b/24535627.
Neil Fuller77e3f3b2018-10-19 10:22:32 +0100377//
378
Colin Cross3c6c2e22017-10-18 13:24:52 -0700379java_library {
380 name: "core-oj-testdex",
Colin Cross5b75cdd2018-06-27 11:00:13 -0700381 installable: true,
Colin Cross3c6c2e22017-10-18 13:24:52 -0700382 static_libs: ["core-oj"],
Paul Duffin83c25382019-06-07 14:10:49 +0100383 sdk_version: "none",
Colin Cross3c6c2e22017-10-18 13:24:52 -0700384 system_modules: "core-all-system-modules",
385 dxflags: ["--core-library"],
Colin Cross485ed362017-12-05 17:24:22 -0800386 dex_preopt: {
387 enabled: false,
388 },
Tobias Thiererde991232018-03-07 15:10:46 +0000389 java_version: "1.9",
Colin Cross3c6c2e22017-10-18 13:24:52 -0700390 notice: "ojluni/NOTICE",
Colin Cross3c6c2e22017-10-18 13:24:52 -0700391}
392
393java_library {
394 name: "core-libart-testdex",
Colin Cross5b75cdd2018-06-27 11:00:13 -0700395 installable: true,
Colin Cross3c6c2e22017-10-18 13:24:52 -0700396 static_libs: ["core-libart"],
Paul Duffin83c25382019-06-07 14:10:49 +0100397 sdk_version: "none",
Colin Cross3c6c2e22017-10-18 13:24:52 -0700398 system_modules: "core-all-system-modules",
399 dxflags: ["--core-library"],
Colin Cross485ed362017-12-05 17:24:22 -0800400 dex_preopt: {
401 enabled: false,
402 },
Colin Cross3c6c2e22017-10-18 13:24:52 -0700403 notice: "ojluni/NOTICE",
Colin Cross3c6c2e22017-10-18 13:24:52 -0700404}
405
Tobias Thierere0f8b312018-10-23 23:12:30 +0100406java_defaults {
407 name: "core_lambda_stubs_defaults",
Colin Crossaf0b54c2017-09-27 17:22:32 -0700408 defaults: ["libcore_java_defaults"],
Neil Fuller4207c7f2018-10-10 14:01:40 +0100409 hostdex: true,
Colin Crossaf0b54c2017-09-27 17:22:32 -0700410
Paul Duffin83c25382019-06-07 14:10:49 +0100411 sdk_version: "none",
Colin Crossa4d9fc42017-09-29 18:04:37 -0700412 system_modules: "core-all-system-modules",
Paul Duffin1d7d4a72019-10-10 18:15:01 +0100413 patch_module: "java.base",
Colin Crossaf0b54c2017-09-27 17:22:32 -0700414
415 notice: "ojluni/NOTICE",
416
417 installable: false,
418 include_srcs: true,
419}
Colin Crossa4d9fc42017-09-29 18:04:37 -0700420
Tobias Thierere0f8b312018-10-23 23:12:30 +0100421// Creates a jar that exists to satisfy javac when compiling source code that
422// contains lambdas. This contains all classes / methods required by javac
423// when generating invoke-dynamic lambda implementation code, even those that
424// are also in the public SDK API from API level 26 onwards.
425java_library {
426 name: "core-lambda-stubs",
Paul Duffinc241d6a2019-06-25 15:40:29 +0100427 visibility: ["//visibility:public"],
Tobias Thierere0f8b312018-10-23 23:12:30 +0100428 defaults: ["core_lambda_stubs_defaults"],
429 srcs: [
430 ":openjdk_lambda_stub_files",
431 ":openjdk_lambda_duplicate_stub_files",
432 ],
433}
434
435// An alternative to core-lambda-stubs that omits openjdk_lambda_duplicate_stub_files
436// because those classes are also part of the core library public SDK API
437// (since API level 26).
438java_library {
439 name: "core-lambda-stubs-for-system-modules",
Paul Duffinc241d6a2019-06-25 15:40:29 +0100440 visibility: [
441 "//libcore/mmodules/core_platform_api",
442 ],
Tobias Thierere0f8b312018-10-23 23:12:30 +0100443 defaults: ["core_lambda_stubs_defaults"],
444 srcs: [
445 ":openjdk_lambda_stub_files",
446 ],
447}
448
Pete Gillin54035812019-05-08 15:09:39 +0100449// Creates a jar that exists to satisfy javac when compiling source code that
450// contains @Generated annotations, which are produced by some code generation
451// tools (notably dagger) but aren't part of the Android API.
452// See http://b/123891440.
453java_library {
454 name: "core-generated-annotation-stubs",
Paul Duffinc241d6a2019-06-25 15:40:29 +0100455 visibility: [
456 "//libcore/mmodules/core_platform_api",
457 ],
Pete Gillin54035812019-05-08 15:09:39 +0100458 defaults: ["libcore_java_defaults"],
459 srcs: [
460 ":openjdk_generated_annotation_stub_files",
461 ],
462 hostdex: true,
Paul Duffin83c25382019-06-07 14:10:49 +0100463 sdk_version: "none",
Pete Gillin54035812019-05-08 15:09:39 +0100464 system_modules: "core-all-system-modules",
Paul Duffin1d7d4a72019-10-10 18:15:01 +0100465 patch_module: "java.base",
Pete Gillin54035812019-05-08 15:09:39 +0100466 notice: "ojluni/NOTICE",
467 installable: false,
468 include_srcs: true,
469}
470
Neil Fuller77e3f3b2018-10-19 10:22:32 +0100471// Builds libcore test rules
Colin Cross3c6c2e22017-10-18 13:24:52 -0700472java_library_static {
473 name: "core-test-rules",
Paul Duffinc241d6a2019-06-25 15:40:29 +0100474 visibility: [
Paul Duffin01f6c022019-09-24 14:44:15 +0100475 "//external/conscrypt",
Paul Duffinc241d6a2019-06-25 15:40:29 +0100476 "//frameworks/base/location/tests/locationtests",
477 ],
Colin Cross3c6c2e22017-10-18 13:24:52 -0700478 hostdex: true,
Colin Cross3c6c2e22017-10-18 13:24:52 -0700479 srcs: [
480 "dalvik/test-rules/src/main/**/*.java",
481 "test-rules/src/main/**/*.java",
482 ],
483 static_libs: ["junit"],
Neil Fuller4207c7f2018-10-10 14:01:40 +0100484
Paul Duffin83c25382019-06-07 14:10:49 +0100485 sdk_version: "none",
Neil Fuller4207c7f2018-10-10 14:01:40 +0100486 system_modules: "core-all-system-modules",
Colin Cross3c6c2e22017-10-18 13:24:52 -0700487}
488
Neil Fuller77e3f3b2018-10-19 10:22:32 +0100489// Builds the core-tests-support library used by various tests.
Colin Cross3c6c2e22017-10-18 13:24:52 -0700490java_library_static {
491 name: "core-tests-support",
Paul Duffinc241d6a2019-06-25 15:40:29 +0100492 visibility: [
493 "//cts/apps/CtsVerifier",
494 "//cts/tests/tests/keystore",
495 "//cts/tests/tests/net",
496 "//cts/tests/tests/net/api23Test",
497 "//external/apache-harmony",
498 "//frameworks/base/core/tests/coretests",
499 "//libcore/benchmarks",
500 "//packages/apps/KeyChain/tests",
501 "//system/timezone/distro/core",
502 ],
Colin Cross3c6c2e22017-10-18 13:24:52 -0700503 hostdex: true,
Colin Cross3c6c2e22017-10-18 13:24:52 -0700504 srcs: ["support/src/test/java/**/*.java"],
Neil Fuller4207c7f2018-10-10 14:01:40 +0100505
Paul Duffin53c491f2019-06-12 13:48:14 +0100506 sdk_version: "core_platform",
Neil Fuller4380ab22018-10-18 19:38:53 +0100507 libs: ["junit"],
Colin Cross3c6c2e22017-10-18 13:24:52 -0700508 static_libs: [
Neil Fullerde8b0862018-10-12 21:53:31 +0100509 "bouncycastle-unbundled",
510 "bouncycastle-bcpkix-unbundled",
511 "bouncycastle-ocsp-unbundled",
Colin Cross3c6c2e22017-10-18 13:24:52 -0700512 ],
513}
514
Neil Fuller77e3f3b2018-10-19 10:22:32 +0100515// Builds the jsr166-tests library.
Colin Crossec80f4f2018-08-15 21:17:11 -0700516java_test {
Colin Cross3c6c2e22017-10-18 13:24:52 -0700517 name: "jsr166-tests",
Paul Duffinc241d6a2019-06-25 15:40:29 +0100518 visibility: [
519 "//cts/tests/libcore/jsr166",
520 ],
Colin Cross3c6c2e22017-10-18 13:24:52 -0700521 srcs: ["jsr166-tests/src/test/java/**/*.java"],
Paul Duffin83c25382019-06-07 14:10:49 +0100522 sdk_version: "none",
Paul Duffin0e0f8c42019-09-20 14:49:55 +0100523 system_modules: "core-all-system-modules",
Colin Cross3c6c2e22017-10-18 13:24:52 -0700524 libs: [
525 "junit",
526 ],
527}
Nan Zhang65f27a32018-01-05 10:41:46 -0800528
Pete Gillinec902b82019-06-26 17:23:00 +0100529// A filegroup that provides access to a source file for a toolchain test that
530// checks Java 9 language features are handled properly by JarJar.
531filegroup {
532 name: "core-java-9-language-features-source",
533 srcs: ["luni/src/main/java/libcore/internal/Java9LanguageFeatures.java"],
534 visibility: ["//libcore/luni/src/test/java9language"],
535}
536
Neil Fuller77e3f3b2018-10-19 10:22:32 +0100537// Builds the core-tests library.
Colin Crossec80f4f2018-08-15 21:17:11 -0700538java_test {
539 name: "core-tests",
Paul Duffinc241d6a2019-06-25 15:40:29 +0100540 visibility: [
541 "//cts/tests/libcore/luni",
542 ],
Colin Crossec80f4f2018-08-15 21:17:11 -0700543 defaults: ["libcore_java_defaults"],
544 hostdex: true,
545 srcs: [
546 "dalvik/src/test/java/**/*.java",
547 "dalvik/test-rules/src/test/java/**/*.java",
548 "dom/src/test/java/**/*.java",
549 "harmony-tests/src/test/java/**/*.java",
550 "json/src/test/java/**/*.java",
551 "luni/src/test/java/**/*.java",
Paul Duffin4ba14532019-03-21 10:32:41 +0000552 "test-rules/src/test/java/**/*.java",
Colin Crossec80f4f2018-08-15 21:17:11 -0700553 "xml/src/test/java/**/*.java",
554 ],
555 exclude_srcs: [
556 "luni/src/test/java/libcore/java/util/zip/Zip64Test.java",
557 "luni/src/test/java/libcore/java/util/zip/Zip64FileTest.java",
558 ],
559
560 java_resource_dirs: [
561 "*/src/test/java",
562 "*/src/test/resources",
563 ],
564 exclude_java_resource_dirs: [
565 "ojluni/src/test/java",
566 "ojluni/src/test/resources",
567 ],
568
569 java_resources: [
Paul Duffin16a057f2019-05-13 12:20:55 +0100570 ":annotations-test",
Colin Crossec80f4f2018-08-15 21:17:11 -0700571 ":filesystemstest",
572 ":parameter-metadata-test",
573 ],
574
Paul Duffin83c25382019-06-07 14:10:49 +0100575 sdk_version: "none",
Paul Duffin0e0f8c42019-09-20 14:49:55 +0100576 system_modules: "core-all-system-modules",
Neil Fuller4207c7f2018-10-10 14:01:40 +0100577 libs: [
Neil Fuller4207c7f2018-10-10 14:01:40 +0100578 "okhttp",
579 "bouncycastle",
580 ],
Neil Fuller4207c7f2018-10-10 14:01:40 +0100581
Colin Crossec80f4f2018-08-15 21:17:11 -0700582 static_libs: [
583 "archive-patcher",
Pete Gillin05a43202019-06-27 14:41:21 +0100584 "core-java-9-language-tests",
Colin Crossec80f4f2018-08-15 21:17:11 -0700585 "core-test-rules",
586 "core-tests-support",
587 "junit-params",
588 "mockftpserver",
589 "mockito-target",
590 "mockwebserver",
591 "nist-pkix-tests",
592 "slf4j-jdk14",
593 "sqlite-jdbc",
594 "tzdata-testing",
Paul Duffina4df2372018-12-10 15:48:01 +0000595 "truth-prebuilt",
Colin Crossec80f4f2018-08-15 21:17:11 -0700596 ],
597
598 errorprone: {
599 javacflags: [
600 "-Xep:TryFailThrowable:ERROR",
601 "-Xep:ComparisonOutOfRange:ERROR",
602 ],
603 },
Simran Basi3be01e02018-08-21 17:53:49 -0700604
605 test_config: "AndroidTest-core-tests.xml",
Colin Crossec80f4f2018-08-15 21:17:11 -0700606}
607
Neil Fuller77e3f3b2018-10-19 10:22:32 +0100608// Builds the core-ojtests library that contains test code from OpenJDK.
Colin Crossec80f4f2018-08-15 21:17:11 -0700609java_test {
610 name: "core-ojtests",
611 defaults: ["libcore_java_defaults"],
612 hostdex: true,
613
614 srcs: [
615 "ojluni/src/test/java/**/*.java",
616 ],
617 java_resource_dirs: [
618 "ojluni/src/test/java",
619 "ojluni/src/test/resources",
620 ],
Neil Fullerb669ccb2018-10-04 23:10:27 +0100621
Paul Duffin83c25382019-06-07 14:10:49 +0100622 sdk_version: "none",
Paul Duffin0e0f8c42019-09-20 14:49:55 +0100623 system_modules: "core-all-system-modules",
Neil Fuller4207c7f2018-10-10 14:01:40 +0100624 libs: [
Neil Fuller4207c7f2018-10-10 14:01:40 +0100625 "okhttp",
626 "bouncycastle",
627 ],
Neil Fuller4207c7f2018-10-10 14:01:40 +0100628
Colin Crossec80f4f2018-08-15 21:17:11 -0700629 static_libs: ["testng"],
630
631 // ojluni/src/test/java/util/stream/{bootlib,boottest}
632 // contains tests that are in packages from java.base;
633 // By default, OpenJDK 9's javac will only compile such
634 // code if it's declared to also be in java.base at
635 // compile time.
636 //
Paul Duffin1d7d4a72019-10-10 18:15:01 +0100637 // For now, we use patch_module to put all sources
Colin Crossec80f4f2018-08-15 21:17:11 -0700638 // and dependencies from this make target into java.base;
639 // other source directories in this make target are in
640 // packages not from java.base; if this becomes a problem
641 // in future, this could be addressed eg. by splitting
642 // boot{lib,test} out into a separate make target,
643 // deleting those tests or moving them to a different
644 // package.
645 patch_module: "java.base",
646}
647
Neil Fuller77e3f3b2018-10-19 10:22:32 +0100648// Builds the core-ojtests-public library. Excludes any private API tests.
649// Like core-ojtests but smaller.
Colin Crossec80f4f2018-08-15 21:17:11 -0700650java_test {
651 name: "core-ojtests-public",
Paul Duffinc241d6a2019-06-25 15:40:29 +0100652 visibility: [
653 "//cts/tests/libcore/ojluni",
654 ],
Colin Crossec80f4f2018-08-15 21:17:11 -0700655 defaults: ["libcore_java_defaults"],
656 srcs: [
657 "ojluni/src/test/java/**/*.java",
658 ],
659 // Filter out the following:
660 // 1.) DeserializeMethodTest and SerializedLambdaTest, because they depends on stub classes
661 // and won't actually run, and
662 // 2.) util/stream/boot*. Those directories contain classes in the package java.util.stream;
663 // excluding them means we don't need patch_module: "java.base"
664 exclude_srcs: [
665 "**/DeserializeMethodTest.java",
666 "**/SerializedLambdaTest.java",
667 "ojluni/src/test/java/util/stream/boot*/**/*",
668 ],
669 java_resource_dirs: [
670 "ojluni/src/test/java",
671 "ojluni/src/test/resources",
672 // Include source code as part of JAR
673 "ojluni/src/test/dist",
674 ],
Neil Fuller4207c7f2018-10-10 14:01:40 +0100675
Paul Duffin83c25382019-06-07 14:10:49 +0100676 sdk_version: "none",
Paul Duffin0e0f8c42019-09-20 14:49:55 +0100677 system_modules: "core-all-system-modules",
Neil Fuller4207c7f2018-10-10 14:01:40 +0100678 libs: [
Neil Fuller4207c7f2018-10-10 14:01:40 +0100679 "bouncycastle",
680 "okhttp",
681 "testng",
682 ],
Colin Crossec80f4f2018-08-15 21:17:11 -0700683}
684
Neil Fuller77e3f3b2018-10-19 10:22:32 +0100685// Exports annotated stubs source files in ojluni/annotations/sdk to make them
686// available to metalava. Used for nullability annotations in OpenJDK source.
Pete Gillin7db7faa2018-07-31 13:29:35 +0100687droiddoc_exported_dir {
Pete Gillin0728b742018-09-17 15:41:45 +0100688 name: "ojluni-annotated-sdk-stubs",
Paul Duffinc241d6a2019-06-25 15:40:29 +0100689 visibility: [
690 "//frameworks/base",
691 ],
Pete Gillin0728b742018-09-17 15:41:45 +0100692 path: "ojluni/annotations/sdk",
Pete Gillin7db7faa2018-07-31 13:29:35 +0100693}
Paul Duffin48ac7b62019-03-28 14:28:06 +0000694
Pete Gillin600c7cf2018-08-16 19:28:38 +0100695droiddoc_exported_dir {
696 name: "ojluni-annotated-nullability-stubs",
697 path: "ojluni/annotations/sdk/nullability",
698}
Neil Fuller77e3f3b2018-10-19 10:22:32 +0100699
700// Exports annotated stubs source files in ojluni/annotations/mmodules to make
Paul Duffinc241d6a2019-06-25 15:40:29 +0100701// them available to metalava. Used for core platform API and intra-core API
Neil Fuller77e3f3b2018-10-19 10:22:32 +0100702// annotations in OpenJDK source.
Pete Gillinc9935b62018-09-25 14:42:40 +0100703droiddoc_exported_dir {
704 name: "ojluni-annotated-mmodule-stubs",
Paul Duffinc241d6a2019-06-25 15:40:29 +0100705 visibility: [
706 "//libcore/mmodules/core_platform_api",
707 "//libcore/mmodules/intracoreapi",
708 ],
Pete Gillinc9935b62018-09-25 14:42:40 +0100709 path: "ojluni/annotations/mmodule",
710}
Pete Gillin7db7faa2018-07-31 13:29:35 +0100711
Neil Fuller6f16b462018-09-04 15:40:39 +0100712// A file containing the list of tags that are "known" to us from the OpenJdk
713// source code and so should not cause an error or warning.
Nan Zhangd55722b2018-02-27 15:08:20 -0800714filegroup {
715 name: "known-oj-tags",
Paul Duffinc241d6a2019-06-25 15:40:29 +0100716 visibility: [
717 "//frameworks/base",
718 ],
Nan Zhangd55722b2018-02-27 15:08:20 -0800719 srcs: [
720 "known_oj_tags.txt",
721 ],
722}
Nan Zhang602fc0e2018-03-22 16:14:22 -0700723
Paul Duffina8bb6062019-09-25 15:50:13 +0100724// Generates stubs for the parts of the public SDK API provided by the ART module.
Paul Duffin0ca3cbe2019-02-14 15:47:58 +0000725//
Paul Duffina8bb6062019-09-25 15:50:13 +0100726// Only for use by art.module.public.api.stubs target below.
Nan Zhangf0207602018-09-10 18:57:38 -0700727droidstubs {
Paul Duffina8bb6062019-09-25 15:50:13 +0100728 name: "art-module-public-api-stubs-gen",
Paul Duffin53690cb2019-09-19 15:11:28 +0100729 srcs: [
Paul Duffina8bb6062019-09-25 15:50:13 +0100730 ":core_oj_api_files",
731 ":core_libart_api_files",
Paul Duffin53690cb2019-09-19 15:11:28 +0100732 ],
Tobias Thiererde991232018-03-07 15:10:46 +0000733 java_version: "1.9",
Nan Zhang602fc0e2018-03-22 16:14:22 -0700734 installable: false,
Paul Duffin419b2422019-06-25 15:42:05 +0100735 sdk_version: "none",
Nan Zhang602fc0e2018-03-22 16:14:22 -0700736}
737
Paul Duffina8bb6062019-09-25 15:50:13 +0100738// A stubs target containing the parts of the public SDK API provided by the ART module.
739java_library {
740 name: "art.module.public.api.stubs",
Paul Duffin00b174e2019-09-26 16:22:17 +0100741 visibility: [
Paul Duffinba71f832019-09-27 14:54:23 +0100742 "//external/conscrypt",
Paul Duffin00b174e2019-09-26 16:22:17 +0100743 "//external/icu/android_icu4j",
744 ],
Paul Duffina8bb6062019-09-25 15:50:13 +0100745 srcs: [":art-module-public-api-stubs-gen"],
746 errorprone: {
747 javacflags: [
748 "-Xep:MissingOverride:OFF",
749 ],
750 },
Paul Duffin1d7d4a72019-10-10 18:15:01 +0100751 patch_module: "java.base",
Paul Duffina8bb6062019-09-25 15:50:13 +0100752 sdk_version: "none",
753 system_modules: "none",
754}
755
756// Used when compiling higher-level code against art.module.public.api.stubs.
Paul Duffinf545bc72019-10-02 14:07:04 +0100757//
758// This is only intended for use within core libraries and must not be used
759// from outside.
Paul Duffina8bb6062019-09-25 15:50:13 +0100760java_system_modules {
761 name: "art-module-public-api-stubs-system-modules",
762 visibility: [
Paul Duffinba71f832019-09-27 14:54:23 +0100763 "//external/conscrypt",
Paul Duffin00b174e2019-09-26 16:22:17 +0100764 "//external/icu/android_icu4j",
Paul Duffina8bb6062019-09-25 15:50:13 +0100765 "//external/wycheproof",
766 ],
767 libs: [
768 "art.module.public.api.stubs",
769 // This one is not on device but it's needed when javac compiles code
770 // containing lambdas.
771 "core-lambda-stubs-for-system-modules",
772 // This one is not on device but it's needed when javac compiles code
773 // containing @Generated annotations produced by some code generation
774 // tools.
775 // See http://b/123891440.
776 "core-generated-annotation-stubs",
Paul Duffinf545bc72019-10-02 14:07:04 +0100777
778 // Ensure that core libraries that depend on the public API can access
779 // the UnsupportedAppUsage, CorePlatformApi and IntraCoreApi
780 // annotations.
781 "libcore-unsupportedappusage-annotation",
Paul Duffina8bb6062019-09-25 15:50:13 +0100782 ],
783}
784
Paul Duffin0ca3cbe2019-02-14 15:47:58 +0000785// A stubs target containing the parts of the public SDK API provided by the
786// core library.
787//
788// Don't use this directly, use "sdk_version: core_current".
789java_library {
790 name: "core.current.stubs",
Paul Duffinc241d6a2019-06-25 15:40:29 +0100791 visibility: ["//visibility:public"],
Paul Duffina8bb6062019-09-25 15:50:13 +0100792 static_libs: [
793 "art.module.public.api.stubs",
794 "conscrypt.module.public.api.stubs",
795 "i18n.module.public.api.stubs",
796 ],
Paul Duffin83c25382019-06-07 14:10:49 +0100797 sdk_version: "none",
Paul Duffin0ca3cbe2019-02-14 15:47:58 +0000798 system_modules: "none",
Paul Duffin65641182019-04-08 10:24:23 +0100799
800 dist: {
801 targets: [
802 "sdk",
803 "win_sdk",
804 ],
805 },
Paul Duffin0ca3cbe2019-02-14 15:47:58 +0000806}
807
Neil Fuller61dabbf2018-10-21 22:53:18 +0100808// Used when compiling higher-level code against core.current.stubs.
809java_system_modules {
810 name: "core-current-stubs-system-modules",
Paul Duffinc241d6a2019-06-25 15:40:29 +0100811 visibility: ["//visibility:public"],
Neil Fuller61dabbf2018-10-21 22:53:18 +0100812 libs: [
813 "core.current.stubs",
814 // This one is not on device but it's needed when javac compiles code
815 // containing lambdas.
816 "core-lambda-stubs-for-system-modules",
817 // This one is not on device but it's needed when javac compiles code
818 // containing @Generated annotations produced by some code generation
819 // tools.
820 // See http://b/123891440.
821 "core-generated-annotation-stubs",
822 ],
823}
824
Pete Gillin600c7cf2018-08-16 19:28:38 +0100825// Target for validating nullability annotations for correctness and
826// completeness. To check that there are no nullability errors:
Paul Duffinbfbfb672019-10-03 17:53:32 +0100827// m art-module-public-api-stubs-nullability-validation
Pete Gillin600c7cf2018-08-16 19:28:38 +0100828// To check that there are only the expected nullability warnings:
Paul Duffinbfbfb672019-10-03 17:53:32 +0100829// m art-module-public-api-stubs-nullability-validation-check-nullability-warnings
Pete Gillincdca7f82019-10-04 13:28:57 +0100830// (If that check fails, it will provide instructions on how to proceed,
831// including the command to run to update the expected warnings file.)
Pete Gillin600c7cf2018-08-16 19:28:38 +0100832droidstubs {
Paul Duffinbfbfb672019-10-03 17:53:32 +0100833 name: "art-module-public-api-stubs-nullability-validation",
834 srcs: [":art_module_api_files"],
Pete Gillin600c7cf2018-08-16 19:28:38 +0100835 installable: false,
Paul Duffin419b2422019-06-25 15:42:05 +0100836 sdk_version: "none",
Pete Gillin600c7cf2018-08-16 19:28:38 +0100837 annotations_enabled: true,
838 args: "--hide-annotation libcore.api.Hide " +
839 "--validate-nullability-from-merged-stubs ",
840 merge_inclusion_annotations_dirs: ["ojluni-annotated-mmodule-stubs"],
841 merge_annotations_dirs: [
842 "metalava-manual",
843 // N.B. Stubs in this filegroup will be validated:
844 "ojluni-annotated-nullability-stubs",
845 ],
Pete Gillinc5f179b2018-11-14 18:42:19 +0000846 // The list of classes which have nullability annotations included in the source.
847 // (This is in addition to those which have annotations in the merged stubs.)
848 validate_nullability_from_list: "nullability_annotated_classes.txt",
Pete Gillin600c7cf2018-08-16 19:28:38 +0100849 // The expected set of warnings about missing annotations:
850 check_nullability_warnings: "nullability_warnings.txt",
851}
852
Neil Fullere784ef22018-11-16 15:54:30 +0000853// A host library containing time zone related classes. Used for
854// host-side tools and tests that have to deal with Android
855// time zone data.
856java_library_host {
857 name: "timezone-host",
Paul Duffinc241d6a2019-06-25 15:40:29 +0100858 visibility: [
859 "//system/timezone/distro/core",
860 ],
Neil Fullere784ef22018-11-16 15:54:30 +0000861 srcs: [":timezone_host_files"],
862}
Andrei Onea24892e22019-04-16 16:48:37 +0100863
Paul Duffinf48513e2019-10-07 14:04:04 +0100864// A special set of system modules for building the following library for use
865// in the art-module-public-api-system-modules.
866java_system_modules {
867 name: "api-annotations-system-modules",
868 libs: [
869 "art.module.public.api.stubs",
870 ],
871}
872
Victor Changb28d3f82019-08-09 16:24:46 +0100873// A library that contains annotations not retented in runtime and inline-able constants
874// that should not introduce any runtime dependency for compiling core libraries, e.g. core-icu4j,
875java_library {
876 name: "libcore-unsupportedappusage-annotation",
877 srcs: [
878 ":unsupportedappusage_annotation_files",
879 ],
880
881 installable: false,
Paul Duffinf545bc72019-10-02 14:07:04 +0100882 sdk_version: "none",
Paul Duffinf48513e2019-10-07 14:04:04 +0100883 system_modules: "api-annotations-system-modules",
884 patch_module: "java.base",
Victor Changb28d3f82019-08-09 16:24:46 +0100885}
886
Andrei Onea24892e22019-04-16 16:48:37 +0100887// The source files that contain the UnsupportedAppUsage annotation and its dependencies.
888filegroup {
889 name: "unsupportedappusage_annotation_files",
Paul Duffinc241d6a2019-06-25 15:40:29 +0100890 visibility: [
891 "//frameworks/base",
892 ],
Andrei Onea24892e22019-04-16 16:48:37 +0100893 srcs: [
894 "dalvik/src/main/java/dalvik/annotation/compat/UnsupportedAppUsage.java",
895 "dalvik/src/main/java/dalvik/system/VersionCodes.java",
896 "luni/src/main/java/libcore/api/CorePlatformApi.java",
897 "luni/src/main/java/libcore/api/IntraCoreApi.java",
898 ],
Neil Fuller86345d72019-04-25 09:15:32 +0100899}