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/MtpEventPacket.h
|
487be61fb0a38873aec1d12da92437fba5e728f2 |
|
24-Oct-2016 |
Jerry Zhang <zhangjerry@google.com> |
Refactored Mtp driver interface into multiple classes. Added new interface for FunctionFS. This allows most of the driver code to exist in userspace. The driver will automatically use FunctionFS if it is enabled for that device, otherwise it will default to the kernel driver. The intention is to eventually deprecate the kernel driver. Bug: 30976142 Change-Id: I36b8d16ca254fddd995b3ea1bd3d37b0ff4a28f7 Test: New automated tests for MtpFfsHandle, AsyncIO. Manual testing on each device.
/frameworks/av/media/mtp/MtpEventPacket.h
|
8a7ffae09a019de7109b30c505561c453910bde1 |
|
20-Aug-2015 |
Daichi Hirono <hirono@google.com> |
Add functions to read MTP events from MTP devices. BUG=23368533 Change-Id: I2003dda961339677caf56e57ae90cf6df7bd7430
/frameworks/av/media/mtp/MtpEventPacket.h
|
42d0b79a787814d42e4c6f9dfe14f13cc0f6a758 |
|
04-Jan-2011 |
Mike Lockwood <lockwood@android.com> |
MTP: changes to use new usb_request support in libusbhost Change-Id: Ic091eab166a66efcde0395dcebbbc513f2322fca Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/av/media/mtp/MtpEventPacket.h
|
873871f3e75831bcda6c3f75bb4d53355ca5c53a |
|
13-Jul-2010 |
Mike Lockwood <lockwood@android.com> |
MTP: Add support for sending events to the host when objects are added and removed Change-Id: Ia1d5232b919c644c670ff9ca651eca92b3f9ad42 Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/av/media/mtp/MtpEventPacket.h
|