summaryrefslogtreecommitdiff
path: root/debuggerd/debuggerd_test.cpp
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2018-04-10 14:35:06 -0700
committerJosh Gao <jmgao@google.com>2018-04-10 14:46:34 -0700
commit2ea46521f3c6a275b100737ea071ecd473a38aaa (patch)
tree317f5fc7c82d62a925e5b733a8b3566f5f31022a /debuggerd/debuggerd_test.cpp
parentc692ff9043f208c9ae9eee28c3711e1c94922b6c (diff)
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
Diffstat (limited to 'debuggerd/debuggerd_test.cpp')
0 files changed, 0 insertions, 0 deletions