platform_build_soong/java
Jihoon Kang ca198c2639 Extract class files from dep_api_srcs instead of java files
Currently, stub java files are extracted from srcjar file provided from
dep_api_srcs in java_api_library module generated in java_sdk_library
per api scope. However, compiling the java files may lead to difference
in the content of the generated class files even if the stub java files
are equivalent, as javac may arbitrarily add overridden methods. Thus,
create a stub jar file instead of creating a stub srcjar file and
compiling it, in order to guarantee stub jar files content equivalence
and thus enable hiddenapi during from-text stub build.

Note that this change does not fully resolve differences between the
full api surface csv and the per sdk_library csv. Instead, it removes
the difference caused by methods arbitrarily added by javac.

This change also renames dep_api_srcs to full_api_surface_stubs to be
more intuitive.

Test: rebase on top of aosp/2617274 and `m --build-from-text-stub`
Bug: 275570206
Change-Id: I22b6d56624633681f5c3b000370b5782655c7b8d
2023-06-29 22:43:05 +00:00
..
config Cleanup remaining android.JavaApiLibraryName() references 2023-06-15 19:42:34 +00:00
core-libraries Redefine core and core platform API surface java_library 2023-06-05 21:44:33 +00:00
aapt2.go
aar.go Delete android/rules.bzl file 2023-05-10 15:33:10 +00:00
aar_test.go
Android.bp Make aconfig flags generate a library instead of a srcjar. 2023-06-09 06:16:06 -07:00
android_manifest.go target_sdk_version replacement should respect REL branches 2023-04-28 16:23:53 +00:00
android_resources.go
androidmk.go Fix Soong code, remove dead code, and clean up code for Java fuzz 2023-05-17 19:07:16 +00:00
androidmk_test.go
app.go Merge "Allow Bluetooth to use privapp_allowlist" 2023-06-06 18:29:07 +00:00
app_builder.go
app_import.go Enable prebuilt apk checks 2023-05-04 12:38:24 -07:00
app_import_test.go Enable prebuilt apk checks 2023-05-04 12:38:24 -07:00
app_set.go Add skip-sdk-check to extract_apks 2023-03-21 08:13:25 -07:00
app_set_test.go Add skip-sdk-check to extract_apks 2023-03-21 08:13:25 -07:00
app_test.go Use per-app package list to avoid unnecessary dexpreopt. 2023-06-28 17:59:56 +01:00
base.go Use java_library_host bp2build converter for tradefed_java_library_host 2023-06-27 15:44:10 -07:00
boot_jars.go
bootclasspath.go
bootclasspath_fragment.go Cleanup remaining android.JavaApiLibraryName() references 2023-06-15 19:42:34 +00:00
bootclasspath_fragment_test.go Cleanup remaining android.JavaApiLibraryName() references 2023-06-15 19:42:34 +00:00
builder.go Make aconfig flags generate a library instead of a srcjar. 2023-06-09 06:16:06 -07:00
classpath_element.go
classpath_fragment.go Update max_sdk_version from SdkSpec to ApiLevel 2023-03-23 19:38:56 +00:00
device_host_converter.go Bp2build support for sdk_version and java_version. 2023-04-11 21:05:48 -04:00
device_host_converter_test.go
dex.go Ensure outputs correctly declared for proguard config in R8 2023-05-12 12:30:07 +02:00
dex_test.go Revert^2 "Generate app profiles even if dexpreopt is disabled." 2023-05-08 21:29:23 +01:00
dexpreopt.go Use per-app package list to avoid unnecessary dexpreopt. 2023-06-28 17:59:56 +01:00
dexpreopt_bootjars.go Only pass "-Xgc:CMC" when building for Android. 2023-06-01 13:27:25 +00:00
dexpreopt_check.go Parallelize singleton execution 2023-05-19 20:31:32 +00:00
dexpreopt_config.go Fix FirstUniqueStrings after conversion to generics 2023-06-27 11:07:55 -07:00
dexpreopt_config_test.go Revert^2 "Generate a boot image extension for mainline BCP... 2023-03-16 08:46:29 +00:00
dexpreopt_config_testing.go Dexpreopt ART jars and framework jars together. 2023-05-11 19:04:17 +01:00
dexpreopt_test.go Prepare tests for dexpreopt changes. 2023-05-11 18:24:44 +01:00
droiddoc.go Revert^2 "Add exports needed for Doclava" 2023-06-09 09:19:36 +00:00
droiddoc_test.go
droidstubs.go Explicitly specify --api-overloaded-method-order source for metalava 2023-06-01 18:45:51 +01:00
droidstubs_test.go Prevent dynamically created java_api_contribution from inheriting 2023-02-04 00:29:33 +00:00
fuzz.go Merge "Add use_platform_libs to fuzz config" 2023-06-05 14:41:51 +00:00
fuzz_test.go Fix Soong code, remove dead code, and clean up code for Java fuzz 2023-05-17 19:07:16 +00:00
gen.go
generated_java_library.go Make aconfig flags generate a library instead of a srcjar. 2023-06-09 06:16:06 -07:00
generated_java_library_test.go Make aconfig flags generate a library instead of a srcjar. 2023-06-09 06:16:06 -07:00
genrule.go
genrule_test.go
hiddenapi.go Update min_sdk_version from SdkSpec to ApiLevel 2023-03-22 20:15:45 +00:00
hiddenapi_modular.go Cleanup remaining android.JavaApiLibraryName() references 2023-06-15 19:42:34 +00:00
hiddenapi_monolithic.go
hiddenapi_singleton.go Parallelize singleton execution 2023-05-19 20:31:32 +00:00
hiddenapi_singleton_test.go Prepare tests for dexpreopt changes. 2023-05-11 18:24:44 +01:00
jacoco.go
jacoco_test.go
java.go Extract class files from dep_api_srcs instead of java files 2023-06-29 22:43:05 +00:00
java_resources.go
java_test.go Extract class files from dep_api_srcs instead of java files 2023-06-29 22:43:05 +00:00
jdeps.go Parallelize singleton execution 2023-05-19 20:31:32 +00:00
jdeps_test.go
kotlin.go Support multiple filters in zipsync 2023-06-14 06:44:49 +00:00
kotlin_test.go
legacy_core_platform_api_usage.go Cleanup remaining android.JavaApiLibraryName() references 2023-06-15 19:42:34 +00:00
lint.go Use generics for DepSets 2023-06-22 08:18:33 -07:00
lint_defaults.txt Disable new lint checks from Android Studio 2023-03-09 14:11:47 +00:00
lint_test.go Give lint the correct api levels database for the current module 2023-02-28 21:18:17 -08:00
platform_bootclasspath.go Parallelize singleton execution 2023-05-19 20:31:32 +00:00
platform_bootclasspath_test.go Prepare tests for dexpreopt changes. 2023-05-11 18:24:44 +01:00
platform_compat_config.go Create bp2build converter for platform_compat_config module type 2023-06-06 19:35:36 +00:00
platform_compat_config_test.go
plugin.go
plugin_test.go
prebuilt_apis.go Merge "Map prebuilt_apis labels to Bazel's manually generated ones." 2023-05-10 18:23:51 +00:00
prebuilt_apis_test.go
proto.go Bp2build support for sdk_version and java_version. 2023-04-11 21:05:48 -04:00
proto_test.go
resourceshrinker.go
resourceshrinker_test.go
robolectric.go Fix FirstUniqueStrings after conversion to generics 2023-06-27 11:07:55 -07:00
rro.go Update max_sdk_version from SdkSpec to ApiLevel 2023-03-23 19:38:56 +00:00
rro_test.go
sdk.go Cleanup remaining android.JavaApiLibraryName() references 2023-06-15 19:42:34 +00:00
sdk_library.go Extract class files from dep_api_srcs instead of java files 2023-06-29 22:43:05 +00:00
sdk_library_external.go
sdk_library_test.go Extract class files from dep_api_srcs instead of java files 2023-06-29 22:43:05 +00:00
sdk_test.go
support_libraries.go
system_modules.go
system_modules_test.go
systemserver_classpath_fragment.go
systemserver_classpath_fragment_test.go
testing.go Add additional java_api_library testing modules 2023-05-22 07:13:07 +00:00
tradefed.go