summaryrefslogtreecommitdiffstats
path: root/telecomm/java/android/telecom/RemoteConnectionService.java
diff options
context:
space:
mode:
authorSantos Cordon <santoscordon@google.com>2015-05-27 17:21:45 -0700
committerSantos Cordon <santoscordon@google.com>2015-05-28 09:43:00 -0700
commit6b7f955c2d9b231660b8c54f8ef8e8e6ad802625 (patch)
treec594cb452d2bb826d4a7c502b2ca857a81492e90 /telecomm/java/android/telecom/RemoteConnectionService.java
parent6ffab1bd65d2b5cc9e2944712058cb42babaa76b (diff)
downloadframeworks_base-6b7f955c2d9b231660b8c54f8ef8e8e6ad802625.zip
frameworks_base-6b7f955c2d9b231660b8c54f8ef8e8e6ad802625.tar.gz
frameworks_base-6b7f955c2d9b231660b8c54f8ef8e8e6ad802625.tar.bz2
Add extras to Connections/Calls. (1/3)
Two major changes: 1) Add the notion of extras to a Connection. These extras will be parceled through to InCallService as Call.getExtras() 2) The previously existing Call.getExtras() has been renamed to getIntentExtras(). This name better describes the fact that these particular extras are from the original CALL or INCOMING_CALL intents. Change-Id: I08c1baf4f08d54757f98012f0c08b423a707c53d
Diffstat (limited to 'telecomm/java/android/telecom/RemoteConnectionService.java')
-rw-r--r--telecomm/java/android/telecom/RemoteConnectionService.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/telecomm/java/android/telecom/RemoteConnectionService.java b/telecomm/java/android/telecom/RemoteConnectionService.java
index 0208744..dc0de0c 100644
--- a/telecomm/java/android/telecom/RemoteConnectionService.java
+++ b/telecomm/java/android/telecom/RemoteConnectionService.java
@@ -17,6 +17,7 @@
package android.telecom;
import android.net.Uri;
+import android.os.Bundle;
import android.os.IBinder;
import android.os.IBinder.DeathRecipient;
import android.os.RemoteException;
@@ -318,6 +319,17 @@ final class RemoteConnectionService {
mOurConnectionServiceImpl.addRemoteExistingConnection(remoteConnction);
}
+
+ @Override
+ public void setExtras(String callId, Bundle extras) {
+ if (mConnectionById.containsKey(callId)) {
+ findConnectionForAction(callId, "setExtras")
+ .setExtras(extras);
+ } else {
+ findConferenceForAction(callId, "setExtras")
+ .setExtras(extras);
+ }
+ }
};
private final ConnectionServiceAdapterServant mServant =