Home
last modified time | relevance | path

Searched refs:fromPath (Results 1 – 6 of 6) sorted by relevance

/frameworks/av/media/mtp/
DMtpUtils.cpp120 int copyRecursive(const char *fromPath, const char *toPath) { in copyRecursive() argument
122 string fromPathStr(fromPath); in copyRecursive()
125 DIR* dir = opendir(fromPath); in copyRecursive()
127 PLOG(ERROR) << "opendir " << fromPath << " failed"; in copyRecursive()
157 int copyFile(const char *fromPath, const char *toPath) { in copyFile() argument
160 android::base::unique_fd fromFd(open(fromPath, O_RDONLY)); in copyFile()
162 PLOG(ERROR) << "Failed to open copy from " << fromPath; in copyFile()
173 if (stat(fromPath, &sstat) == -1) in copyFile()
DMtpUtils.h34 int copyRecursive(const char *fromPath, const char *toPath);
35 int copyFile(const char *fromPath, const char *toPath);
DMtpServer.cpp1071 MtpStringBuffer fromPath; in doMoveObject() local
1078 result = mDatabase->getObjectFilePath(objectHandle, fromPath, fileLength, format); in doMoveObject()
1104 ALOGV("Moving file from %s to %s", (const char*)fromPath, (const char*)path); in doMoveObject()
1105 if (renameTo(fromPath, path)) { in doMoveObject()
1106 PLOG(ERROR) << "rename() failed from " << fromPath << " to " << path; in doMoveObject()
1110 ALOGV("Moving across storages from %s to %s", (const char*)fromPath, (const char*)path); in doMoveObject()
1113 ret += copyRecursive(fromPath, path); in doMoveObject()
1117 deletePath(fromPath); in doMoveObject()
1120 if (copyFile(fromPath, path)) { in doMoveObject()
1123 deletePath(fromPath); in doMoveObject()
[all …]
/frameworks/av/media/mtp/tests/MtpFuzzer/
Dmtp_fuzzer.cpp150 int createDatabaseFromSourceDir(const char* fromPath, const char* toPath, in createDatabaseFromSourceDir() argument
153 std::string fromPathStr(fromPath); in createDatabaseFromSourceDir()
156 DIR* dir = opendir(fromPath); in createDatabaseFromSourceDir()
158 ALOGE("opendir %s failed", fromPath); in createDatabaseFromSourceDir()
/frameworks/base/telephony/java/android/telephony/mbms/
DMbmsDownloadReceiver.java450 private static Uri moveToFinalLocation(Uri fromPath, Path appSpecifiedPath, in moveToFinalLocation() argument
452 if (!ContentResolver.SCHEME_FILE.equals(fromPath.getScheme())) { in moveToFinalLocation()
453 Log.w(LOG_TAG, "Downloaded file location uri " + fromPath + in moveToFinalLocation()
458 Path fromFile = FileSystems.getDefault().getPath(fromPath.getPath()); in moveToFinalLocation()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt61998 Landroid/view/textclassifier/TextClassifierImpl$ModelFile;->fromPath(Ljava/lang/String;)Landroid/vi…