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

Commit 1d237ab3 authored by Ryo Hashimoto's avatar Ryo Hashimoto Committed by android-build-merger
Browse files

Merge "Use ParcelFileDescriptor implementation in libbinder" am: 00c5a119

am: c15f952e

Change-Id: I2fe06a5c9b2bb24da024e70997122243cffeedf4
parents 3575b39f c15f952e
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();
}