Searched defs:fromPath (Results 1 - 4 of 4) sorted by relevance

/frameworks/av/media/mtp/
H A DMtpUtils.cpp120 int copyRecursive(const char *fromPath, const char *toPath) { argument
122 string fromPathStr(fromPath);
125 DIR* dir = opendir(fromPath);
127 PLOG(ERROR) << "opendir " << fromPath << " failed";
156 int copyFile(const char *fromPath, const char *toPath) { argument
159 android::base::unique_fd fromFd(open(fromPath, O_RDONLY));
161 PLOG(ERROR) << "Failed to open copy from " << fromPath;
172 if (stat(fromPath, &sstat) == -1)
H A DMtpServer.cpp1012 MtpStringBuffer fromPath; local
1019 result = mDatabase->getObjectFilePath(objectHandle, fromPath, fileLength, format);
1045 ALOGV("Moving file from %s to %s", (const char*)fromPath, (const char*)path);
1046 if (renameTo(fromPath, path)) {
1047 PLOG(ERROR) << "rename() failed from " << fromPath << " to " << path;
1051 ALOGV("Moving across storages from %s to %s", (const char*)fromPath, (const char*)path);
1054 ret += copyRecursive(fromPath, path);
1058 deletePath(fromPath);
1061 if (copyFile(fromPath, path)) {
1064 deletePath(fromPath);
1090 MtpStringBuffer fromPath; local
[all...]
/frameworks/base/telephony/java/android/telephony/mbms/
H A DMbmsDownloadReceiver.java448 * Moves a tempfile located at fromPath to its final home where the app wants it
450 private static Uri moveToFinalLocation(Uri fromPath, Path appSpecifiedPath, argument
452 if (!ContentResolver.SCHEME_FILE.equals(fromPath.getScheme())) {
453 Log.w(LOG_TAG, "Downloaded file location uri " + fromPath +
458 Path fromFile = FileSystems.getDefault().getPath(fromPath.getPath());
/frameworks/base/core/java/android/view/textclassifier/
H A DTextClassifierImpl.java374 final ModelFile updatedModel = ModelFile.fromPath(UPDATED_MODEL_FILE_PATH);
387 final ModelFile model = ModelFile.fromPath(modelFile.getAbsolutePath());
465 static @Nullable ModelFile fromPath(String path) { method in class:TextClassifierImpl.ModelFile

Completed in 147 milliseconds