Methods Summary |
---|
void | addAdapter(com.android.internal.telecom.IConnectionServiceAdapter adapter)
if (mAdapters.add(adapter)) {
try {
adapter.asBinder().linkToDeath(this, 0);
} catch (RemoteException e) {
mAdapters.remove(adapter);
}
}
|
void | addConferenceCall(java.lang.String callId, ParcelableConference parcelableConference)Indicates that a new conference call has been created.
for (IConnectionServiceAdapter adapter : mAdapters) {
try {
adapter.addConferenceCall(callId, parcelableConference);
} catch (RemoteException ignored) {
}
}
|
void | addExistingConnection(java.lang.String callId, ParcelableConnection connection)Informs telecom of an existing connection which was added by the {@link ConnectionService}.
Log.v(this, "addExistingConnection: %s", callId);
for (IConnectionServiceAdapter adapter : mAdapters) {
try {
adapter.addExistingConnection(callId, connection);
} catch (RemoteException ignored) {
}
}
|
public void | binderDied()${inheritDoc}
Iterator<IConnectionServiceAdapter> it = mAdapters.iterator();
while (it.hasNext()) {
IConnectionServiceAdapter adapter = it.next();
if (!adapter.asBinder().isBinderAlive()) {
it.remove();
adapter.asBinder().unlinkToDeath(this, 0);
}
}
|
void | handleCreateConnectionComplete(java.lang.String id, ConnectionRequest request, ParcelableConnection connection)
for (IConnectionServiceAdapter adapter : mAdapters) {
try {
adapter.handleCreateConnectionComplete(id, request, connection);
} catch (RemoteException e) {
}
}
|
void | onPostDialChar(java.lang.String callId, char nextChar)
for (IConnectionServiceAdapter adapter : mAdapters) {
try {
adapter.onPostDialChar(callId, nextChar);
} catch (RemoteException ignored) {
}
}
|
void | onPostDialWait(java.lang.String callId, java.lang.String remaining)
for (IConnectionServiceAdapter adapter : mAdapters) {
try {
adapter.onPostDialWait(callId, remaining);
} catch (RemoteException ignored) {
}
}
|
void | queryRemoteConnectionServices(com.android.internal.telecom.RemoteServiceCallback callback)Retrieves a list of remote connection services usable to place calls.
// Only supported when there is only one adapter.
if (mAdapters.size() == 1) {
try {
mAdapters.iterator().next().queryRemoteConnectionServices(callback);
} catch (RemoteException e) {
Log.e(this, e, "Exception trying to query for remote CSs");
}
}
|
void | removeAdapter(com.android.internal.telecom.IConnectionServiceAdapter adapter)
if (adapter != null && mAdapters.remove(adapter)) {
adapter.asBinder().unlinkToDeath(this, 0);
}
|
void | removeCall(java.lang.String callId)Indicates that the call no longer exists. Can be used with either a call or a conference
call.
for (IConnectionServiceAdapter adapter : mAdapters) {
try {
adapter.removeCall(callId);
} catch (RemoteException ignored) {
}
}
|
void | setActive(java.lang.String callId)Sets a call's state to active (e.g., an ongoing call where two parties can actively
communicate).
for (IConnectionServiceAdapter adapter : mAdapters) {
try {
adapter.setActive(callId);
} catch (RemoteException e) {
}
}
|
void | setAddress(java.lang.String callId, android.net.Uri address, int presentation)
for (IConnectionServiceAdapter adapter : mAdapters) {
try {
adapter.setAddress(callId, address, presentation);
} catch (RemoteException e) {
}
}
|
void | setCallerDisplayName(java.lang.String callId, java.lang.String callerDisplayName, int presentation)
for (IConnectionServiceAdapter adapter : mAdapters) {
try {
adapter.setCallerDisplayName(callId, callerDisplayName, presentation);
} catch (RemoteException e) {
}
}
|
void | setConferenceableConnections(java.lang.String callId, java.util.List conferenceableCallIds)
Log.v(this, "setConferenceableConnections: %s, %s", callId, conferenceableCallIds);
for (IConnectionServiceAdapter adapter : mAdapters) {
try {
adapter.setConferenceableConnections(callId, conferenceableCallIds);
} catch (RemoteException ignored) {
}
}
|
void | setConnectionCapabilities(java.lang.String callId, int capabilities)
for (IConnectionServiceAdapter adapter : mAdapters) {
try {
adapter.setConnectionCapabilities(callId, capabilities);
} catch (RemoteException ignored) {
}
}
|
void | setDialing(java.lang.String callId)Sets a call's state to dialing (e.g., dialing an outbound call).
for (IConnectionServiceAdapter adapter : mAdapters) {
try {
adapter.setDialing(callId);
} catch (RemoteException e) {
}
}
|
void | setDisconnected(java.lang.String callId, DisconnectCause disconnectCause)Sets a call's state to disconnected.
for (IConnectionServiceAdapter adapter : mAdapters) {
try {
adapter.setDisconnected(callId, disconnectCause);
} catch (RemoteException e) {
}
}
|
void | setIsConferenced(java.lang.String callId, java.lang.String conferenceCallId)Indicates whether or not the specified call is currently conferenced into the specified
conference call.
for (IConnectionServiceAdapter adapter : mAdapters) {
try {
Log.d(this, "sending connection %s with conference %s", callId, conferenceCallId);
adapter.setIsConferenced(callId, conferenceCallId);
} catch (RemoteException ignored) {
}
}
|
void | setIsVoipAudioMode(java.lang.String callId, boolean isVoip)Requests that the framework use VOIP audio mode for this connection.
for (IConnectionServiceAdapter adapter : mAdapters) {
try {
adapter.setIsVoipAudioMode(callId, isVoip);
} catch (RemoteException e) {
}
}
|
void | setOnHold(java.lang.String callId)Sets a call's state to be on hold.
for (IConnectionServiceAdapter adapter : mAdapters) {
try {
adapter.setOnHold(callId);
} catch (RemoteException e) {
}
}
|
void | setRingbackRequested(java.lang.String callId, boolean ringback)Asks Telecom to start or stop a ringback tone for a call.
for (IConnectionServiceAdapter adapter : mAdapters) {
try {
adapter.setRingbackRequested(callId, ringback);
} catch (RemoteException e) {
}
}
|
void | setRinging(java.lang.String callId)Sets a call's state to ringing (e.g., an inbound ringing call).
for (IConnectionServiceAdapter adapter : mAdapters) {
try {
adapter.setRinging(callId);
} catch (RemoteException e) {
}
}
|
void | setStatusHints(java.lang.String callId, StatusHints statusHints)
for (IConnectionServiceAdapter adapter : mAdapters) {
try {
adapter.setStatusHints(callId, statusHints);
} catch (RemoteException e) {
}
}
|
void | setVideoProvider(java.lang.String callId, Connection.VideoProvider videoProvider)Sets the call video provider for a call.
for (IConnectionServiceAdapter adapter : mAdapters) {
try {
adapter.setVideoProvider(
callId,
videoProvider == null ? null : videoProvider.getInterface());
} catch (RemoteException e) {
}
}
|
void | setVideoState(java.lang.String callId, int videoState)Sets the video state associated with a call.
Valid values: {@link VideoProfile.VideoState#AUDIO_ONLY},
{@link VideoProfile.VideoState#BIDIRECTIONAL},
{@link VideoProfile.VideoState#TX_ENABLED},
{@link VideoProfile.VideoState#RX_ENABLED}.
Log.v(this, "setVideoState: %d", videoState);
for (IConnectionServiceAdapter adapter : mAdapters) {
try {
adapter.setVideoState(callId, videoState);
} catch (RemoteException ignored) {
}
}
|