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

Commit a6c04f9d authored by Pomai Ahlo's avatar Pomai Ahlo
Browse files

Add uuid to createAndConnectSocket

Bug: 331415222
Test: atest RfcommTest
Flag: TEST_ONLY
Change-Id: I5b3fcb9ffba682aedc1d574e84d159d96f10ed18
parent e99a4e13
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -257,13 +257,14 @@ class RfcommTest {

    private fun createAndConnectSocket(
        isSecure: Boolean,
        server: ServerId
        server: ServerId,
        uuid: String = TEST_UUID
    ): Pair<BluetoothSocket, RfcommProto.RfcommConnection> {
        val socket =
            if (isSecure) {
                mBumbleDevice.createRfcommSocketToServiceRecord(UUID.fromString(TEST_UUID))
                mBumbleDevice.createRfcommSocketToServiceRecord(UUID.fromString(uuid))
            } else {
                mBumbleDevice.createInsecureRfcommSocketToServiceRecord(UUID.fromString(TEST_UUID))
                mBumbleDevice.createInsecureRfcommSocketToServiceRecord(UUID.fromString(uuid))
            }
        socket.connect()