Svetoslav | 683914b | 2015-01-15 14:22:26 -0800 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | |
| 3 | include $(CLEAR_VARS) |
| 4 | |
Svetoslav Ganov | e080da9 | 2016-12-21 17:10:35 -0800 | [diff] [blame] | 5 | LOCAL_MODULE_TAGS := tests |
| 6 | |
Seigo Nonaka | 0f19cc7 | 2017-06-26 16:06:17 -0700 | [diff] [blame] | 7 | # Note we statically link several classes to do some unit tests. It's not accessible otherwise |
Makoto Onuki | 3a2c3578 | 2015-06-18 11:21:58 -0700 | [diff] [blame] | 8 | # because this test is not an instrumentation test. (because the target runs in the system process.) |
| 9 | LOCAL_SRC_FILES := $(call all-subdir-java-files) \ |
Seigo Nonaka | 0f19cc7 | 2017-06-26 16:06:17 -0700 | [diff] [blame] | 10 | ../src/com/android/providers/settings/SettingsState.java \ |
| 11 | ../src/com/android/providers/settings/SettingsHelper.java |
Svetoslav | 683914b | 2015-01-15 14:22:26 -0800 | [diff] [blame] | 12 | |
Paul Duffin | 37e9a28 | 2017-06-13 15:53:11 +0100 | [diff] [blame] | 13 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-test |
| 14 | |
Paul Duffin | 2710ca1 | 2017-12-05 18:36:56 +0000 | [diff] [blame] | 15 | LOCAL_JAVA_LIBRARIES := android.test.base |
Svetoslav Ganov | e080da9 | 2016-12-21 17:10:35 -0800 | [diff] [blame] | 16 | |
Annie Meng | 9526445 | 2018-04-19 17:32:17 +0100 | [diff] [blame] | 17 | LOCAL_RESOURCE_DIR := frameworks/base/packages/SettingsProvider/res |
| 18 | |
| 19 | LOCAL_AAPT_FLAGS += --auto-add-overlay --extra-packages com.android.providers.settings |
| 20 | |
Svetoslav | 683914b | 2015-01-15 14:22:26 -0800 | [diff] [blame] | 21 | LOCAL_PACKAGE_NAME := SettingsProviderTest |
Anton Hansson | ab6ec61 | 2018-02-23 12:57:51 +0000 | [diff] [blame] | 22 | LOCAL_PRIVATE_PLATFORM_APIS := true |
Svetoslav | 683914b | 2015-01-15 14:22:26 -0800 | [diff] [blame] | 23 | |
| 24 | LOCAL_MODULE_TAGS := tests |
| 25 | |
| 26 | LOCAL_CERTIFICATE := platform |
| 27 | |
Dan Shi | 52d5386 | 2017-03-22 20:51:59 -0700 | [diff] [blame] | 28 | LOCAL_COMPATIBILITY_SUITE := device-tests |
| 29 | |
Paul Duffin | 8aeb59e | 2017-01-10 12:08:23 +0000 | [diff] [blame] | 30 | include $(BUILD_PACKAGE) |