summaryrefslogtreecommitdiffstats
path: root/media/mtp/MtpServer.cpp
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
commitec24fa46443634cd29627182c5812ccf43682692 (patch)
tree8cfb16d4a29ce8dd8a97f8a07aadb5c074365be6 /media/mtp/MtpServer.cpp
parentf92300875743fca7e264c731a4e2fe9860cd1b10 (diff)
downloadframeworks_av-ec24fa46443634cd29627182c5812ccf43682692.zip
frameworks_av-ec24fa46443634cd29627182c5812ccf43682692.tar.gz
frameworks_av-ec24fa46443634cd29627182c5812ccf43682692.tar.bz2
MTP: Implement date created field in GetObjectInfo
Bug: 8293874 Change-Id: I6b74fe73362bd4fac34ca8a54e127ae91f82aef9
Diffstat (limited to 'media/mtp/MtpServer.cpp')
-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