Merge "Support scanDirectories with JNI callback function"

am: 5747c2b81c

Change-Id: I8996fb568c4024ccf76a5643049de8cee6f811c6
This commit is contained in:
kyle_tso
2017-12-06 03:22:30 +00:00
committed by android-build-merger
2 changed files with 24 additions and 0 deletions

View File

@@ -423,6 +423,12 @@ public class MtpDatabase implements AutoCloseable {
}
}
private void doScanDirectory(String path) {
String[] scanPath;
scanPath = new String[] { path };
mMediaScanner.scanDirectories(scanPath);
}
private Cursor createObjectQuery(int storageID, int format, int parent) throws RemoteException {
String where;
String[] whereArgs;