1# 2# Copyright (C) 2013 The Android Open Source Project 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15# 16 17LOCAL_PATH := $(call my-dir) 18include $(CLEAR_VARS) 19 20LOCAL_STATIC_JAVA_LIBRARIES := \ 21 android-ex-camera2 \ 22 guava \ 23 mockito-target \ 24 android-support-test \ 25 platform-test-annotations 26 27LOCAL_STATIC_ANDROID_LIBRARIES := \ 28 android-support-core-ui \ 29 android-support-core-utils \ 30 android-support-compat \ 31 android-support-fragment 32 33LOCAL_SRC_FILES := \ 34 $(call all-java-files-under, src) \ 35 $(call all-java-files-under, ../src) \ 36 $(call all-proto-files-under, ../proto) 37 38LOCAL_PROTOC_OPTIMIZE_TYPE := nano 39LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/../proto/ 40LOCAL_PROTO_JAVA_OUTPUT_PARAMS := optional_field_style=accessors 41 42LOCAL_RESOURCE_DIR := \ 43 $(LOCAL_PATH)/res \ 44 $(LOCAL_PATH)/../res 45 46LOCAL_JAVA_LIBRARIES := \ 47 android.test.mock \ 48 android.test.base \ 49 android.test.runner \ 50 telephony-common 51 52LOCAL_USE_AAPT2 := true 53 54LOCAL_AAPT_FLAGS := \ 55 --auto-add-overlay \ 56 --extra-packages com.android.server.telecom 57 58LOCAL_JACK_FLAGS := --multi-dex native 59 60LOCAL_PROGUARD_ENABLED := disabled 61 62LOCAL_PACKAGE_NAME := TelecomUnitTests 63LOCAL_PRIVATE_PLATFORM_APIS := true 64LOCAL_CERTIFICATE := platform 65 66LOCAL_MODULE_TAGS := tests 67 68LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.server.telecom.* 69LOCAL_JACK_COVERAGE_EXCLUDE_FILTER := com.android.server.telecom.tests.* 70 71LOCAL_COMPATIBILITY_SUITE := device-tests 72include frameworks/base/packages/SettingsLib/common.mk 73 74include $(BUILD_PACKAGE) 75