Loading src/java/com/android/internal/telephony/imsphone/ImsPhoneCall.java +10 −4 Original line number Diff line number Diff line Loading @@ -199,7 +199,9 @@ public class ImsPhoneCall extends Call { } if (hasOnlyDisconnectedConnections) { synchronized(this) { mState = State.DISCONNECTED; } if (VDBG) { Rlog.v(LOG_TAG, "connectionDisconnected : " + mCallContext + " state = " + mState); Loading Loading @@ -235,13 +237,17 @@ public class ImsPhoneCall extends Call { * Called when this Call is being hung up locally (eg, user pressed "end") */ @UnsupportedAppUsage void onHangupLocal() { @VisibleForTesting public void onHangupLocal() { for (int i = 0, s = mConnections.size(); i < s; i++) { ImsPhoneConnection cn = (ImsPhoneConnection)mConnections.get(i); cn.onHangupLocal(); } synchronized(this) { if (mState.isAlive()) { mState = State.DISCONNECTING; } } if (VDBG) { Rlog.v(LOG_TAG, "onHangupLocal : " + mCallContext + " state = " + mState); } Loading tests/telephonytests/src/com/android/internal/telephony/imsphone/ImsPhoneCallTest.java +2 −1 Original line number Diff line number Diff line Loading @@ -90,7 +90,6 @@ public class ImsPhoneCallTest extends TelephonyTest { } @FlakyTest @Ignore @Test @SmallTest public void testConnectionDisconnected() { Loading @@ -106,6 +105,8 @@ public class ImsPhoneCallTest extends TelephonyTest { doReturn(Call.State.DISCONNECTED).when(mConnection2).getState(); mImsCallUT.connectionDisconnected(null); assertEquals(Call.State.DISCONNECTED, mImsCallUT.getState()); mImsCallUT.onHangupLocal(); assertEquals(Call.State.DISCONNECTED, mImsCallUT.getState()); } @FlakyTest Loading Loading
src/java/com/android/internal/telephony/imsphone/ImsPhoneCall.java +10 −4 Original line number Diff line number Diff line Loading @@ -199,7 +199,9 @@ public class ImsPhoneCall extends Call { } if (hasOnlyDisconnectedConnections) { synchronized(this) { mState = State.DISCONNECTED; } if (VDBG) { Rlog.v(LOG_TAG, "connectionDisconnected : " + mCallContext + " state = " + mState); Loading Loading @@ -235,13 +237,17 @@ public class ImsPhoneCall extends Call { * Called when this Call is being hung up locally (eg, user pressed "end") */ @UnsupportedAppUsage void onHangupLocal() { @VisibleForTesting public void onHangupLocal() { for (int i = 0, s = mConnections.size(); i < s; i++) { ImsPhoneConnection cn = (ImsPhoneConnection)mConnections.get(i); cn.onHangupLocal(); } synchronized(this) { if (mState.isAlive()) { mState = State.DISCONNECTING; } } if (VDBG) { Rlog.v(LOG_TAG, "onHangupLocal : " + mCallContext + " state = " + mState); } Loading
tests/telephonytests/src/com/android/internal/telephony/imsphone/ImsPhoneCallTest.java +2 −1 Original line number Diff line number Diff line Loading @@ -90,7 +90,6 @@ public class ImsPhoneCallTest extends TelephonyTest { } @FlakyTest @Ignore @Test @SmallTest public void testConnectionDisconnected() { Loading @@ -106,6 +105,8 @@ public class ImsPhoneCallTest extends TelephonyTest { doReturn(Call.State.DISCONNECTED).when(mConnection2).getState(); mImsCallUT.connectionDisconnected(null); assertEquals(Call.State.DISCONNECTED, mImsCallUT.getState()); mImsCallUT.onHangupLocal(); assertEquals(Call.State.DISCONNECTED, mImsCallUT.getState()); } @FlakyTest Loading