Loading libs/binder/IMemory.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -330,8 +330,8 @@ void BpMemoryHeap::assertReallyMapped() const if (err != NO_ERROR || // failed transaction size != size64 || offset != offset64) { // ILP32 size check ALOGE("binder=%p transaction failed fd=%d, size=%zu, err=%d (%s)", IInterface::asBinder(this).get(), parcel_fd, size, err, strerror(-err)); IInterface::asBinder(this).get(), parcel_fd, size, err, statusToString(err).c_str()); return; } Loading libs/binder/Parcel.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -668,7 +668,8 @@ status_t Parcel::appendFrom(const Parcel* parcel, size_t offset, size_t len) { // FD was unowned in the source parcel. int newFd = -1; if (status_t status = binder::os::dupFileDescriptor(oldFd, &newFd); status != OK) { ALOGW("Failed to duplicate file descriptor %d: %s", oldFd, strerror(-status)); ALOGW("Failed to duplicate file descriptor %d: %s", oldFd, statusToString(status).c_str()); } rpcFields->mFds->emplace_back(unique_fd(newFd)); // Fixup the index in the data. Loading libs/binder/RpcServer.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -503,7 +503,7 @@ void RpcServer::establishConnection( auto status = binder::os::getRandomBytes(sessionId.data(), sessionId.size()); if (status != OK) { ALOGE("Failed to read random session ID: %s", strerror(-status)); ALOGE("Failed to read random session ID: %s", statusToString(status).c_str()); return; } } while (server->mSessions.end() != server->mSessions.find(sessionId)); Loading libs/binder/RpcSession.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -164,7 +164,7 @@ status_t RpcSession::setupUnixDomainSocketBootstrapClient(unique_fd bootstrapFd) status_t status = mBootstrapTransport->interruptableWriteFully(mShutdownTrigger.get(), &iov, 1, std::nullopt, &fds); if (status != OK) { ALOGE("Failed to send fd over bootstrap transport: %s", strerror(-status)); ALOGE("Failed to send fd over bootstrap transport: %s", statusToString(status).c_str()); return status; } Loading libs/nativewindow/rust/src/lib.rs +7 −1 Original line number Diff line number Diff line Loading @@ -220,7 +220,13 @@ impl HardwareBuffer { Self(buffer) } /// Get the internal |AHardwareBuffer| pointer without decrementing the refcount. This can /// Get the internal `AHardwareBuffer` pointer that is only valid when this `HardwareBuffer` /// exists. This can be used to provide a pointer to the AHB for a C/C++ API over the FFI. pub fn as_raw(&self) -> NonNull<AHardwareBuffer> { self.0 } /// Get the internal `AHardwareBuffer` pointer without decrementing the refcount. This can /// be used to provide a pointer to the AHB for a C/C++ API over the FFI. pub fn into_raw(self) -> NonNull<AHardwareBuffer> { let buffer = ManuallyDrop::new(self); Loading Loading
libs/binder/IMemory.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -330,8 +330,8 @@ void BpMemoryHeap::assertReallyMapped() const if (err != NO_ERROR || // failed transaction size != size64 || offset != offset64) { // ILP32 size check ALOGE("binder=%p transaction failed fd=%d, size=%zu, err=%d (%s)", IInterface::asBinder(this).get(), parcel_fd, size, err, strerror(-err)); IInterface::asBinder(this).get(), parcel_fd, size, err, statusToString(err).c_str()); return; } Loading
libs/binder/Parcel.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -668,7 +668,8 @@ status_t Parcel::appendFrom(const Parcel* parcel, size_t offset, size_t len) { // FD was unowned in the source parcel. int newFd = -1; if (status_t status = binder::os::dupFileDescriptor(oldFd, &newFd); status != OK) { ALOGW("Failed to duplicate file descriptor %d: %s", oldFd, strerror(-status)); ALOGW("Failed to duplicate file descriptor %d: %s", oldFd, statusToString(status).c_str()); } rpcFields->mFds->emplace_back(unique_fd(newFd)); // Fixup the index in the data. Loading
libs/binder/RpcServer.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -503,7 +503,7 @@ void RpcServer::establishConnection( auto status = binder::os::getRandomBytes(sessionId.data(), sessionId.size()); if (status != OK) { ALOGE("Failed to read random session ID: %s", strerror(-status)); ALOGE("Failed to read random session ID: %s", statusToString(status).c_str()); return; } } while (server->mSessions.end() != server->mSessions.find(sessionId)); Loading
libs/binder/RpcSession.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -164,7 +164,7 @@ status_t RpcSession::setupUnixDomainSocketBootstrapClient(unique_fd bootstrapFd) status_t status = mBootstrapTransport->interruptableWriteFully(mShutdownTrigger.get(), &iov, 1, std::nullopt, &fds); if (status != OK) { ALOGE("Failed to send fd over bootstrap transport: %s", strerror(-status)); ALOGE("Failed to send fd over bootstrap transport: %s", statusToString(status).c_str()); return status; } Loading
libs/nativewindow/rust/src/lib.rs +7 −1 Original line number Diff line number Diff line Loading @@ -220,7 +220,13 @@ impl HardwareBuffer { Self(buffer) } /// Get the internal |AHardwareBuffer| pointer without decrementing the refcount. This can /// Get the internal `AHardwareBuffer` pointer that is only valid when this `HardwareBuffer` /// exists. This can be used to provide a pointer to the AHB for a C/C++ API over the FFI. pub fn as_raw(&self) -> NonNull<AHardwareBuffer> { self.0 } /// Get the internal `AHardwareBuffer` pointer without decrementing the refcount. This can /// be used to provide a pointer to the AHB for a C/C++ API over the FFI. pub fn into_raw(self) -> NonNull<AHardwareBuffer> { let buffer = ManuallyDrop::new(self); Loading