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

Commit 2af555fe authored by Myles Watson's avatar Myles Watson Committed by android-build-merger
Browse files

Merge "btservice: Test the scan mode in STATE_ON" am: 0790071d

am: b6e29247

Change-Id: Ib4908ebe005be96cab276c2a7566347cff902c4b
parents 3acab653 b6e29247
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -179,6 +179,9 @@ public class AdapterServiceTest {
        verifyStateChange(BluetoothAdapter.STATE_TURNING_ON, BluetoothAdapter.STATE_ON,
                invocationNumber + 1, CONTEXT_SWITCH_MS);

        final int scanMode = mAdapterService.getScanMode();
        Assert.assertTrue(scanMode == BluetoothAdapter.SCAN_MODE_CONNECTABLE
                || scanMode == BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE);
        Assert.assertTrue(mAdapterService.isEnabled());
    }