Convert Activity and WindowManager Tests to Device Side

The proto-full library used the the existing hostsidetests
is not available to device side test APKs.
This new module uses proto-nano which is available to
device side test APKs.

Bug: 64807080
Test: cts-tradefed run commandAndExit cts-dev --module CtsWindowManagerDeviceTestCases
Test: cts-tradefed run commandAndExit cts-dev --module CtsServicesDeviceTestCases

Change-Id: I85c63b545d07a053aa7e5fa551681d0e170786eb
This commit is contained in:
Steven Timotius
2017-08-03 13:37:26 -07:00
parent 9840ea9ab9
commit 7ece04238e

View File

@@ -1582,6 +1582,20 @@ LOCAL_SRC_FILES := \
$(call all-proto-files-under, libs/incident/proto)
include $(BUILD_HOST_JAVA_LIBRARY)
# ==== java proto device library (for test only) ==============================
include $(CLEAR_VARS)
LOCAL_MODULE := platformprotosnano
LOCAL_MODULE_TAGS := tests optional
LOCAL_PROTOC_OPTIMIZE_TYPE := nano
LOCAL_PROTOC_FLAGS := \
-Iexternal/protobuf/src
LOCAL_PROTO_JAVA_OUTPUT_PARAMS := \
store_unknown_fields = true
LOCAL_JAVA_LIBRARIES := core-oj core-libart
LOCAL_SRC_FILES := \
$(call all-proto-files-under, core/proto)
include $(BUILD_STATIC_JAVA_LIBRARY)
# Include subdirectory makefiles
# ============================================================