Loading android/app/src/com/android/bluetooth/a2dp/A2dpStateMachine.java +1 −1 Original line number Diff line number Diff line Loading @@ -728,7 +728,7 @@ final class A2dpStateMachine extends StateMachine { mA2dpService.codecConfigUpdated(mDevice, mCodecStatus, sameAudioFeedingParameters); } // This method does not check for error conditon (newState == prevState) // This method does not check for error condition (newState == prevState) private void broadcastConnectionState(int newState, int prevState) { log("Connection state " + mDevice + ": " + profileStateToString(prevState) + "->" + profileStateToString(newState)); Loading android/app/tests/unit/src/com/android/bluetooth/a2dp/A2dpServiceTest.java +6 −2 Original line number Diff line number Diff line Loading @@ -122,8 +122,12 @@ public class A2dpServiceTest { } @After public void tearDown() throws Exception { mA2dpService.stop(); public void tearDown() { // A2dpService handler is running on main looper. Calling `stop` remove the messages but // assume it is already on the correct thread. // Calling it from another thread may lead to having messages still being processed and // executed after tearDown is called. InstrumentationRegistry.getInstrumentation().runOnMainSync(mA2dpService::stop); } @SafeVarargs Loading Loading
android/app/src/com/android/bluetooth/a2dp/A2dpStateMachine.java +1 −1 Original line number Diff line number Diff line Loading @@ -728,7 +728,7 @@ final class A2dpStateMachine extends StateMachine { mA2dpService.codecConfigUpdated(mDevice, mCodecStatus, sameAudioFeedingParameters); } // This method does not check for error conditon (newState == prevState) // This method does not check for error condition (newState == prevState) private void broadcastConnectionState(int newState, int prevState) { log("Connection state " + mDevice + ": " + profileStateToString(prevState) + "->" + profileStateToString(newState)); Loading
android/app/tests/unit/src/com/android/bluetooth/a2dp/A2dpServiceTest.java +6 −2 Original line number Diff line number Diff line Loading @@ -122,8 +122,12 @@ public class A2dpServiceTest { } @After public void tearDown() throws Exception { mA2dpService.stop(); public void tearDown() { // A2dpService handler is running on main looper. Calling `stop` remove the messages but // assume it is already on the correct thread. // Calling it from another thread may lead to having messages still being processed and // executed after tearDown is called. InstrumentationRegistry.getInstrumentation().runOnMainSync(mA2dpService::stop); } @SafeVarargs Loading