summaryrefslogtreecommitdiffstats
path: root/media/mtp/MtpPacket.cpp
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2010-11-23 09:08:01 -0500
committerMike Lockwood <lockwood@android.com>2010-11-23 18:45:01 -0500
commitd81ce3cf2e6479915658a0829eced062e3655320 (patch)
treef174670a23626ba7643eb561566a1490fb1ffaa3 /media/mtp/MtpPacket.cpp
parentb892d0e5556ed6ded3e0548f75ab16fc2e3d92c3 (diff)
downloadframeworks_av-d81ce3cf2e6479915658a0829eced062e3655320.zip
frameworks_av-d81ce3cf2e6479915658a0829eced062e3655320.tar.gz
frameworks_av-d81ce3cf2e6479915658a0829eced062e3655320.tar.bz2
MTP: Implement GetPartialObject command
Allows host to read partial contents of files on the device Change-Id: I74927f7394224d674e1d150a4b72a51d9358459b Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'media/mtp/MtpPacket.cpp')
-rw-r--r--media/mtp/MtpPacket.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/media/mtp/MtpPacket.cpp b/media/mtp/MtpPacket.cpp
index 42bf8ba..bd6196f 100644
--- a/media/mtp/MtpPacket.cpp
+++ b/media/mtp/MtpPacket.cpp
@@ -123,7 +123,7 @@ void MtpPacket::setTransactionID(MtpTransactionID id) {
uint32_t MtpPacket::getParameter(int index) const {
if (index < 1 || index > 5) {
- LOGE("index %d out of range in MtpRequestPacket::getParameter", index);
+ LOGE("index %d out of range in MtpPacket::getParameter", index);
return 0;
}
return getUInt32(MTP_CONTAINER_PARAMETER_OFFSET + (index - 1) * sizeof(uint32_t));
@@ -131,7 +131,7 @@ uint32_t MtpPacket::getParameter(int index) const {
void MtpPacket::setParameter(int index, uint32_t value) {
if (index < 1 || index > 5) {
- LOGE("index %d out of range in MtpResponsePacket::setParameter", index);
+ LOGE("index %d out of range in MtpPacket::setParameter", index);
return;
}
int offset = MTP_CONTAINER_PARAMETER_OFFSET + (index - 1) * sizeof(uint32_t);