Home
last modified time | relevance | path

Searched refs:oldPath (Results 1 – 11 of 11) sorted by relevance

/frameworks/av/media/mtp/
DMtpUtils.cpp254 int renameTo(const char *oldPath, const char *newPath) { in renameTo() argument
255 int ret = rename(oldPath, newPath); in renameTo()
256 access_ok(oldPath); in renameTo()
DMtpUtils.h37 int renameTo(const char *oldPath, const char *newPath);
/frameworks/base/core/java/android/net/
DUri.java2234 String oldPath = oldPart.getEncoded(); in appendEncodedSegment() local
2236 if (oldPath == null) { in appendEncodedSegment()
2237 oldPath = ""; in appendEncodedSegment()
2240 int oldPathLength = oldPath.length(); in appendEncodedSegment()
2245 } else if (oldPath.charAt(oldPathLength - 1) == '/') { in appendEncodedSegment()
2246 newPath = oldPath + newSegment; in appendEncodedSegment()
2248 newPath = oldPath + "/" + newSegment; in appendEncodedSegment()
2319 String oldPath = encodedCached ? oldPart.encoded : oldPart.decoded; in makeAbsolute() local
2321 if (oldPath == null || oldPath.length() == 0 in makeAbsolute()
2322 || oldPath.startsWith("/")) { in makeAbsolute()
/frameworks/base/media/java/android/mtp/
DMtpDatabase.java568 Path oldPath = obj.getPath(); in renameFile() local
574 boolean success = oldPath.toFile().renameTo(newPath.toFile()); in renameFile()
576 Os.access(oldPath.toString(), OsConstants.F_OK); in renameFile()
582 if (!mManager.endRenameObject(obj, oldPath.getFileName().toString(), success)) { in renameFile()
589 updateMediaStore(mContext, oldPath.toFile()); in renameFile()
625 Path oldPath = oldParentObj.getPath().resolve(name); in endMoveObject() local
627 updateMediaStore(mContext, oldPath.toFile()); in endMoveObject()
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecMessageBuilder.java362 static HdmiCecMessage buildRoutingChange(int src, int oldPath, int newPath) { in buildRoutingChange() argument
364 (byte) ((oldPath >> 8) & 0xFF), (byte) (oldPath & 0xFF), in buildRoutingChange()
DHdmiCecLocalDeviceTv.java369 int oldPath = getActivePortId() != Constants.INVALID_PORT_ID in doManualPortSwitching() local
371 setActivePath(oldPath); in doManualPortSwitching()
377 startRoutingControl(oldPath, newPath, true, callback); in doManualPortSwitching()
381 void startRoutingControl(int oldPath, int newPath, boolean queryDevicePowerStatus, in startRoutingControl() argument
384 if (oldPath == newPath) { in startRoutingControl()
388 HdmiCecMessageBuilder.buildRoutingChange(mAddress, oldPath, newPath); in startRoutingControl()
DHdmiCecLocalDeviceAudioSystem.java900 int oldPath = getRoutingPort() != Constants.CEC_SWITCH_HOME in doManualPortSwitching() local
904 if (oldPath == newPath) { in doManualPortSwitching()
910 HdmiCecMessageBuilder.buildRoutingChange(mAddress, oldPath, newPath); in doManualPortSwitching()
/frameworks/base/core/java/android/app/
DLoadedApk.java345 for (String oldPath : oldPaths) { in updateApplicationInfo()
346 … final String oldApkName = oldPath.substring(oldPath.lastIndexOf(File.separator)); in updateApplicationInfo()
DActivityThread.java7765 public void rename(String oldPath, String newPath) throws ErrnoException { in rename() argument
7767 super.rename(oldPath, newPath); in rename()
7776 if (e.errno == OsConstants.EXDEV && oldPath.startsWith("/storage/emulated") in rename()
7778 Log.v(TAG, "Recovering failed rename " + oldPath + " to " + newPath); in rename()
7780 Files.move(new File(oldPath).toPath(), new File(newPath).toPath(), in rename()
/frameworks/base/services/incremental/
DIncrementalService.h180 int link(StorageId sourceStorageId, std::string_view oldPath, StorageId destStorageId,
DIncrementalService.cpp1235 int IncrementalService::link(StorageId sourceStorageId, std::string_view oldPath, in link() argument
1246 std::string normOldPath = normalizePathToStorage(*ifsSrc, sourceStorageId, oldPath); in link()
1253 PLOG(ERROR) << "Failed to link " << oldPath << "[" << normOldPath << "]" in link()