Home
last modified time | relevance | path

Searched refs:GetPath (Results 1 – 25 of 27) 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()
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.cc153 FilePath GetPath(const string& file_id, Visibility visibility);
310 FilePath P2PManagerImpl::GetPath(const string& file_id, Visibility visibility) { in GetPath() function in chromeos_update_engine::P2PManagerImpl
535 path = GetPath(file_id, kNonVisible); in FileShare()
585 path = GetPath(file_id, kVisible); in FileGetPath()
590 path = GetPath(file_id, kNonVisible); in FileGetPath()
Domaha_response_handler_action_unittest.cc447 params.set_root(tempdir.GetPath().value()); in TEST_F()
479 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()
442 EXPECT_FALSE(utils::IsMountpoint(mnt_dir.GetPath().value())); in TEST()
446 loop_dev, mnt_dir.GetPath().value(), MS_RDONLY, "ext4", "")); in TEST()
448 EXPECT_TRUE(utils::IsMountpoint(mnt_dir.GetPath().value())); in TEST()
450 string target_file = mnt_dir.GetPath().Append("empty-file").value(); in TEST()
453 EXPECT_TRUE(utils::UnmountFilesystem(mnt_dir.GetPath().value())); in TEST()
455 EXPECT_FALSE(utils::IsMountpoint(mnt_dir.GetPath().value())); in TEST()
458 EXPECT_FALSE(utils::UnmountFilesystem(mnt_dir.GetPath().value())); in TEST()
[all …]
Dtest_utils.cc220 *mnt_path = temp_dir_.GetPath().value(); in ScopedLoopMounter()
Dsubprocess_unittest.cc227 string fifo_path = tempdir.GetPath().Append("fifo").value(); in TEST_F()
Dprefs_unittest.cc47 prefs_dir_ = temp_dir_.GetPath(); in SetUp()
/system/apex/apexd/
Dapexd_prepostinstall.cpp70 LOG(VERBOSE) << name << " for " << hook_file->GetPath(); in StageFnInstall()
78 LOG(ERROR) << "Failed to unmount " << f->GetPath() << " after " << name in StageFnInstall()
95 if (!apexd_private::IsMounted(apex.GetManifest().name(), apex.GetPath())) { in StageFnInstall()
121 hook_file->GetPath(), // Make the APEX with hook first. in StageFnInstall()
125 args.push_back(apex.GetPath()); in StageFnInstall()
Dapex_file.cpp260 << apex.GetPath()); in getPublicKeyName()
286 << "Error verifying " << apex.GetPath() << ": " in verifyVbMetaSignature()
290 << "Error verifying " << apex.GetPath() << ": " in verifyVbMetaSignature()
294 << "Error verifying " << apex.GetPath() << ": " in verifyVbMetaSignature()
316 LOG(WARNING) << "Verifying " << apex.GetPath() << " with the bundled key"; in verifyVbMetaSignature()
323 LOG(VERBOSE) << apex.GetPath() << ": public key matches."; in verifyVbMetaSignature()
328 << "Error verifying " << apex.GetPath() << ": " in verifyVbMetaSignature()
407 unique_fd fd(open(GetPath().c_str(), O_RDONLY | O_CLOEXEC)); in VerifyApexVerity()
410 << GetPath()); in VerifyApexVerity()
Dapexd.cpp344 if (files_to_keep.find(apex_file->GetPath()) != files_to_keep.end()) { in RemovePreviouslyActiveApexFiles()
349 LOG(DEBUG) << "Deleting previously active apex " << apex_file->GetPath(); in RemovePreviouslyActiveApexFiles()
350 if (unlink(apex_file->GetPath().c_str()) != 0) { in RemovePreviouslyActiveApexFiles()
352 << "Failed to unlink " << apex_file->GetPath()); in RemovePreviouslyActiveApexFiles()
401 const std::string& full_path = apex.GetPath(); in mountNonFlattened()
432 MountedApexData apex_data(loopbackDevice.name, apex.GetPath(), mountPoint, in mountNonFlattened()
507 if (!isPathForBuiltinApexes(apex.GetPath())) { in mountFlattened()
509 << apex.GetPath()); in mountFlattened()
512 if (mount(apex.GetPath().c_str(), mountPoint.c_str(), nullptr, MS_BIND, in mountFlattened()
515 << apex.GetPath() << " on " << mountPoint; in mountFlattened()
[all …]
Dapex_file.h49 const std::string& GetPath() const { return apex_path_; } in GetPath() function
Dapexservice.cpp170 out.packagePath = package.GetPath(); in submitStagedSession()
262 out.packagePath = package.GetPath(); in getApexInfo()
371 ::android::apex::isPathForBuiltinApexes(package.GetPath()); in getActivePackages()
383 aidl_return->packagePath = apex->GetPath(); in getActivePackage()
388 ::android::apex::isPathForBuiltinApexes(apex->GetPath()); in getActivePackage()
/system/extras/libperfmgr/tools/
DConfigVerifier.cc55 if (!android::base::WriteStringToFile(value, node->GetPath())) { in VerifyNodes()
56 LOG(ERROR) << "Failed to write to node: " << node->GetPath() in VerifyNodes()
60 LOG(VERBOSE) << "Wrote to node: " << node->GetPath() in VerifyNodes()
/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()
DPropertyNodeTest.cc110 EXPECT_EQ(test_path, t.GetPath()); in TEST()
DFileNodeTest.cc101 EXPECT_EQ(test_path, t.GetPath()); in TEST()
/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/extras/simpleperf/
DUnixSocket.h109 const std::string& GetPath() const { return path_; } in GetPath() function
/system/update_engine/payload_consumer/
Ddelta_performer_unittest.cc999 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()

12