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

Commit afa86b68 authored by Hall Liu's avatar Hall Liu Committed by android-build-merger
Browse files

Merge "Deflake BluetoothRouteManager tests"

am: ce96baa7

Change-Id: I034c4e99c1ae5c7b1774cd4cbb5e0387a9cc7d63
parents 96f9168b ce96baa7
Loading
Loading
Loading
Loading
+16 −13
Original line number Diff line number Diff line
@@ -782,6 +782,7 @@ public class BluetoothRouteManager extends StateMachine {

    @VisibleForTesting
    public void setInitialStateForTesting(String stateName, BluetoothDevice device) {
        sendMessage(RUN_RUNNABLE, (Runnable) () -> {
            switch (stateName) {
                case AUDIO_OFF_STATE_NAME:
                    transitionTo(mAudioOffState);
@@ -795,5 +796,7 @@ public class BluetoothRouteManager extends StateMachine {
                            "setInitialStateForTesting"));
                    break;
            }
            Log.i(LOG_TAG, "transition for testing done: %s", stateName);
        });
    }
}