Loading android/pandora/mmi2grpc/mmi2grpc/l2cap.py +11 −1 Original line number Diff line number Diff line Loading @@ -117,11 +117,21 @@ class L2CAPProxy(ProfileProxy): tests_require_secure_connection = [ "L2CAP/LE/CFC/BV-13-C", ] tests_connection_target_to_failed = [ "L2CAP/LE/CFC/BV-05-C", ] if test in tests_to_open_bluetooth_server_socket: secure_connection = test in tests_require_secure_connection self.l2cap.ListenL2CAPChannel(connection=self.connection, secure=secure_connection) try: self.l2cap.AcceptL2CAPChannel(connection=self.connection) except Exception as e: if test in tests_connection_target_to_failed: self.test_status_map[test] = 'OK' print(test, 'connection targets to fail', file=sys.stderr) else: raise e return "OK" @assert_description Loading android/pandora/server/src/com/android/pandora/L2cap.kt +1 −1 Original line number Diff line number Diff line Loading @@ -94,7 +94,7 @@ class L2cap(val context: Context) : L2CAPImplBase(), Closeable { connectionOutStreamMap[connection] = bluetoothSocket.getOutputStream()!! } catch (e: IOException) { Log.e(TAG, "bluetoothServerSocket not accepted", e) return@grpcUnary AcceptL2CAPChannelResponse.newBuilder().build() throw e } AcceptL2CAPChannelResponse.newBuilder().build() Loading Loading
android/pandora/mmi2grpc/mmi2grpc/l2cap.py +11 −1 Original line number Diff line number Diff line Loading @@ -117,11 +117,21 @@ class L2CAPProxy(ProfileProxy): tests_require_secure_connection = [ "L2CAP/LE/CFC/BV-13-C", ] tests_connection_target_to_failed = [ "L2CAP/LE/CFC/BV-05-C", ] if test in tests_to_open_bluetooth_server_socket: secure_connection = test in tests_require_secure_connection self.l2cap.ListenL2CAPChannel(connection=self.connection, secure=secure_connection) try: self.l2cap.AcceptL2CAPChannel(connection=self.connection) except Exception as e: if test in tests_connection_target_to_failed: self.test_status_map[test] = 'OK' print(test, 'connection targets to fail', file=sys.stderr) else: raise e return "OK" @assert_description Loading
android/pandora/server/src/com/android/pandora/L2cap.kt +1 −1 Original line number Diff line number Diff line Loading @@ -94,7 +94,7 @@ class L2cap(val context: Context) : L2CAPImplBase(), Closeable { connectionOutStreamMap[connection] = bluetoothSocket.getOutputStream()!! } catch (e: IOException) { Log.e(TAG, "bluetoothServerSocket not accepted", e) return@grpcUnary AcceptL2CAPChannelResponse.newBuilder().build() throw e } AcceptL2CAPChannelResponse.newBuilder().build() Loading