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

Commit c09abd4d authored by William Escande's avatar William Escande
Browse files

Cts tests Increase wait of scan property change

Bug: 359194492
Test: atest CtsBluetoothTestCase#bleOnlyMode
Flag: TEST_ONLY
Change-Id: If3afbc95e47589c7e2a9374b73803b2ce0951493
parent 010483ed
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -75,11 +75,11 @@ object BlockingBluetoothAdapter {
        if (toggleScanSetting) {
            Log.d(TAG, "Allowing the scan to be perform while Bluetooth is OFF")
            Settings.Global.putInt(context.contentResolver, BLE_SCAN_ALWAYS_AVAILABLE, 1)
            for (i in 1..5) {
            for (i in 1..10) {
                if (adapter.isBleScanAlwaysAvailable()) {
                    break
                }
                Log.d(TAG, "Ble scan not yet available... Sleeping 50 ms $i/5")
                Log.d(TAG, "Ble scan not yet available... Sleeping 50 ms $i/10")
                Thread.sleep(50)
            }
            if (!adapter.isBleScanAlwaysAvailable()) {