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

123

/system/netd/libnetdutils/
H A DUniqueFile.cpp5 * you may not use this file except in compliance with the License.
25 void UniqueFileDtor::operator()(FILE* file) { argument
27 sys.fclose(file);
/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.
71 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
157 FilesystemInterface::File file; local
[all...]
/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/tools/hidl/
H A DgenerateVts.cpp5 * you may not use this file except in compliance with the License.
67 FILE *file = fopen(path.c_str(), "w"); local
69 if (file == NULL) {
73 Formatter out(file);
H A DgenerateCppImpl.cpp5 * you may not use this file except in compliance with the License.
96 FILE *file = fopen(path.c_str(), "w"); local
98 if (file == NULL) {
102 Formatter out(file);
183 FILE *file = fopen(path.c_str(), "w"); local
185 if (file == NULL) {
189 Formatter out(file);
H A DgenerateJava.cpp5 * you may not use this file except in compliance with the License.
50 // Splits types.hal up into one java file per declared type.
71 FILE *file = fopen(path.c_str(), "w"); local
73 if (file == NULL) {
77 Formatter out(file);
128 FILE *file = fopen(path.c_str(), "w"); local
130 if (file == NULL) {
134 Formatter out(file);
/system/core/init/
H A Dueventd_test.cpp5 * you may not use this file except in compliance with the License.
26 #include <android-base/file.h>
43 auto make_thread_function = [&function, &barrier](const auto& file, const auto& parameter) {
47 android::base::WriteStringToFile("<empty>", file);
53 // for (const auto& [file, parameter] : files_and_parameters) {
55 const auto& file = pair.first; local
57 threads.emplace_back(std::thread(make_thread_function(file, parameter)));
82 for (const auto& [file, expected_gid] : files_and_gids) {
84 ASSERT_EQ(0, stat(file.c_str(), &info));
116 for (const auto& [file, expected_contex
[all...]
H A Dfirmware_handler.cpp5 * you may not use this file except in compliance with the License.
28 #include <android-base/file.h>
86 std::string file = firmware_dirs[i] + uevent.firmware; local
87 unique_fd fw_fd(open(file.c_str(), O_RDONLY | O_CLOEXEC));
/system/core/libunwindstack/tools/
H A Dunwind_info.cpp5 * you may not use this file except in compliance with the License.
106 int GetElfInfo(const char* file) { argument
111 if (!memory->Init(file, 0)) {
119 printf("%s is not a valid elf file.\n", file);
169 printf("Need to pass the name of an elf file to the program.\n");
179 printf("%s is not a regular file.\n", argv[1]);
/system/extras/verity/
H A Dverity_verifier.cpp5 * you may not use this file except in compliance with the License.
24 #include <android-base/file.h>
77 " image the image file (raw or sparse image) to be verified\n"
89 struct sparse_file* file = sparse_file_import_auto(fd, false, false); local
90 if (file == nullptr) {
91 fprintf(stderr, "failed to read file %s\n", argv[1]);
96 if (sparse_file_write(file, tf.fd, false, false, false) < 0) {
97 fprintf(stderr, "failed to write output file\n");
100 sparse_file_destroy(file);
H A Dgenerate_verity_key.c5 * you may not use this file except in compliance with the License.
81 printf("Failed to read PEM certificate from file '%s'\n", pem_file);
121 static int generate_key(const char *file) argument
138 f = fopen(file, "w");
140 printf("Failed to open '%s'\n", file);
149 if (write_public_keyfile(rsa, file) < 0) {
/system/core/libunwindstack/include/unwindstack/
H A DMaps.h5 * you may not use this file except in compliance with the License.
91 FileMaps(const std::string& file) : file_(file) {} argument
102 OfflineMaps(const std::string& file) : FileMaps(file) {} argument
/system/core/logd/
H A DLogCommand.cpp5 * you may not use this file except in compliance with the License.
96 FILE* file = fopen(filename, "r"); local
97 if (!file) {
103 while (getline(&line, &len, file) > 0) {
137 fclose(file);
/system/libhidl/base/
H A DHidlInternal.cpp5 * you may not use this file except in compliance with the License.
92 struct dirent *file; local
93 while ((file = readdir(dir)) != NULL) {
94 if (!isInstrumentationLib(file))
97 void *handle = dlopen((path + file->d_name).c_str(), RTLD_NOW);
100 LOG(WARNING) << "couldn't load file: " << file->d_name
137 << file->d_name;
148 bool HidlInstrumentor::isInstrumentationLib(const dirent *file) { argument
150 if (file
[all...]
/system/sepolicy/tools/
H A Dversion_policy.c3 * and a version number to produced a combined "versioned" policy file.
18 printf(" -b, --base=<file> (req'd) base policy for versioning.\n");
21 printf(" -o, --output=<file> write cil policy to <file>\n");
28 * read_cil_file - Initialize db and parse CIL input file.
32 FILE *file; local
38 file = fopen(path, "re");
39 if (!file) {
40 fprintf(stderr, "Could not open file: %s\n", path);
45 fprintf(stderr, "Could not stat file
[all...]
/system/timezone/distro/core/src/main/com/android/timezone/distro/
H A DFileUtils.java5 * you may not use this file except in compliance with the License.
36 * the resulting file would exist beneath {@code parentDir}. Useful if {@code name} could
39 * @throws java.io.IOException if the file would not exist beneath {@code parentDir}
95 public static void makeWorldReadable(File file) throws IOException { argument
96 if (!file.setReadable(true, false /* ownerOnly */)) {
97 throw new IOException("Unable to make " + file + " world-readable");
108 public static void ensureFileDoesNotExist(File file) throws IOException { argument
109 if (file.exists()) {
110 if (!file.isFile()) {
111 throw new IOException(file
117 doDelete(File file) argument
123 isSymlink(File file) argument
165 readBytes(File file, int maxBytes) argument
185 createEmptyFile(File file) argument
[all...]
/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.
149 // 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
/system/core/base/
H A Dutf8_test.cpp5 * you may not use this file except in compliance with the License.
61 // found in the LICENSE file.
355 // found in the LICENSE file.
463 // Create file
464 utf8 += "\\test-file.bin";
470 // Close file
474 // Open file with fopen
475 FILE* file = fopen(utf8.c_str(), "rb"); local
476 EXPECT_NE(nullptr, file);
478 if (file) {
[all...]
/system/core/libcutils/
H A Dtrace-dev.c5 * you may not use this file except in compliance with the License.
95 FILE * file = fopen("/proc/self/cmdline", "re"); local
96 if (file) {
98 if (fgets(cmdline, sizeof(cmdline), file)) {
103 fclose(file);
166 ALOGE("Error opening trace file: %s (%d)", strerror(errno), errno);
/system/core/libunwindstack/
H A DMemory.cpp5 * you may not use this file except in compliance with the License.
85 bool MemoryFileAtOffset::Init(const std::string& file, uint64_t offset, uint64_t size) { argument
89 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(file.c_str(), O_RDONLY | O_CLOEXEC)));
220 bool MemoryOffline::Init(const std::string& file, uint64_t offset) { argument
221 if (!MemoryFileAtOffset::Init(file, offset)) {
/system/libhwbinder/vts/performance/
H A DPerfTest.cpp5 * you may not use this file except in compliance with the License.
96 ofstream file; local
97 file.open(TRACE_PATH "/tracing_on", ios::out | ios::trunc);
98 file << '0' << endl;
99 file.close();
/system/media/brillo/audio/audioservice/
H A Daudio_daemon.cpp4 // you may not use this file except in compliance with the License.
65 base::File file(name, base::File::FLAG_OPEN | base::File::FLAG_READ);
66 if (file.IsValid()) {
68 int fd = file.GetPlatformFile();
69 // Move file to files_ and ensure that when binding we get a pointer from
71 files_.emplace(std::move(file));
79 << base::File::ErrorToString(file.error_details()) << ")";
148 void AudioDaemon::EventCallback(base::File* file) { argument
151 file->ReadAtCurrentPos(reinterpret_cast<char*>(&event), sizeof(event));

Completed in 566 milliseconds

123