Loading framework/tests/bumble/src/android/bluetooth/GattClientTest.java +9 −4 Original line number Diff line number Diff line Loading @@ -368,11 +368,16 @@ public class GattClientTest { BluetoothGatt gatt = device.connectGatt(mContext, false, gattCallback); BluetoothGatt gatt2 = device.connectGatt(mContext, false, gattCallback2); try { gatt.disconnect(); gatt.close(); verify(gattCallback2, timeout(1000)) .onConnectionStateChange(eq(gatt2), eq(GATT_SUCCESS), eq(STATE_CONNECTED)); } finally { gatt2.disconnect(); gatt2.close(); } } private void registerWritableGattService() { Loading Loading
framework/tests/bumble/src/android/bluetooth/GattClientTest.java +9 −4 Original line number Diff line number Diff line Loading @@ -368,11 +368,16 @@ public class GattClientTest { BluetoothGatt gatt = device.connectGatt(mContext, false, gattCallback); BluetoothGatt gatt2 = device.connectGatt(mContext, false, gattCallback2); try { gatt.disconnect(); gatt.close(); verify(gattCallback2, timeout(1000)) .onConnectionStateChange(eq(gatt2), eq(GATT_SUCCESS), eq(STATE_CONNECTED)); } finally { gatt2.disconnect(); gatt2.close(); } } private void registerWritableGattService() { Loading