Home
last modified time | relevance | path

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

/system/tools/sysprop/tests/
DDirectoryUtilUnitTest.cpp28 TemporaryDir temp_dir; in TEST() local
30 ASSERT_FALSE(IsDirectory(temp_dir.path + "/test_dir/test_dir2/test_dir3"s)); in TEST()
32 CreateDirectories(temp_dir.path + "/test_dir/test_dir2/test_dir3"s)); in TEST()
33 ASSERT_TRUE(IsDirectory(temp_dir.path + "/test_dir/test_dir2/test_dir3"s)); in TEST()
35 rmdir((temp_dir.path + "/test_dir/test_dir2/test_dir3"s).c_str()); in TEST()
36 rmdir((temp_dir.path + "/test_dir/test_dir2"s).c_str()); in TEST()
37 rmdir((temp_dir.path + "/test_dir"s).c_str()); in TEST()
DCppGenTest.cpp491 TemporaryDir temp_dir; in TEST() local
493 std::string temp_sysprop_path = temp_dir.path + "/PlatformProperties.sysprop"s; in TEST()
502 temp_sysprop_path, temp_dir.path, temp_dir.path + "/system"s, in TEST()
503 temp_dir.path, "properties/PlatformProperties.sysprop.h", &err)); in TEST()
507 temp_dir.path + "/PlatformProperties.sysprop.h"s; in TEST()
509 temp_dir.path + "/system/PlatformProperties.sysprop.h"s; in TEST()
511 temp_dir.path + "/PlatformProperties.sysprop.cpp"s; in TEST()
DJavaGenTest.cpp372 TemporaryDir temp_dir; in TEST() local
375 ASSERT_TRUE(GenerateJavaLibrary(temp_file.path, temp_dir.path, &err)); in TEST()
379 temp_dir.path + "/com/somecompany/TestProperties.java"s; in TEST()
387 rmdir((temp_dir.path + "/com/somecompany"s).c_str()); in TEST()
388 rmdir((temp_dir.path + "/com"s).c_str()); in TEST()
/system/extras/perfprofd/dropbox/
Ddropbox.cc45 const std::string& temp_dir, in WriteDropboxFile() argument
50 snprintf(path, sizeof(path), "%s/dropboxtmp-XXXXXX", temp_dir.c_str()); in WriteDropboxFile()
/system/update_engine/payload_consumer/
Dpostinstall_runner_action.cc122 base::FilePath temp_dir; in PerformPartitionPostinstall() local
123 TEST_AND_RETURN(base::CreateNewTempDirectory("au_postint_mount", &temp_dir)); in PerformPartitionPostinstall()
124 fs_mount_dir_ = temp_dir.value(); in PerformPartitionPostinstall()
Ddelta_performer_unittest.cc997 base::ScopedTempDir temp_dir; in TEST_F() local
998 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST_F()
999 string non_existing_file = temp_dir.GetPath().Append("non-existing").value(); in TEST_F()
1000 string existing_file = temp_dir.GetPath().Append("existing").value(); in TEST_F()
/system/update_engine/common/
Dutils_unittest.cc98 base::ScopedTempDir temp_dir; in TEST() local
99 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST()
100 string temp_file = temp_dir.GetPath().Append("temp-file").value(); in TEST()
102 string temp_symlink = temp_dir.GetPath().Append("temp-symlink").value(); in TEST()
104 EXPECT_FALSE(utils::IsSymlink(temp_dir.GetPath().value().c_str())); in TEST()
Dutils.cc141 base::FilePath temp_dir; in GetTempName() local
143 temp_dir = base::FilePath(constants::kNonVolatileDirectory).Append("tmp"); in GetTempName()
145 TEST_AND_RETURN_FALSE(base::GetTempDir(&temp_dir)); in GetTempName()
147 if (!base::PathExists(temp_dir)) in GetTempName()
148 TEST_AND_RETURN_FALSE(base::CreateDirectory(temp_dir)); in GetTempName()
149 *template_path = temp_dir.Append(path); in GetTempName()
/system/core/adb/
Dtest_device.py1172 temp_dir = tempfile.mkdtemp()
1173 temp_files = make_random_host_files(in_dir=temp_dir, num_files=32)
1181 device.push(temp_dir, device_dir, sync=True)
1187 if temp_dir is not None:
1188 shutil.rmtree(temp_dir)