Add build rules providing timezones prebuilts under /system/etc/tz.

Define modules `tzdata-art-test`, `tzlookup.xml-art-test`, and
`tz_version-art-test` copying timezones prebuilt files into
/system/etc/tz, so that they can be found even if the Runtime APEX is
not available, by setting the environment variable
`ART_TEST_ANDROID_RUNTIME_ROOT` to "/system" on device.

This is a temporary change needed until both the ART Buildbot and
Golem fully support the Runtime APEX.

Test: Rely on the ART Buildbot and Golem.
Bug: 131667225
Bug: 121117762
Bug: 129332183
Bug: 119293618
Bug: 131239046
Change-Id: I1933f06ecb2382c2f51b2ec95419631ea5cf2927
diff --git a/output_data/android/Android.mk b/output_data/android/Android.mk
index 0da3b73..8c44af4 100644
--- a/output_data/android/Android.mk
+++ b/output_data/android/Android.mk
@@ -32,3 +32,21 @@
 include $(BUILD_PREBUILT)
 
 endif
+
+# Module definition producing a tzlookup.xml prebuilt file in
+# /system/etc/tz for standalone ART testing purposes. This is a
+# temporary change needed until the ART Buildbot and Golem both fully
+# support the Runtime APEX (see b/121117762). This module should never
+# be shipped by default (i.e. should never be part of
+# `PRODUCT_PACKAGE`.)
+#
+# TODO(b/121117762, b/129332183): Remove this module definition when
+# the ART Buildbot and Golem have full support for the Runtime APEX.
+include $(CLEAR_VARS)
+LOCAL_MODULE := tzlookup.xml-art-test
+LOCAL_MODULE_STEM := tzlookup.xml
+LOCAL_SRC_FILES := $(LOCAL_MODULE_STEM)
+LOCAL_MODULE_CLASS := ETC
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_PATH := $(TARGET_OUT)/etc/tz
+include $(BUILD_PREBUILT)
diff --git a/output_data/iana/Android.mk b/output_data/iana/Android.mk
index f7995e9..f862a1d 100644
--- a/output_data/iana/Android.mk
+++ b/output_data/iana/Android.mk
@@ -51,3 +51,21 @@
 include $(BUILD_PREBUILT)
 
 endif
+
+# Module definition producing a tzdata prebuilt file in
+# /system/etc/tz for standalone ART testing purposes. This is a
+# temporary change needed until the ART Buildbot and Golem both fully
+# support the Runtime APEX (see b/121117762). This module should never
+# be shipped by default (i.e. should never be part of
+# `PRODUCT_PACKAGE`.)
+#
+# TODO(b/121117762, b/129332183): Remove this module definition when
+# the ART Buildbot and Golem have full support for the Runtime APEX.
+include $(CLEAR_VARS)
+LOCAL_MODULE := tzdata-art-test
+LOCAL_MODULE_STEM := tzdata
+LOCAL_SRC_FILES := $(LOCAL_MODULE_STEM)
+LOCAL_MODULE_CLASS := ETC
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_PATH := $(TARGET_OUT)/etc/tz
+include $(BUILD_PREBUILT)
diff --git a/output_data/version/Android.mk b/output_data/version/Android.mk
index 3ff89a1..3a3f2c2 100644
--- a/output_data/version/Android.mk
+++ b/output_data/version/Android.mk
@@ -51,3 +51,21 @@
 include $(BUILD_PREBUILT)
 
 endif
+
+# Module definition producing a tz_version prebuilt file in
+# /system/etc/tz for standalone ART testing purposes. This is a
+# temporary change needed until the ART Buildbot and Golem both fully
+# support the Runtime APEX (see b/121117762). This module should never
+# be shipped by default (i.e. should never be part of
+# `PRODUCT_PACKAGE`.)
+#
+# TODO(b/121117762, b/129332183): Remove this module definition when
+# the ART Buildbot and Golem have full support for the Runtime APEX.
+include $(CLEAR_VARS)
+LOCAL_MODULE := tz_version-art-test
+LOCAL_MODULE_STEM := tz_version
+LOCAL_SRC_FILES := $(LOCAL_MODULE_STEM)
+LOCAL_MODULE_CLASS := ETC
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_PATH := $(TARGET_OUT)/etc/tz
+include $(BUILD_PREBUILT)