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