Loading android/app/src/com/android/bluetooth/a2dp/A2dpService.java +17 −16 Original line number Diff line number Diff line Loading @@ -687,8 +687,9 @@ public class A2dpService extends ProfileService { Objects.requireNonNull(stackEvent.device, "Device should never be null, event: " + stackEvent); synchronized (mStateMachines) { A2dpStateMachine sm = null; BluetoothDevice device = stackEvent.device; A2dpStateMachine sm = mStateMachines.get(device); if (sm == null) { if (stackEvent.type == A2dpStackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED) { switch (stackEvent.valueInt) { case A2dpStackEvent.CONNECTION_STATE_CONNECTED: Loading @@ -702,10 +703,10 @@ public class A2dpService extends ProfileService { sm = getOrCreateStateMachine(device); break; default: sm = mStateMachines.get(device); break; } } } if (sm == null) { Log.e(TAG, "Cannot process stack event: no state machine: " + stackEvent); return; Loading android/app/tests/unit/src/com/android/bluetooth/a2dp/A2dpServiceTest.java +226 −42 File changed.Preview size limit exceeded, changes collapsed. Show changes Loading
android/app/src/com/android/bluetooth/a2dp/A2dpService.java +17 −16 Original line number Diff line number Diff line Loading @@ -687,8 +687,9 @@ public class A2dpService extends ProfileService { Objects.requireNonNull(stackEvent.device, "Device should never be null, event: " + stackEvent); synchronized (mStateMachines) { A2dpStateMachine sm = null; BluetoothDevice device = stackEvent.device; A2dpStateMachine sm = mStateMachines.get(device); if (sm == null) { if (stackEvent.type == A2dpStackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED) { switch (stackEvent.valueInt) { case A2dpStackEvent.CONNECTION_STATE_CONNECTED: Loading @@ -702,10 +703,10 @@ public class A2dpService extends ProfileService { sm = getOrCreateStateMachine(device); break; default: sm = mStateMachines.get(device); break; } } } if (sm == null) { Log.e(TAG, "Cannot process stack event: no state machine: " + stackEvent); return; Loading
android/app/tests/unit/src/com/android/bluetooth/a2dp/A2dpServiceTest.java +226 −42 File changed.Preview size limit exceeded, changes collapsed. Show changes