/system/update_engine/cros/ |
D | image_properties_chromeos_unittest.cc | 39 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 …]
|
D | hardware_chromeos_unittest.cc | 40 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()
|
D | omaha_request_params_unittest.cc | 46 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()
|
D | requisition_util_unittest.cc | 66 base::FilePath(root_dir_.GetPath().value() + "/chronos/Local State"); in WriteJsonToFile()
|
D | fake_p2p_manager_configuration.h | 38 base::FilePath GetP2PDir() override { return p2p_dir_.GetPath(); } in GetP2PDir()
|
D | p2p_manager.cc | 152 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()
|
D | omaha_response_handler_action_unittest.cc | 501 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/ |
D | hwid_override_unittest.cc | 35 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()
|
D | utils_unittest.cc | 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() 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 …]
|
D | test_utils.cc | 244 *mnt_path = temp_dir_.GetPath().value(); in ScopedLoopMounter()
|
D | prefs_unittest.cc | 147 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()
|
D | subprocess_unittest.cc | 240 string fifo_path = tempdir.GetPath().Append("fifo").value(); in TEST_F()
|
/system/apex/apexd/ |
D | apex_file_repository.cpp | 66 } 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()
|
D | apex_file.cpp | 260 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()
|
D | apexd.cpp | 365 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 …]
|
D | apexd_verity.cpp | 64 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()
|
D | apexd_test.cpp | 514 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 …]
|
D | apex_file.h | 49 const std::string& GetPath() const { return apex_path_; } in GetPath() function
|
D | apexd_test_utils.h | 111 AllOf(Property("path", &ApexFile::GetPath, Eq(other.get().GetPath())),
|
D | apexd_prepostinstall.cpp | 79 LOG(VERBOSE) << name << " for " << apexes[hook_idx].GetPath(); in StageFnInstall()
|
D | apexservice.cpp | 190 out.modulePath = package.GetPath(); in submitStagedSession() 321 out.modulePath = package.GetPath(); in GetApexInfo() 449 return o.GetPath() == pkg.GetPath(); in getAllPackages()
|
D | apex_file_test.cpp | 303 ASSERT_EQ(real_path, apex_file->GetPath()); in TEST()
|
/system/update_engine/payload_generator/ |
D | squashfs_filesystem.cc | 104 unsquash_dir.GetPath().value(), in GetUpdateEngineConfig() 116 auto config_path = unsquash_dir.GetPath().Append(kUpdateEngineConf); in GetUpdateEngineConfig()
|
/system/update_engine/payload_consumer/ |
D | partition_update_generator_android_unittest.cc | 67 auto path = device_dir_.GetPath().value() + "/" + name; in SetUpBlockDevice()
|
/system/extras/simpleperf/ |
D | JITDebugReader.cpp | 241 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()
|