summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorGabriel Peal <gpeal@google.com>2014-03-19 16:41:49 -0700
committerJoe Onorato <joeo@google.com>2014-03-22 13:33:43 -0700
commit83da75d938d519bbcffb9c3b52802fd2daad4aee (patch)
treecc3373a15f1c36bcaa2948496fafe69bf0709a29 /core/java/android
parentba126c09a5c00cb0a96da6ece0b4ab4d7ed2d8cb (diff)
Added a private apis jar that includes explicitly supported APIs that are not useful for 3rd party developers.
The first set of these APIs is for telephony: Added some APIs to ITelephony and created a first party framework for them toggleHold() merge() mute(boolean mute) playDtmfTone(char digit, boolean timedShortCode) stopDtmfTone() swap() addListener(ITelephonyListener listener) removeListener(ITelephonyListener listener) Bug: 13302451 Change-Id: Iefec5688c26a1b4fe77f5643eba6e1690a057ee6
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/annotation/PrivateApi.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/core/java/android/annotation/PrivateApi.java b/core/java/android/annotation/PrivateApi.java
new file mode 100644
index 000000000000..985eafec5d33
--- /dev/null
+++ b/core/java/android/annotation/PrivateApi.java
@@ -0,0 +1,31 @@
+/*
+ * Copyright (C) 2008 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 android.annotation;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+
+/**
+ * Indicates an API is exposed for use by bundled applications.
+ * <p>
+ * These APIs are not guaranteed to remain consistent release-to-release,
+ * and are not for use by apps linking against the SDK.
+ * @hide
+ */
+@Retention(RetentionPolicy.SOURCE)
+public @interface PrivateApi {
+}