1# Copyright (C) 2017 The Android Open Source Project 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15LOCAL_PATH := $(call my-dir) 16include $(CLEAR_VARS) 17 18LOCAL_USE_AAPT2 := true 19LOCAL_MODULE_TAGS := tests 20 21LOCAL_JACK_FLAGS := --multi-dex native 22LOCAL_DX_FLAGS := --multi-dex 23 24LOCAL_PROTOC_OPTIMIZE_TYPE := nano 25LOCAL_PROTOC_FLAGS := -I$(LOCAL_PATH)/.. 26LOCAL_PROTO_JAVA_OUTPUT_PARAMS := optional_field_style=accessors 27 28LOCAL_PACKAGE_NAME := SystemUISharedLibTests 29LOCAL_PRIVATE_PLATFORM_APIS := true 30LOCAL_COMPATIBILITY_SUITE := device-tests 31 32# Add local path sources as well as shared lib sources 33LOCAL_SRC_FILES := $(call all-java-files-under, src) \ 34 $(call all-java-files-under, ../src) 35 36LOCAL_STATIC_JAVA_LIBRARIES := \ 37 metrics-helper-lib \ 38 android-support-test \ 39 mockito-target-inline-minus-junit4 \ 40 SystemUI-proto \ 41 SystemUI-tags \ 42 testables \ 43 truth-prebuilt \ 44 45LOCAL_MULTILIB := both 46 47LOCAL_JNI_SHARED_LIBRARIES := \ 48 libdexmakerjvmtiagent \ 49 libmultiplejvmtiagentsinterferenceagent 50 51LOCAL_JAVA_LIBRARIES := android.test.runner telephony-common 52 53# sign this with platform cert, so this test is allowed to inject key events into 54# UI it doesn't own. This is necessary to allow screenshots to be taken 55LOCAL_CERTIFICATE := platform 56 57ifeq ($(EXCLUDE_SYSTEMUI_TESTS),) 58 include $(BUILD_PACKAGE) 59endif 60