Home
last modified time | relevance | path

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

12

/system/update_engine/cros/
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()
57 WriteFileString(tempdir_.GetPath().Append("etc/lsb-release").value(), in TEST_F()
73 tempdir_.GetPath().Append("etc/lsb-release").value(), in TEST_F()
81 WriteFileString(tempdir_.GetPath().Append("etc/lsb-release").value(), in TEST_F()
95 WriteFileString(tempdir_.GetPath().Append("etc/lsb-release").value(), in TEST_F()
101 tempdir_.GetPath().value() + kStatefulPartition + "/etc/lsb-release", in TEST_F()
115 WriteFileString(tempdir_.GetPath().Append("etc/lsb-release").value(), in TEST_F()
121 tempdir_.GetPath().value() + kStatefulPartition + "/etc/lsb-release", in TEST_F()
[all …]
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()
Domaha_request_params_unittest.cc46 params_.set_root(tempdir_.GetPath().value()); in SetUp()
102 WriteFileString(tempdir_.GetPath().Append(".nodelta").value(), "")); in TEST_F()
110 params.set_root(tempdir_.GetPath().value()); in TEST_F()
115 params_.set_root(tempdir_.GetPath().value()); in TEST_F()
124 params.set_root(tempdir_.GetPath().value()); in TEST_F()
129 params_.set_root(tempdir_.GetPath().value()); in TEST_F()
138 params.set_root(tempdir_.GetPath().value()); in TEST_F()
149 params_.set_root(tempdir_.GetPath().value()); in TEST_F()
Drequisition_util_unittest.cc66 base::FilePath(root_dir_.GetPath().value() + "/chronos/Local State"); in WriteJsonToFile()
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);
304 FilePath P2PManagerImpl::GetPath(const string& file_id, Visibility visibility) { in GetPath() function in chromeos_update_engine::P2PManagerImpl
530 path = GetPath(file_id, kNonVisible); in FileShare()
580 path = GetPath(file_id, kVisible); in FileGetPath()
585 path = GetPath(file_id, kNonVisible); in FileGetPath()
Domaha_response_handler_action_unittest.cc501 params.set_root(tempdir.GetPath().value()); in TEST_F()
529 params.set_root(tempdir.GetPath().value()); in TEST_F()
557 params.set_root(tempdir.GetPath().value()); in TEST_F()
585 params.set_root(tempdir.GetPath().value()); in TEST_F()
616 params.set_root(tempdir.GetPath().value()); in TEST_F()
650 params.set_root(tempdir.GetPath().value()); in TEST_F()
683 params.set_root(tempdir.GetPath().value()); in TEST_F()
711 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.cc87 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()
394 EXPECT_FALSE(utils::IsMountpoint(mnt_dir.GetPath().value())); in TEST()
398 loop_dev, mnt_dir.GetPath().value(), MS_RDONLY, "ext4", "")); in TEST()
400 EXPECT_TRUE(utils::IsMountpoint(mnt_dir.GetPath().value())); in TEST()
402 string target_file = mnt_dir.GetPath().Append("empty-file").value(); in TEST()
405 EXPECT_TRUE(utils::UnmountFilesystem(mnt_dir.GetPath().value())); in TEST()
407 EXPECT_FALSE(utils::IsMountpoint(mnt_dir.GetPath().value())); in TEST()
410 EXPECT_FALSE(utils::UnmountFilesystem(mnt_dir.GetPath().value())); in TEST()
[all …]
Dtest_utils.cc244 *mnt_path = temp_dir_.GetPath().value(); in ScopedLoopMounter()
Dprefs_unittest.cc147 prefs_dir_ = temp_dir_.GetPath(); in SetUp()
172 auto ns1_path = temp_dir.GetPath().Append(ns1); in TEST()
184 ASSERT_TRUE(prefs.Init(temp_dir.GetPath())); in TEST()
Dsubprocess_unittest.cc240 string fifo_path = tempdir.GetPath().Append("fifo").value(); in TEST_F()
/system/apex/apexd/
Dapex_file_repository.cpp66 } else if (it->second.GetPath() != apex_file->GetPath()) { in ScanBuiltInDir()
78 LOG(level) << "Found two apex packages " << it->second.GetPath() in ScanBuiltInDir()
79 << " and " << apex_file->GetPath() in ScanBuiltInDir()
83 LOG(FATAL) << "Public key of apex package " << it->second.GetPath() in ScanBuiltInDir()
144 if (EndsWith(apex_file->GetPath(), kDecompressedApexPackageSuffix)) { in AddDataApex()
188 return it->second.GetPath(); in GetPreinstalledPath()
199 return it->second.GetPath(); in GetDataPath()
213 return apex.GetPath().starts_with(decompression_dir_); in IsDecompressedApex()
221 return it->second.GetPath() == apex.GetPath() || IsDecompressedApex(apex); in IsPreInstalledApex()
Dapex_file.cpp260 return Error() << "Error verifying " << apex.GetPath() << ": " in VerifyVbMetaSignature()
263 return Error() << "Error verifying " << apex.GetPath() << ": " in VerifyVbMetaSignature()
266 return Error() << "Error verifying " << apex.GetPath() << ": " in VerifyVbMetaSignature()
301 return Error() << "Error verifying " << apex.GetPath() << " : " in VerifyVbMeta()
364 unique_fd fd(open(GetPath().c_str(), O_RDONLY | O_CLOEXEC)); in VerifyApexVerity()
366 return ErrnoError() << "Failed to open " << GetPath(); in VerifyApexVerity()
405 const std::string& src_path = GetPath(); in Decompress()
417 return ErrnoError() << "Failed to open compressed APEX " << GetPath(); in Decompress()
Dapexd.cpp365 if (files_to_keep.find(apex_file->GetPath()) != files_to_keep.end()) { in RemovePreviouslyActiveApexFiles()
370 LOG(DEBUG) << "Deleting previously active apex " << apex_file->GetPath(); in RemovePreviouslyActiveApexFiles()
371 if (unlink(apex_file->GetPath().c_str()) != 0) { in RemovePreviouslyActiveApexFiles()
372 return ErrnoError() << "Failed to unlink " << apex_file->GetPath(); in RemovePreviouslyActiveApexFiles()
431 << apex.GetPath(); in MountPackageImpl()
461 const std::string& full_path = apex.GetPath(); in MountPackageImpl()
494 MountedApexData apex_data(loopback_device.name, apex.GetPath(), mount_point, in MountPackageImpl()
689 gMountedApexes.RemoveMountedApex(apex.GetManifest().name(), apex.GetPath(), in RunVerifyFnInsideTempMount()
789 return shim::ValidateUpdate(system_apex_path, to.GetPath()); in ValidateStagingShimApex()
945 if (link(apex_file->GetPath().c_str(), dest_path.c_str()) != 0) { in BackupActivePackages()
[all …]
Dapexd_verity.cpp64 TEMP_FAILURE_RETRY(open(apex.GetPath().c_str(), O_RDONLY | O_CLOEXEC))); in GenerateHashTree()
66 return ErrnoError() << "Failed to open " << apex.GetPath(); in GenerateHashTree()
177 << " does not match digest of " << apex.GetPath() << " : " in PrepareHashTree()
Dapexd_test.cpp514 ASSERT_EQ(return_value[0].GetPath(), in TEST_F()
958 ASSERT_EQ(active_apex->GetPath(), file_path); in TEST_F()
963 UnmountOnTearDown(ret->GetPath()); in TEST_F()
979 ASSERT_EQ(active_apex->GetPath(), ret->GetPath()); in TEST_F()
990 ASSERT_EQ(data.full_path, ret->GetPath()); in TEST_F()
1005 ASSERT_EQ(active_apex->GetPath(), file_path); in TEST_F()
1010 UnmountOnTearDown(ret->GetPath()); in TEST_F()
1020 ASSERT_EQ(active_apex->GetPath(), ret->GetPath()); in TEST_F()
1031 ASSERT_EQ(data.full_path, ret->GetPath()); in TEST_F()
1047 ASSERT_EQ(active_apex->GetPath(), file_path); in TEST_F()
[all …]
Dapex_file.h49 const std::string& GetPath() const { return apex_path_; } in GetPath() function
Dapexd_test_utils.h111 AllOf(Property("path", &ApexFile::GetPath, Eq(other.get().GetPath())),
Dapexd_prepostinstall.cpp79 LOG(VERBOSE) << name << " for " << apexes[hook_idx].GetPath(); in StageFnInstall()
Dapexservice.cpp190 out.modulePath = package.GetPath(); in submitStagedSession()
321 out.modulePath = package.GetPath(); in GetApexInfo()
449 return o.GetPath() == pkg.GetPath(); in getAllPackages()
Dapex_file_test.cpp303 ASSERT_EQ(real_path, apex_file->GetPath()); in TEST()
/system/update_engine/payload_generator/
Dsquashfs_filesystem.cc104 unsquash_dir.GetPath().value(), in GetUpdateEngineConfig()
116 auto config_path = unsquash_dir.GetPath().Append(kUpdateEngineConf); in GetUpdateEngineConfig()
/system/update_engine/payload_consumer/
Dpartition_update_generator_android_unittest.cc67 auto path = device_dir_.GetPath().value() + "/" + name; in SetUpBlockDevice()
/system/extras/simpleperf/
DJITDebugReader.cpp241 const std::string& GetPath() const { return path_; } in GetPath() function in simpleperf::TempSymFile
691 symfile->GetPath() + location_in_file, file_offset); in ReadJITCodeDebugInfo()
695 << symfile->GetPath() << location_in_file; in ReadJITCodeDebugInfo()

12