Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f65692fc authored by Gopi Sakshihally Bhuthaiah's avatar Gopi Sakshihally Bhuthaiah
Browse files

Removed startAutoDispatch and stopAutoDispatch

Bug: 373713756
Test: atest HeadsetServiceAndStateMachineTest --rerun-until-failure
Flag: TEST_ONLY
Change-Id: Ia2e96189e016090063bc006af760381e42caae27
parent 6976c730
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1770,7 +1770,6 @@ public class HeadsetServiceAndStateMachineTest {
        HeadsetCallState headsetCallState =
                new HeadsetCallState(
                        0, 0, HeadsetHalConstants.CALL_STATE_INCOMING, TEST_PHONE_NUMBER, 128, "");
        mTestLooper.startAutoDispatch(); // Require as this is waiting unconditionally
        mHeadsetService.phoneStateChanged(
                headsetCallState.mNumActive,
                headsetCallState.mNumHeld,
@@ -1779,7 +1778,6 @@ public class HeadsetServiceAndStateMachineTest {
                headsetCallState.mType,
                headsetCallState.mName,
                false);
        mTestLooper.stopAutoDispatch();
        mTestLooper.dispatchAll();
        // HeadsetStateMachine completes processing CALL_STATE_CHANGED message
        verify(mNativeInterface).phoneStateChange(device, headsetCallState);