blob: 0d681ed0f37a6c1cb20bdc796e9133fe2ce75821 [file] [log] [blame]
Svetoslav683914b2015-01-15 14:22:26 -08001LOCAL_PATH:= $(call my-dir)
2
3include $(CLEAR_VARS)
4
Svetoslav Ganove080da92016-12-21 17:10:35 -08005LOCAL_MODULE_TAGS := tests
6
Seigo Nonaka0f19cc72017-06-26 16:06:17 -07007# Note we statically link several classes to do some unit tests. It's not accessible otherwise
Makoto Onuki3a2c35782015-06-18 11:21:58 -07008# because this test is not an instrumentation test. (because the target runs in the system process.)
9LOCAL_SRC_FILES := $(call all-subdir-java-files) \
Seigo Nonaka0f19cc72017-06-26 16:06:17 -070010 ../src/com/android/providers/settings/SettingsState.java \
11 ../src/com/android/providers/settings/SettingsHelper.java
Svetoslav683914b2015-01-15 14:22:26 -080012
Paul Duffin37e9a282017-06-13 15:53:11 +010013LOCAL_STATIC_JAVA_LIBRARIES := android-support-test
14
Paul Duffin2710ca12017-12-05 18:36:56 +000015LOCAL_JAVA_LIBRARIES := android.test.base
Svetoslav Ganove080da92016-12-21 17:10:35 -080016
Annie Meng95264452018-04-19 17:32:17 +010017LOCAL_RESOURCE_DIR := frameworks/base/packages/SettingsProvider/res
18
19LOCAL_AAPT_FLAGS += --auto-add-overlay --extra-packages com.android.providers.settings
20
Svetoslav683914b2015-01-15 14:22:26 -080021LOCAL_PACKAGE_NAME := SettingsProviderTest
Anton Hanssonab6ec612018-02-23 12:57:51 +000022LOCAL_PRIVATE_PLATFORM_APIS := true
Svetoslav683914b2015-01-15 14:22:26 -080023
24LOCAL_MODULE_TAGS := tests
25
26LOCAL_CERTIFICATE := platform
27
Dan Shi52d53862017-03-22 20:51:59 -070028LOCAL_COMPATIBILITY_SUITE := device-tests
29
Paul Duffin8aeb59e2017-01-10 12:08:23 +000030include $(BUILD_PACKAGE)