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

Commit 8bcc744e authored by Eric Rowe's avatar Eric Rowe
Browse files

DO NOT MERGE Initialize bluetooth profiles in BT stress tests

Change-Id: I0a8b75c8686d9d6969db51d618c1ddeacb2aba87
parent 624380a1
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -133,14 +133,12 @@ public class BluetoothTestUtils extends Assert {
    private class HeadsetServiceListener implements ServiceListener {
        private boolean mConnected = false;

        @Override
        public void onServiceConnected() {
            synchronized (this) {
                mConnected = true;
            }
        }

        @Override
        public void onServiceDisconnected() {
            synchronized (this) {
                mConnected = false;
@@ -321,6 +319,9 @@ public class BluetoothTestUtils extends Assert {
        filter.addAction(BluetoothAdapter.ACTION_SCAN_MODE_CHANGED);
        filter.addAction(BluetoothAdapter.ACTION_STATE_CHANGED);
        mContext.registerReceiver(mReceiver, filter);

        mA2dp = new BluetoothA2dp(mContext);
        mHeadset = new BluetoothHeadset(mContext, mHeadsetServiceListener);
    }

    public void close() {