Loading src/java/com/android/internal/telephony/GsmCdmaCall.java +7 −1 Original line number Diff line number Diff line Loading @@ -18,6 +18,8 @@ package com.android.internal.telephony; import android.compat.annotation.UnsupportedAppUsage; import com.android.internal.annotations.VisibleForTesting; /** * {@hide} */ Loading Loading @@ -146,7 +148,11 @@ public class GsmCdmaCall extends Call { * Note that at this point, the hangup request has been dispatched to the radio * but no response has yet been received so update() has not yet been called */ void onHangupLocal() { @VisibleForTesting public void onHangupLocal() { if (!mState.isAlive()) { return; } for (Connection conn : getConnections()) { ((GsmCdmaConnection) conn).onHangupLocal(); } Loading tests/telephonytests/src/com/android/internal/telephony/GsmCdmaCallTest.java +2 −0 Original line number Diff line number Diff line Loading @@ -121,6 +121,8 @@ public class GsmCdmaCallTest extends TelephonyTest { doReturn(Call.State.DISCONNECTED).when(mConnection2).getState(); mCallUnderTest.connectionDisconnected(null); assertEquals(Call.State.DISCONNECTED, mCallUnderTest.getState()); mCallUnderTest.onHangupLocal(); assertEquals(Call.State.DISCONNECTED, mCallUnderTest.getState()); } } No newline at end of file Loading
src/java/com/android/internal/telephony/GsmCdmaCall.java +7 −1 Original line number Diff line number Diff line Loading @@ -18,6 +18,8 @@ package com.android.internal.telephony; import android.compat.annotation.UnsupportedAppUsage; import com.android.internal.annotations.VisibleForTesting; /** * {@hide} */ Loading Loading @@ -146,7 +148,11 @@ public class GsmCdmaCall extends Call { * Note that at this point, the hangup request has been dispatched to the radio * but no response has yet been received so update() has not yet been called */ void onHangupLocal() { @VisibleForTesting public void onHangupLocal() { if (!mState.isAlive()) { return; } for (Connection conn : getConnections()) { ((GsmCdmaConnection) conn).onHangupLocal(); } Loading
tests/telephonytests/src/com/android/internal/telephony/GsmCdmaCallTest.java +2 −0 Original line number Diff line number Diff line Loading @@ -121,6 +121,8 @@ public class GsmCdmaCallTest extends TelephonyTest { doReturn(Call.State.DISCONNECTED).when(mConnection2).getState(); mCallUnderTest.connectionDisconnected(null); assertEquals(Call.State.DISCONNECTED, mCallUnderTest.getState()); mCallUnderTest.onHangupLocal(); assertEquals(Call.State.DISCONNECTED, mCallUnderTest.getState()); } } No newline at end of file