android_system_core/adb/client
Josh Gao 2ea46521f3 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
2018-04-10 14:46:34 -07:00
..
adb_client.cpp adb: switch over to Android.bp. 2018-02-28 15:29:50 -08:00
adb_client.h adb: switch over to Android.bp. 2018-02-28 15:29:50 -08:00
auth.cpp adb: switch over to Android.bp. 2018-02-28 15:29:50 -08:00
bugreport.cpp adb: switch over to Android.bp. 2018-02-28 15:29:50 -08:00
bugreport.h adb: switch over to Android.bp. 2018-02-28 15:29:50 -08:00
commandline.cpp adb: implement std::make_unique, start using it. 2018-03-16 15:35:52 -07:00
commandline.h adb: switch over to Android.bp. 2018-02-28 15:29:50 -08:00
console.cpp adb: switch over to Android.bp. 2018-02-28 15:29:50 -08:00
file_sync_client.cpp adb: switch over to Android.bp. 2018-02-28 15:29:50 -08:00
line_printer.cpp adb: switch over to Android.bp. 2018-02-28 15:29:50 -08:00
line_printer.h adb: switch over to Android.bp. 2018-02-28 15:29:50 -08:00
main.cpp Add a NOLINT for the memory leak we added 2018-03-01 18:59:50 +00:00
transport_mdns.cpp adb: switch over to Android.bp. 2018-02-28 15:29:50 -08: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-10 14:46:34 -07:00
usb_windows.cpp adb: get libusb compiling on Windows. 2017-12-08 13:11:15 -08:00