Home
last modified time | relevance | path

Searched refs:log_path (Results 1 – 3 of 3) sorted by relevance

/system/update_engine/
Dmain.cc87 string log_path = kLogsRoot + "/" + old_logs[i]; in DeleteOldLogs() local
88 if (unlink(log_path.c_str()) == -1) { in DeleteOldLogs()
89 PLOG(WARNING) << "Failed to unlink " << log_path; in DeleteOldLogs()
104 void SetupLogSymlink(const string& symlink_path, const string& log_path) { in SetupLogSymlink() argument
112 base::FilePath(symlink_path), base::FilePath(log_path), nullptr); in SetupLogSymlink()
115 if (symlink(log_path.c_str(), symlink_path.c_str()) == -1) { in SetupLogSymlink()
117 << " pointing at " << log_path; in SetupLogSymlink()
/system/bt/hci/src/
Dbtsnoop.cc170 static std::string get_btsnoop_last_log_path(std::string log_path);
340 auto log_path = get_btsnoop_log_path(filtered); in delete_btsnoop_files() local
341 remove(log_path.c_str()); in delete_btsnoop_files()
342 remove(get_btsnoop_last_log_path(log_path).c_str()); in delete_btsnoop_files()
366 auto log_path = get_btsnoop_log_path(is_btsnoop_filtered); in open_next_snoop_file() local
367 auto last_log_path = get_btsnoop_last_log_path(log_path); in open_next_snoop_file()
369 if (rename(log_path.c_str(), last_log_path.c_str()) != 0 && errno != ENOENT) in open_next_snoop_file()
370 LOG(ERROR) << __func__ << ": unable to rename '" << log_path << "' to '" in open_next_snoop_file()
374 logfile_fd = open(log_path.c_str(), O_WRONLY | O_CREAT | O_TRUNC, in open_next_snoop_file()
378 LOG(ERROR) << __func__ << ": unable to open '" << log_path in open_next_snoop_file()
/system/core/adb/
Dtest_device.py468 log_path = "/data/local/tmp/adb_signal_test.log"
471 self.device.shell_nocheck(["echo", ">", log_path])
478 """.format(path=log_path)
494 stdout, _ = self.device.shell(["cat", log_path])