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.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 35 LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/aidl 36 37 LOCAL_SRC_FILES += aidl/com/android/servicestests/aidl/INetworkStateObserver.aidl \ 38 aidl/com/android/servicestests/aidl/ICmdReceiverService.aidl 39 LOCAL_SRC_FILES += $(call all-java-files-under, test-apps/JobTestApp/src) 40 LOCAL_SRC_FILES += $(call all-java-files-under, test-apps/SuspendTestApp/src) 41 42 LOCAL_JAVA_LIBRARIES := \ 43 android.hidl.manager-V1.0-java \ 44 android.test.mock \ 45 android.test.base android.test.runner \ 46 47 LOCAL_PACKAGE_NAME := FrameworksServicesTests 48 LOCAL_PRIVATE_PLATFORM_APIS := true 49 LOCAL_COMPATIBILITY_SUITE := device-tests 50 51 LOCAL_CERTIFICATE := platform 52 53 # These are not normally accessible from apps so they must be explicitly included. 54 LOCAL_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 68 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk 69 70 LOCAL_JACK_FLAGS := --multi-dex native 71 LOCAL_DX_FLAGS := --multi-dex 72 73 LOCAL_PROGUARD_ENABLED := disabled 74 75 include $(BUILD_PACKAGE) 76 77 include $(call all-makefiles-under, $(LOCAL_PATH)) 78