Home
last modified time | relevance | path

Searched refs:GetPath (Results 1 – 25 of 30) sorted by relevance

12

/system/update_engine/
Dimage_properties_chromeos_unittest.cc39 EXPECT_TRUE(base::CreateDirectory(tempdir_.GetPath().Append("etc"))); in SetUp()
41 tempdir_.GetPath().value() + kStatefulPartition + "/etc"))); in SetUp()
42 test::SetImagePropertiesRootPrefix(tempdir_.GetPath().value().c_str()); in SetUp()
58 WriteFileString(tempdir_.GetPath().Append("etc/lsb-release").value(), in TEST_F()
74 tempdir_.GetPath().Append("etc/lsb-release").value(), in TEST_F()
82 WriteFileString(tempdir_.GetPath().Append("etc/lsb-release").value(), in TEST_F()
96 WriteFileString(tempdir_.GetPath().Append("etc/lsb-release").value(), in TEST_F()
102 tempdir_.GetPath().value() + kStatefulPartition + "/etc/lsb-release", in TEST_F()
117 WriteFileString(tempdir_.GetPath().Append("etc/lsb-release").value(), in TEST_F()
123 tempdir_.GetPath().value() + kStatefulPartition + "/etc/lsb-release", in TEST_F()
[all …]
Domaha_request_params_unittest.cc47 params_.set_root(tempdir_.GetPath().value()); in SetUp()
106 WriteFileString(tempdir_.GetPath().Append(".nodelta").value(), "")); in TEST_F()
114 params.set_root(tempdir_.GetPath().value()); in TEST_F()
119 params_.set_root(tempdir_.GetPath().value()); in TEST_F()
128 params.set_root(tempdir_.GetPath().value()); in TEST_F()
133 params_.set_root(tempdir_.GetPath().value()); in TEST_F()
142 params.set_root(tempdir_.GetPath().value()); in TEST_F()
153 params_.set_root(tempdir_.GetPath().value()); in TEST_F()
Dhardware_chromeos_unittest.cc40 base::FilePath kFile(root_dir_.GetPath().value() + kStatefulPartition + in WriteStatefulConfig()
47 base::FilePath kFile(root_dir_.GetPath().value() + in WriteRootfsConfig()
55 hardware_.LoadConfig(root_dir_.GetPath().value(), normal_mode); in CallLoadConfig()
Dexcluder_chromeos_unittest.cc39 ASSERT_TRUE(base::PathExists(tempdir_.GetPath())); in SetUp()
40 ASSERT_TRUE(prefs_.Init(tempdir_.GetPath())); in SetUp()
Dimage_properties_android_unittest.cc40 osrelease_dir_ = tempdir_.GetPath().Append("etc/os-release.d"); in SetUp()
42 test::SetImagePropertiesRootPrefix(tempdir_.GetPath().value().c_str()); in SetUp()
54 WriteFileString(tempdir_.GetPath().Append("misc").value(), misc)); in WriteChannel()
Dfake_p2p_manager_configuration.h38 base::FilePath GetP2PDir() override { return p2p_dir_.GetPath(); } in GetP2PDir()
Dp2p_manager.cc152 FilePath GetPath(const string& file_id, Visibility visibility);
309 FilePath P2PManagerImpl::GetPath(const string& file_id, Visibility visibility) { in GetPath() function in chromeos_update_engine::P2PManagerImpl
534 path = GetPath(file_id, kNonVisible); in FileShare()
584 path = GetPath(file_id, kVisible); in FileGetPath()
589 path = GetPath(file_id, kNonVisible); in FileGetPath()
Domaha_response_handler_action_unittest.cc449 params.set_root(tempdir.GetPath().value()); in TEST_F()
482 params.set_root(tempdir.GetPath().value()); in TEST_F()
516 params.set_root(tempdir.GetPath().value()); in TEST_F()
550 params.set_root(tempdir.GetPath().value()); in TEST_F()
/system/update_engine/common/
Dhwid_override_unittest.cc35 ASSERT_TRUE(base::CreateDirectory(tempdir_.GetPath().Append("etc"))); in SetUp()
49 ASSERT_EQ(base::WriteFile(tempdir_.GetPath().Append("etc/lsb-release"), in TEST_F()
53 EXPECT_EQ(expected_hwid, HwidOverride::Read(tempdir_.GetPath())); in TEST_F()
58 ASSERT_EQ(base::WriteFile(tempdir_.GetPath().Append("etc/lsb-release"), in TEST_F()
62 EXPECT_EQ(std::string(), HwidOverride::Read(tempdir_.GetPath())); in TEST_F()
66 EXPECT_EQ(std::string(), HwidOverride::Read(tempdir_.GetPath())); in TEST_F()
Dutils_unittest.cc100 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()
407 EXPECT_FALSE(utils::IsMountpoint(mnt_dir.GetPath().value())); in TEST()
411 loop_dev, mnt_dir.GetPath().value(), MS_RDONLY, "ext4", "")); in TEST()
413 EXPECT_TRUE(utils::IsMountpoint(mnt_dir.GetPath().value())); in TEST()
415 string target_file = mnt_dir.GetPath().Append("empty-file").value(); in TEST()
418 EXPECT_TRUE(utils::UnmountFilesystem(mnt_dir.GetPath().value())); in TEST()
420 EXPECT_FALSE(utils::IsMountpoint(mnt_dir.GetPath().value())); in TEST()
423 EXPECT_FALSE(utils::UnmountFilesystem(mnt_dir.GetPath().value())); in TEST()
[all …]
Dprefs_unittest.cc130 prefs_dir_ = temp_dir_.GetPath(); in SetUp()
155 auto ns1_path = temp_dir.GetPath().Append(ns1); in TEST()
167 ASSERT_TRUE(prefs.Init(temp_dir.GetPath())); in TEST()
Dtest_utils.cc244 *mnt_path = temp_dir_.GetPath().value(); in ScopedLoopMounter()
Dsubprocess_unittest.cc231 string fifo_path = tempdir.GetPath().Append("fifo").value(); in TEST_F()
/system/apex/apexd/
Dapex_file.cpp191 << apex.GetPath(); in getPublicKeyName()
215 return Error() << "Error verifying " << apex.GetPath() << ": " in verifyVbMetaSignature()
218 return Error() << "Error verifying " << apex.GetPath() << ": " in verifyVbMetaSignature()
221 return Error() << "Error verifying " << apex.GetPath() << ": " in verifyVbMetaSignature()
238 return Error() << "Error verifying " << apex.GetPath() << ": " in verifyVbMetaSignature()
244 LOG(VERBOSE) << apex.GetPath() << ": public key matches."; in verifyVbMetaSignature()
317 unique_fd fd(open(GetPath().c_str(), O_RDONLY | O_CLOEXEC)); in VerifyApexVerity()
319 return ErrnoError() << "Failed to open " << GetPath(); in VerifyApexVerity()
Dapexd_verity.cpp63 TEMP_FAILURE_RETRY(open(apex.GetPath().c_str(), O_RDONLY | O_CLOEXEC))); in GenerateHashTree()
65 return ErrnoError() << "Failed to open " << apex.GetPath(); in GenerateHashTree()
169 << " does not match digest of " << apex.GetPath() << " : " in PrepareHashTree()
Dapexd.cpp309 if (files_to_keep.find(apex_file->GetPath()) != files_to_keep.end()) { in RemovePreviouslyActiveApexFiles()
314 LOG(DEBUG) << "Deleting previously active apex " << apex_file->GetPath(); in RemovePreviouslyActiveApexFiles()
315 if (unlink(apex_file->GetPath().c_str()) != 0) { in RemovePreviouslyActiveApexFiles()
316 return ErrnoError() << "Failed to unlink " << apex_file->GetPath(); in RemovePreviouslyActiveApexFiles()
391 const std::string& full_path = apex.GetPath(); in MountPackageImpl()
414 MountedApexData apex_data(loopbackDevice.name, apex.GetPath(), mountPoint, in MountPackageImpl()
654 return shim::ValidateUpdate(system_apex_path, to.GetPath()); in ValidateStagingShimApex()
802 if (link(apex_file->GetPath().c_str(), dest_path.c_str()) != 0) { in BackupActivePackages()
803 return ErrnoError() << "Failed to backup " << apex_file->GetPath(); in BackupActivePackages()
860 if (d.full_path == apex.GetPath()) { in UnmountPackage()
[all …]
Dapex_file.h50 const std::string& GetPath() const { return apex_path_; } in GetPath() function
Dapex_preinstalled_data.cpp73 apexPreInstalledData.path = apex_file->GetPath(); in collectPreinstalleDataFromDir()
Dapexd_prepostinstall.cpp80 LOG(VERBOSE) << name << " for " << apexes[hook_idx].GetPath(); in StageFnInstall()
Dapexservice.cpp180 out.modulePath = package.GetPath(); in submitStagedSession()
272 out.modulePath = package.GetPath(); in getApexInfo()
400 return o.GetPath() == pkg.GetPath(); in getAllPackages()
/system/extras/libperfmgr/tests/
DHintManagerTest.cc278 EXPECT_EQ(files_[0 + 2]->path, nodes[0]->GetPath()); in TEST_F()
279 EXPECT_EQ(files_[1 + 2]->path, nodes[1]->GetPath()); in TEST_F()
294 EXPECT_EQ(prop_, nodes[2]->GetPath()); in TEST_F()
371 EXPECT_EQ(files_[0 + 2]->path, nodes[0]->GetPath()); in TEST_F()
372 EXPECT_EQ(files_[1 + 2]->path, nodes[1]->GetPath()); in TEST_F()
387 EXPECT_EQ(prop_, nodes[2]->GetPath()); in TEST_F()
/system/extras/libperfmgr/include/perfmgr/
DNode.h65 const std::string& GetPath() const;
/system/extras/libperfmgr/
DNode.cc67 const std::string& Node::GetPath() const { in GetPath() function in android::perfmgr::Node
/system/update_engine/payload_generator/
Dsquashfs_filesystem.cc109 unsquash_dir.GetPath().value(), in GetUpdateEngineConfig()
121 auto config_path = unsquash_dir.GetPath().Append(kUpdateEngineConf); in GetUpdateEngineConfig()
/system/update_engine/payload_consumer/
Dpartition_update_generator_android_unittest.cc47 generator_->block_device_dir_ = device_dir_.GetPath().value(); in SetUp()

12