Home
last modified time | relevance | path

Searched refs:targetDir (Results 1 – 12 of 12) sorted by relevance

/system/timezone/distro/core/src/test/com/android/timezone/distro/
DTimeZoneDistroTest.java110 File targetDir = new File(dir, "target"); in testExtractZipSafely_goodZip() local
113 TimeZoneDistro.extractZipSafely(inputStream, targetDir, true /* makeWorldReadable */); in testExtractZipSafely_goodZip()
116 new File(targetDir, "leadingSlash"), in testExtractZipSafely_goodZip()
117 new File(targetDir, "absolute"), in testExtractZipSafely_goodZip()
118 new File(targetDir, "file"), in testExtractZipSafely_goodZip()
119 new File(targetDir, "subDir/subDir/subDir/file")); in testExtractZipSafely_goodZip()
121 new File(targetDir, "subDir/subDir2"), in testExtractZipSafely_goodZip()
122 new File(targetDir, "subDir3")); in testExtractZipSafely_goodZip()
143 File targetDir = new File(dir, "target"); in doExtractZipFails() local
147 TimeZoneDistro.extractZipSafely(inputStream, targetDir, true /* makeWorldReadable */); in doExtractZipFails()
/system/timezone/distro/core/src/main/com/android/timezone/distro/
DTimeZoneDistro.java125 public void extractTo(File targetDir) throws IOException { in extractTo() argument
126 extractZipSafely(inputStream, targetDir, true /* makeWorldReadable */); in extractTo()
130 static void extractZipSafely(InputStream is, File targetDir, boolean makeWorldReadable) in extractZipSafely() argument
134 FileUtils.ensureDirectoriesExist(targetDir, makeWorldReadable); in extractZipSafely()
145 File entryFile = FileUtils.createSubFile(targetDir, name); in extractZipSafely()
/system/incremental_delivery/incfs/
Dincfs.cpp408 static bool restoreconControlFiles(std::string_view targetDir) { in restoreconControlFiles() argument
410 {android::incfs::path::join(targetDir, INCFS_PENDING_READS_FILENAME), in restoreconControlFiles()
411 android::incfs::path::join(targetDir, INCFS_LOG_FILENAME)}; in restoreconControlFiles()
425 IncFsControl* IncFs_Mount(const char* backingPath, const char* targetDir, in IncFs_Mount() argument
433 if (auto err = isValidMountTarget(targetDir); err != 0) { in IncFs_Mount()
455 if (::mount(backingPath, targetDir, INCFS_NAME, MS_NOSUID | MS_NODEV | MS_NOATIME, in IncFs_Mount()
457 PLOG(ERROR) << "[incfs] Failed to mount IncFS filesystem: " << targetDir in IncFs_Mount()
462 if (!restoreconControlFiles(targetDir)) { in IncFs_Mount()
466 auto control = makeControl(targetDir); in IncFs_Mount()
1148 IncFsErrorCode IncFs_BindMount(const char* sourceDir, const char* targetDir) { in IncFs_BindMount() argument
[all …]
/system/incremental_delivery/incfs/include/
Dincfs_inline.h125 inline UniqueControl mount(std::string_view backingPath, std::string_view targetDir, in mount() argument
127 auto control = IncFs_Mount(details::c_str(backingPath), details::c_str(targetDir), options); in mount()
144 inline ErrorCode bindMount(std::string_view sourceDir, std::string_view targetDir) { in bindMount() argument
145 return IncFs_BindMount(details::c_str(sourceDir), details::c_str(targetDir)); in bindMount()
Dincfs_ndk.h154 IncFsControl* IncFs_Mount(const char* backingPath, const char* targetDir,
164 IncFsErrorCode IncFs_BindMount(const char* sourceDir, const char* targetDir);
Dincfs.h196 UniqueControl mount(std::string_view backingPath, std::string_view targetDir,
203 ErrorCode bindMount(std::string_view sourceDir, std::string_view targetDir);
/system/timezone/debug_tools/host/main/java/
DZoneSplitter.java111 private static void writeVersionFile(MappedByteBuffer mappedFile, File targetDir) in writeVersionFile() argument
121 writeStringUtf8ToFile(new File(targetDir, "version"), in writeVersionFile()
/system/vold/binder/android/os/
DIVold.aidl132 …temControlParcel mountIncFs(@utf8InCpp String backingPath, @utf8InCpp String targetDir, int flags); in mountIncFs() argument
134 void bindMount(@utf8InCpp String sourceDir, @utf8InCpp String targetDir); in bindMount() argument
/system/timezone/distro/installer/src/main/com/android/timezone/distro/installer/
DTimeZoneDistroInstaller.java409 private void unpackDistro(TimeZoneDistro distro, File targetDir) throws IOException { in unpackDistro() argument
410 Slog.i(logTag, "Unpacking update content to: " + targetDir); in unpackDistro()
411 distro.extractTo(targetDir); in unpackDistro()
/system/vold/
DVoldNativeService.cpp859 const std::string& backingPath, const std::string& targetDir, int32_t flags, in mountIncFs() argument
863 CHECK_ARGUMENT_PATH(targetDir); in mountIncFs()
865 auto control = IncFs_Mount(backingPath.c_str(), targetDir.c_str(), in mountIncFs()
891 const std::string& targetDir) { in bindMount() argument
894 CHECK_ARGUMENT_PATH(targetDir); in bindMount()
896 return translate(IncFs_BindMount(sourceDir.c_str(), targetDir.c_str())); in bindMount()
DVoldNativeService.h149 const std::string& backingPath, const std::string& targetDir, int32_t flags,
152 binder::Status bindMount(const std::string& sourceDir, const std::string& targetDir) override;
/system/tools/aidl/build/
Daidl_interface.go628 targetDir := filepath.Join(modulePath, m.apiDir(), version)
631 rb.Command().Text("mkdir -p " + targetDir)
632 rb.Command().Text("rm -rf " + targetDir + "/*")
634 rb.Command().Text("cp -rf " + dump.dir.String() + "/. " + targetDir).Implicits(dump.files)
643 rb.Command().Text("cp -rf " + dump.dir.String() + "/* " + targetDir).Implicits(dump.files)