/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 | 83 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 …]
|
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 | 95 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 …]
|
D | apex_file.cpp | 252 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()
|
D | apexd.cpp | 408 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 …]
|
D | apexd_verity.cpp | 67 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()
|
D | apexd_test.cpp | 611 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 …]
|
D | apex_file.h | 50 const std::string& GetPath() const { return apex_path_; } in GetPath() function
|
D | apexd_test_utils.h | 117 AllOf(Property("path", &ApexFile::GetPath, Eq(other.get().GetPath())),
|
D | apexservice.cpp | 208 out.modulePath = package.GetPath(); in submitStagedSession() 354 out.modulePath = package.GetPath(); in GetApexInfo() 508 return o.GetPath() == pkg.GetPath(); in getAllPackages()
|
D | apex_file_test.cpp | 321 ASSERT_EQ(real_path, apex_file->GetPath()); in TEST()
|
/system/extras/simpleperf/ |
D | JITDebugReader_impl.h | 69 const std::string& GetPath() const { return path_; } in GetPath() function
|
D | JITDebugReader.cpp | 651 symfile->GetPath() + location_in_file, file_offset); in ReadJITCodeDebugInfo() 655 << symfile->GetPath() << location_in_file; in ReadJITCodeDebugInfo()
|
/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()
|
D | delta_performer_unittest.cc | 1008 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()
|