Merge "adbd: reduce the USB buffer sizes to 16k." am: f05fbe6957
am: 949a903ff5
Change-Id: I887c8b43ac51eef60b5d0ec2a489277ad8a0c092
This commit is contained in:
commit
039cc7d1f8
1 changed files with 3 additions and 2 deletions
|
@ -57,11 +57,12 @@ using android::base::StringPrintf;
|
|||
// We can't find out whether we have support for AIO on ffs endpoints until we submit a read.
|
||||
static std::optional<bool> gFfsAioSupported;
|
||||
|
||||
// Not all USB controllers support operations larger than 16k, so don't go above that.
|
||||
static constexpr size_t kUsbReadQueueDepth = 32;
|
||||
static constexpr size_t kUsbReadSize = 8 * PAGE_SIZE;
|
||||
static constexpr size_t kUsbReadSize = 4 * PAGE_SIZE;
|
||||
|
||||
static constexpr size_t kUsbWriteQueueDepth = 32;
|
||||
static constexpr size_t kUsbWriteSize = 8 * PAGE_SIZE;
|
||||
static constexpr size_t kUsbWriteSize = 4 * PAGE_SIZE;
|
||||
|
||||
static const char* to_string(enum usb_functionfs_event_type type) {
|
||||
switch (type) {
|
||||
|
|
Loading…
Reference in a new issue