Searched refs:path (Results 101 - 125 of 399) sorted by relevance

1234567891011>>

/system/webservd/webservd/
H A Dtemp_file_manager.h36 virtual bool DeleteFile(const base::FilePath& path) = 0;
74 bool DeleteFile(const base::FilePath& path) override;
/system/core/libziparchive/
H A Dzip_writer.cc117 int32_t ZipWriter::StartEntry(const char* path, size_t flags) { argument
123 return StartAlignedEntryWithTime(path, flags, time_t(), alignment);
126 int32_t ZipWriter::StartAlignedEntry(const char* path, size_t flags, uint32_t alignment) { argument
127 return StartAlignedEntryWithTime(path, flags, time_t(), alignment);
130 int32_t ZipWriter::StartEntryWithTime(const char* path, size_t flags, time_t time) { argument
136 return StartAlignedEntryWithTime(path, flags, time, alignment);
160 int32_t ZipWriter::StartAlignedEntryWithTime(const char* path, size_t flags, argument
175 fileInfo.path = std::string(path);
178 if (!IsValidEntryName(reinterpret_cast<const uint8_t*>(fileInfo.path
[all...]
/system/update_engine/
H A Dp2p_manager_unittest.cc148 base::FilePath path = test_conf_->GetP2PDir().Append(base::StringPrintf( local
151 EXPECT_EQ(0, base::WriteFile(path, nullptr, 0));
152 EXPECT_TRUE(base::TouchFile(path, file_time, file_time));
154 path = test_conf_->GetP2PDir().Append(base::StringPrintf(
156 EXPECT_EQ(0, base::WriteFile(path, nullptr, 0));
157 EXPECT_TRUE(base::TouchFile(path, file_time, file_time));
211 base::FilePath path = test_conf_->GetP2PDir().Append(base::StringPrintf( local
224 EXPECT_EQ(0, base::WriteFile(path, nullptr, 0));
225 EXPECT_TRUE(base::TouchFile(path, file_date, file_date));
227 path
260 string path = p2p_dir + "/" + file_name; local
314 string path = p2p_dir + "/" + file_name; local
[all...]
/system/connectivity/shill/
H A Dhttp_url_unittest.cc42 path(in_path) {}
48 string path; member in struct:shill::StringAndResult
61 EXPECT_EQ(GetParam().path, url_.path());
/system/core/debuggerd/
H A Dtombstone.h30 * If out_path is non-null, *out_path is set to the path of the tombstone file.
32 int open_tombstone(std::string* path);
/system/extras/simpleperf/
H A Denvironment_test.cpp55 ASSERT_TRUE(android::base::WriteStringToFile(data, tempfile.path));
62 tempfile.path, std::bind(&KernelSymbolsMatch, std::placeholders::_1, expected_symbol)));
69 tempfile.path, std::bind(&KernelSymbolsMatch, std::placeholders::_1, expected_symbol)));
73 tempfile.path, std::bind(&KernelSymbolsMatch, std::placeholders::_1, expected_symbol)));
H A Dcmd_record_test.cpp45 out_file = tmpfile->path;
76 ASSERT_TRUE(RecordCmd()->Run({"-o", tmpfile.path, "sleep", SLEEP_SEC}));
81 ASSERT_TRUE(RunRecordCmd({}, tmpfile.path));
82 std::unique_ptr<RecordFileReader> reader = RecordFileReader::CreateInstance(tmpfile.path);
101 ASSERT_TRUE(RunRecordCmd({}, tmpfile.path));
102 std::unique_ptr<RecordFileReader> reader = RecordFileReader::CreateInstance(tmpfile.path);
/system/connectivity/shill/shims/
H A Dopenvpn_script.cc40 string service, path, reason; local
42 !environment->GetVariable(shill::kRPCTaskPathVariable, &path) ||
54 shill::shims::TaskProxy proxy(bus, path, service);
/system/connectivity/shill/test-scripts/
H A Dtest-manager16 for path in value:
17 print " %s" % (path)
18 obj = dbus.Interface(bus.get_object("org.chromium.flimflam", path),
H A Dtest-flimflam168 path = "/profile/default/" + sys.argv[2]
170 service = dbus.Interface(bus.get_object("org.chromium.flimflam", path),
198 path = "/profile/default/" + sys.argv[2]
200 service = dbus.Interface(bus.get_object("org.chromium.flimflam", path),
229 path = "/profile/default/" + sys.argv[2]
231 service = dbus.Interface(bus.get_object("org.chromium.flimflam", path),
244 path = "/profile/default/" + sys.argv[2]
246 service = dbus.Interface(bus.get_object("org.chromium.flimflam", path),
259 path = "/profile/default/" + sys.argv[2]
261 service = dbus.Interface(bus.get_object("org.chromium.flimflam", path),
[all...]
H A Dflimflam.py191 path = self.manager.GetService(params)
192 return self.GetObjectInterface("Service", path)
238 path = self.manager.GetService(params)
239 service = self.GetObjectInterface("Service", path)
312 def GetObjectInterface(self, kind, path):
314 self.bus.get_object(FlimFlam.SHILL_DBUS_INTERFACE, path),
319 for path in properties[FlimFlam._GetContainerName(kind)]:
320 if path.find(substring) >= 0:
321 return self.GetObjectInterface(kind, path)
326 for path i
[all...]
/system/core/init/
H A Dinit_parser.h41 bool ParseConfig(const std::string& path);
49 bool ParseConfigFile(const std::string& path);
50 bool ParseConfigDir(const std::string& path);
H A Dutil.h34 bool read_file(const char* path, std::string* content);
35 int write_file(const char* path, const char* content);
63 int make_dir(const char *path, mode_t mode);
/system/core/metricsd/
H A Dpersistent_integer_test.cc43 new PersistentInteger(kBackingFileName, temp_dir_.path()));
55 pi.reset(new PersistentInteger(kBackingFileName, temp_dir_.path()));
63 pi.reset(new PersistentInteger(kBackingFileName, temp_dir_.path()));
/system/core/metricsd/uploader/
H A Dmetrics_log.cc54 bool MetricsLog::SaveToFile(const base::FilePath& path) { argument
59 base::WriteFile(path, encoded_log.data(), encoded_log.size())) {
60 LOG(ERROR) << "Failed to persist the current log to " << path.value();
/system/sepolicy/tools/
H A Dinsertkeys.py19 def __init__(self, path):
32 if not os.path.isfile(path):
33 sys.exit("Path " + path + " does not exist or is not a file!")
35 pkFile = open(path, 'rb').readlines()
62 + path)
72 + path)
84 + " in pem file: " + path)
137 tag_path = os.path.expandvars(self.get(tag, option))
138 path
[all...]
/system/update_engine/common/
H A Dtest_utils.h55 // Writes the data passed to path. The file at path will be overwritten if it
57 bool WriteFileVector(const std::string& path, const brillo::Blob& data);
58 bool WriteFileString(const std::string& path, const std::string& data);
81 inline int Chmod(const std::string& path, mode_t mode) { argument
82 return chmod(path.c_str(), mode);
85 inline int Mkdir(const std::string& path, mode_t mode) { argument
86 return mkdir(path.c_str(), mode);
89 inline int Chdir(const std::string& path) { argument
90 return chdir(path
177 const std::string& path() { return path_; } function in class:chromeos_update_engine::test_utils::ScopedTempFile
[all...]
H A Dtest_utils.cc106 string Readlink(const string& path) { argument
108 ssize_t r = readlink(path.c_str(), buf.data(), buf.size());
116 char *path = strdup(dir_path.Append("xattr_test_XXXXXX").value().c_str()); local
118 int fd = mkstemp(path);
121 free(path);
125 if (unlink(path) != 0) {
126 PLOG(ERROR) << "Error unlinking temporary file " << path;
128 free(path);
137 PLOG(ERROR) << "Error setting xattr on " << path;
141 free(path);
145 WriteFileVector(const string& path, const brillo::Blob& data) argument
149 WriteFileString(const string& path, const string& data) argument
248 CreateEmptyExtImageAtPath(const string& path, size_t size, int block_size) argument
258 CreateExtImageAtPath(const string& path, vector<string>* out_paths) argument
[all...]
H A Dutils.h63 // Writes the data passed to path. The file at path will be overwritten if it
65 bool WriteFile(const char* path, const void* data, int data_len);
94 // Opens |path| for reading and appends its entire content to the container
99 bool ReadFile(const std::string& path, brillo::Blob* out_p);
100 bool ReadFile(const std::string& path, std::string* out_p);
101 bool ReadFileChunk(const std::string& path, off_t offset, off_t size,
113 // Returns the size of the file at path, or the file desciptor fd. If the file
117 off_t FileSize(const std::string& path);
124 bool FileExists(const char* path);
395 ScopedPathUnlinker(const std::string& path) argument
414 ScopedDirRemover(const std::string& path) argument
[all...]
/system/bt/service/ipc/
H A Dipc_handler_linux.cpp51 const base::FilePath& path = local
55 CHECK(android_suffix.empty() || path.empty());
56 if (android_suffix.empty() && path.empty()) {
57 LOG(ERROR) << "No domain socket path provided";
73 LOG(INFO) << "Creating a Unix domain socket:" << path.value();
79 unlink(path.value().c_str());
90 strncpy(address.sun_path, path.value().c_str(),
99 socket_path_ = path;
/system/connectivity/shill/wimax/
H A Dwimax_provider.cc114 RpcIdentifier path = find_it->second; local
115 CreateDevice(link_name, path);
129 const RpcIdentifier& path = it->first; local
130 if (ContainsKey(live_networks, path)) {
133 LOG(INFO) << "WiMAX network disappeared: " << path;
317 for (const auto& path : devices) {
318 string link_name = GetLinkName(path);
320 CreateDevice(link_name, path);
326 const RpcIdentifier& path) {
327 SLOG(this, 2) << __func__ << "(" << link_name << ", " << path << ")"; local
325 CreateDevice(const string& link_name, const RpcIdentifier& path) argument
359 LOG(INFO) << "Created WiMAX device: " << link_name << " @ " << path; local
387 GetLinkName(const RpcIdentifier& path) argument
396 RetrieveNetworkInfo(const RpcIdentifier& path) argument
459 const RpcIdentifier& path = nit.first; local
[all...]
/system/extras/puncture_fs/
H A Dpuncture_fs.c44 "path\n",
48 static u64 get_free_space(const char * const path) { argument
51 if (statvfs(path, &s) < 0) {
53 errno, path);
139 static bool puncture_fs (const char * const path, const u64 total_size, argument
151 if (!create_unique_dir(stay_dir, path) ||
152 !create_unique_dir(delete_dir, path)) {
201 char *path = NULL; local
232 fprintf(stderr, "\nExpected path name after options.\n");
236 path
[all...]
/system/weaved/buffet/
H A Dbuffet_config.cc41 bool ReadFile(const base::FilePath& path, std::string* content) override {
42 return base::ReadFileToString(path, content);
44 bool WriteFile(const base::FilePath& path,
46 return base::ImportantFileWriter::WriteFileAtomically(path, content);
171 base::FilePath path = CreatePath(name); local
172 if (!file_io_->ReadFile(path, &settings_blob)) {
173 LOG(WARNING) << "Failed to read \'" + path.value() +
196 base::FilePath path = CreatePath(name); local
202 if (!file_io_->WriteFile(path, encrypted_settings)) {
204 "Failed to write \'" + path
[all...]
/system/extras/tests/kernel.config/
H A Daslr_rec_test.cpp87 EXPECT_EQ(min, calc_mmap_entropy(path, lib, 16));
106 EXPECT_EQ(max, calc_mmap_entropy(path, lib, 16));
124 EXPECT_EQ(def, calc_mmap_entropy(path, lib, 16));
/system/update_engine/update_manager/
H A Dreal_config_provider_unittest.cc42 provider_->SetRootPrefix(root_dir_.path().value());
46 base::FilePath kFile(root_dir_.path().value()
54 base::FilePath kFile(root_dir_.path().value()

Completed in 575 milliseconds

1234567891011>>