Improve testing of mainline_modules_sdks.py am: de60aeb525 am: 54573b92c4
Original change: https://android-review.googlesource.com/c/platform/packages/modules/common/+/2032128 Change-Id: Idded48ba06edd50485e9ac2b8c8231ef3b0519ac
This commit is contained in:
@@ -754,6 +754,18 @@ def create_producer():
|
||||
)
|
||||
|
||||
|
||||
def aosp_to_google(module):
|
||||
"""Transform an AOSP module into a Google module"""
|
||||
new_apex = aosp_to_google_name(module.apex)
|
||||
# Create a copy of the AOSP module with the internal specific APEX name.
|
||||
return dataclasses.replace(module, apex=new_apex)
|
||||
|
||||
|
||||
def aosp_to_google_name(name):
|
||||
"""Transform an AOSP module name into a Google module name"""
|
||||
return name.replace("com.android.", "com.google.android.")
|
||||
|
||||
|
||||
def filter_modules(modules):
|
||||
target_build_apps = os.environ.get("TARGET_BUILD_APPS")
|
||||
if target_build_apps:
|
||||
|
||||
Reference in New Issue
Block a user