Lines Matching +full:sdk +full:- +full:benchmarks
7 // http://www.apache.org/licenses/LICENSE-2.0
19 // The Android core library provides low-level APIs for use by the rest of the
24 // libcore has some sub-directories that follow a common structure:
25 // e.g. dalvik, dom, harmony-tests, json, jsr166-tests, luni, libart, ojluni,
49 name: "core-luni-resources",
61 name: "core-ojluni-resources",
72 ":core-luni-resources",
73 ":core-ojluni-resources",
76 // The source files that go into core-oj.
92 rewrite_openjdk_doc_links = "sed -E 's" +
96 "| sed -E 's" + // Android doesn't have java.base in the API docs
99 "| sed -E 's" +
114 // The source files that go into core-libart.l
149 ":apache-xml_api_files",
164 //"-Xlint:all",
165 //"-Xlint:-serial,-deprecation,-unchecked",
168 "--android-platform-build",
169 "--core-library",
173 "-Xep:MissingOverride:OFF", // Ignore missing @Override.
174 "-Xep:ConstantOverflow:WARN", // Known constant overflow in SplittableRandom
175 "-Xep:UnicodeInCode:WARN", // XML parser uses line feeds in whitespace
176 "-Xep:ReturnValueIgnored:WARN",
177 "-Xep:HashtableContains:WARN",
178 "-Xep:ComparableType:WARN",
179 "-Xep:IdentityBinaryExpression:WARN",
180 "-Xep:BoxedPrimitiveEquality:WARN",
181 "-Xep:EmptyTopLevelDeclaration:WARN",
182 "-Xep:GetClassOnClass:WARN",
183 "-Xep:NullableOnContainingClass:WARN",
184 "-Xep:GetClassOnAnnotation:WARN",
185 "-Xep:DoNotCall:WARN",
203 // See core-all-system-modules for more details.
205 name: "core-all",
215 // framework-api-annotations contain API annotations, e.g. @SystemApi.
216 ":framework-api-annotations",
218 ":app-compat-annotations-source",
225 "art-aconfig-flags-java-lib-for-core-all-only",
226 "libcore-aconfig-flags-lib-for-core-all-only",
233 srcs: ["luni/src/module/java/module-info.java"],
241 "compat-changeid-annotation-processor",
242 "unsupportedappusage-annotation-processor",
252 name: "libcore-platform-compat-config",
253 src: ":core-all",
256 "//art/build/sdk",
261 // contains the core-all jar, which contains the classes that end up in core-oj,
262 // core-libart as well as the lambda stubs needed to compile Java lambda code.
265 // other parts of the core library like core-oj, core-libart, conscrypt,
267 // Java tests (run-tests).
269 name: "core-all-system-modules",
279 "//external/apache-harmony:__subpackages__",
280 "//external/apache-xml",
284 "//frameworks/libs/modules-utils/java",
286 "//tools/platform-compat/java/android/compat/annotation",
289 libs: ["core-all"],
294 name: "core-oj",
297 "//art/build/sdk",
301 "//libcore/benchmarks",
316 system_modules: "core-all-system-modules",
338 "core-oj-hiddenapi-annotations",
343 "-Xep:ReturnValueIgnored:WARN",
344 "-Xep:HashtableContains:WARN",
345 "-Xep:ComparableType:WARN",
346 "-Xep:IdentityBinaryExpression:WARN",
347 "-Xep:BoxedPrimitiveEquality:WARN",
348 "-Xep:EmptyTopLevelDeclaration:WARN",
349 "-Xep:GetClassOnClass:WARN",
358 name: "core-libart",
361 "//art/build/sdk",
365 "//libcore/benchmarks",
378 "art-aconfig-flags-java-lib",
379 "libcore-aconfig-flags-lib",
383 system_modules: "core-all-system-modules",
413 "-Xep:EmptyTopLevelDeclaration:WARN",
414 "-Xep:GetClassOnAnnotation:WARN",
415 "-Xep:NullableOnContainingClass:WARN",
424 name: "core-libart-for-host",
426 "//art/build/sdk",
428 "//external/robolectric-shadows",
433 "core-libart",
440 // core-oj API are used by apps.
442 // Usually, e.g. for core-libart, the UnsupportedAppUsage annotations are
453 name: "core-oj-hiddenapi-annotations",
462 system_modules: "core-all-system-modules",
464 plugins: ["unsupportedappusage-annotation-processor"],
468 "-Xep:ComparableType:WARN",
479 system_modules: "core-all-system-modules",
488 // when generating invoke-dynamic lambda implementation code, even those that
489 // are also in the public SDK API from API level 26 onwards.
491 name: "core-lambda-stubs",
500 // This jar is packaged as part of the SDK, use -target 8 so that it works
506 // An alternative to core-lambda-stubs that omits openjdk_lambda_duplicate_stub_files
507 // because those classes are also part of the core library public SDK API
510 name: "core-lambda-stubs-for-system-modules",
512 "//art/build/sdk",
513 "//build/soong/java/core-libraries",
522 // This jar is packaged as part of the SDK, use -target 8 so that it works
533 name: "core-generated-annotation-stubs",
535 "//art/build/sdk",
536 "//build/soong/java/core-libraries",
545 system_modules: "core-all-system-modules",
549 // This jar is packaged as part of the SDK, use -target 8 so that it works
556 name: "core-test-rules",
558 "//art/build/sdk",
559 "//cts/tests/core/runner-axt",
572 "dalvik/test-rules/src/main/**/*.java",
573 "test-rules/src/main/**/*.java",
577 "platform-test-annotations",
581 system_modules: "core-all-system-modules",
586 name: "core-compat-test-rules",
588 "//art/build/sdk",
590 "//frameworks/base/tests/PlatformCompatGating/test-rules",
595 "test-rules/src/platform_compat/**/*.java",
604 system_modules: "core-all-system-modules",
611 "-Xep:EmptyTopLevelDeclaration:WARN",
612 "-Xep:GetClassOnAnnotation:WARN",
617 // Builds the core-tests-support library used by various tests.
619 name: "core-tests-support",
621 "//art/build/sdk",
627 "//external/apache-harmony",
629 "//frameworks/base/apct-tests/perftests/core",
630 "//libcore/benchmarks",
639 // Make sure that this will be added to the sdk snapshot for S.
643 "bouncycastle-unbundled",
644 "bouncycastle-bcpkix-unbundled",
645 "bouncycastle-ocsp-unbundled",
649 "-Xep:BoxedPrimitiveEquality:WARN",
654 // Used to generate the prebuilt file luni/src/test/resources/prebuilt-dex-from-java.dex.
655 // The reason why we pre-build this dex file is to stabilize the test result from the
658 // m core-tests-prebuilt-dex-from-java &&
659 …out/soong/.intermediates/libcore/core-tests-prebuilt-dex-from-java/android_common/dex/core-tests-p…
660 // -d libcore/luni/src/test/resources/ && mv libcore/luni/src/test/resources/classes.dex libcore/…
662 name: "core-tests-prebuilt-dex-from-java",
667 system_modules: "core-all-system-modules",
674 // Builds the jsr166-tests library.
676 name: "jsr166-tests",
678 "//art/build/sdk",
681 srcs: ["jsr166-tests/src/test/java/**/*.java"],
683 system_modules: "core-all-system-modules",
689 "-Xep:DoNotCall:OFF",
690 "-Xep:ModifyingCollectionWithItself:WARN",
691 "-Xep:ReturnValueIgnored:WARN",
692 "-Xep:HashtableContains:WARN",
700 name: "core-java-9-language-features-source",
708 name: "core-java-11-language-features-source",
716 name: "core-java-17-language-features-source",
724 name: "core-java-21-language-features-source",
730 name: "core-tests-smali-dex",
732 cmd: "$(location android-smali) ass --api 28 -o $(out) $(in)",
733 out: ["core-tests-smali.dex"],
734 tools: ["android-smali"],
738 name: "core-ojtests-javax-resources",
746 name: "core-ojtests-java-resources",
758 // Builds the core-tests library.
760 name: "core-tests",
762 "//art/build/sdk",
769 "dalvik/test-rules/src/test/java/**/*.java",
771 "harmony-tests/src/test/java/**/*.java",
774 "test-rules/src/test/java/**/*.java",
778 "harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/*.java",
797 ":annotations-test",
799 ":parameter-metadata-test",
800 ":core-tests-smali-dex",
804 system_modules: "core-all-system-modules",
811 "apache-xml-tests",
812 "core-compat-test-rules",
813 "core-java-9-compatibility-tests",
814 "core-java-9-language-tests",
815 "core-java-11-language-tests",
816 "core-java-17-language-tests",
817 "core-java-21-language-tests",
818 "core-test-rules",
819 "core-tests-support",
820 "junit-params",
821 "libcore-crypto-tests",
823 "mockito-target",
825 "nist-pkix-tests",
826 "slf4j-jdk14",
827 "sqlite-jdbc",
832 "-Xep:TryFailThrowable:ERROR",
833 "-Xep:ComparisonOutOfRange:ERROR",
834 "-Xep:DoNotCall:OFF",
835 "-Xep:ArrayToString:WARN",
836 "-Xep:SelfEquals:WARN",
837 "-Xep:SelfComparison:WARN",
838 "-Xep:ReturnValueIgnored:WARN",
839 "-Xep:BoxedPrimitiveEquality:WARN",
840 "-Xep:SizeGreaterThanOrEqualsZero:WARN",
841 "-Xep:MisusedDayOfYear:WARN",
842 "-Xep:InvalidTimeZoneID:WARN",
843 "-Xep:CollectionToArraySafeParameter:WARN",
844 "-Xep:ModifyingCollectionWithItself:WARN",
845 "-Xep:ComparableType:WARN",
846 "-Xep:UnusedCollectionModifiedInPlace:WARN",
847 "-Xep:HashtableContains:WARN",
848 "-Xep:DoubleBraceInitialization:WARN",
849 "-Xep:RandomModInteger:WARN",
850 "-Xep:IdentityBinaryExpression:WARN",
851 … "-Xep:UnnecessaryStringBuilder:OFF", // https://github.com/google/error-prone/issues/4195
857 "-Xep:InvalidPatternSyntax:OFF",
861 test_config: "AndroidTest-core-tests.xml",
865 name: "libcore-crypto-tests",
868 "//art/build/sdk",
875 "harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/*.java",
890 system_modules: "core-all-system-modules",
893 "core-test-rules",
894 "core-tests-support",
895 "junit-params",
896 "mockito-target",
901 "-Xep:ArrayToString:WARN",
902 "-Xep:ReturnValueIgnored:WARN",
908 name: "libcore-non-cts-tests-txt",
910 ":apache-harmony-tests{.jar}",
911 ":conscrypt-tests{.jar}",
912 ":core-tests{.jar}",
913 ":core-ojtests{.jar}",
915 tools: ["non-cts-json-generator"],
916 out: ["libcore-non-cts-tests.txt"],
917 cmd: "$(location non-cts-json-generator) $(in) > $(out)",
920 // Exports annotated stubs source files in ojluni/annotations/sdk to make them
923 name: "ojluni-annotated-sdk-stubs",
927 path: "ojluni/annotations/sdk",
931 name: "ojluni-annotated-nullability-stubs",
932 path: "ojluni/annotations/sdk/nullability",
936 // them available to metalava. Used for core platform API and intra-core API
939 name: "ojluni-annotated-mmodule-stubs",
947 name: "ojluni-annotated-flagged-stubs",
953 name: "toolchainapi-annotated-flagged-stubs",
961 name: "known-oj-tags",
978 // Needed for java-current-stubs-system-modules.
980 name: "java-current-stubs-source",
989 args: "--stub-packages java.*:javax.*:org.w3c.dom.*:org.xml.sax.*",
996 name: "libart-sdk-stubs-no-javadoc",
999 // The definition of @SystemApi is needed to generate module-lib stubs.
1000 ":framework-api-annotations",
1005 api_levels_sdk_type: "module-lib",
1007 "--exclude-documentation-from-stubs",
1008 …"--show-for-stub-purposes-annotation android.annotation.SystemApi\\(client=android.annotation.Syst…
1013 // libcore_aconfig_flags_lib and core-all
1015 name: "luni-annotated-flagged-stubs",
1022 srcs: [":java-current-stubs-source"],
1025 "-Xep:MissingOverride:OFF",
1035 name: "java-current-stubs-system-modules",
1043 name: "framework-api-annotations-lib",
1044 srcs: [":framework-api-annotations"],
1045 static_libs: ["aconfig-annotations-lib-sdk-none"],
1048 system_modules: "core-all-system-modules",
1057 name: "libcore-aconfig-flags",
1069 name: "libcore-bootstrap-core-current-from-text-system-modules",
1070 libs: ["core.current.stubs.from-text"],
1075 name: "libcore-bootstrap-lib-for-flags-lib",
1078 ":app-compat-annotations-source",
1080 ":framework-api-annotations",
1086 system_modules: "libcore-bootstrap-core-current-from-text-system-modules",
1093 // We need this system module because openjdk_lambda_stub_files and core.current.stubs.from-text
1097 name: "libcore-bootstrap-lib-for-flags-lib-system-modules",
1099 "core.current.stubs.from-text",
1100 "libcore-bootstrap-lib-for-flags-lib",
1106 name: "libcore-aconfig-flags-lib-for-core-all-only",
1107 aconfig_declarations: "libcore-aconfig-flags",
1108 // This system module is specifically crafted to avoid a circular dependency on core-all.
1109 // Instead of dependency on core-all, this system module contains the stubs generated from
1110 // API files, e.g. libcore/api/current.txt. See "core.current.stubs.from-text" for more details.
1113 system_modules: "libcore-bootstrap-lib-for-flags-lib-system-modules",
1121 name: "art-aconfig-flags-java-lib-for-core-all-only",
1122 aconfig_declarations: "art-aconfig-flags",
1123 system_modules: "libcore-bootstrap-lib-for-flags-lib-system-modules",
1131 name: "libcore-aconfig-flags-lib",
1132 aconfig_declarations: "libcore-aconfig-flags",
1135 system_modules: "core-all-system-modules",
1136 libs: ["framework-api-annotations-lib"],
1147 // Define the public SDK API provided by the ART module.
1151 "//art/build/sdk",
1152 "//build/soong/java/core-libraries",
1175 // Put framework-api-annotations into libs to avoid exposing the definition of framework's
1177 "framework-api-annotations-lib",
1183 "art-aconfig-flags-java-lib",
1184 "libcore-aconfig-flags-lib",
1186 stub_only_static_libs: ["notices-for-stubs-jar"],
1203 … "--force-convert-to-warning-nullability-annotations +*:-android.*:+android.icu.*:-dalvik.* ",
1204 "--hide-annotation libcore.api.Hide",
1208 "luni-annotated-flagged-stubs",
1209 "ojluni-annotated-flagged-stubs",
1210 "ojluni-annotated-mmodule-stubs",
1216 "metalava-manual",
1217 "ojluni-annotated-sdk-stubs",
1221 ":known-oj-tags",
1226 "-Xep:MissingOverride:OFF",
1231 system_modules: "java-current-stubs-system-modules",
1233 // dist and which end up in one of the sub-directories of prebuilts/sdk.
1234 // As long as this matches the name of the artifacts in prebuilts/sdk then
1240 "art-aconfig-flags",
1241 "libcore-aconfig-flags",
1247 // m art-module-public-api-stubs-nullability-validation
1249 // m art-module-public-api-stubs-nullability-validation-check-nullability-warnings
1253 name: "art-module-public-api-stubs-nullability-validation",
1259 args: "--hide-annotation libcore.api.Hide " +
1260 "--validate-nullability-from-merged-stubs ",
1261 merge_inclusion_annotations_dirs: ["ojluni-annotated-mmodule-stubs"],
1264 "ojluni-annotated-nullability-stubs",
1274 // in the art-module-public-api-system-modules.
1276 name: "api-annotations-system-modules",
1290 "//build/soong/java/core-libraries",
1298 system_modules: "api-annotations-system-modules",
1300 // This jar is packaged as part of the SDK, use -target 8 so that it works
1310 "//art/build/sdk",
1320 // Make sure that this will be added to the sdk snapshot for S.
1322 // This jar is packaged as part of the ART module host exports, use -target 8 so that it works