android_system_core/adb/client
Josh Gao 2e05dfa2f2 adb: properly calculate packet size on Mac.
OS X reports maxPacketSize as wMaxPacketSize * (bMaxBurst + 1) in the
deprecated GetPipeProperties function. Use the also-deprecated
GetPipePropetiesV2 API to get bMaxBurst and figure out what
wMaxPacketSize is. (This file is going to go away eventually, so don't
bother with switching to the recommended GetPipePropertiesV3, since
it would be a substantially larger charge.)

libusb is unaffected.

Bug: http://b/77733422
Test: python test_device.py
Change-Id: I66517d699a4f39b93ba5eb7882bd8ee6c70f3672
(cherry picked from commit 2ea46521f3)
2018-04-11 11:44:26 -07:00
..
main.cpp Add a NOLINT for the memory leak we added 2018-03-01 18:59:50 +00:00
usb_dispatch.cpp adb: fix darwin build break. 2017-05-10 13:58:51 -07:00
usb_libusb.cpp adb: stop using quick_exit. 2018-02-27 14:50:07 -08:00
usb_linux.cpp adb: cleanup some portions of client usb interfaces 2017-10-13 07:31:49 -07:00
usb_osx.cpp adb: properly calculate packet size on Mac. 2018-04-11 11:44:26 -07:00
usb_windows.cpp adb: get libusb compiling on Windows. 2017-12-08 13:11:15 -08:00