Loading adb/Android.bp +0 −1 Original line number Original line Diff line number Diff line Loading @@ -567,7 +567,6 @@ cc_library { cc_binary { cc_binary { name: "adbd", name: "adbd", defaults: ["adbd_defaults", "host_adbd_supported", "libadbd_binary_dependencies"], defaults: ["adbd_defaults", "host_adbd_supported", "libadbd_binary_dependencies"], stl: "libc++_static", recovery_available: true, recovery_available: true, apex_available: ["com.android.adbd"], apex_available: ["com.android.adbd"], Loading adb/daemon/usb.cpp +11 −3 Original line number Original line Diff line number Diff line Loading @@ -231,7 +231,14 @@ struct UsbFfsConnection : public Connection { offset += write_size; offset += write_size; } } } } SubmitWrites(); // Wake up the worker thread to submit writes. uint64_t notify = 1; ssize_t rc = adb_write(worker_event_fd_.get(), ¬ify, sizeof(notify)); if (rc < 0) { PLOG(FATAL) << "failed to notify worker eventfd to submit writes"; } return true; return true; } } Loading Loading @@ -443,6 +450,9 @@ struct UsbFfsConnection : public Connection { } } ReadEvents(); ReadEvents(); std::lock_guard<std::mutex> lock(write_mutex_); SubmitWrites(); } } }); }); } } Loading Loading @@ -626,8 +636,6 @@ struct UsbFfsConnection : public Connection { write_requests_.erase(it); write_requests_.erase(it); size_t outstanding_writes = --writes_submitted_; size_t outstanding_writes = --writes_submitted_; LOG(DEBUG) << "USB write: reaped, down to " << outstanding_writes; LOG(DEBUG) << "USB write: reaped, down to " << outstanding_writes; SubmitWrites(); } } IoWriteBlock CreateWriteBlock(std::shared_ptr<Block> payload, size_t offset, size_t len, IoWriteBlock CreateWriteBlock(std::shared_ptr<Block> payload, size_t offset, size_t len, Loading Loading
adb/Android.bp +0 −1 Original line number Original line Diff line number Diff line Loading @@ -567,7 +567,6 @@ cc_library { cc_binary { cc_binary { name: "adbd", name: "adbd", defaults: ["adbd_defaults", "host_adbd_supported", "libadbd_binary_dependencies"], defaults: ["adbd_defaults", "host_adbd_supported", "libadbd_binary_dependencies"], stl: "libc++_static", recovery_available: true, recovery_available: true, apex_available: ["com.android.adbd"], apex_available: ["com.android.adbd"], Loading
adb/daemon/usb.cpp +11 −3 Original line number Original line Diff line number Diff line Loading @@ -231,7 +231,14 @@ struct UsbFfsConnection : public Connection { offset += write_size; offset += write_size; } } } } SubmitWrites(); // Wake up the worker thread to submit writes. uint64_t notify = 1; ssize_t rc = adb_write(worker_event_fd_.get(), ¬ify, sizeof(notify)); if (rc < 0) { PLOG(FATAL) << "failed to notify worker eventfd to submit writes"; } return true; return true; } } Loading Loading @@ -443,6 +450,9 @@ struct UsbFfsConnection : public Connection { } } ReadEvents(); ReadEvents(); std::lock_guard<std::mutex> lock(write_mutex_); SubmitWrites(); } } }); }); } } Loading Loading @@ -626,8 +636,6 @@ struct UsbFfsConnection : public Connection { write_requests_.erase(it); write_requests_.erase(it); size_t outstanding_writes = --writes_submitted_; size_t outstanding_writes = --writes_submitted_; LOG(DEBUG) << "USB write: reaped, down to " << outstanding_writes; LOG(DEBUG) << "USB write: reaped, down to " << outstanding_writes; SubmitWrites(); } } IoWriteBlock CreateWriteBlock(std::shared_ptr<Block> payload, size_t offset, size_t len, IoWriteBlock CreateWriteBlock(std::shared_ptr<Block> payload, size_t offset, size_t len, Loading