summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage_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-11 11:44:26 -0700
commit2e05dfa2f24c22b5c993b4e79d347d6706d566a0 (patch)
treea7eaa1773096bd2e72af8aa6092ee221a060d291 /trusty/coverage/coverage_test.cpp
parent8aafb0d7f5408dddf6cb16a4ae68945cd4edcdf6 (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 (cherry picked from commit 2ea46521f3c6a275b100737ea071ecd473a38aaa)
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions