Adding the ICallMonitorService aidl definition

Change-Id: I535389bbdb0d313446504449caf04f6c12d59f69
diff --git a/Android.mk b/Android.mk
index eb40cda..aa50424 100644
--- a/Android.mk
+++ b/Android.mk
@@ -5,7 +5,9 @@
 include $(CLEAR_VARS)
 
 LOCAL_JAVA_LIBRARIES := telephony-common voip-common
-LOCAL_STATIC_JAVA_LIBRARIES := com.android.phone.shared
+LOCAL_STATIC_JAVA_LIBRARIES := com.android.phone.shared \
+        com.android.services.telephony.common
+
 LOCAL_SRC_FILES := $(call all-java-files-under, src)
 LOCAL_SRC_FILES += \
         src/com/android/phone/EventLogTags.logtags \
diff --git a/common/Android.mk b/common/Android.mk
new file mode 100644
index 0000000..972ed39
--- /dev/null
+++ b/common/Android.mk
@@ -0,0 +1,24 @@
+# Copyright 2013, The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+LOCAL_PATH:= $(call my-dir)
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(call all-java-files-under, src) \
+        $(call all-Iaidl-files-under, src)
+
+LOCAL_MODULE := com.android.services.telephony.common
+
+include $(BUILD_STATIC_JAVA_LIBRARY)
diff --git a/common/src/com/android/services/telephony/common/ICallMonitorService.aidl b/common/src/com/android/services/telephony/common/ICallMonitorService.aidl
new file mode 100644
index 0000000..4e5333f
--- /dev/null
+++ b/common/src/com/android/services/telephony/common/ICallMonitorService.aidl
@@ -0,0 +1,35 @@
+/*
+ * Copyright (C) 2013 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.android.services.telephony.common;
+
+/**
+ * Service implemented by clients that would like to control and know the status
+ * of phone calls on the device.
+ * TODO: Rename interface.  This not only monitors but controls calls, too. Come
+ *       up with a name that doesn't conflict with current CallManager and
+ *       CallController classes.
+ * TODO: Move this out of opt/telephony and into opt/call or similar. This interface
+ *       makes sense even without the telephony layer (think VOIP).
+ */
+oneway interface ICallMonitorService {
+
+    /**
+     * Called when a new incoming call comes in.
+     */
+    void onIncomingCall(int callId);
+
+}