platform_build_soong/apex
Spandan Das 59a4a2b8d2 Replace panic with ModuleErrorf
This is a followup cleanup for aosp/2876754 and replaces panic with
ctx.ModuleErrorf. The latter creates a more expressive build error.

Implementation details
- export moduleErrorf interface from build/soong/android. This minimal
  interface will be used as a parameter for `DexJarBuildPath`
- Add ModuleErrorf to the function signature of DexJarBuildPath. This
  parameter only gets used for Import and SdkLibraryImport structs.
  These two can have duplicate deapexer definitions, and ModuleErrorf
  will be used to report that error
- Create a minimal implementation of `ModuleErrorf` in tests of java and
  apex

Test: m nothing --no-skip-soong-tests
Change-Id: I0febec651f40c3f04deb957e64133c94b80fbd78
2024-01-09 22:53:52 +00:00
..
Android.bp Remove ConvertWithBp2build implementations 2023-12-08 13:51:05 -08:00
androidmk.go Remove ConvertWithBp2build implementations 2023-12-08 13:51:05 -08:00
apex.go Replace panic with ModuleErrorf 2024-01-09 22:53:52 +00:00
apex_sdk_member.go Add apexes property to sdk 2022-07-06 15:58:43 +00:00
apex_singleton.go Convert ModuleProvder to generic providers API 2023-12-14 16:12:22 -08:00
apex_test.go Replace panic with ModuleErrorf 2024-01-09 22:53:52 +00:00
bootclasspath_fragment_test.go Replace panic with ModuleErrorf 2024-01-09 22:53:52 +00:00
builder.go Add container property to aconfig_declarations. 2023-11-28 12:37:02 -08:00
classpath_element_test.go Convert OtherModuleProvider to generic providers API 2023-12-14 16:12:22 -08:00
deapexer.go Use the correct bootjars when multiple prebuilt apexes exist 2023-12-20 16:43:01 +00:00
dexpreopt_bootjars_test.go Use the correct bootjars when multiple prebuilt apexes exist 2023-12-20 16:43:01 +00:00
key.go Remove ConvertWithBp2build implementations 2023-12-08 13:51:05 -08:00
platform_bootclasspath_test.go Use the correct bootjars for hiddneapi when multiple prebuilts exist 2024-01-02 17:56:14 +00:00
prebuilt.go Update usage of SetProvider 2023-12-22 00:06:05 +00:00
systemserver_classpath_fragment_test.go Move dexpreopt processing from java_*_import to prebuilt_apex 2023-12-18 23:17:26 +00:00
TEST_MAPPING
testing.go Add allowed-deps tests 2023-04-27 09:56:04 +09:00
vndk.go apex: Remove 'zip' apex support 2023-08-23 14:01:13 +09:00
vndk_test.go Generate product variants by default 2023-09-27 16:36:40 +09:00