Home
last modified time | relevance | path

Searched refs:FilePath (Results 1 – 25 of 72) sorted by relevance

123

/system/core/fs_mgr/libfs_avb/tests/
Dfs_avb_test_util.h51 base::FilePath path;
59 base::FilePath key_blob_path;
62 inline android::base::unique_fd OpenUniqueReadFd(const base::FilePath& file_path) { in OpenUniqueReadFd()
81 base::FilePath GenerateVBMetaImage(
83 const base::FilePath& key_path,
84 const std::vector<base::FilePath>& include_descriptor_image_paths,
90 base::FilePath ExtractVBMetaImage(const base::FilePath& image_path,
96 base::FilePath GenerateImage(const std::string& file_name, size_t image_size,
100 void AddAvbFooter(const base::FilePath& image_path, const std::string& footer_type,
103 const base::FilePath& avb_signing_key, const std::string& salt = "d00df00d",
[all …]
Dfs_avb_test_util.cpp29 base::FilePath BaseFsAvbTest::data_dir_ = base::FilePath("tests/data");
36 base::SetCurrentDirectory(base::FilePath(android::base::GetExecutableDirectory())); in SetUp()
39 base::FilePath tmp_dir; in SetUp()
56 base::FilePath image_path = iter->second.path; in CalcVBMetaDigest()
57 base::FilePath vbmeta_digest_path = test_dir_.Append("vbmeta_digest"); in CalcVBMetaDigest()
72 base::FilePath BaseFsAvbTest::GenerateVBMetaImage( in GenerateVBMetaImage()
74 const base::FilePath& key_path, in GenerateVBMetaImage()
75 const std::vector<base::FilePath>& include_descriptor_image_paths, in GenerateVBMetaImage()
120 base::FilePath BaseFsAvbTest::ExtractVBMetaImage(const base::FilePath& image_path, in ExtractVBMetaImage()
146 base::FilePath BaseFsAvbTest::GenerateImage(const std::string& file_name, size_t image_size, in GenerateImage()
[all …]
Dutil_test.cpp155 base::FilePath tmp_dir; in TEST()
159 base::FilePath wait_path = tmp_dir.Append("libfs_avb-test-exist-dir"); in TEST()
170 base::FilePath wait_path("/path/not/exist"); in TEST()
176 base::FilePath tmp_dir; in TEST()
180 base::FilePath wait_path = tmp_dir.Append("libfs_avb-test-exist-dir"); in TEST()
197 base::FilePath tmp_dir; in TEST()
201 base::FilePath wait_path = tmp_dir.Append("libfs_avb-test-exist-dir"); in TEST()
218 base::FilePath tmp_dir; in TEST()
222 base::FilePath test_dir; in TEST()
226 base::FilePath file_path_1 = test_dir.Append("1.txt"); in TEST()
[all …]
Dfs_avb_test.cpp43 void ModifyVBMetaHeaderFlags(const base::FilePath& vbmeta_image_path, uint32_t flags);
46 void PublicFsAvbTest::ModifyVBMetaHeaderFlags(const base::FilePath& vbmeta_image_path, in ModifyVBMetaHeaderFlags()
67 base::FilePath boot_path = GenerateImage("boot.img", boot_image_size); in TEST_F()
77 base::FilePath system_path = GenerateImage("system.img", system_image_size); in TEST_F()
84 base::FilePath rsa2048_public_key = in TEST_F()
86 base::FilePath rsa4096_public_key = in TEST_F()
138 base::FilePath boot_path = GenerateImage("boot.img", boot_image_size); in TEST_F()
148 base::FilePath system_path = GenerateImage("system.img", system_image_size); in TEST_F()
155 base::FilePath rsa2048_public_key = in TEST_F()
157 base::FilePath rsa4096_public_key = in TEST_F()
[all …]
Dbasic_test.cpp29 base::FilePath boot_path = GenerateImage("boot.img", image_size); in TEST_F()
77 base::FilePath boot_path = GenerateImage("boot.img", image_size); in TEST_F()
116 base::FilePath system_path = GenerateImage("system.img", image_size); in TEST_F()
162 base::FilePath boot_path = GenerateImage("boot.img", boot_image_size); in TEST_F()
171 base::FilePath system_path = GenerateImage("system.img", system_image_size); in TEST_F()
226 base::FilePath boot_path = GenerateImage("boot.img", boot_image_size); in TEST_F()
235 base::FilePath system_path = GenerateImage("system.img", system_image_size); in TEST_F()
242 base::FilePath rsa2048_public_key = in TEST_F()
244 base::FilePath rsa4096_public_key = in TEST_F()
Davb_util_test.cpp58 void ModifyFile(const base::FilePath& file_path, size_t offset, ssize_t length);
61 bool CompareVBMeta(const base::FilePath& avb_image_path, const VBMetaData& expected_vbmeta);
64 void SetVBMetaFlags(const base::FilePath& image_path, uint32_t flags);
67 void AvbUtilTest::SetVBMetaFlags(const base::FilePath& image_path, uint32_t flags) { in SetVBMetaFlags()
161 base::FilePath image_path = GenerateImage("test.img", image_size); in TEST_F()
176 base::FilePath image_path = GenerateImage("test.img", image_size); in TEST_F()
190 base::FilePath system_path = GenerateImage("system.img", image_size); in TEST_F()
255 base::FilePath system_path = GenerateImage("system.img", image_size); in TEST_F()
266 base::FilePath system_path = GenerateImage("system.img", image_size); in TEST_F()
297 base::FilePath boot_path = GenerateImage("boot.img", boot_image_size); in TEST_F()
[all …]
Dfs_avb_util_test.cpp35 base::FilePath system_path = GenerateImage("system.img", system_image_size); in TEST_F()
109 base::FilePath boot_path = GenerateImage("boot.img", image_size); in TEST_F()
/system/update_engine/cros/
Dhardware_chromeos.cc173 return HwidOverride::Read(base::FilePath("/")); in GetHardwareClass()
181 return ReadDeviceRequisition(base::FilePath(kLocalStatePath)); in GetDeviceRequisition()
217 base::FilePath marker_path = in GetPowerwashCount()
218 base::FilePath(kPowerwashSafeDirectory).Append(kPowerwashCountMarker); in GetPowerwashCount()
256 bool result = base::DeleteFile(base::FilePath(kPowerwashMarkerFile)); in CancelPowerwash()
267 if (!base::DeleteFile(base::FilePath(kRollbackSaveMarkerFile))) { in CancelPowerwash()
274 bool HardwareChromeOS::GetNonVolatileDirectory(base::FilePath* path) const { in GetNonVolatileDirectory()
275 *path = base::FilePath(constants::kNonVolatileDirectory); in GetNonVolatileDirectory()
279 bool HardwareChromeOS::GetPowerwashSafeDirectory(base::FilePath* path) const { in GetPowerwashSafeDirectory()
280 *path = base::FilePath(kPowerwashSafeDirectory); in GetPowerwashSafeDirectory()
[all …]
Dp2p_manager.cc61 using base::FilePath;
92 FilePath GetP2PDir() override { return FilePath(kDefaultP2PDir); } in GetP2PDir()
135 FilePath FileGetPath(const string& file_id) override;
152 FilePath GetPath(const string& file_id, Visibility visibility);
159 bool DeleteP2PFile(const FilePath& path, const string& reason);
285 static bool MatchCompareFunc(const pair<FilePath, Time>& a, in MatchCompareFunc() argument
286 const pair<FilePath, Time>& b) { in MatchCompareFunc()
304 FilePath P2PManagerImpl::GetPath(const string& file_id, Visibility visibility) { in GetPath()
308 bool P2PManagerImpl::DeleteP2PFile(const FilePath& path, const string& reason) { in DeleteP2PFile()
320 FilePath p2p_dir = configuration_->GetP2PDir(); in PerformHousekeeping()
[all …]
Dlogging.cc47 base::FilePath(symlink_path), base::FilePath(log_path), nullptr); in SetupLogSymlink()
49 base::DeletePathRecursively(base::FilePath(symlink_path)); in SetupLogSymlink()
Drequisition_util_unittest.cc66 base::FilePath(root_dir_.GetPath().value() + "/chronos/Local State"); in WriteJsonToFile()
72 base::FilePath path_;
Dhardware_chromeos_unittest.cc40 base::FilePath kFile(root_dir_.GetPath().value() + kStatefulPartition + in WriteStatefulConfig()
47 base::FilePath kFile(root_dir_.GetPath().value() + in WriteRootfsConfig()
Dhardware_chromeos.h58 bool GetNonVolatileDirectory(base::FilePath* path) const override;
59 bool GetPowerwashSafeDirectory(base::FilePath* path) const override;
Dfake_p2p_manager.h58 base::FilePath FileGetPath(const std::string& file_id) override { in FileGetPath()
59 return base::FilePath(); in FileGetPath()
Dp2p_manager.h45 virtual base::FilePath GetP2PDir() = 0;
127 virtual base::FilePath FileGetPath(const std::string& file_id) = 0;
Drequisition_util.h28 std::string ReadDeviceRequisition(const base::FilePath& local_state);
/system/update_engine/common/
Dprefs.cc37 void DeleteEmptyDirectories(const base::FilePath& path) { in DeleteEmptyDirectories()
40 for (base::FilePath dir_path = path_enum.Next(); !dir_path.empty(); in DeleteEmptyDirectories()
157 bool Prefs::Init(const base::FilePath& prefs_dir) { in Init()
161 bool Prefs::FileStorage::Init(const base::FilePath& prefs_dir) { in Init()
169 base::FilePath filename; in GetKey()
179 base::FilePath filename; in GetSubKeys()
183 for (base::FilePath f = namespace_enum.Next(); !f.empty(); in GetSubKeys()
196 base::FilePath filename; in SetKey()
209 base::FilePath filename; in KeyExists()
215 base::FilePath filename; in DeleteKey()
[all …]
Dhwid_override.cc35 string HwidOverride::Read(const base::FilePath& root) { in Read()
37 lsb_release.Load(base::FilePath(root.value() + "/etc/lsb-release")); in Read()
Dhardware_interface.h113 virtual bool GetNonVolatileDirectory(base::FilePath* path) const = 0;
118 virtual bool GetPowerwashSafeDirectory(base::FilePath* path) const = 0;
Dprefs.h110 bool Init(const base::FilePath& prefs_dir);
121 bool Init(const base::FilePath& prefs_dir);
139 base::FilePath* filename) const;
142 base::FilePath prefs_dir_;
Dtest_utils.cc120 base::FilePath(filename).BaseName().value().c_str(), in SetLoopDeviceStatus()
254 base::FilePath GetBuildArtifactsPath() { in GetBuildArtifactsPath()
255 base::FilePath exe_path; in GetBuildArtifactsPath()
256 base::ReadSymbolicLink(base::FilePath("/proc/self/exe"), &exe_path); in GetBuildArtifactsPath()
/system/bt/service/
Dsettings.h52 const base::FilePath& create_ipc_socket_path() const { in create_ipc_socket_path()
69 base::FilePath create_ipc_socket_path_;
/system/update_engine/aosp/
Dhardware_android.h54 bool GetNonVolatileDirectory(base::FilePath* path) const override;
55 bool GetPowerwashSafeDirectory(base::FilePath* path) const override;
Ddynamic_partition_control_android.cc309 return base::PathExists(base::FilePath(path)); in DeviceExists()
423 *out = base::FilePath(misc_device).DirName().value(); in GetDeviceDir()
628 auto path = base::FilePath(prefix).Append("etc/fstab.postinstall").value(); in IsAvbEnabledOnSystemOther()
682 base::FilePath device_dir(device_dir_str); in GetSystemOtherPath()
811 base::FilePath device_dir(device_dir_str); in PrepareDynamicPartitionsForUpdate()
933 base::FilePath device_dir(device_dir_str); in PrepareSnapshotPartitionsForUpdate()
1094 const base::FilePath& device_dir, in GetStaticDevicePath()
1096 base::FilePath path = device_dir.Append(partition_name_suffixed); in GetStaticDevicePath()
1111 const base::FilePath device_dir(device_dir_str); in GetPartitionDevice()
1119 {.readonly_device_path = base::FilePath{std::string{VABC_DEVICE_DIR}} in GetPartitionDevice()
[all …]
/system/update_engine/payload_consumer/
Dpostinstall_runner_action.cc62 base::FilePath temp_dir; in PostinstallRunnerAction()
165 base::FilePath postinstall_path(partition.postinstall_path); in PerformPartitionPostinstall()
174 base::FilePath(fs_mount_dir_).Append(postinstall_path).value(); in PerformPartitionPostinstall()
314 if (!base::DeleteFile(base::FilePath(fs_mount_dir_), true)) { in Cleanup()
316 if (!base::DeleteFile(base::FilePath(fs_mount_dir_))) { in Cleanup()

123