Add connection properties to Connections.
- Per suggestion of API council, moving properties of a Connection from CAPABILITIES_* to PROPERTIES_*. Bug: 27458894 Change-Id: Icce921b03cda514a991646ed39a26559c7e91230
This commit is contained in:
@@ -61,6 +61,7 @@ final class RemoteConnectionService {
|
||||
mPendingConnections.remove(connection);
|
||||
// Unconditionally initialize the connection ...
|
||||
connection.setConnectionCapabilities(parcel.getConnectionCapabilities());
|
||||
connection.setConnectionProperties(parcel.getConnectionProperties());
|
||||
if (parcel.getHandle() != null
|
||||
|| parcel.getState() != Connection.STATE_DISCONNECTED) {
|
||||
connection.setAddress(parcel.getHandle(), parcel.getHandlePresentation());
|
||||
@@ -155,6 +156,17 @@ final class RemoteConnectionService {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setConnectionProperties(String callId, int connectionProperties) {
|
||||
if (mConnectionById.containsKey(callId)) {
|
||||
findConnectionForAction(callId, "setConnectionProperties")
|
||||
.setConnectionProperties(connectionProperties);
|
||||
} else {
|
||||
findConferenceForAction(callId, "setConnectionProperties")
|
||||
.setConnectionProperties(connectionProperties);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setIsConferenced(String callId, String conferenceCallId) {
|
||||
// Note: callId should not be null; conferenceCallId may be null
|
||||
|
||||
Reference in New Issue
Block a user