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

Commit 4b60a312 authored by Ryo Hashimoto's avatar Ryo Hashimoto
Browse files

Use ParcelFileDescriptor implementation in libbinder

Bug: 80377815
Test: build
Change-Id: I31e35644917efac03a4ca3a85a31879cefa55080
parent f3768d4d
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -57,8 +57,8 @@ Status BluetoothSocketManagerBinderServer::connectSocket(
    return Status::ok();
  }

  _aidl_return->reset(new ParcelFileDescriptor());
  (*_aidl_return)->setFileDescriptor(socket_fd, true);
  _aidl_return->reset(
      new ParcelFileDescriptor(android::base::unique_fd(socket_fd)));
  return Status::ok();
}

@@ -97,8 +97,8 @@ Status BluetoothSocketManagerBinderServer::createSocketChannel(
    return Status::ok();
  }

  _aidl_return->reset(new ParcelFileDescriptor());
  (*_aidl_return)->setFileDescriptor(socket_fd, true);
  _aidl_return->reset(
      new ParcelFileDescriptor(android::base::unique_fd(socket_fd)));
  return Status::ok();
}