summaryrefslogtreecommitdiffstats
path: root/media/mtp
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@google.com>2013-04-01 10:51:35 -0700
committerMike Lockwood <lockwood@google.com>2013-04-01 10:54:40 -0700
commitcba6b7dbe6e6d89c00021a0954d8bf60eacefdfa (patch)
tree579a9b99765f8852599cfb23a5cbba4a77002431 /media/mtp
parentd49e54289654ab7d7bda03f019ca4421fe303b05 (diff)
downloadframeworks_av-cba6b7dbe6e6d89c00021a0954d8bf60eacefdfa.zip
frameworks_av-cba6b7dbe6e6d89c00021a0954d8bf60eacefdfa.tar.gz
frameworks_av-cba6b7dbe6e6d89c00021a0954d8bf60eacefdfa.tar.bz2
MTP: Implement date created field in GetObjectInfo
Bug: 8293874 Change-Id: I6b74fe73362bd4fac34ca8a54e127ae91f82aef9
Diffstat (limited to 'media/mtp')
-rw-r--r--media/mtp/MtpServer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/media/mtp/MtpServer.cpp b/media/mtp/MtpServer.cpp
index 8568dfc..df87db4 100644
--- a/media/mtp/MtpServer.cpp
+++ b/media/mtp/MtpServer.cpp
@@ -704,7 +704,8 @@ MtpResponseCode MtpServer::doGetObjectInfo() {
mData.putUInt32(info.mAssociationDesc);
mData.putUInt32(info.mSequenceNumber);
mData.putString(info.mName);
- mData.putEmptyString(); // date created
+ formatDateTime(info.mDateCreated, date, sizeof(date));
+ mData.putString(date); // date created
formatDateTime(info.mDateModified, date, sizeof(date));
mData.putString(date); // date modified
mData.putEmptyString(); // keywords