Home
last modified time | relevance | path

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

/frameworks/av/media/mtp/
DMtpUtils.cpp253 int renameTo(const char *oldPath, const char *newPath) { in renameTo() argument
254 int ret = rename(oldPath, newPath); in renameTo()
255 access_ok(oldPath); in renameTo()
DMtpUtils.h37 int renameTo(const char *oldPath, const char *newPath);
/frameworks/base/media/java/android/mtp/
DMtpDatabase.java552 Path oldPath = obj.getPath(); in renameFile() local
558 boolean success = oldPath.toFile().renameTo(newPath.toFile()); in renameFile()
560 Os.access(oldPath.toString(), OsConstants.F_OK); in renameFile()
566 if (!mManager.endRenameObject(obj, oldPath.getFileName().toString(), success)) { in renameFile()
576 String[] whereArgs = new String[]{oldPath.toString()}; in renameFile()
589 if (oldPath.getFileName().startsWith(".") && !newPath.startsWith(".")) { in renameFile()
594 if (oldPath.getFileName().toString().toLowerCase(Locale.US).equals(NO_MEDIA) in renameFile()
635 Path oldPath = oldParentObj.getPath().resolve(name); in endMoveObject() local
645 deleteFromMedia(obj, oldPath, obj.isDir()); in endMoveObject()
651 String[] whereArgs = new String[]{oldPath.toString()}; in endMoveObject()
[all …]
/frameworks/base/core/java/android/net/
DUri.java2227 String oldPath = oldPart.getEncoded(); in appendEncodedSegment() local
2229 if (oldPath == null) { in appendEncodedSegment()
2230 oldPath = ""; in appendEncodedSegment()
2233 int oldPathLength = oldPath.length(); in appendEncodedSegment()
2238 } else if (oldPath.charAt(oldPathLength - 1) == '/') { in appendEncodedSegment()
2239 newPath = oldPath + newSegment; in appendEncodedSegment()
2241 newPath = oldPath + "/" + newSegment; in appendEncodedSegment()
2312 String oldPath = encodedCached ? oldPart.encoded : oldPart.decoded; in makeAbsolute() local
2314 if (oldPath == null || oldPath.length() == 0 in makeAbsolute()
2315 || oldPath.startsWith("/")) { in makeAbsolute()
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecMessageBuilder.java358 static HdmiCecMessage buildRoutingChange(int src, int oldPath, int newPath) { in buildRoutingChange() argument
360 (byte) ((oldPath >> 8) & 0xFF), (byte) (oldPath & 0xFF), in buildRoutingChange()
DHdmiCecLocalDeviceTv.java405 int oldPath = getActivePortId() != Constants.INVALID_PORT_ID in doManualPortSwitching() local
407 setActivePath(oldPath); in doManualPortSwitching()
413 startRoutingControl(oldPath, newPath, true, callback); in doManualPortSwitching()
417 void startRoutingControl(int oldPath, int newPath, boolean queryDevicePowerStatus, in startRoutingControl() argument
420 if (oldPath == newPath) { in startRoutingControl()
424 HdmiCecMessageBuilder.buildRoutingChange(mAddress, oldPath, newPath); in startRoutingControl()
DHdmiCecLocalDeviceAudioSystem.java984 int oldPath = getRoutingPort() != Constants.CEC_SWITCH_HOME in doManualPortSwitching() local
988 if (oldPath == newPath) { in doManualPortSwitching()
994 HdmiCecMessageBuilder.buildRoutingChange(mAddress, oldPath, newPath); in doManualPortSwitching()
/frameworks/base/core/java/android/app/
DLoadedApk.java340 for (String oldPath : oldPaths) { in updateApplicationInfo()
341 … final String oldApkName = oldPath.substring(oldPath.lastIndexOf(File.separator)); in updateApplicationInfo()
DActivityThread.java7332 public void rename(String oldPath, String newPath) throws ErrnoException { in rename() argument
7334 super.rename(oldPath, newPath); in rename()
7337 Log.v(TAG, "Recovering failed rename " + oldPath + " to " + newPath); in rename()
7339 Files.move(new File(oldPath).toPath(), new File(newPath).toPath()); in rename()