Merge "Emergency redial implementation"

This commit is contained in:
Brad Ebinger
2017-08-25 17:05:06 +00:00
committed by Android (Google) Code Review
7 changed files with 83 additions and 9 deletions

View File

@@ -824,6 +824,8 @@ public abstract class Connection extends Conferenceable {
public void onRttInitiationFailure(Connection c, int reason) {}
public void onRttSessionRemotelyTerminated(Connection c) {}
public void onRemoteRttRequest(Connection c) {}
/** @hide */
public void onPhoneAccountChanged(Connection c, PhoneAccountHandle pHandle) {}
}
/**
@@ -3061,6 +3063,18 @@ public abstract class Connection extends Conferenceable {
}
}
/**
* Notifies listeners when phone account is changed. For example, when the PhoneAccount is
* changed due to an emergency call being redialed.
* @param pHandle The new PhoneAccountHandle for this connection.
* @hide
*/
public void notifyPhoneAccountChanged(PhoneAccountHandle pHandle) {
for (Listener l : mListeners) {
l.onPhoneAccountChanged(this, pHandle);
}
}
/**
* Sends an event associated with this {@code Connection} with associated event extras to the
* {@link InCallService}.