Add experimental contract and associated build script
Bug: 64691432
Test: builds
Change-Id: I91916f3e3a5fea4744d1b25b4011a8c2f81bdd49
diff --git a/contract/Android.mk b/contract/Android.mk
new file mode 100644
index 0000000..068decf
--- /dev/null
+++ b/contract/Android.mk
@@ -0,0 +1,15 @@
+LOCAL_PATH := $(call my-dir)
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := settings-intelligence-contract
+
+LOCAL_STATIC_JAVA_LIBRARIES := android-support-annotations
+
+LOCAL_SRC_FILES := \
+ $(call all-java-files-under, src) \
+ $(call all-aidl-files-under, src) \
+ $(call all-Iaidl-files-under, src)
+
+LOCAL_SDK_VERSION := system_current
+
+include $(BUILD_STATIC_JAVA_LIBRARY)
diff --git a/contract/src/com/android/settings/intelligence/suggestions/ISuggestionService.aidl b/contract/src/com/android/settings/intelligence/suggestions/ISuggestionService.aidl
new file mode 100644
index 0000000..2269990
--- /dev/null
+++ b/contract/src/com/android/settings/intelligence/suggestions/ISuggestionService.aidl
@@ -0,0 +1,8 @@
+package com.android.settings.intelligence.suggestions;
+
+interface ISuggestionService {
+ /**
+ * Whether the suggestion service is enabled.
+ */
+ boolean isEnabled() = 0;
+}
\ No newline at end of file