/system/libufdt/tests/src/ |
H A D | ufdt_gen_test_dts.c | 76 static void output_header(FILE *fp, int is_plugin) { argument 77 fprintf(fp, "/dts-v1/;\n"); 79 fprintf(fp, "/plugin/;\n"); 81 fprintf(fp, "\n"); 84 static void output_root_begin(FILE *fp, int depth) { argument 85 fprintf(fp, "/ {\n"); 89 fprintf(fp, "level%d {\n", i); 93 static void output_root_end(FILE *fp, int depth) { argument 96 fprintf(fp, "};\n"); 99 fprintf(fp, "};\ 102 output_unused_nodes(FILE *fp, int count) argument 109 output_prop_str(FILE *fp, const char *prop, const char *value) argument 114 output_nodes(FILE *fp, int count, const char *prop, const char *value) argument 123 output_ref_nodes(FILE *fp, int start_id, int count, const char *prop, const char *value) argument 133 gen_dts(FILE *fp, const struct gen_params *params) argument 194 FILE *fp = NULL; local [all...] |
H A D | util.c | 25 static char *load_file_contents(FILE *fp, size_t *len_ptr) { argument 27 fseek(fp, 0, SEEK_END); 28 size_t len = ftell(fp); 29 fseek(fp, 0, SEEK_SET); 36 if (fread(buf, len, 1, fp) != 1) { 49 FILE *fp = fopen(filename, "r"); local 50 if (!fp) { 54 char *buf = load_file_contents(fp, len_ptr); 56 fclose(fp);
|
/system/core/toolbox/upstream-netbsd/lib/libc/string/ |
H A D | swab.c | 51 const char *fp; local 61 fp = (const char *)from; 63 #define STEP temp = *fp++,*tp++ = *fp++,*tp++ = temp
|
/system/core/logcat/tests/ |
H A D | liblogcat_test.cpp | 21 #define logcat_pclose(context, fp) android_logcat_pclose(&(context), fp)
|
H A D | exec_benchmark.cpp | 27 FILE* fp = popen(cmd, "r"); local 29 android::base::ReadFdToString(fileno(fp), &ret); 30 pclose(fp); 42 FILE* fp = android_logcat_popen(&ctx, cmd); local 44 android::base::ReadFdToString(fileno(fp), &ret); 45 android_logcat_pclose(&ctx, fp);
|
H A D | logcat_test.cpp | 43 #define logcat_pclose(context, fp) pclose(fp) 80 FILE* fp; local 94 (fp = logcat_popen( 103 while (fgets(buffer, sizeof(buffer), fp)) { 114 logcat_pclose(ctx, fp); 122 FILE* fp; local 138 ASSERT_TRUE(NULL != (fp = logcat_popen(ctx, command.c_str()))); 144 while (fgets(buffer, sizeof(buffer), fp)) { 148 logcat_pclose(ctx, fp); 193 FILE* fp; local 229 fgetLongTime(char* buffer, size_t buflen, FILE* fp) argument 270 FILE* fp; local 298 FILE* fp; local 332 FILE* fp; local 366 FILE* fp; local 485 FILE* fp; local 522 FILE* fp[256]; // does this count as a multitude! local 566 FILE* fp; local 670 FILE* fp; local 738 FILE* fp; local 822 FILE* fp; local 868 FILE* fp; local 929 FILE* fp; local 1168 FILE* fp = fopen(id_file, "w"); local 1211 FILE* fp; local 1332 FILE* fp; local 1368 FILE* fp; local 1431 FILE* fp; local 1471 FILE* fp; local 1514 FILE* fp = logcat_popen(ctx, logcat_executable local 1745 FILE* fp = logcat_popen(ctx, command); local 1766 FILE* fp = logcat_popen(ctx, command); local [all...] |
H A D | logcat_benchmark.cpp | 26 FILE* fp; local 30 fp = popen( 33 if (!fp) return; 83 while (fgets(buffer, sizeof(buffer), fp)) { 109 pclose(fp);
|
/system/extras/perfprofd/ |
H A D | cpuconfig.cc | 70 FILE *fp = fopen(possible.c_str(), "re"); local 71 if (fp) { 73 if (fscanf(fp, "%u-%u", &lo, &hi) == 2) { 76 fclose(fp); 85 FILE *fp = fopen(ss.str().c_str(), "we"); local 86 if (fp) { 87 fprintf(fp, onoff ? "1\n" : "0\n"); 88 fclose(fp);
|
H A D | perfprofd_cmdline.cc | 122 FILE *fp = fopen(processed_file_path.c_str(), "r"); local 123 if (fp != NULL) { 125 while(fscanf(fp, "%d\n", &seq) > 0) { 131 fclose(fp); 135 fp = fopen(produced_file_path.c_str(), "r"); 136 if (fp != NULL) { 138 while(fscanf(fp, "%d\n", &seq) > 0) { 143 fclose(fp); 152 fp = fopen(produced_file_path.c_str(), "w"); 153 if (fp [all...] |
/system/core/liblog/tests/ |
H A D | libc_test.cpp | 24 FILE* fp; local 25 ASSERT_TRUE(NULL != (fp = fopen("/dev/pmsg0", "a"))); 27 ASSERT_EQ((size_t)1, fwrite(message, sizeof(message), 1, fp)); 28 int fflushReturn = fflush(fp); 32 int fcloseReturn = fclose(fp);
|
H A D | log_radio_test.cpp | 94 FILE* fp = popen(buf.c_str(), "r"); local 97 if (fp) { 98 if (!android::base::ReadFdToString(fileno(fp), &buf)) buf = ""; 99 pclose(fp);
|
H A D | log_system_test.cpp | 94 FILE* fp = popen(buf.c_str(), "r"); local 97 if (fp) { 98 if (!android::base::ReadFdToString(fileno(fp), &buf)) buf = ""; 99 pclose(fp);
|
/system/tools/hidl/docs/src/parser/ |
H A D | config.kt | 111 .map { it.toFile() }.map { fp -> 112 if (!fp.isFile || !fp.canRead() || !fp.absolutePath.toLowerCase().endsWith(HAL_EXTENSION)) { 113 System.err.println("Error: Invalid $HAL_EXTENSION file: ${fp.path}") 116 fp 143 .forEach { fp -> 144 if (fp.isDirectory) { 145 findFiles(fp, files, ext, excludedPaths) 146 } else if (fp [all...] |
/system/update_engine/update_manager/ |
H A D | real_random_provider.cc | 47 RandomSeedVariable(const string& name, FILE* fp) argument 48 : Variable<uint64_t>(name, kVariableModeConst), fp_(fp) {} 62 // Either EOF on fp or read failed. 82 FILE* fp = fopen(kRandomDevice, "r"); local 83 if (!fp) 85 var_seed_.reset(new RandomSeedVariable("seed", fp));
|
/system/tools/hidl/docs/src/writer/files/ |
H A D | AbstractFileWriter.kt | 52 val fp = this.path.toFile() 53 fp.bufferedWriter().use { it.write(this.outStr) } 54 if (!fp.isFile) throw FileSystemException(fp, reason = "Error writing file")
|
H A D | resources.kt | 48 val fp = outPath.toFile() 49 fp.bufferedWriter().use { it.write(contents) } 50 if (!fp.isFile) throw FileSystemException(fp, reason = "Error writing file")
|
/system/extras/ioshark/ |
H A D | compile_ioshark.h | 72 void files_db_write_objects(FILE *fp); 79 int ioshark_write_header(FILE *fp, struct ioshark_header *header); 80 int ioshark_write_file_state(FILE *fp, struct ioshark_file_state *state); 81 int ioshark_write_file_op(FILE *fp, struct ioshark_file_operation *file_op);
|
/system/extras/simpleperf/ |
H A D | SampleDisplayer.h | 115 void operator()(FILE* fp, const SampleT* sample) { argument 121 fprintf(fp, "%s[skipped in brief callgraph mode]\n", prefix.c_str()); 124 fprintf(fp, "%s|\n", prefix.c_str()); 125 fprintf(fp, "%s-- %s\n", prefix.c_str(), PrintSampleName(sample).c_str()); 128 DisplayCallGraphEntry(fp, 1, prefix, sample->callchain.children[i], 134 void DisplayCallGraphEntry(FILE* fp, size_t depth, std::string prefix, argument 150 fprintf(fp, "%s\n", prefix.c_str()); 154 fprintf(fp, "%s%s%s\n", prefix.c_str(), percentage_s.c_str(), 157 fprintf(fp, "%s%*s%s\n", prefix.c_str(), static_cast<int>(percentage_s.size()), "", 162 fprintf(fp, " 238 PrintNames(FILE* fp) argument 249 PrintSample(FILE* fp, const EntryT* sample) argument [all...] |
H A D | cmd_list.cpp | 54 FILE* fp = fopen(tmpfile.path, "w"); 55 if (fp == nullptr) { 59 fprintf(fp, "output some data\n"); 61 fclose(fp);
|
/system/core/libbacktrace/ |
H A D | BacktraceMap.cpp | 122 FILE* fp = popen(cmd, "r"); local 126 FILE* fp = fopen(path, "r"); local 128 if (fp == nullptr) { 132 while(fgets(line, sizeof(line), fp)) { 139 pclose(fp); 141 fclose(fp);
|
/system/core/libunwindstack/tools/ |
H A D | unwind_for_offline.cpp | 70 std::unique_ptr<FILE, decltype(&fclose)> fp(fopen("regs.txt", "w+"), &fclose); 71 if (fp == nullptr) { 75 regs->IterateRegisters([&fp](const char* name, uint64_t value) { 76 fprintf(fp.get(), "%s: %" PRIx64 "\n", name, value); 103 std::unique_ptr<FILE, decltype(&fclose)> fp(fopen(file_name.c_str(), "w+"), &fclose); 104 if (fp == nullptr) { 109 size_t bytes = fwrite(&sp_start, 1, sizeof(sp_start), fp.get()); 115 bytes = fwrite(buffer.data(), 1, buffer.size(), fp.get()); 161 std::unique_ptr<FILE, decltype(&fclose)> fp(fopen(info->name.c_str(), "r"), &fclose); 162 if (fp [all...] |
/system/bt/osi/src/ |
H A D | config.cc | 39 static bool config_parse(FILE* fp, config_t* config); 72 FILE* fp = fopen(filename, "rt"); 73 if (!fp) { 79 if (!config_parse(fp, config.get())) { 83 fclose(fp); 232 FILE* fp = nullptr; 253 fp = fopen(temp_filename.c_str(), "wt"); 254 if (!fp) { 269 if (fprintf(fp, "%s", serialized.str().c_str()) < 0) { 277 if (fsync(fileno(fp)) < [all...] |
/system/core/libziparchive/ |
H A D | zip_archive_benchmark.cpp | 33 FILE* fp = fdopen(result->fd, "w"); local 35 ZipWriter writer(fp); 45 fclose(fp);
|
/system/core/fs_mgr/ |
H A D | fs_mgr_verity.cpp | 370 static int metadata_add(FILE *fp, long start, const char *tag, argument 373 if (fseek(fp, start, SEEK_SET) < 0 || 374 fprintf(fp, "%s %u\n", tag, length) < 0) { 378 *offset = ftell(fp); 380 if (fseek(fp, length, SEEK_CUR) < 0 || 381 fprintf(fp, METADATA_EOD " 0\n") < 0) { 391 FILE *fp = NULL; local 403 fp = fopen(fname, "r+"); 405 if (!fp) { 411 if (fseek(fp, star [all...] |
/system/core/init/ |
H A D | bootchart.cpp | 80 auto fp = fopen_unique("/data/bootchart/header", "we"); local 81 if (!fp) return; 82 fprintf(&*fp, "version = Android init 0.8\n"); 83 fprintf(&*fp, "title = Boot chart for Android (%s)\n", date); 84 fprintf(&*fp, "system.uname = %s %s %s %s\n", uts.sysname, uts.release, uts.version, uts.machine); 85 fprintf(&*fp, "system.release = %s\n", fingerprint.c_str()); 87 fprintf(&*fp, "system.cpu = %s\n", uts.machine); 88 fprintf(&*fp, "system.kernel.options = %s\n", kernel_cmdline.c_str());
|