diff options
author | Ihab Awad <ihab@google.com> | 2014-08-18 09:23:25 -0700 |
---|---|---|
committer | Ihab Awad <ihab@google.com> | 2014-08-19 10:51:00 -0700 |
commit | 6107bab041fb7d851fbf865b7310d294aae970c8 (patch) | |
tree | f9f818cd2bd9c689428a1948668c2cd8449a85a9 /telecomm/java/com/android | |
parent | ccc8c29af113b68a337cf4e38fae5d06531b3cf8 (diff) | |
download | frameworks_base-6107bab041fb7d851fbf865b7310d294aae970c8.zip frameworks_base-6107bab041fb7d851fbf865b7310d294aae970c8.tar.gz frameworks_base-6107bab041fb7d851fbf865b7310d294aae970c8.tar.bz2 |
ConnectionService API has only one completed callback (1/3)
Refactor ConnectionService API so it has only one "completed"
callback, and connection state and failure codes indicates what
happened. Previous design where we had separate callbacks for failure,
cancellation and success was error prone because it was easy to forget
to implement one of them.
Bug: 16993846
Bug: 17070939
Change-Id: I84bf5d041cf78193ccf80db201b08db3b7014830
Diffstat (limited to 'telecomm/java/com/android')
-rw-r--r-- | telecomm/java/com/android/internal/telecomm/IConnectionServiceAdapter.aidl | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/telecomm/java/com/android/internal/telecomm/IConnectionServiceAdapter.aidl b/telecomm/java/com/android/internal/telecomm/IConnectionServiceAdapter.aidl index e6ebae5..ef1769f 100644 --- a/telecomm/java/com/android/internal/telecomm/IConnectionServiceAdapter.aidl +++ b/telecomm/java/com/android/internal/telecomm/IConnectionServiceAdapter.aidl @@ -34,20 +34,11 @@ import com.android.internal.telecomm.RemoteServiceCallback; * {@hide} */ oneway interface IConnectionServiceAdapter { - void handleCreateConnectionSuccessful( + void handleCreateConnectionComplete( String callId, in ConnectionRequest request, in ParcelableConnection connection); - void handleCreateConnectionFailed( - String callId, - in ConnectionRequest request, - int errorCode, String errorMessage); - - void handleCreateConnectionCancelled( - String callId, - in ConnectionRequest request); - void setActive(String callId); void setRinging(String callId); |