/system/core/libutils/ |
H A D | ProcessCallStack.cpp | 53 FILE* fp; local 56 if ((fp = fopen(path, "r"))) { 57 procName = fgets(procNameBuf, sizeof(procNameBuf), fp); 58 fclose(fp); 81 FILE* fp; local 84 if ((fp = fopen(path, "r"))) { 85 procName = fgets(procNameBuf, sizeof(procNameBuf), fp); 86 fclose(fp);
|
/system/extras/ioshark/ |
H A D | compile_ioshark_subr.c | 38 files_db_write_objects(FILE *fp) argument 52 if (ioshark_write_file_state(fp, &st) != 1) { 218 ioshark_write_header(FILE *fp, struct ioshark_header *header) argument 223 return fwrite(header, sizeof(struct ioshark_header), 1, fp); 227 ioshark_write_file_state(FILE *fp, struct ioshark_file_state *state) argument 232 return fwrite(state, sizeof(struct ioshark_file_state), 1, fp); 236 ioshark_write_file_op(FILE *fp, struct ioshark_file_operation *file_op) argument 279 return fwrite(file_op, sizeof(struct ioshark_file_operation), 1, fp);
|
H A D | ioshark_bench.c | 54 FILE *fp; member in struct:thread_state_s 177 if (ioshark_read_file_state(state->fp, &file_state) != 1) { 408 rewind(state->fp); 409 if (ioshark_read_header(state->fp, &header) != 1) { 420 fseek(state->fp, 428 if (ioshark_read_file_op(state->fp, &file_op) != 1) { 503 if (ioshark_read_header(state->fp, &header) != 1) { 530 FILE *fp; local 547 fp = fopen(infile, "r"); 548 if (fp 655 FILE *fp; local [all...] |
H A D | ioshark_bench.h | 156 int ioshark_read_header(FILE *fp, struct ioshark_header *header); 157 int ioshark_read_file_state(FILE *fp, struct ioshark_file_state *state); 158 int ioshark_read_file_op(FILE *fp, struct ioshark_file_operation *file_op);
|
H A D | ioshark_bench_subr.c | 428 FILE *fp; local 441 fp = fopen("/proc/uptime", "r"); 442 if (fgets(line, sizeof(line), fp) == NULL) { 447 fclose(fp); 454 fp = fopen("/proc/diskstats", "r"); 455 while (fgets(line, sizeof(line), fp)) { 474 fclose(fp); 486 FILE *fp; local 490 fp = fopen("/proc/stat", "r"); 491 if (fgets(line, sizeof(line), fp) 659 ioshark_read_header(FILE *fp, struct ioshark_header *header) argument 670 ioshark_read_file_state(FILE *fp, struct ioshark_file_state *state) argument 681 ioshark_read_file_op(FILE *fp, struct ioshark_file_operation *file_op) argument [all...] |
/system/core/libpackagelistparser/ |
H A D | packagelistparser.c | 93 FILE *fp; local 107 fp = fopen(PACKAGES_LIST_FILE, "re"); 108 if (!fp) { 114 while ((bytesread = getline(&buf, &buflen, fp)) > 0) { 243 fclose(fp);
|
/system/extras/simpleperf/ |
H A D | CallChainJoiner.cpp | 177 static bool WriteCallChain(FILE* fp, pid_t pid, pid_t tid, CallChainJoiner::ChainType type, argument 199 if (fwrite(data.data(), size, 1, fp) != 1) { 206 static bool ReadCallChain(FILE* fp, pid_t& pid, pid_t& tid, CallChainJoiner::ChainType& type, argument 209 if (fread(data.data(), data.size(), 1, fp) != 1) { 220 if (fread(data.data(), data.size(), 1, fp) != 1) { 232 static bool ReadCallChainInReverseOrder(FILE* fp, pid_t& pid, pid_t& tid, argument 237 if (fseek(fp, -4, SEEK_CUR) != 0 || fread(&size, sizeof(size), 1, fp) != 1) { 242 if (fseek(fp, -static_cast<int>(size), SEEK_CUR) != 0 || 243 fread(data.data(), data.size(), 1, fp) ! 263 FILE* fp = fdopen(tmpfile->release(), "web+"); local 398 FILE* fp; local [all...] |
H A D | cmd_kmem.cpp | 282 "-g Enable call graph recording. Same as '--call-graph fp'.\n" 287 " Can be used on perf.data recorded with `--call-graph fp` option.\n" 289 " `--call-graph fp` option. If callee mode is used, the graph\n" 336 void PrintReportContext(FILE* fp); 337 void PrintSlabReportContext(FILE* fp); 391 left_args->push_back("fp"); 673 void KmemCommand::PrintReportContext(FILE* fp) { argument 675 fprintf(fp, "Cmdline: %s\n", record_cmdline_.c_str()); 677 fprintf(fp, "Arch: %s\n", GetArchString(record_file_arch_).c_str()); 679 fprintf(fp, "Even 684 PrintSlabReportContext(FILE* fp) argument [all...] |
H A D | cmd_stat.cpp | 169 void Show(FILE* fp) { argument 182 fprintf(fp, "%s,%s,%s,(%.0lf%%)%s\n", s.readable_count.c_str(), 186 fprintf(fp, " %*s %-*s # %-*s (%.0lf%%)%s\n", 335 double duration_in_sec, FILE* fp); 408 FILE* fp = stdout; local 415 fp = fp_holder.get(); 454 if (!ShowCounters(counters, duration_in_sec, fp)) { 619 double duration_in_sec, FILE* fp) { 621 fprintf(fp, "Performance counter statistics,\n"); 623 fprintf(fp, "Performanc 618 ShowCounters(const std::vector<CountersInfo>& counters, double duration_in_sec, FILE* fp) argument [all...] |
H A D | read_apk.cpp | 161 FILE* fp = fopen(apk_path.c_str(), mode.c_str()); local 162 if (fp == nullptr) { 166 if (fread(buf, 4, 1, fp) != 1) { 167 fclose(fp); 170 fclose(fp);
|
H A D | environment.cpp | 51 explicit LineReader(FILE* fp) : fp_(fp), buf_(nullptr), bufsize_(0) { argument 78 FILE* fp = fopen("/sys/devices/system/cpu/online", "re"); local 79 if (fp == nullptr) { 84 LineReader reader(fp); 123 FILE* fp = fopen("/proc/modules", "re"); local 124 if (fp == nullptr) { 129 LineReader reader(fp); 262 FILE* fp = fopen(map_file.c_str(), "re"); local 263 if (fp [all...] |
/system/libufdt/utils/src/ |
H A D | mkdtimg_core.c | 79 static char *load_file_contents(FILE *fp, size_t *len_ptr) { argument 81 fseek(fp, 0, SEEK_END); 82 size_t len = ftell(fp); 83 fseek(fp, 0, SEEK_SET); 90 if (fread(buf, len, 1, fp) != 1) { 103 FILE *fp = fopen(filename, "r"); local 104 if (!fp) { 108 char *buf = load_file_contents(fp, len_ptr); 110 fclose(fp);
|
/system/core/adb/ |
H A D | remount_service.cpp | 41 std::unique_ptr<FILE, int(*)(FILE*)> fp(setmntent("/proc/mounts", "r"), endmntent); 42 if (!fp) { 47 while ((e = getmntent(fp.get())) != nullptr) {
|
H A D | adbd_auth.cpp | 94 FILE* fp = fopen("/dev/urandom", "re"); local 95 if (!fp) return false; 96 bool okay = (fread(token, token_size, 1, fp) == 1); 97 fclose(fp);
|
/system/core/libprocinfo/ |
H A D | process.cpp | 73 std::unique_ptr<FILE, decltype(&fclose)> fp(fdopen(status_fd, "r"), fclose); 74 if (!fp) { 85 while (getline(&line, &len, fp.get()) != -1 && field_bitmap != finished_bitmap) {
|
/system/nfc/utils/test/ |
H A D | config_test.cc | 59 FILE* fp = fopen(SIMPLE_CONFIG_FILE, "wt"); variable 60 fwrite(SIMPLE_CONFIG, 1, sizeof(SIMPLE_CONFIG), fp); 61 fclose(fp); variable
|
/system/extras/pagecache/ |
H A D | dumpcache.c | 138 FILE* fp = setmntent("/proc/mounts", "r"); local 139 if (fp == NULL) { 144 while ((mentry = getmntent(fp)) != NULL) { 152 endmntent(fp);
|
/system/tools/hidl/docs/src/ |
H A D | main.kt | 37 for (fp in config.files) { 38 println("$LOG_NAME Parsing input: $fp") 40 val tokens = HidlLexer.tokenize(fp) 51 System.err.println("$LOG_NAME Error parsing file, skipping: $fp") 54 System.err.println("$LOG_NAME Error parsing file: $fp")
|
/system/tools/hidl/docs/src/writer/files/ |
H A D | IndexFileWriter.kt | 143 val fp = tocOutPath.toFile() 144 fp.bufferedWriter().use { 148 if (!fp.isFile) throw FileSystemException(fp, reason = "Error writing file")
|
/system/sepolicy/tests/ |
H A D | sepol_wrap.cpp | 188 FILE *fp; local 191 fp = fopen(policy_path, "re"); 192 if (!fp) { 200 fclose(fp); 209 if (fstat(fileno(fp), &sb)) { 212 fclose(fp); 218 mmap(NULL, sb.st_size, PROT_READ, MAP_PRIVATE, fileno(fp), 0), unmap); 222 fclose(fp); 234 fclose(fp); 242 fclose(fp); [all...] |
/system/core/libpixelflinger/ |
H A D | raster.cpp | 105 const GGLFormat* fp = &(c->formats[cb->format]); local 107 + (xs + (cb->stride * ys)) * fp->size; 109 + (xd + (cb->stride * yd)) * fp->size; 110 const size_t bpr = cb->stride * fp->size; 111 const size_t rowsize = width * fp->size;
|
/system/bt/osi/test/ |
H A D | config_test.cc | 56 FILE* fp = fopen(CONFIG_FILE, "wt"); local 57 fwrite(CONFIG_FILE_CONTENT, 1, sizeof(CONFIG_FILE_CONTENT), fp); 58 fclose(fp);
|
/system/extras/perfprofd/scripts/ |
H A D | perf_proto_json2sqlite.py | 157 fp = open(f, 'r') 158 data = json.load(fp) 159 fp.close()
|
/system/core/libcutils/ |
H A D | sched_policy.cpp | 192 FILE *fp; local 195 if (!(fp = fopen(pathBuf, "re"))) { 199 while(fgets(lineBuf, sizeof(lineBuf) -1, fp)) { 231 fclose(fp); 236 fclose(fp); 240 fclose(fp);
|
H A D | open_memstream.c | 225 FILE* fp; local 237 fp = funopen(stream, 239 if (fp == NULL) { 249 return fp; 269 * fp = fopencookie(stream, "w", iofuncs);
|