summaryrefslogtreecommitdiffstats
path: root/telecomm/java/android/telecom
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2015-01-30 13:07:32 +0000
committerNarayan Kamath <narayan@google.com>2015-01-30 13:07:32 +0000
commit12ca74e2a0b26d1805b3caac9488961078b5409b (patch)
tree58c13309caa3704b0d8a17885cd62fa4ef6c6ac9 /telecomm/java/android/telecom
parenta7c9046973260aa71837410ffc8df8c296a2826f (diff)
downloadframeworks_base-12ca74e2a0b26d1805b3caac9488961078b5409b.zip
frameworks_base-12ca74e2a0b26d1805b3caac9488961078b5409b.tar.gz
frameworks_base-12ca74e2a0b26d1805b3caac9488961078b5409b.tar.bz2
Revert "Remove deprecated Telecom APIs"
This reverts commit a7c9046973260aa71837410ffc8df8c296a2826f. Change-Id: I66d3d961988ff8dd330c9482c070bfca055f6cb8
Diffstat (limited to 'telecomm/java/android/telecom')
-rw-r--r--telecomm/java/android/telecom/AudioState.java11
-rw-r--r--telecomm/java/android/telecom/Conference.java10
-rw-r--r--telecomm/java/android/telecom/Connection.java10
-rw-r--r--telecomm/java/android/telecom/RemoteConference.java5
-rw-r--r--telecomm/java/android/telecom/RemoteConnection.java6
5 files changed, 39 insertions, 3 deletions
diff --git a/telecomm/java/android/telecom/AudioState.java b/telecomm/java/android/telecom/AudioState.java
index 0720df3..9c03319 100644
--- a/telecomm/java/android/telecom/AudioState.java
+++ b/telecomm/java/android/telecom/AudioState.java
@@ -54,9 +54,14 @@ public final class AudioState implements Parcelable {
public static final int ROUTE_ALL = ROUTE_EARPIECE | ROUTE_BLUETOOTH | ROUTE_WIRED_HEADSET |
ROUTE_SPEAKER;
- private final boolean isMuted;
- private final int route;
- private final int supportedRouteMask;
+ /** Note: Deprecated, please do not use if possible. */
+ @SystemApi public final boolean isMuted;
+
+ /** Note: Deprecated, please do not use if possible. */
+ @SystemApi public final int route;
+
+ /** Note: Deprecated, please do not use if possible. */
+ @SystemApi public final int supportedRouteMask;
public AudioState(boolean muted, int route, int supportedRouteMask) {
this.isMuted = muted;
diff --git a/telecomm/java/android/telecom/Conference.java b/telecomm/java/android/telecom/Conference.java
index 5e7b358..33bbb29 100644
--- a/telecomm/java/android/telecom/Conference.java
+++ b/telecomm/java/android/telecom/Conference.java
@@ -112,6 +112,11 @@ public abstract class Conference implements IConferenceable {
return mState;
}
+ /** @hide */
+ @Deprecated public final int getCapabilities() {
+ return getConnectionCapabilities();
+ }
+
/**
* Returns the capabilities of a conference. See {@code CAPABILITY_*} constants in class
* {@link Connection} for valid values.
@@ -276,6 +281,11 @@ public abstract class Conference implements IConferenceable {
return mDisconnectCause;
}
+ /** @hide */
+ @Deprecated public final void setCapabilities(int connectionCapabilities) {
+ setConnectionCapabilities(connectionCapabilities);
+ }
+
/**
* Sets the capabilities of a conference. See {@code CAPABILITY_*} constants of class
* {@link Connection} for valid values.
diff --git a/telecomm/java/android/telecom/Connection.java b/telecomm/java/android/telecom/Connection.java
index d6233ef..a180f44 100644
--- a/telecomm/java/android/telecom/Connection.java
+++ b/telecomm/java/android/telecom/Connection.java
@@ -839,6 +839,11 @@ public abstract class Connection implements IConferenceable {
return mConnectionCapabilities;
}
+ /** @hide */
+ @SystemApi @Deprecated public final int getCallCapabilities() {
+ return getConnectionCapabilities();
+ }
+
/**
* Sets the value of the {@link #getAddress()} property.
*
@@ -1026,6 +1031,11 @@ public abstract class Connection implements IConferenceable {
}
}
+ /** @hide */
+ @SystemApi @Deprecated public final void setCallCapabilities(int connectionCapabilities) {
+ setConnectionCapabilities(connectionCapabilities);
+ }
+
/**
* Sets the connection's capabilities as a bit mask of the {@code CAPABILITY_*} constants.
*
diff --git a/telecomm/java/android/telecom/RemoteConference.java b/telecomm/java/android/telecom/RemoteConference.java
index 3c6416b..a8879ae 100644
--- a/telecomm/java/android/telecom/RemoteConference.java
+++ b/telecomm/java/android/telecom/RemoteConference.java
@@ -164,6 +164,11 @@ public final class RemoteConference {
return mState;
}
+ /** @hide */
+ @Deprecated public final int getCallCapabilities() {
+ return getConnectionCapabilities();
+ }
+
public final int getConnectionCapabilities() {
return mConnectionCapabilities;
}
diff --git a/telecomm/java/android/telecom/RemoteConnection.java b/telecomm/java/android/telecom/RemoteConnection.java
index 8a206a0..486691f 100644
--- a/telecomm/java/android/telecom/RemoteConnection.java
+++ b/telecomm/java/android/telecom/RemoteConnection.java
@@ -73,6 +73,11 @@ public final class RemoteConnection {
*/
public void onRingbackRequested(RemoteConnection connection, boolean ringback) {}
+ /** @hide */
+ @Deprecated public void onCallCapabilitiesChanged(
+ RemoteConnection connection,
+ int callCapabilities) {}
+
/**
* Indicates that the call capabilities of this {@code RemoteConnection} have changed.
* See {@link #getConnectionCapabilities()}.
@@ -837,6 +842,7 @@ public final class RemoteConnection {
mConnectionCapabilities = connectionCapabilities;
for (Callback c : mCallbacks) {
c.onConnectionCapabilitiesChanged(this, connectionCapabilities);
+ c.onCallCapabilitiesChanged(this, connectionCapabilities);
}
}