platform_build_soong/android
Paul Duffin 9c3ac96f1f Detect empty apex in ConfiguredJarList
Previously, ConfiguredJarList would accept an empty apex name,
e.g. ":jar" which makes no sense as every apex has to have a non-empty
name. This change makes an empty apex invalid.

In order to improve the test coverage of the TestConfiguredJarList test
this change also changes the implementation of
CreateTestConfiguredJarList([]string) to marshal the supplied strings
into a json list and then unmarshal into a ConfiguredJarList which more
closely matches how it is used at runtime.

Bug: 178361284
Test: m nothing
Change-Id: I7dfec6b4cc1923aa99746e976da0393922ef0791
2021-02-04 10:07:41 +00:00
..
soongconfig Add conditions_default for soong config variables. 2021-01-21 14:25:20 -05:00
Android.bp Export dex implementation jars from prebuilt_apex 2021-01-15 18:14:10 +00:00
android_test.go Share buildDir for android/soong/android tests 2019-06-10 15:51:06 -07:00
androidmk.go Revert^2 "Export soong license data to make." 2021-01-06 20:49:11 -08:00
androidmk_test.go Improve test coverage of dist processing code 2020-11-27 15:17:44 +00:00
apex.go Merge "Fix boot jar handling when both source and prebuilt APEXes and modules are present." 2021-01-29 13:15:02 +00:00
apex_test.go Export dex implementation jars from prebuilt_apex 2021-01-15 18:14:10 +00:00
api_levels.go apex: checks min_sdk_version for preview/current 2021-01-26 12:09:07 +09:00
arch.go Allow common arch for recovery 2021-02-02 20:07:58 +09:00
arch_list.go Add more comments to arch.go 2020-11-19 11:20:05 -08:00
arch_test.go Pass Config to NewTestContext instead of ctx.Register 2020-11-12 10:07:49 -08:00
bazel_handler.go avoid error if bazel intermediates dir already exists 2021-01-19 17:19:16 -05:00
config.go Detect empty apex in ConfiguredJarList 2021-02-04 10:07:41 +00:00
config_test.go Detect empty apex in ConfiguredJarList 2021-02-04 10:07:41 +00:00
csuite_config.go Add test suite handling to central androidmk code 2020-12-01 12:23:56 -08:00
csuite_config_test.go Pass Config to NewTestContext instead of ctx.Register 2020-11-12 10:07:49 -08:00
deapexer.go Export dex implementation jars from prebuilt_apex 2021-01-15 18:14:10 +00:00
defaults.go Revert^2 "Add ability to declare licenses in soong." 2021-01-06 20:48:24 -08:00
defaults_test.go Pass Config to NewTestContext instead of ctx.Register 2020-11-12 10:07:49 -08:00
defs.go Add dependency to list of asset files 2020-12-11 19:54:16 +00:00
depset_generic.go Reimplement DepSet as a wrapper around a generic implementation 2020-12-07 12:27:50 -08:00
depset_paths.go Reimplement DepSet as a wrapper around a generic implementation 2020-12-07 12:27:50 -08:00
depset_test.go Reimplement DepSet as a wrapper around a generic implementation 2020-12-07 12:27:50 -08:00
deptag.go Annotate dependency tags for dependencies of installed files 2020-11-23 18:06:08 -08:00
deptag_test.go Annotate dependency tags for dependencies of installed files 2020-11-23 18:06:08 -08:00
env.go Teach Soong to use a custom Delve binary. 2020-11-06 10:46:01 +01:00
expand.go Fix android.Expand and ninja escaping 2019-07-11 14:52:17 -07:00
expand_test.go Revert "Make lots of tests run in parallel" 2020-10-09 18:34:24 -07:00
filegroup.go Make bp2buildMutators registration local to TestContext. 2021-01-26 21:57:27 -05:00
hooks.go Add SrcPath to InstallHookContext 2020-06-04 01:26:16 +01:00
image.go Add vendor-ramdisk image to Soong. 2020-10-22 10:26:26 -07:00
license.go Revert^2 "Add ability to declare licenses in soong." 2021-01-06 20:48:24 -08:00
license_kind.go Revert^2 "Add ability to declare licenses in soong." 2021-01-06 20:48:24 -08:00
license_kind_test.go Revert^2 "Add ability to declare licenses in soong." 2021-01-06 20:48:24 -08:00
license_test.go Revert^2 "Add ability to declare licenses in soong." 2021-01-06 20:48:24 -08:00
licenses.go Revert^2 "Add ability to declare licenses in soong." 2021-01-06 20:48:24 -08:00
licenses_test.go Revert^2 "Add ability to declare licenses in soong." 2021-01-06 20:48:24 -08:00
makefile_goal.go Remove AndroidMkExtraFootersFunc entries param. 2020-12-07 10:23:54 -08:00
makevars.go Add a new SingletonModule type 2021-01-07 17:19:27 -08:00
metrics.go Collect metrics from inside soong_build 2020-02-25 20:50:00 +00:00
module.go Refactor android/paths.go to allow reuse 2021-01-26 12:51:02 -05:00
module_test.go Expand dist property checks to cover dists 2020-11-27 15:17:44 +00:00
mutator.go bp2build: flatten *_defaults properties. 2021-02-01 00:33:30 -05:00
mutator_test.go Pass Config to NewTestContext instead of ctx.Register 2020-11-12 10:07:49 -08:00
namespace.go getNamespacesToSearchForModule to use blueprint.Namespace 2020-12-21 18:40:53 +00:00
namespace_test.go Pass Config to NewTestContext instead of ctx.Register 2020-11-12 10:07:49 -08:00
neverallow.go Allow service-media-s in apex 2021-01-21 02:21:23 +00:00
neverallow_test.go Allow service-media-s in apex 2021-01-21 02:21:23 +00:00
ninja_deps.go Store ninja file deps from PackageVarContext in the config 2020-11-17 10:50:19 -08:00
ninja_deps_test.go Store ninja file deps from PackageVarContext in the config 2020-11-17 10:50:19 -08:00
notices.go Make a soong-only copy of generate-notice-files.py 2020-03-03 13:50:53 -08:00
onceper.go Convert droidstubs to android.RuleBuilder 2019-07-18 14:28:14 -07:00
onceper_test.go Revert "Make lots of tests run in parallel" 2020-10-09 18:34:24 -07:00
override_module.go Call ctx.InstallFile for uninstallable cc modules 2020-12-17 10:02:18 -08:00
package.go Revert^2 "Add ability to declare licenses in soong." 2021-01-06 20:48:24 -08:00
package_ctx.go Store ninja file deps from PackageVarContext in the config 2020-11-17 10:50:19 -08:00
package_test.go Revert^2 "Add ability to declare licenses in soong." 2021-01-06 20:48:24 -08:00
packaging.go Merge changes I0f746a11,I08e61a24 2021-02-03 10:01:39 +00:00
packaging_test.go Merge changes I0f746a11,I08e61a24 2021-02-03 10:01:39 +00:00
path_properties.go Add more comments to path_properties.go 2020-11-19 14:28:46 -08:00
path_properties_test.go Pass Config to NewTestContext instead of ctx.Register 2020-11-12 10:07:49 -08:00
paths.go Make OutputPath implement objPathProvider 2021-02-02 13:33:51 +00:00
paths_test.go Pass Config to NewTestContext instead of ctx.Register 2020-11-12 10:07:49 -08:00
phony.go Refactor 'in_make' to mean Kati is not skipped. 2020-11-23 00:29:18 -05:00
prebuilt.go Call ctx.InstallFile for uninstallable cc modules 2020-12-17 10:02:18 -08:00
prebuilt_build_tool.go SOONG_* variables are emitted only for the BuildOS variants 2020-12-17 19:31:17 +09:00
prebuilt_test.go Pass Config to NewTestContext instead of ctx.Register 2020-11-12 10:07:49 -08:00
proto.go Pass pctx and ctx to NewRuleBuilder 2020-12-01 16:22:16 -08:00
queryview.go Refactor queryview. 2021-01-07 14:34:00 -05:00
register.go bp2build: framework for generating BazelTargetModules. 2021-01-21 22:46:11 -05:00
rule_builder.go Sandbox genrule tools 2020-12-17 10:02:56 -08:00
rule_builder_test.go Sandbox genrule tools 2020-12-17 10:02:56 -08:00
sandbox.go Sandbox soong_build by changing to root directory 2020-01-11 01:11:46 +00:00
sdk.go Add java_boot_libs to sdk 2021-01-15 18:14:10 +00:00
singleton.go Add symlink_outputs support to Soong. 2020-10-19 01:26:50 -04:00
singleton_module.go Add a new SingletonModule type 2021-01-07 17:19:27 -08:00
singleton_module_test.go Add a new SingletonModule type 2021-01-07 17:19:27 -08:00
soong_config_modules.go Add conditions_default for soong config variables. 2021-01-21 14:25:20 -05:00
soong_config_modules_test.go Add conditions_default for soong config variables. 2021-01-21 14:25:20 -05:00
test_suites.go Pass pctx and ctx to NewRuleBuilder 2020-12-01 16:22:16 -08:00
testing.go Make bp2buildMutators registration local to TestContext. 2021-01-26 21:57:27 -05:00
util.go WriteFileRule: Chunk long content and merge them to result 2020-12-02 15:58:48 +01:00
util_test.go Reimplement DepSet as a wrapper around a generic implementation 2020-12-07 12:27:50 -08:00
variable.go Move reflect.ValueOf out of product variable loop 2021-01-20 19:32:42 +00:00
variable_test.go Pass Config to NewTestContext instead of ctx.Register 2020-11-12 10:07:49 -08:00
visibility.go Merge "Error if visibility specifies a module" 2020-10-19 19:06:49 +00:00
visibility_test.go Pass Config to NewTestContext instead of ctx.Register 2020-11-12 10:07:49 -08:00
writedocs.go Add dependency on dexpreopt.config to soong_build doc generation. 2020-11-04 01:51:40 -05:00