Searched defs:file (Results 1 - 25 of 47) sorted by relevance

12

/system/extras/tests/cpueater/
H A Ddaemonize.c5 * you may not use this file except in compliance with the License.
36 char *file = 0; local
53 file = *argv;
55 file = *++argv;
71 if (file) {
72 if(open(file, O_WRONLY|mode|O_CREAT, 0666) < 0) {
73 perror(file);
/system/update_engine/payload_generator/
H A Draw_filesystem.cc5 // you may not use this file except in compliance with the License.
46 File file; local
47 file.name = filename_;
48 file.extents = { ExtentForRange(0, block_count_) };
49 files->push_back(file);
H A Dfake_filesystem.cc5 // you may not use this file except in compliance with the License.
43 File file; local
44 file.name = filename;
45 file.extents = extents;
50 files_.push_back(file);
H A Dext2_filesystem_unittest.cc5 // you may not use this file except in compliance with the License.
70 fs = Ext2Filesystem::CreateFromFile("/path/to/invalid/file");
87 for (const auto& file : files) {
88 EXPECT_EQ(map_files.end(), map_files.find(file.name))
89 << "File " << file.name << " repeated in the list.";
90 map_files[file.name] = file;
91 ExpectBlocksInRange(file.extents, fs->GetBlockCount());
98 // "generate_image.sh" script. The expected conditions of each file in these
99 // images is encoded in the file nam
155 FilesystemInterface::File file; local
[all...]
/system/connectivity/shill/
H A Dmock_log.cc5 // you may not use this file except in compliance with the License.
44 const char* file,
62 instance_->Log(severity, file, message);
66 return (*instance_->previous_handler_)(severity, file, line,
43 HandleLogMessages(int severity, const char* file, int line, size_t message_start, const string& full_message) argument
/system/extras/perfprofd/quipper/base/
H A Dlogging.cc60 LogMessage::LogMessage(const char* file, int line, LogSeverity severity) argument
61 : severity_(severity), file_(file), line_(line) {
62 Init(file, line);
65 LogMessage::LogMessage(const char* file, int line, std::string* result) argument
66 : severity_(LOG_FATAL), file_(file), line_(line) {
67 Init(file, line);
72 LogMessage::LogMessage(const char* file, int line, LogSeverity severity, argument
74 : severity_(severity), file_(file), line_(line) {
75 Init(file, line);
107 void LogMessage::Init(const char* /* file */, in
[all...]
/system/media/brillo/audio/audioservice/
H A Daudio_daemon.cpp4 // you may not use this file except in compliance with the License.
44 base::File file(name, base::File::FLAG_OPEN | base::File::FLAG_READ);
45 if (file.IsValid()) {
47 int fd = file.GetPlatformFile();
48 // Move file to files_ and ensure that when binding we get a pointer from
50 files_.emplace(std::move(file));
58 << base::File::ErrorToString(file.error_details()) << ")";
110 void AudioDaemon::Callback(base::File* file) { argument
113 file->ReadAtCurrentPos(reinterpret_cast<char*>(&event), sizeof(event));
/system/core/logd/
H A DLogCommand.cpp5 * you may not use this file except in compliance with the License.
97 FILE *file = fopen(filename, "r"); local
98 if (!file) {
104 while (getline(&line, &len, file) > 0) {
142 fclose(file);
/system/webservd/webservd/
H A Dlog_manager_unittest.cc4 // you may not use this file except in compliance with the License.
48 // Adds a test log entry to the file corresponding to the give |timestamp|.
66 base::FilePath file = enumerator.Next(); local
67 while (!file.empty()) {
68 log_files.insert(file.BaseName().value());
69 file = enumerator.Next();
136 // Add the line. Should still go to the same file.
143 // Now this log entry will not fit and will end up creating a new file.
151 // Add some more data to the current file.
H A Dutils.cc4 // you may not use this file except in compliance with the License.
132 bool StoreCertificate(X509* cert, const base::FilePath& file) { argument
134 BIO_new_file(file.value().c_str(), "w"), BIO_vfree};
138 X509Ptr LoadAndValidateCertificate(const base::FilePath& file) { argument
141 BIO_new_file(file.value().c_str(), "r"), BIO_vfree};
144 LOG(INFO) << "Loading certificate from " << file.value();
/system/connectivity/shill/test-scripts/
H A Dcrypto_util_pb2.py5 # you may not use this file except in compliance with the License.
35 file=DESCRIPTOR, variable
77 file=DESCRIPTOR, variable
112 file=DESCRIPTOR, variable
147 file=DESCRIPTOR, variable
196 file=DESCRIPTOR, variable
/system/core/adb/
H A Dadb_trace.cpp5 * you may not use this file except in compliance with the License.
41 const char* tag, const char* file, unsigned int line,
43 android::base::StderrLogger(id, severity, tag, file, line, message);
45 gLogdLogger(id, severity, tag, file, line, message);
72 // Redirect stdout and stderr to the log file.
157 // Don't open log file if no tracing, since this will block
40 AdbLogger(android::base::LogId id, android::base::LogSeverity severity, const char* tag, const char* file, unsigned int line, const char* message) argument
H A Dadb_auth_client.cpp5 * you may not use this file except in compliance with the License.
55 static void read_keys(const char *file, struct listnode *list) argument
62 f = fopen(file, "re");
64 D("Can't open '%s'", file);
83 D("%s: Invalid base64 data ret=%d", file, ret);
89 D("%s: Invalid key len %d", file, key->key.len);
H A Dadb_auth_host.cpp5 * you may not use this file except in compliance with the License.
211 static int generate_key(const char *file) argument
220 D("generate_key '%s'", file);
233 f = fopen(file, "w");
235 D("Failed to open '%s'", file);
247 if (!write_public_keyfile(rsa, file)) {
263 static int read_key(const char *file, struct listnode *list) argument
265 D("read_key '%s'", file);
267 FILE* fp = fopen(file, "r");
269 D("Failed to open '%s': %s", file, strerro
[all...]
/system/core/libcutils/
H A Dtrace-dev.c5 * you may not use this file except in compliance with the License.
100 FILE * file = fopen("/proc/self/cmdline", "re"); local
101 if (file) {
103 if (fgets(cmdline, sizeof(cmdline), file)) {
108 fclose(file);
171 ALOGE("Error opening trace file: %s (%d)", strerror(errno), errno);
/system/extras/verity/
H A Dgenerate_verity_key.c5 * you may not use this file except in compliance with the License.
134 printf("Failed to read PEM certificate from file '%s'\n", pem_file);
174 static int generate_key(const char *file) argument
191 f = fopen(file, "w");
193 printf("Failed to open '%s'\n", file);
202 if (write_public_keyfile(rsa, file) < 0) {
H A Dbuild_verity_tree.cpp19 #include <android-base/file.h>
121 " -S treat <data image> as a sparse file\n"
267 struct sparse_file *file; local
269 file = sparse_file_import(fd, false, false);
271 file = sparse_file_import_auto(fd, false, verbose);
274 if (!file) {
275 FATAL("failed to read file %s\n", data_filename);
278 int64_t len = sparse_file_len(file, false, false);
280 FATAL("file size %" PRIu64 " is not a multiple of %zu bytes\n",
327 sparse_file_callback(file, fals
[all...]
/system/security/keystore/
H A Duser_state.cpp5 * you may not use this file except in compliance with the License.
104 /* Copy the master key file to the new user. Unfortunately we don't have the src user's
105 * password so we cannot generate a new file with a new salt.
155 // find salt at EOF if present, otherwise we have an old file
172 // If salt was missing, generate one and write a new master key file with the salt.
215 struct dirent* file; local
216 while ((file = readdir(dir)) != NULL) {
218 if (!strcmp(".", file->d_name) || !strcmp("..", file->d_name)) {
222 unlinkat(dirfd(dir), file
[all...]
/system/vold/
H A DLoop.cpp5 * you may not use this file except in compliance with the License.
256 int Loop::createImageFile(const char *file, unsigned long numSectors) { argument
259 if ((fd = creat(file, 0600)) < 0) {
273 int Loop::resizeImageFile(const char *file, unsigned long numSectors) { argument
276 if ((fd = open(file, O_RDWR | O_CLOEXEC)) < 0) {
281 SLOGD("Attempting to increase size of %s to %lu sectors.", file, numSectors);
H A DProcess.cpp5 * you may not use this file except in compliance with the License.
104 // append the file name, after truncating to parent directory
129 FILE *file; local
133 file = fopen(buffer, "r");
134 if (!file)
137 while (fgets(buffer, sizeof(buffer), file)) {
145 fclose(file);
150 fclose(file);
201 SLOGE("Process %s (%d) has open file %s", name, pid, openfile);
/system/core/libnetutils/
H A Ddhcpmsg.h5 * you may not use this file except in compliance with the License.
55 char file[128]; /* asciiz boot file name */ member in struct:dhcp_msg
/system/core/libsparse/
H A Dbacked_block.c5 * you may not use this file except in compliance with the License.
37 } file; member in union:backed_block::__anon1679
84 return bb->file.filename;
97 return bb->file.offset;
117 free(bb->file.filename);
225 if (strcmp(a->file.filename, b->file.filename) ||
226 a->file.offset + a->len != b->file.offset) {
327 /* Queues a chunk of a file o
[all...]
/system/core/libziparchive/
H A Dzip_writer.cc5 * you may not use this file except in compliance with the License.
285 int32_t ZipWriter::StoreBytes(FileInfo* file, const void* data, size_t len) { argument
291 file->compressed_size += len;
296 int32_t ZipWriter::CompressBytes(FileInfo* file, const void* data, size_t len) { argument
319 file->compressed_size += write_bytes;
330 int32_t ZipWriter::FlushCompressedBytes(FileInfo* file) { argument
345 file->compressed_size += write_bytes;
360 file->compressed_size += write_bytes;
405 for (FileInfo& file : files_) {
409 cdr.compression_method = file
[all...]
/system/core/toolbox/upstream-netbsd/usr.bin/grep/
H A Dgrep.h84 struct file { struct
93 char *file; member in struct:str
154 /* file.c */
155 void grep_close(struct file *f);
156 struct file *grep_open(const char *path);
157 char *grep_fgetln(struct file *f, size_t *len);
/system/extras/cpustats/
H A Dcpustats.c188 FILE *file; local
192 file = fopen(filename, "r");
193 if (!file) die("Could not open %s\n", filename);
194 if (!fgets(line, MAX_BUF_SIZE, file)) die("Could not get %s contents\n", filename);
195 fclose(file);
205 die("Unexpected input in file %s (%s).\n", filename, line);
213 FILE *file; local
219 file = fopen(filename, "r");
220 if (!file) die("Could not open %s\n", filename);
223 fscanf(file, "
235 FILE *file; local
264 FILE *file; local
[all...]

Completed in 4110 milliseconds

12