summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChiao Cheng <chiaocheng@google.com>2012-08-17 15:59:39 -0700
committerChiao Cheng <chiaocheng@google.com>2012-08-17 15:59:39 -0700
commitfaed97c4fb2fade78ca0e7efcfa88d14dfe46175 (patch)
tree22033b4d42a20add82ca9c52c524f60cffabce7b
parent05f09bcb37b10920faf4003ad728209cb455687a (diff)
downloadandroid_packages_apps_PhoneCommon-faed97c4fb2fade78ca0e7efcfa88d14dfe46175.tar.gz
android_packages_apps_PhoneCommon-faed97c4fb2fade78ca0e7efcfa88d14dfe46175.tar.bz2
android_packages_apps_PhoneCommon-faed97c4fb2fade78ca0e7efcfa88d14dfe46175.zip
Adding common phone packge.
- Adding phone constant file so new dialer and contacts can use it. Bug: 6993891 Change-Id: I1ecdada2446d81bd63182a9d457dc54e7e542f08
-rw-r--r--Android.mk25
-rw-r--r--src/com/android/phone/common/PhoneConstants.java28
2 files changed, 53 insertions, 0 deletions
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";
+
+}