/system/core/crash_reporter/ |
D | crash_collector.h | 75 int WriteNewFile(const base::FilePath &filename, const char *data, int size); 83 void ForceCrashDirectory(const base::FilePath &forced_directory) { in ForceCrashDirectory() 87 base::FilePath GetCrashDirectoryInfo(mode_t *mode, 101 base::FilePath *crash_file_path, 111 base::FilePath GetCrashPath(const base::FilePath &crash_directory, 115 base::FilePath GetProcessPath(pid_t pid); 116 bool GetSymlinkTarget(const base::FilePath &symlink, 117 base::FilePath *target); 123 bool CheckHasCapacity(const base::FilePath &crash_directory); 127 bool GetLogContents(const base::FilePath &config_path, [all …]
|
D | udev_collector.cc | 32 using base::FilePath; 74 FilePath crash_directory; in HandleCrash() 96 bool UdevCollector::ProcessUdevCrashLogs(const FilePath& crash_directory, in ProcessUdevCrashLogs() 113 FilePath crash_path = GetCrashPath(crash_directory, log_file_name, "log"); in ProcessUdevCrashLogs() 127 FilePath crash_path_zipped = FilePath(crash_path.value() + ".gz"); in ProcessUdevCrashLogs() 141 bool UdevCollector::ProcessDevCoredump(const FilePath& crash_directory, in ProcessDevCoredump() 143 FilePath coredump_path = in ProcessDevCoredump() 144 FilePath(base::StringPrintf("%s/devcd%d/data", in ProcessDevCoredump() 164 bool UdevCollector::AppendDevCoredump(const FilePath& crash_directory, in AppendDevCoredump() 165 const FilePath& coredump_path, in AppendDevCoredump() [all …]
|
D | crash_collector.cc | 88 using base::FilePath; 108 int CrashCollector::WriteNewFile(const FilePath &filename, in WriteNewFile() 150 FilePath CrashCollector::GetCrashPath(const FilePath &crash_directory, in GetCrashPath() 158 FilePath CrashCollector::GetCrashDirectoryInfo( in GetCrashDirectoryInfo() 165 return FilePath(kSystemCrashPath); in GetCrashDirectoryInfo() 187 FilePath *crash_directory, in GetCreatedCrashDirectoryByEuid() 235 FilePath CrashCollector::GetProcessPath(pid_t pid) { in GetProcessPath() 236 return FilePath(StringPrintf("/proc/%d", pid)); in GetProcessPath() 239 bool CrashCollector::GetSymlinkTarget(const FilePath &symlink, in GetSymlinkTarget() 240 FilePath *target) { in GetSymlinkTarget() [all …]
|
D | user_collector.h | 133 bool CopyOffProcFiles(pid_t pid, const base::FilePath &container_dir); 140 bool ValidateProcFiles(const base::FilePath &container_dir) const; 147 ErrorType ValidateCoreFile(const base::FilePath &core_path) const; 154 base::FilePath *crash_file_path, 156 bool CopyStdinToCoreFile(const base::FilePath &core_path); 157 bool RunCoreToMinidump(const base::FilePath &core_path, 158 const base::FilePath &procfs_directory, 159 const base::FilePath &minidump_path, 160 const base::FilePath &temp_directory); 162 const base::FilePath &container_dir, [all …]
|
D | udev_collector_test.cc | 27 using base::FilePath; 63 int GetNumFiles(const FilePath& path, const std::string& file_pattern) { in GetNumFiles() 67 for (FilePath file_path = enumerator.Next(); in GetNumFiles() 93 FilePath(base::StringPrintf("%s/%s", in GenerateDevCoredump() 96 FilePath data_path = in GenerateDevCoredump() 97 FilePath(base::StringPrintf("%s/%s/data", in GenerateDevCoredump() 106 FilePath(base::StringPrintf("%s/%s/failing_device", in GenerateDevCoredump() 109 FilePath uevent_path = in GenerateDevCoredump() 110 FilePath(base::StringPrintf("%s/%s/failing_device/uevent", in GenerateDevCoredump() 129 FilePath log_config_path = in SetUp() [all …]
|
D | udev_collector.h | 49 bool ProcessUdevCrashLogs(const base::FilePath& crash_directory, 56 bool ProcessDevCoredump(const base::FilePath& crash_directory, 60 bool AppendDevCoredump(const base::FilePath& crash_directory, 61 const base::FilePath& coredump_path, 64 bool ClearDevCoredump(const base::FilePath& coredump_path); 70 log_config_path_ = base::FilePath(path); in set_log_config_path()
|
D | user_collector.cc | 68 using base::FilePath; 181 FilePath crash_path; in EnqueueCollectionErrorLog() 191 FilePath diag_log_path = GetCrashPath(crash_path, dump_basename, "diaglog"); in EnqueueCollectionErrorLog() 192 if (GetLogContents(FilePath(log_config_path_), kCollectionErrorSignature, in EnqueueCollectionErrorLog() 202 FilePath log_path = GetCrashPath(crash_path, dump_basename, "log"); in EnqueueCollectionErrorLog() 203 FilePath meta_path = GetCrashPath(crash_path, dump_basename, "meta"); in EnqueueCollectionErrorLog() 215 const FilePath &container_dir) { in CopyOffProcFiles() 232 FilePath process_path = GetProcessPath(pid); in CopyOffProcFiles() 254 bool UserCollector::ValidateProcFiles(const FilePath &container_dir) const { in ValidateProcFiles() 270 const FilePath &core_path) const { in ValidateCoreFile() [all …]
|
D | crash_collector_test.cc | 31 using base::FilePath; 75 FilePath test_file = test_dir_.path().Append("test_new"); in TEST_F() 112 collector_.GetCrashPath(FilePath("/var/spool/crash"), in TEST_F() 116 collector_.GetCrashPath(FilePath("/home/chronos/user/crash"), in TEST_F() 183 FilePath meta_file = test_dir_.path().Append(kMetaFileBasename); in TEST_F() 184 FilePath payload_file = test_dir_.path().Append("payload-file"); in TEST_F() 203 FilePath meta_symlink_path = test_dir_.path().Append("symlink.meta"); in TEST_F() 229 FilePath config_file = test_dir_.path().Append("crash_config"); in TEST_F() 230 FilePath output_file = test_dir_.path().Append("crash_log"); in TEST_F() 235 base::DeleteFile(FilePath(output_file), false); in TEST_F() [all …]
|
D | unclean_shutdown_collector.cc | 30 using base::FilePath; 42 FilePath file_path(unclean_shutdown_file_); in Enable() 52 if (!base::DeleteFile(FilePath(unclean_shutdown_file_), false)) { in DeleteUncleanShutdownFiles() 63 FilePath unclean_file_path(unclean_shutdown_file_); in Collect()
|
D | crash_reporter.cc | 65 using base::FilePath; 72 static bool TouchFile(const FilePath &file_path) { in TouchFile() 118 base::FilePath filepath(kGUIDFileName); in Initialize() 146 TouchFile(FilePath(kKernelCrashDetected)); in Initialize() 150 TouchFile(FilePath(kUncleanShutdownDetected)); in Initialize() 215 if (!base::ReadFileToString(FilePath(kernel_signature_file), in GenerateKernelSignature() 273 FilePath my_path = base::MakeAbsoluteFilePath(FilePath(argv[0])); in main()
|
/system/webservd/webservd/ |
D | temp_file_manager.h | 36 virtual bool DeleteFile(const base::FilePath& path) = 0; 42 TempFileManager(const base::FilePath& temp_dir_path, 50 base::FilePath CreateTempFileName(const std::string& request_id); 57 void DeleteFiles(const std::vector<base::FilePath>& files); 60 base::FilePath temp_dir_path_; 65 std::map<std::string, std::vector<base::FilePath>> request_files_; 74 bool DeleteFile(const base::FilePath& path) override;
|
D | temp_file_manager.cc | 23 TempFileManager::TempFileManager(const base::FilePath& temp_dir_path, in TempFileManager() 33 base::FilePath TempFileManager::CreateTempFileName( in CreateTempFileName() 35 std::vector<base::FilePath>& file_list_ref = request_files_[request_id]; in CreateTempFileName() 38 base::FilePath file_name = temp_dir_path_.AppendASCII(name); in CreateTempFileName() 51 void TempFileManager::DeleteFiles(const std::vector<base::FilePath>& files) { in DeleteFiles() 52 for (const base::FilePath& file : files) in DeleteFiles() 56 bool FileDeleter::DeleteFile(const base::FilePath& path) { in DeleteFile()
|
D | log_manager.cc | 96 FileLogger(const base::FilePath& log_directory, LogManager* log_manager) in FileLogger() 108 base::FilePath file_path = log_directory_.Append(file_name); in Log() 150 base::FilePath archive_file_path = log_directory_.Append( in ArchiveLogFile() 154 base::FilePath file_path = log_directory_.Append(file_name); in ArchiveLogFile() 170 base::FilePath log_directory_; 174 void LogManager::Init(const base::FilePath& log_directory) { in Init() 222 std::set<base::FilePath> log_files; in PerformLogMaintenance() 227 base::FilePath file = enumerator.Next(); in PerformLogMaintenance()
|
/system/connectivity/shill/ |
D | certificate_file.cc | 31 using base::FilePath; 50 : root_directory_(FilePath(kDefaultRootDirectory)) { in CertificateFile() 61 FilePath CertificateFile::CreatePEMFromStrings( in CreatePEMFromStrings() 67 return FilePath(); in CreatePEMFromStrings() 117 FilePath CertificateFile::WriteFile(const string& output_data) { in WriteFile() 122 return FilePath(); in WriteFile() 129 return FilePath(); in WriteFile() 134 output_file_ = FilePath(); in WriteFile() 137 FilePath output_file; in WriteFile() 140 return FilePath(); in WriteFile() [all …]
|
D | certificate_file.h | 38 virtual base::FilePath CreatePEMFromStrings( 42 void set_root_directory(const base::FilePath& root_directory) { in set_root_directory() 65 base::FilePath WriteFile(const std::string& output_data); 68 base::FilePath root_directory_; 71 base::FilePath output_file_;
|
D | crypto_provider_unittest.cc | 28 using base::FilePath; 50 FilePath InitKeyMatterFile(const FilePath& dir); 55 FilePath CryptoProviderTest::InitKeyMatterFile(const FilePath& dir) { in InitKeyMatterFile() 56 FilePath path = dir.Append(kKeyMatterFile); in InitKeyMatterFile() 65 provider_.set_key_matter_file(FilePath("/some/non/existent/file")); in TEST_F() 78 provider_.set_key_matter_file(FilePath("/other/missing/file")); in TEST_F()
|
D | certificate_file_unittest.cc | 29 using base::FilePath; 57 const FilePath& GetOutputFile() { return certificate_file_.output_file_; } in GetOutputFile() 58 const FilePath& GetRootDirectory() { in GetRootDirectory() 66 base::FilePath certificate_directory_; 86 FilePath outfile0 = certificate_file_.CreatePEMFromStrings(kPEMVector0); in TEST_F() 98 FilePath outfile1 = certificate_file_.CreatePEMFromStrings(kPEMVector1); in TEST_F() 110 FilePath outfile2 = certificate_file_.CreatePEMFromStrings(kPEMVector2); in TEST_F() 134 FilePath outfile; in TEST_F()
|
D | profile.h | 34 class FilePath; variable 78 const base::FilePath& storage_directory, 185 const base::FilePath& path); 189 static bool SaveUserProfileList(const base::FilePath& path, 217 static base::FilePath GetFinalStoragePath( 218 const base::FilePath& storage_dir, 224 const base::FilePath& persistent_profile_path() { in persistent_profile_path() 227 void set_persistent_profile_path(const base::FilePath& path) { in set_persistent_profile_path() 252 base::FilePath persistent_profile_path_;
|
D | file_reader_unittest.cc | 27 using base::FilePath; 35 void VerifyReadLines(const FilePath& path, const vector<string>& lines) { in VerifyReadLines() 53 EXPECT_FALSE(reader_.Open(FilePath("a_nonexistent_file"))); in TEST_F() 59 FilePath path; in TEST_F() 78 FilePath path; in TEST_F()
|
/system/weaved/buffet/ |
D | buffet_config.h | 45 base::FilePath defaults; 46 base::FilePath settings; 48 base::FilePath definitions; 49 base::FilePath test_definitions; 57 virtual bool ReadFile(const base::FilePath& path, std::string* content) = 0; 58 virtual bool WriteFile(const base::FilePath& path, 90 base::FilePath CreatePath(const std::string& name) const; 91 bool LoadFile(const base::FilePath& file_path,
|
/system/update_engine/ |
D | hardware_chromeos.cc | 107 return HwidOverride::Read(base::FilePath("/")); in GetHardwareClass() 132 base::FilePath marker_path = base::FilePath(kPowerwashSafeDirectory).Append( in GetPowerwashCount() 143 bool HardwareChromeOS::GetNonVolatileDirectory(base::FilePath* path) const { in GetNonVolatileDirectory() 144 *path = base::FilePath(constants::kNonVolatileDirectory); in GetNonVolatileDirectory() 148 bool HardwareChromeOS::GetPowerwashSafeDirectory(base::FilePath* path) const { in GetPowerwashSafeDirectory() 149 *path = base::FilePath(kPowerwashSafeDirectory); in GetPowerwashSafeDirectory()
|
D | p2p_manager.cc | 57 using base::FilePath; 89 FilePath GetP2PDir() override { in GetP2PDir() 90 return FilePath(kDefaultP2PDir); in GetP2PDir() 136 FilePath FileGetPath(const string& file_id) override; 157 FilePath GetPath(const string& file_id, Visibility visibility); 164 bool DeleteP2PFile(const FilePath& path, const string& reason); 295 static bool MatchCompareFunc(const pair<FilePath, Time>& a, in MatchCompareFunc() argument 296 const pair<FilePath, Time>& b) { in MatchCompareFunc() 314 FilePath P2PManagerImpl::GetPath(const string& file_id, Visibility visibility) { in GetPath() 318 bool P2PManagerImpl::DeleteP2PFile(const FilePath& path, in DeleteP2PFile() [all …]
|
/system/connectivity/shill/vpn/ |
D | l2tp_ipsec_driver_unittest.cc | 41 using base::FilePath; 132 bool IsPSKFileCleared(const FilePath& psk_file_path) const { in IsPSKFileCleared() 137 const FilePath& xauth_credentials_file_path) const { in IsXauthCredentialsFileCleared() 146 FilePath SetupPSKFile(); 147 FilePath SetupXauthCredentialsFile(); 149 FilePath GetPSKFile() const { return driver_->psk_file_; } in GetPSKFile() 150 FilePath GetXauthCredentialsFile() const { in GetXauthCredentialsFile() 158 void FakeUpConnect(FilePath* psk_file, FilePath* xauth_credentials_file) { in FakeUpConnect() 227 FilePath L2TPIPSecDriverTest::SetupPSKFile() { in SetupPSKFile() 228 FilePath psk_file; in SetupPSKFile() [all …]
|
/system/nativepower/daemon/ |
D | wake_lock_manager.h | 66 void set_paths_for_testing(const base::FilePath& lock_path, in set_paths_for_testing() 67 const base::FilePath& unlock_path) { in set_paths_for_testing() 84 base::FilePath lock_path_; 85 base::FilePath unlock_path_;
|
/system/core/metricsd/uploader/ |
D | upload_service.h | 70 const base::FilePath& private_metrics_directory, 71 const base::FilePath& shared_metrics_directory); 176 base::FilePath consent_file_; 177 base::FilePath staged_log_path_; 178 base::FilePath saved_log_path_;
|