summaryrefslogtreecommitdiffstats
path: root/media/mtp/MtpServer.cpp
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2010-07-02 14:03:31 -0400
committerMike Lockwood <lockwood@android.com>2010-07-02 14:14:06 -0400
commit0250361b110267a139cc0865ff7d2f13b4d63bdf (patch)
treea2a5f01424d963c2b24d2fca8e2c59095ce404f8 /media/mtp/MtpServer.cpp
parentfc20aab463f527ab3b0664986f0381a86b375884 (diff)
downloadframeworks_av-0250361b110267a139cc0865ff7d2f13b4d63bdf.zip
frameworks_av-0250361b110267a139cc0865ff7d2f13b4d63bdf.tar.gz
frameworks_av-0250361b110267a139cc0865ff7d2f13b4d63bdf.tar.bz2
MTP: Make MtpDatabase class abstract so we can have multiple implementations
Rename existing test database to MtpSqliteDatabase This is the first step in transitioning to using the media provider database Change-Id: I5f36c854c6e76a79137c267b000a52ced803776c Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'media/mtp/MtpServer.cpp')
-rw-r--r--media/mtp/MtpServer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/media/mtp/MtpServer.cpp b/media/mtp/MtpServer.cpp
index 0b99cb1..cc6fdad 100644
--- a/media/mtp/MtpServer.cpp
+++ b/media/mtp/MtpServer.cpp
@@ -25,9 +25,9 @@
#include <cutils/properties.h>
#include "MtpDebug.h"
-#include "MtpDatabase.h"
#include "MtpProperty.h"
#include "MtpServer.h"
+#include "MtpSqliteDatabase.h"
#include "MtpStorage.h"
#include "MtpStringBuffer.h"
@@ -122,7 +122,7 @@ MtpServer::MtpServer(int fd, const char* databasePath)
mSendObjectHandle(kInvalidObjectHandle),
mSendObjectFileSize(0)
{
- mDatabase = new MtpDatabase();
+ mDatabase = new MtpSqliteDatabase();
mDatabase->open(databasePath, true);
initObjectProperties();