/system/bt/gd/os/linux_generic/ |
D | files_test.cc | 32 auto temp_dir = std::filesystem::temp_directory_path(); in TEST() local 33 auto temp_file = temp_dir / "file_1.txt"; in TEST() 37 auto none_file = temp_dir / "file_nope.txt"; in TEST() 42 auto temp_dir = std::filesystem::temp_directory_path(); in TEST() local 43 auto temp_file = temp_dir / "file_1.txt"; in TEST() 47 auto to_file = temp_dir / "file_2.txt"; in TEST() 56 auto temp_dir = std::filesystem::temp_directory_path(); in TEST() local 57 auto temp_file = temp_dir / "file_1.txt"; in TEST() 65 auto temp_dir = std::filesystem::temp_directory_path(); in TEST() local 66 auto temp_file = temp_dir / "file_1.txt"; in TEST() [all …]
|
/system/bt/gd/storage/ |
D | legacy_config_file_test.cc | 36 auto temp_dir = std::filesystem::temp_directory_path(); in TEST() local 37 auto temp_config = temp_dir / "temp_config.txt"; in TEST() 82 auto temp_dir = std::filesystem::temp_directory_path(); in TEST() local 83 auto temp_config = temp_dir / "temp_config.txt"; in TEST() 111 auto temp_dir = std::filesystem::temp_directory_path(); in TEST() local 112 auto temp_config = temp_dir / "temp_config.txt"; in TEST() 172 auto temp_dir = std::filesystem::temp_directory_path(); in TEST() local 173 auto temp_config = temp_dir / "temp_config.txt"; in TEST()
|
/system/tools/sysprop/tests/ |
D | JavaGenTest.cpp | 625 TemporaryDir temp_dir; in TEST() local 633 ASSERT_RESULT_OK(GenerateJavaLibrary(temp_file.path, scope, temp_dir.path)); in TEST() 636 temp_dir.path + "/com/somecompany/TestProperties.java"s; in TEST() 644 rmdir((temp_dir.path + "/com/somecompany"s).c_str()); in TEST() 645 rmdir((temp_dir.path + "/com"s).c_str()); in TEST()
|
/system/security/keystore2/src/ |
D | id_rotation.rs | 84 let temp_dir = TempDir::new("test_had_factory_reset_since_id_rotation_") in test_had_factory_reset_since_id_rotation() localVariable 86 let id_rotation_state = IdRotationState::new(&temp_dir.path()); in test_had_factory_reset_since_id_rotation() 88 let mut temp_file_path = temp_dir.path().to_owned(); in test_had_factory_reset_since_id_rotation()
|
D | legacy_blob.rs | 1273 let temp_dir = TempDir::new("test_is_empty").expect("Failed to create temp dir."); in test_is_empty() localVariable 1274 let legacy_blob_loader = LegacyBlobLoader::new(temp_dir.path()); in test_is_empty() 1278 let _db = crate::database::KeystoreDB::new(temp_dir.path(), None) in test_is_empty() 1283 std::fs::create_dir(&*temp_dir.build().push("user_0")).expect("Failed to create user_0."); in test_is_empty() 1287 std::fs::create_dir(&*temp_dir.build().push("user_10")).expect("Failed to create user_10."); in test_is_empty() 1291 std::fs::remove_dir_all(&*temp_dir.build().push("user_0")) in test_is_empty() 1296 std::fs::remove_dir_all(&*temp_dir.build().push("user_10")) in test_is_empty() 1304 let temp_dir = TempDir::new("legacy_blob_test")?; in test_legacy_blobs() localVariable 1305 std::fs::create_dir(&*temp_dir.build().push("user_0"))?; in test_legacy_blobs() 1307 std::fs::write(&*temp_dir.build().push("user_0").push(".masterkey"), SUPERKEY)?; in test_legacy_blobs() [all …]
|
D | database.rs | 3394 let temp_dir = TempDir::new("persistent_db_test")?; in test_persistence_for_files() localVariable 3395 let mut db = KeystoreDB::new(temp_dir.path(), None)?; in test_persistence_for_files() 3401 let db = KeystoreDB::new(temp_dir.path(), None)?; in test_persistence_for_files() 3535 let temp_dir = in test_remove_expired_certs() localVariable 3537 let mut db = new_test_db_with_gc(temp_dir.path(), |_, _| Ok(()))?; in test_remove_expired_certs() 4486 let temp_dir = Arc::new(TempDir::new("test_upgrade_0_to_1").unwrap()); in test_upgrade_0_to_1() localVariable 4487 let mut db = KeystoreDB::new(temp_dir.path(), None).unwrap(); in test_upgrade_0_to_1() 4631 let temp_dir = Arc::new(TempDir::new("id_lock_test")?); in test_insert_and_load_full_keyentry_domain_app_concurrently() localVariable 4632 let temp_dir_clone = temp_dir.clone(); in test_insert_and_load_full_keyentry_domain_app_concurrently() 4633 let mut db = KeystoreDB::new(temp_dir.path(), None)?; in test_insert_and_load_full_keyentry_domain_app_concurrently() [all …]
|
/system/vold/tests/ |
D | Utils_test.cpp | 48 TemporaryDir temp_dir; in TEST_F() local 51 ASSERT_TRUE(android::base::Realpath(temp_dir.path, &temp_dir_path)); in TEST_F()
|
/system/security/keystore2/test_utils/ |
D | lib.rs | 20 use std::{env::temp_dir, ops::Deref}; 37 let mut tmp = temp_dir(); in new()
|
/system/logging/liblog/tests/ |
D | logd_writer_test.cpp | 36 auto temp_dir = TemporaryDir(); in TEST() local 37 auto socket_path = StringPrintf("%s/test_socket", temp_dir.path); in TEST()
|
/system/update_engine/common/ |
D | utils_unittest.cc | 85 base::ScopedTempDir temp_dir; in TEST() local 86 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST() 87 string temp_file = temp_dir.GetPath().Append("temp-file").value(); in TEST() 89 string temp_symlink = temp_dir.GetPath().Append("temp-symlink").value(); in TEST() 91 EXPECT_FALSE(utils::IsSymlink(temp_dir.GetPath().value().c_str())); in TEST()
|
D | utils.cc | 99 base::FilePath temp_dir; in GetTempName() local 101 temp_dir = base::FilePath(constants::kNonVolatileDirectory).Append("tmp"); in GetTempName() 103 TEST_AND_RETURN_FALSE(base::GetTempDir(&temp_dir)); in GetTempName() 105 if (!base::PathExists(temp_dir)) in GetTempName() 106 TEST_AND_RETURN_FALSE(base::CreateDirectory(temp_dir)); in GetTempName() 107 *template_path = temp_dir.Append(path); in GetTempName()
|
D | prefs_unittest.cc | 170 base::ScopedTempDir temp_dir; in TEST() local 171 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST() 172 auto ns1_path = temp_dir.GetPath().Append(ns1); in TEST() 184 ASSERT_TRUE(prefs.Init(temp_dir.GetPath())); in TEST()
|
/system/update_engine/payload_consumer/ |
D | postinstall_runner_action.cc | 62 base::FilePath temp_dir; in PostinstallRunnerAction() 63 TEST_AND_RETURN(base::CreateNewTempDirectory("au_postint_mount", &temp_dir)); in PostinstallRunnerAction() 64 fs_mount_dir_ = temp_dir.value(); in PostinstallRunnerAction()
|
D | postinstall_runner_action_unittest.cc | 219 base::FilePath temp_dir; in RunPostinstallActionWithInstallPlan() local 220 TEST_AND_RETURN(base::CreateNewTempDirectory("postinstall", &temp_dir)); in RunPostinstallActionWithInstallPlan() 221 postinstall_action_->SetMountDir(temp_dir.value()); in RunPostinstallActionWithInstallPlan()
|
D | delta_performer_unittest.cc | 1006 base::ScopedTempDir temp_dir; in TEST_F() local 1007 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST_F() 1008 string non_existing_file = temp_dir.GetPath().Append("non-existing").value(); in TEST_F() 1009 string existing_file = temp_dir.GetPath().Append("existing").value(); in TEST_F()
|
/system/libziparchive/ |
D | test_ziparchive_large.py | 51 temp_dir = tempfile.mkdtemp() 52 cmd = ['ziptool', 'unzip', '-d', temp_dir, zip_name]
|
/system/security/keystore2/legacykeystore/ |
D | lib.rs | 626 let temp_dir = Arc::new( in concurrent_legacy_keystore_entry_test() localVariable 631 let db_path = temp_dir.build().push(LegacyKeystore::LEGACY_KEYSTORE_FILE_NAME).to_owned(); in concurrent_legacy_keystore_entry_test()
|
/system/core/fastboot/ |
D | fastboot.cpp | 1833 TemporaryDir temp_dir; in wipe_super() local 1837 ok = WriteSplitImageFiles(temp_dir.path, metadata, block_size, {}, true); in wipe_super() 1839 auto image_path = temp_dir.path + "/"s + super_bdev_name + ".img"; in wipe_super() 1858 auto image_path = temp_dir.path + "/"s + image_name; in wipe_super()
|