History log of /frameworks/av/media/mtp/tests/PosixAsyncIO_test.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
bc1d4b41f4df1b6dd04801ea5a526d23f5321340 28-Mar-2018 Jerry Zhang <zhangjerry@google.com> Fix Unicode string handling

Linux uses UTF8 but java and MTP both
use UTF16. In a few places, this results
in the top byte of a UTF16 string being
truncated on conversion to UTF8.

Also, the hardcoded UTF to byte serialization
in MtpStringBuffer is incorrect.
Replace it with conversions from std, and
replace usages of MtpString with MtpStringBuffer.

Remove any remaining usages of libutils
and replace them with corresponding std
libraries.

Bug: 70546563
Test: Mtp works, tests pass
Test: file/folder names containing emoji can be transferred to/from
windows
Change-Id: Idbcb73f1beac17ce8a90843fa254e759dd1a6369
/frameworks/av/media/mtp/tests/PosixAsyncIO_test.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/tests/PosixAsyncIO_test.cpp