/aosp12/build/soong/ui/build/ |
H A D | cleanbuild.go | 263 oldPath := filepath.Join(basePath, oldPaths[0]) 266 if oldFile, err := os.Stat(oldPath); err == nil { 268 if err := os.Remove(oldPath); err == nil { 269 ctx.Println("Removed directory that is no longer installed: ", oldPath) 270 cleanEmptyDirs(ctx, filepath.Dir(oldPath)) 272 ctx.Println("Failed to remove directory that is no longer installed (%q): %v", oldPath, err) 277 if err := os.Remove(oldPath); err == nil { 278 ctx.Println("Removed file that is no longer installed: ", oldPath) 279 cleanEmptyDirs(ctx, filepath.Dir(oldPath)) 281 ctx.Fatalf("Failed to remove file that is no longer installed (%q): %v", oldPath, err)
|
/aosp12/build/soong/finder/fs/ |
H A D | test.go | 53 func Move(t *testing.T, oldPath string, newPath string, filesystem *MockFs) { 54 err := filesystem.Rename(oldPath, newPath) 60 func Link(t *testing.T, newPath string, oldPath string, filesystem *MockFs) { 66 err = filesystem.Symlink(oldPath, newPath)
|
H A D | fs.go | 62 Rename(oldPath string, newPath string) (err error) 119 func (osFs) Rename(oldPath string, newPath string) error { 120 return os.Rename(oldPath, newPath) 863 func (m *MockFs) Symlink(oldPath string, newPath string) (err error) { 881 newParentDir.symlinks[leaf] = m.newLink(oldPath)
|
/aosp12/packages/providers/MediaProvider/src/com/android/providers/media/ |
H A D | MediaProvider.java | 2057 FileUtils.getContentUriForPath(oldPath)); in updateDatabaseForFuseRename() 2192 return getAllFilesForRenameDirectory(oldPath); in getWritableFilesForRenameDirectory() 2219 + oldPath); in getWritableFilesForRenameDirectory() 2250 Os.rename(oldPath, newPath); in renameInLowerFs() 2300 + oldPath, e); in renameDirectoryUncheckedForFuse() 2323 int errno = renameInLowerFs(oldPath, newPath); in renameDirectoryUncheckedForFuse() 2333 scanRenamedDirectoryForFuse(oldPath, newPath); in renameDirectoryUncheckedForFuse() 2415 int errno = renameInLowerFs(oldPath, newPath); in renameFileForFuse() 2466 if (new File(oldPath).isFile()) { in renameUncheckedForFuse() 2509 return renameInLowerFs(oldPath, newPath); in renameForFuse() [all …]
|
H A D | DatabaseHelper.java | 153 String oldOwnerPackage, String newOwnerPackage, String oldPath); in onUpdate() argument 292 final String oldPath = split[9]; in onConfigure() 298 oldOwnerPackage, newOwnerPackage, oldPath); in onConfigure() 1910 private static void renameWithRetry(@NonNull String oldPath, @NonNull String newPath) in renameWithRetry() argument 1919 Os.rename(oldPath, newPath); in renameWithRetry()
|
/aosp12/frameworks/av/media/mtp/ |
H A D | MtpUtils.cpp | 254 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()
|
H A D | MtpUtils.h | 37 int renameTo(const char *oldPath, const char *newPath);
|
/aosp12/frameworks/base/core/java/android/net/ |
H A D | Uri.java | 2234 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()
|
/aosp12/frameworks/base/media/java/android/mtp/ |
H A D | MtpDatabase.java | 568 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()
|
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/onetimeinitializer/ |
H A D | GalleryWidgetMigrator.java | 138 String oldPath = oldExtStorage + path.substring(RELATIVE_PATH_START); in updatePath() local 139 int oldBucketId = GalleryUtils.getBucketId(oldPath); in updatePath()
|
/aosp12/frameworks/base/services/core/java/com/android/server/hdmi/ |
H A D | HdmiCecMessageBuilder.java | 362 static HdmiCecMessage buildRoutingChange(int src, int oldPath, int newPath) { in buildRoutingChange() argument 364 (byte) ((oldPath >> 8) & 0xFF), (byte) (oldPath & 0xFF), in buildRoutingChange()
|
H A D | HdmiCecLocalDeviceTv.java | 369 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()
|
H A D | HdmiCecLocalDeviceAudioSystem.java | 900 int oldPath = getRoutingPort() != Constants.CEC_SWITCH_HOME in doManualPortSwitching() local 904 if (oldPath == newPath) { in doManualPortSwitching() 910 HdmiCecMessageBuilder.buildRoutingChange(mAddress, oldPath, newPath); in doManualPortSwitching()
|
/aosp12/build/soong/android/ |
H A D | fixture.go | 320 oldPath := config.env["PATH"] 323 if newPath != oldPath { 324 panic(fmt.Errorf("Cannot change PATH environment variable from %q to %q", oldPath, newPath))
|
/aosp12/packages/apps/Gallery/src/com/android/camera/ |
H A D | CropImage.java | 351 File oldPath = new File(mImage.getDataPath()); in saveOutput() local 352 File directory = new File(oldPath.getParent()); in saveOutput() 355 String fileName = oldPath.getName(); in saveOutput()
|
/aosp12/frameworks/base/core/java/android/app/ |
H A D | LoadedApk.java | 345 for (String oldPath : oldPaths) { in updateApplicationInfo() 346 … final String oldApkName = oldPath.substring(oldPath.lastIndexOf(File.separator)); in updateApplicationInfo()
|
H A D | ActivityThread.java | 7793 public void rename(String oldPath, String newPath) throws ErrnoException { in rename() argument 7795 super.rename(oldPath, newPath); in rename() 7804 if (e.errno == OsConstants.EXDEV && oldPath.startsWith("/storage/emulated") in rename() 7806 Log.v(TAG, "Recovering failed rename " + oldPath + " to " + newPath); in rename() 7808 Files.move(new File(oldPath).toPath(), new File(newPath).toPath(), in rename()
|
/aosp12/frameworks/base/services/incremental/ |
H A D | IncrementalService.h | 180 int link(StorageId sourceStorageId, std::string_view oldPath, StorageId destStorageId,
|
H A D | IncrementalService.cpp | 1235 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()
|
/aosp12/frameworks/base/tools/aapt2/integration-tests/CommandTests/ |
H A D | android-28.jar | META-INF/
META-INF/MANIFEST.MF
javax/
javax/net/
javax/ ... |