1#########################################################################
2# Build FrameworksNotificationTests 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 test java files and source from notifications package.
12LOCAL_SRC_FILES := $(call all-java-files-under, src) \
13	$(call all-java-files-under, ../../core/java/com/android/server/notification)
14
15LOCAL_STATIC_JAVA_LIBRARIES := \
16    frameworks-base-testutils \
17    services.accessibility \
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    testables
28
29LOCAL_JAVA_LIBRARIES := android.test.runner
30
31LOCAL_JACK_FLAGS := --multi-dex native
32
33LOCAL_PACKAGE_NAME := FrameworksNotificationTests
34LOCAL_COMPATIBILITY_SUITE := device-tests
35
36LOCAL_CERTIFICATE := platform
37
38# These are not normally accessible from apps so they must be explicitly included.
39LOCAL_JNI_SHARED_LIBRARIES := \
40    libbacktrace \
41    libbase \
42    libbinder \
43    libc++ \
44    libcutils \
45    liblog \
46    liblzma \
47    libnativehelper \
48    libnetdaidl \
49    libui \
50    libunwind \
51    libutils
52
53LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
54
55# Code coverage puts us over the dex limit, so enable multi-dex for coverage-enabled builds
56ifeq (true,$(EMMA_INSTRUMENT))
57LOCAL_JACK_FLAGS := --multi-dex native
58endif # EMMA_INSTRUMENT_STATIC
59
60include $(BUILD_PACKAGE)
61