Adding common phone packge.

- Adding phone constant file so new dialer and contacts can use it.

Bug: 6993891
Change-Id: I1ecdada2446d81bd63182a9d457dc54e7e542f08
diff --git a/Android.mk b/Android.mk
new file mode 100644
index 0000000..62cf6fc
--- /dev/null
+++ b/Android.mk
@@ -0,0 +1,25 @@
+# Copyright 2012, 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)
+
+# Static library with some common classes for the phone apps.
+# To use it add this line in your Android.mk
+#  LOCAL_STATIC_JAVA_LIBRARIES := com.android.phone.common
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(call all-java-files-under, src)
+
+LOCAL_MODULE := com.android.phone.shared
+include $(BUILD_STATIC_JAVA_LIBRARY)
diff --git a/src/com/android/phone/common/PhoneConstants.java b/src/com/android/phone/common/PhoneConstants.java
new file mode 100644
index 0000000..8ea8b1b
--- /dev/null
+++ b/src/com/android/phone/common/PhoneConstants.java
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2012 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.phone.common;
+
+/**
+ * Constants related to phone operations.
+ */
+public class PhoneConstants {
+
+    /** Copied from PhoneApp. See comments in Phone app for more detail. */
+    // TODO: Change phone app to rely on this also.
+    public static final String EXTRA_CALL_ORIGIN = "com.android.phone.CALL_ORIGIN";
+
+}