History log of /frameworks/av/media/mtp/MtpFfsCompatHandle.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
63dac45aa868b9048c028967e9865c90a9ba544d 07-Dec-2017 Jerry Zhang <zhangjerry@google.com> Remove configure() from Mtp

Instead of configuring the server each
time the connection happens, UsbService
will now pass in the control fd with the
descriptors already written. Also, PTP
endpoints have been moved to their own
directory at /dev/usb-ffs/ptp rather than
using the same ones as mtp.

Bug: 72877174
Test: Verify PTP and MTP config changes work
Change-Id: I9a0336afd610aa397c9947568c308afb89b27c08
/frameworks/av/media/mtp/MtpFfsCompatHandle.cpp
df69dd33b4d8a2f9926b5eaccbf53ee7f67475c2 04-May-2017 Jerry Zhang <zhangjerry@google.com> Switch MtpFfsHandle to aio, add control functions.

MtpFfsHandle now uses kaio to handle usb data.
This achieves better performance without using
the endpoint alloc ioctl.

This also allows ep0 events to be handled without
race conditions. Events will also include control
requests, which will allow both host and device
initiated cancellation.

Bug: 37916658
Bug: 36802721
Test: Transfer various size files, run MtpFfsHandleTest
Test: Cancel transfer on Windows
Test: Allow device to cancel transfer on Windows
Change-Id: Ib3ce996f00782ce7f68f29b2510dbc17f09fdf14
/frameworks/av/media/mtp/MtpFfsCompatHandle.cpp