Loading src/java/com/android/internal/telephony/Connection.java +28 −0 Original line number Diff line number Diff line Loading @@ -45,6 +45,7 @@ public abstract class Connection { public void onVideoProviderChanged( android.telecom.Connection.VideoProvider videoProvider); public void onAudioQualityChanged(int audioQuality); public void onCallSubstateChanged(int callSubstate); } /** Loading @@ -62,6 +63,8 @@ public abstract class Connection { android.telecom.Connection.VideoProvider videoProvider) {} @Override public void onAudioQualityChanged(int audioQuality) {} @Override public void onCallSubstateChanged(int callSubstate) {} } public static final int AUDIO_QUALITY_STANDARD = 1; Loading Loading @@ -103,6 +106,7 @@ public abstract class Connection { private boolean mLocalVideoCapable; private boolean mRemoteVideoCapable; private int mAudioQuality; private int mCallSubstate; private android.telecom.Connection.VideoProvider mVideoProvider; /* Instance Methods */ Loading Loading @@ -474,6 +478,17 @@ public abstract class Connection { return mAudioQuality; } /** * Returns the current call substate of the connection. * * @return The call substate of the connection. */ public int getCallSubstate() { return mCallSubstate; } /** * Sets the videoState for the current connection and reports the changes to all listeners. * Valid video states are defined in {@link android.telecom.VideoProfile}. Loading Loading @@ -523,6 +538,19 @@ public abstract class Connection { } } /** * Sets the call substate for the current connection and reports the changes to all listeners. * Valid call substates are defined in {@link android.telecom.Connection}. * * @return The call substate. */ public void setCallSubstate(int callSubstate) { mCallSubstate = callSubstate; for (Listener l : mListeners) { l.onCallSubstateChanged(mCallSubstate); } } /** * Sets the {@link android.telecom.Connection.VideoProvider} for the connection. * Loading src/java/com/android/internal/telephony/imsphone/ImsPhoneConnection.java +10 −0 Original line number Diff line number Diff line Loading @@ -675,6 +675,16 @@ public class ImsPhoneConnection extends Connection { changed = true; } } // Check if call substate has changed. If so notify listeners of call state changed. int callSubstate = getCallSubstate(); int newCallSubstate = imsCall.getCallSubstate(); if (callSubstate != newCallSubstate) { setCallSubstate(newCallSubstate); changed = true; } } catch (ImsException e) { // No session in place -- no change } Loading Loading
src/java/com/android/internal/telephony/Connection.java +28 −0 Original line number Diff line number Diff line Loading @@ -45,6 +45,7 @@ public abstract class Connection { public void onVideoProviderChanged( android.telecom.Connection.VideoProvider videoProvider); public void onAudioQualityChanged(int audioQuality); public void onCallSubstateChanged(int callSubstate); } /** Loading @@ -62,6 +63,8 @@ public abstract class Connection { android.telecom.Connection.VideoProvider videoProvider) {} @Override public void onAudioQualityChanged(int audioQuality) {} @Override public void onCallSubstateChanged(int callSubstate) {} } public static final int AUDIO_QUALITY_STANDARD = 1; Loading Loading @@ -103,6 +106,7 @@ public abstract class Connection { private boolean mLocalVideoCapable; private boolean mRemoteVideoCapable; private int mAudioQuality; private int mCallSubstate; private android.telecom.Connection.VideoProvider mVideoProvider; /* Instance Methods */ Loading Loading @@ -474,6 +478,17 @@ public abstract class Connection { return mAudioQuality; } /** * Returns the current call substate of the connection. * * @return The call substate of the connection. */ public int getCallSubstate() { return mCallSubstate; } /** * Sets the videoState for the current connection and reports the changes to all listeners. * Valid video states are defined in {@link android.telecom.VideoProfile}. Loading Loading @@ -523,6 +538,19 @@ public abstract class Connection { } } /** * Sets the call substate for the current connection and reports the changes to all listeners. * Valid call substates are defined in {@link android.telecom.Connection}. * * @return The call substate. */ public void setCallSubstate(int callSubstate) { mCallSubstate = callSubstate; for (Listener l : mListeners) { l.onCallSubstateChanged(mCallSubstate); } } /** * Sets the {@link android.telecom.Connection.VideoProvider} for the connection. * Loading
src/java/com/android/internal/telephony/imsphone/ImsPhoneConnection.java +10 −0 Original line number Diff line number Diff line Loading @@ -675,6 +675,16 @@ public class ImsPhoneConnection extends Connection { changed = true; } } // Check if call substate has changed. If so notify listeners of call state changed. int callSubstate = getCallSubstate(); int newCallSubstate = imsCall.getCallSubstate(); if (callSubstate != newCallSubstate) { setCallSubstate(newCallSubstate); changed = true; } } catch (ImsException e) { // No session in place -- no change } Loading