1######################################################################### 2# Build FrameworksServicesTests package 3######################################################################### 4 5LOCAL_PATH:= $(call my-dir) 6include $(CLEAR_VARS) 7 8# We only want this apk build for tests. 9LOCAL_MODULE_TAGS := tests 10 11# Include all test java files. 12LOCAL_SRC_FILES := $(call all-java-files-under, src) 13 14LOCAL_STATIC_JAVA_LIBRARIES := \ 15 frameworks-base-testutils \ 16 services.accessibility \ 17 services.appwidget \ 18 services.autofill \ 19 services.backup \ 20 services.core \ 21 services.devicepolicy \ 22 services.net \ 23 services.usage \ 24 guava \ 25 android-support-test \ 26 mockito-target-minus-junit4 \ 27 platform-test-annotations \ 28 ShortcutManagerTestUtils \ 29 truth-prebuilt \ 30 testables \ 31 testng \ 32 ub-uiautomator\ 33 platformprotosnano 34 35LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/aidl 36 37LOCAL_SRC_FILES += aidl/com/android/servicestests/aidl/INetworkStateObserver.aidl \ 38 aidl/com/android/servicestests/aidl/ICmdReceiverService.aidl 39LOCAL_SRC_FILES += $(call all-java-files-under, test-apps/JobTestApp/src) 40LOCAL_SRC_FILES += $(call all-java-files-under, test-apps/SuspendTestApp/src) 41 42LOCAL_JAVA_LIBRARIES := \ 43 android.hidl.manager-V1.0-java \ 44 android.test.mock \ 45 android.test.base android.test.runner \ 46 47LOCAL_PACKAGE_NAME := FrameworksServicesTests 48LOCAL_PRIVATE_PLATFORM_APIS := true 49LOCAL_COMPATIBILITY_SUITE := device-tests 50 51LOCAL_CERTIFICATE := platform 52 53# These are not normally accessible from apps so they must be explicitly included. 54LOCAL_JNI_SHARED_LIBRARIES := \ 55 libbacktrace \ 56 libbase \ 57 libbinder \ 58 libc++ \ 59 libcutils \ 60 liblog \ 61 liblzma \ 62 libnativehelper \ 63 libnetdaidl \ 64 libui \ 65 libunwind \ 66 libutils 67 68LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk 69 70LOCAL_JACK_FLAGS := --multi-dex native 71LOCAL_DX_FLAGS := --multi-dex 72 73LOCAL_PROGUARD_ENABLED := disabled 74 75include $(BUILD_PACKAGE) 76 77include $(call all-makefiles-under, $(LOCAL_PATH)) 78