Merge "Replace onConferenceChanged with onConnectionAdded." into lmp-mr1-dev
This commit is contained in:
@ -28115,6 +28115,7 @@ package android.telecom {
|
|||||||
method public android.telecom.Connection getPrimaryConnection();
|
method public android.telecom.Connection getPrimaryConnection();
|
||||||
method public final int getState();
|
method public final int getState();
|
||||||
method public void onAudioStateChanged(android.telecom.AudioState);
|
method public void onAudioStateChanged(android.telecom.AudioState);
|
||||||
|
method public void onConnectionAdded(android.telecom.Connection);
|
||||||
method public void onDisconnect();
|
method public void onDisconnect();
|
||||||
method public void onHold();
|
method public void onHold();
|
||||||
method public void onMerge(android.telecom.Connection);
|
method public void onMerge(android.telecom.Connection);
|
||||||
@ -28153,7 +28154,6 @@ package android.telecom {
|
|||||||
method public void onAbort();
|
method public void onAbort();
|
||||||
method public void onAnswer();
|
method public void onAnswer();
|
||||||
method public void onAudioStateChanged(android.telecom.AudioState);
|
method public void onAudioStateChanged(android.telecom.AudioState);
|
||||||
method public void onConferenceChanged();
|
|
||||||
method public void onDisconnect();
|
method public void onDisconnect();
|
||||||
method public void onHold();
|
method public void onHold();
|
||||||
method public void onPlayDtmfTone(char);
|
method public void onPlayDtmfTone(char);
|
||||||
|
@ -178,6 +178,13 @@ public abstract class Conference {
|
|||||||
*/
|
*/
|
||||||
public void onAudioStateChanged(AudioState state) {}
|
public void onAudioStateChanged(AudioState state) {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Notifies this conference that a connection has been added to it.
|
||||||
|
*
|
||||||
|
* @param connection The newly added connection.
|
||||||
|
*/
|
||||||
|
public void onConnectionAdded(Connection connection) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets state to be on hold.
|
* Sets state to be on hold.
|
||||||
*/
|
*/
|
||||||
@ -238,6 +245,7 @@ public abstract class Conference {
|
|||||||
if (connection != null && !mChildConnections.contains(connection)) {
|
if (connection != null && !mChildConnections.contains(connection)) {
|
||||||
if (connection.setConference(this)) {
|
if (connection.setConference(this)) {
|
||||||
mChildConnections.add(connection);
|
mChildConnections.add(connection);
|
||||||
|
onConnectionAdded(connection);
|
||||||
for (Listener l : mListeners) {
|
for (Listener l : mListeners) {
|
||||||
l.onConnectionAdded(this, connection);
|
l.onConnectionAdded(this, connection);
|
||||||
}
|
}
|
||||||
|
@ -921,7 +921,6 @@ public abstract class Connection {
|
|||||||
mConference = conference;
|
mConference = conference;
|
||||||
if (mConnectionService != null && mConnectionService.containsConference(conference)) {
|
if (mConnectionService != null && mConnectionService.containsConference(conference)) {
|
||||||
fireConferenceChanged();
|
fireConferenceChanged();
|
||||||
onConferenceChanged();
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -937,7 +936,6 @@ public abstract class Connection {
|
|||||||
Log.d(this, "Conference reset");
|
Log.d(this, "Conference reset");
|
||||||
mConference = null;
|
mConference = null;
|
||||||
fireConferenceChanged();
|
fireConferenceChanged();
|
||||||
onConferenceChanged();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1030,11 +1028,6 @@ public abstract class Connection {
|
|||||||
*/
|
*/
|
||||||
public void onPostDialContinue(boolean proceed) {}
|
public void onPostDialContinue(boolean proceed) {}
|
||||||
|
|
||||||
/**
|
|
||||||
* Notifies this Connection that the conference which is set on it has changed.
|
|
||||||
*/
|
|
||||||
public void onConferenceChanged() {}
|
|
||||||
|
|
||||||
static String toLogSafePhoneNumber(String number) {
|
static String toLogSafePhoneNumber(String number) {
|
||||||
// For unknown number, log empty string.
|
// For unknown number, log empty string.
|
||||||
if (number == null) {
|
if (number == null) {
|
||||||
|
Reference in New Issue
Block a user