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/MtpStringBuffer.h
|
a039c883c593b2ebbca6d32282cbd855b5bec19f |
|
09-Aug-2016 |
Chih-Hung Hsieh <chh@google.com> |
Fix google-explict-constructor warnings in mtp. * Add explicit keyword to conversion constructors. Bug: 28341362 Test: build with WITH_TIDY=1 Change-Id: I3a84ae7ffa03b2e23562edef95ef6abefe0ff456
/frameworks/av/media/mtp/MtpStringBuffer.h
|
ab063847e6e893740749029a04cce1f6b7345ed5 |
|
12-Nov-2014 |
Mike Lockwood <lockwood@google.com> |
MTP: add strict bounds checking for all incoming packets Previously we did not sanity check incoming MTP packets, which could result in crashes due to reading off the edge of a packet. Now all MTP packet getter functions return a boolean result (true for OK, false for reading off the edge of the packet) and we now return errors for malformed packets. Bug: 18113092 Change-Id: Ic7623ee96f00652bdfb4f66acb16a93db5a1c105
/frameworks/av/media/mtp/MtpStringBuffer.h
|
014897f5aece2c6212418934bd4618326979f17a |
|
04-Dec-2012 |
Yin Liu <yin2.liu@sonymobile.com> |
Long mp3 metadata displays as corrupted file after transfer Cut the metadata to 1 Byte and return in function getObjectPropertyList in order to show it properly on a PC. Change-Id: Iefacf9fa86c20ece2572e6d95d35877a94066fe7
/frameworks/av/media/mtp/MtpStringBuffer.h
|
dde372033b4da75ebde7ea2afdec1c1b86ab5a42 |
|
26-Sep-2010 |
Mike Lockwood <lockwood@android.com> |
MTP: Include current property value in GetDevicePropDesc Change-Id: I05125c79ad58b6f75734fcedcc8af9b689fa9ff3 Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/av/media/mtp/MtpStringBuffer.h
|
7850ef999740f214a1990a9c090d3f3865d435aa |
|
14-May-2010 |
Mike Lockwood <lockwood@android.com> |
Move MTP code to the android namespace Change-Id: I5da48038fd5e4cdeefaeba42cdc74eb588b3448d Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/av/media/mtp/MtpStringBuffer.h
|
16864bae0f51c32c456da2c43adf7a057c0c4882 |
|
11-May-2010 |
Mike Lockwood <lockwood@android.com> |
Checkpoint work on MTP and PTP investigation. This change includes work in progress on a C++ library for both host and device MTP and PTP support. Currently the makefile builds two test programs: mtptest - a command line test program that implements a small subset of device side MTP. Requires a kernel driver that has not been checked in yet. ptptest - a host tool to test USB host support for detecting and communicating with digital cameras over PTP. Runs on Linux host. Later this will be reformulated as a native library that will be used in the media process. Change-Id: I81aab279975b600b59d99013ab97f9adf0b58da7 Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/av/media/mtp/MtpStringBuffer.h
|