Home
last modified time | relevance | path

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

/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.cc83 string temp_file = temp_dir.GetPath().Append("temp-file").value(); in TEST()
85 string temp_symlink = temp_dir.GetPath().Append("temp-symlink").value(); in TEST()
87 EXPECT_FALSE(utils::IsSymlink(temp_dir.GetPath().value().c_str())); in TEST()
390 EXPECT_FALSE(utils::IsMountpoint(mnt_dir.GetPath().value())); in TEST()
394 loop_dev, mnt_dir.GetPath().value(), MS_RDONLY, "ext4", "")); in TEST()
396 EXPECT_TRUE(utils::IsMountpoint(mnt_dir.GetPath().value())); in TEST()
398 string target_file = mnt_dir.GetPath().Append("empty-file").value(); in TEST()
401 EXPECT_TRUE(utils::UnmountFilesystem(mnt_dir.GetPath().value())); in TEST()
403 EXPECT_FALSE(utils::IsMountpoint(mnt_dir.GetPath().value())); in TEST()
406 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.cpp95 if (!android::base::Realpath(apex_file->GetPath(), &path)) { in ScanBuiltInDir()
97 << apex_file->GetPath(); in ScanBuiltInDir()
139 } else if (it->second.GetPath() != apex_file->GetPath()) { in ScanBuiltInDir()
151 LOG(level) << "Found two apex packages " << it->second.GetPath() in ScanBuiltInDir()
152 << " and " << apex_file->GetPath() in ScanBuiltInDir()
156 LOG(FATAL) << "Public key of apex package " << it->second.GetPath() in ScanBuiltInDir()
291 << it->second.GetPath(); in AddBlockApex()
348 if (EndsWith(apex_file->GetPath(), kDecompressedApexPackageSuffix)) { in AddDataApex()
400 return it->second.GetPath(); in GetPreinstalledPath()
411 return it->second.GetPath(); in GetDataPath()
[all …]
Dapex_file.cpp252 return Error() << "Error verifying " << apex.GetPath() << ": " in VerifyVbMetaSignature()
255 return Error() << "Error verifying " << apex.GetPath() << ": " in VerifyVbMetaSignature()
258 return Error() << "Error verifying " << apex.GetPath() << ": " in VerifyVbMetaSignature()
293 return Error() << "Error verifying " << apex.GetPath() << " : " in VerifyVbMeta()
356 unique_fd fd(open(GetPath().c_str(), O_RDONLY | O_CLOEXEC)); in VerifyApexVerity()
358 return ErrnoError() << "Failed to open " << GetPath(); in VerifyApexVerity()
397 const std::string& src_path = GetPath(); in Decompress()
409 return ErrnoError() << "Failed to open compressed APEX " << GetPath(); in Decompress()
Dapexd.cpp408 if (files_to_keep.find(apex_file->GetPath()) != files_to_keep.end()) { in RemovePreviouslyActiveApexFiles()
413 LOG(DEBUG) << "Deleting previously active apex " << apex_file->GetPath(); in RemovePreviouslyActiveApexFiles()
414 if (unlink(apex_file->GetPath().c_str()) != 0) { in RemovePreviouslyActiveApexFiles()
415 return ErrnoError() << "Failed to unlink " << apex_file->GetPath(); in RemovePreviouslyActiveApexFiles()
476 << apex.GetPath(); in MountPackageImpl()
506 const std::string& full_path = apex.GetPath(); in MountPackageImpl()
541 auto root_digest = instance.GetBlockApexRootDigest(apex.GetPath()); in MountPackageImpl()
552 MountedApexData apex_data(loopback_device.name, apex.GetPath(), mount_point, in MountPackageImpl()
843 gMountedApexes.RemoveMountedApex(apex.GetManifest().name(), apex.GetPath(), in RunVerifyFnInsideTempMount()
884 return shim::ValidateUpdate(system_apex_path, to.GetPath()); in ValidateStagingShimApex()
[all …]
Dapexd_verity.cpp67 TEMP_FAILURE_RETRY(open(apex.GetPath().c_str(), O_RDONLY | O_CLOEXEC))); in GenerateHashTree()
69 return ErrnoError() << "Failed to open " << apex.GetPath(); in GenerateHashTree()
180 << " does not match digest of " << apex.GetPath() << " : " in PrepareHashTree()
Dapexd_test.cpp611 ASSERT_EQ(return_value[0].GetPath(), in TEST_F()
1130 ASSERT_EQ(active_apex->GetPath(), file_path); in TEST_F()
1135 UnmountOnTearDown(ret->GetPath()); in TEST_F()
1151 ASSERT_EQ(active_apex->GetPath(), ret->GetPath()); in TEST_F()
1162 ASSERT_EQ(data.full_path, ret->GetPath()); in TEST_F()
1177 ASSERT_EQ(active_apex->GetPath(), file_path); in TEST_F()
1182 UnmountOnTearDown(ret->GetPath()); in TEST_F()
1192 ASSERT_EQ(active_apex->GetPath(), ret->GetPath()); in TEST_F()
1203 ASSERT_EQ(data.full_path, ret->GetPath()); in TEST_F()
1219 ASSERT_EQ(active_apex->GetPath(), file_path); in TEST_F()
[all …]
Dapex_file.h50 const std::string& GetPath() const { return apex_path_; } in GetPath() function
Dapexd_test_utils.h117 AllOf(Property("path", &ApexFile::GetPath, Eq(other.get().GetPath())),
Dapexservice.cpp208 out.modulePath = package.GetPath(); in submitStagedSession()
354 out.modulePath = package.GetPath(); in GetApexInfo()
508 return o.GetPath() == pkg.GetPath(); in getAllPackages()
Dapex_file_test.cpp321 ASSERT_EQ(real_path, apex_file->GetPath()); in TEST()
/system/extras/simpleperf/
DJITDebugReader_impl.h69 const std::string& GetPath() const { return path_; } in GetPath() function
DJITDebugReader.cpp651 symfile->GetPath() + location_in_file, file_offset); in ReadJITCodeDebugInfo()
655 << symfile->GetPath() << location_in_file; in ReadJITCodeDebugInfo()
/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()
Ddelta_performer_unittest.cc1008 string non_existing_file = temp_dir.GetPath().Append("non-existing").value(); in TEST_F()
1009 string existing_file = temp_dir.GetPath().Append("existing").value(); in TEST_F()