Home
last modified time | relevance | path

Searched refs:tmp_dir (Results 1 – 25 of 27) sorted by relevance

12

/aosp12/system/core/fs_mgr/libfs_avb/tests/
H A Dutil_test.cpp155 base::FilePath tmp_dir; in TEST() local
156 ASSERT_TRUE(GetTempDir(&tmp_dir)); in TEST()
176 base::FilePath tmp_dir; in TEST() local
177 ASSERT_TRUE(GetTempDir(&tmp_dir)); in TEST()
197 base::FilePath tmp_dir; in TEST() local
198 ASSERT_TRUE(GetTempDir(&tmp_dir)); in TEST()
218 base::FilePath tmp_dir; in TEST() local
219 ASSERT_TRUE(GetTempDir(&tmp_dir)); in TEST()
249 base::FilePath tmp_dir; in TEST() local
281 base::FilePath tmp_dir; in TEST() local
[all …]
H A Dfs_avb_test_util.cpp39 base::FilePath tmp_dir; in SetUp() local
40 ASSERT_TRUE(GetTempDir(&tmp_dir)); in SetUp()
41 base::CreateTemporaryDirInDir(tmp_dir, "libfs_avb-tests.", &test_dir_); in SetUp()
/aosp12/art/test/
H A Drun-test40 tmp_dir="${TMPDIR}/${test_dir}"
184 DEX_LOCATION=$tmp_dir
386 tmp_dir=$1
446 DEX_LOCATION=$tmp_dir
456 DEX_LOCATION=$tmp_dir
465 DEX_LOCATION=$tmp_dir
567 if [ -z $tmp_dir ] ; then
571 mkdir -p $tmp_dir
892 rm -rf "$tmp_dir"
894 cd "$tmp_dir"
[all …]
/aosp12/art/dexlayout/
H A Ddexlayout_test.cc295 std::string unzip_dir = tmp_dir + "unzip/"; in DexFileOutputExec()
299 { "-w", tmp_dir, "-o", tmp_name, dex_file }; in DexFileOutputExec()
317 if (!UnlinkFile(tmp_dir + dex_file_name)) { in DexFileOutputExec()
390 std::string dex_file = tmp_dir + "classes.dex"; in DexFileLayoutExec()
392 std::string profile_file = tmp_dir + "primary.prof"; in DexFileLayoutExec()
420 std::string dex_file = tmp_dir + "classes.dex"; in DexFileLayoutFixedPointExec()
427 tmp_dir, in DexFileLayoutFixedPointExec()
434 std::string profile_file = tmp_dir + "primary.prof"; in DexFileLayoutFixedPointExec()
482 std::string input_dex = tmp_dir + "classes.dex"; in UnreferencedCatchHandlerExec()
721 "-w", tmp_dir, in TEST_F()
[all …]
/aosp12/bionic/libc/tools/
H A Dndk_missing_symbols.py31 tmp_dir = tempfile.mkdtemp()
32 adb_pull('/system/lib/libc.so', tmp_dir)
33 adb_pull('/system/lib/libm.so', tmp_dir)
36 device = (symbols.GetFromElf(os.path.join(tmp_dir, 'libc.so')) |
37 symbols.GetFromElf(os.path.join(tmp_dir, 'libm.so')))
/aosp12/bionic/libc/bionic/
H A Dtmpfile.cpp54 static FILE* __tmpfile_dir_legacy(const char* tmp_dir) { in __tmpfile_dir_legacy() argument
56 if (asprintf(&path, "%s/tmp.XXXXXXXXXX", tmp_dir) == -1) { in __tmpfile_dir_legacy()
82 static FILE* __tmpfile_dir(const char* tmp_dir) { in __tmpfile_dir() argument
83 int fd = open(tmp_dir, O_TMPFILE | O_RDWR, S_IRUSR | S_IWUSR); in __tmpfile_dir()
84 if (fd == -1) return __tmpfile_dir_legacy(tmp_dir); in __tmpfile_dir()
/aosp12/system/timezone/
H A Dupdate-tzdata.py51 tmp_dir = tempfile.mkdtemp('-tzdata') variable
95 zone_compactor_setup_file = '%s/setup' % tmp_dir
108 icu_build_dir = '%s/icu' % tmp_dir
150 zic_build_dir = '%s/zic' % tmp_dir
172 zic_output_dir = '%s/data' % tmp_dir
255 print('Intermediate / working dir: %s' % tmp_dir)
271 iana_data_dir = '%s/iana_data' % tmp_dir
/aosp12/bionic/linker/
H A Dlinker_config_test.cpp137 TemporaryDir tmp_dir; in run_linker_config_smoke_test() local
139 std::string executable_path = std::string(tmp_dir.path) + "/some-binary"; in run_linker_config_smoke_test()
140 std::string version_file = std::string(tmp_dir.path) + "/.version"; in run_linker_config_smoke_test()
253 TemporaryDir tmp_dir; in TEST() local
255 std::string executable_path = std::string(tmp_dir.path) + "/some-binary"; in TEST()
274 TemporaryDir tmp_dir; in TEST() local
276 std::string sub_dir = std::string(tmp_dir.path) + "/subdir"; in TEST()
282 std::string symlink_path = std::string(tmp_dir.path) + "/symlink"; in TEST()
/aosp12/system/update_engine/scripts/
H A Dcow_converter.py42 def ConvertCOW(ota_path, target_file_path, tmp_dir, output_dir): argument
60 img_path = zfp.extract(fileinfo, tmp_dir)
81 with tempfile.TemporaryDirectory() as tmp_dir:
82 ConvertCOW(ota_path, target_file_path, tmp_dir, output_dir)
/aosp12/frameworks/base/api/
H A Dgen_combined_removed_dex.sh4 tmp_dir="$2"
9 "$metalava_path" --no-banner "$f" --dex-api "${tmp_dir}/tmp"
10 cat "${tmp_dir}/tmp"
/aosp12/bionic/benchmarks/linker_relocation/
H A Drun_bench_with_ninja.sh115 tmp_dir=$(mktemp -d)
116 work_dir=$tmp_dir/linker-reloc-bench
124 (cd $tmp_dir; tar -c linker-reloc-bench/linker_reloc_bench_main linker-reloc-bench/*.so \
153 rm -fr $tmp_dir
/aosp12/system/libbase/
H A Dfile.cpp122 std::string tmp_dir; in GetSystemTempDir()
123 CHECK(android::base::WideToUTF8(tmp_dir_w, &tmp_dir)) << "path can't be converted to utf8"; in GetSystemTempDir()
125 return tmp_dir; in GetSystemTempDir()
139 TemporaryFile::TemporaryFile(const std::string& tmp_dir) { in TemporaryFile() argument
140 init(tmp_dir); in TemporaryFile()
158 void TemporaryFile::init(const std::string& tmp_dir) { in init() argument
159 snprintf(path, sizeof(path), "%s%cTemporaryFile-XXXXXX", tmp_dir.c_str(), OS_PATH_SEPARATOR); in init()
202 bool TemporaryDir::init(const std::string& tmp_dir) { in init() argument
203 snprintf(path, sizeof(path), "%s%cTemporaryDir-XXXXXX", tmp_dir.c_str(), OS_PATH_SEPARATOR); in init()
/aosp12/system/extras/simpleperf/scripts/test/
H A Dbinary_cache_builder_test.py77 with tempfile.TemporaryDirectory() as tmp_dir:
81 Path(tmp_dir) / 'simpleperf_runtest_two_functions_arm64')
83 debug_dir = Path(tmp_dir) / 'debug'
88 binary_cache_builder.copy_binaries_from_symfs_dirs([tmp_dir])
/aosp12/system/libbase/include/android-base/
H A Dfile.h41 explicit TemporaryFile(const std::string& tmp_dir);
54 void init(const std::string& tmp_dir);
71 bool init(const std::string& tmp_dir);
/aosp12/system/libprocinfo/
H A Dprocess_test.cpp165 TemporaryDir tmp_dir; in TEST() local
167 android::base::unique_fd dirfd(open(tmp_dir.path, O_DIRECTORY | O_RDONLY)); in TEST()
179 std::string status_file = std::string(tmp_dir.path) + "/status"; in TEST()
193 std::string stat_file = std::string(tmp_dir.path) + "/stat"; in TEST()
/aosp12/system/linkerconfig/modules/tests/
H A Dapex_testbase.h27 TemporaryDir tmp_dir; member
31 root = tmp_dir.path; in SetUp()
/aosp12/system/bt/osi/test/
H A Dconfig_test.cc253 auto tmp_dir = std::filesystem::temp_directory_path(); in TEST_F() local
254 auto filename = tmp_dir / "test.checksum"; in TEST_F()
267 auto tmp_dir = std::filesystem::temp_directory_path(); in TEST_F() local
268 auto filename = tmp_dir / "test.checksum"; in TEST_F()
/aosp12/packages/modules/adb/
H A Dadb_utils.cpp346 const char* tmp_dir = getenv("TMPDIR"); in GetLogFilePath() local
347 if (tmp_dir == nullptr) tmp_dir = "/tmp"; in GetLogFilePath()
348 return android::base::StringPrintf("%s/adb.%u.log", tmp_dir, getuid()); in GetLogFilePath()
/aosp12/packages/services/Car/cpp/bugreport/
H A Dmain.cpp380 void takeScreenshotForDisplayId(PhysicalDisplayId id, const char* tmp_dir, in takeScreenshotForDisplayId() argument
383 std::string filename = std::string(tmp_dir) + kScreenshotPrefix + id_as_string + ".png"; in takeScreenshotForDisplayId()
396 void takeScreenshot(const char* tmp_dir, std::vector<std::string>* extra_files) { in takeScreenshot() argument
401 takeScreenshotForDisplayId(display_id, tmp_dir, extra_files); in takeScreenshot()
/aosp12/system/extras/simpleperf/
H A Denvironment.h103 static std::unique_ptr<ScopedTempFiles> Create(const std::string& tmp_dir);
111 ScopedTempFiles(const std::string& tmp_dir);
H A Denvironment.cpp835 std::unique_ptr<ScopedTempFiles> ScopedTempFiles::Create(const std::string& tmp_dir) { in Create() argument
836 if (access(tmp_dir.c_str(), W_OK | X_OK) != 0) { in Create()
839 return std::unique_ptr<ScopedTempFiles>(new ScopedTempFiles(tmp_dir)); in Create()
842 ScopedTempFiles::ScopedTempFiles(const std::string& tmp_dir) { in ScopedTempFiles() argument
844 tmp_dir_ = tmp_dir; in ScopedTempFiles()
/aosp12/build/make/tools/releasetools/
H A Dapex_utils.py540 tmp_dir = input_file
542 tmp_dir = UnzipTemp(input_file, [os.path.join(apex_subdir, '*')])
543 target_dir = os.path.join(tmp_dir, apex_subdir)
/aosp12/system/apex/apexd/
H A Dapex_file_test.cpp233 TemporaryDir tmp_dir; in TEST() local
237 tmp_dir.path + package_name + ".capex"; in TEST()
/aosp12/system/core/debuggerd/
H A Ddebuggerd_test.cpp1702 static bool CopySharedLibrary(const char* tmp_dir, std::string* tmp_so_name) { in CopySharedLibrary() argument
1712 *tmp_so_name = std::string(tmp_dir) + "/libcrash_test.so"; in CopySharedLibrary()
1713 std::string cp_cmd = android::base::StringPrintf("cp %s %s", test_lib.c_str(), tmp_dir); in CopySharedLibrary()
/aosp12/bionic/tests/
H A Dstdlib_test.cpp67 void init(const char* tmp_dir) { in init() argument
68 snprintf(path, sizeof(path), "%s/TemporaryFile-XXXXXX", tmp_dir); in init()

12