/system/extras/simpleperf/ |
H A D | sample_tree.h | 308 void DisplaySamples(FILE* fp, const std::vector<EntryT*>& samples, argument 314 displayer_.PrintNames(fp); 316 displayer_.PrintSample(fp, sample);
|
H A D | utils.cpp | 103 void FprintIndented(FILE* fp, size_t indent, const char* fmt, ...) { argument 106 fprintf(fp, "%*s", static_cast<int>(indent * 2), ""); 107 vfprintf(fp, fmt, ap);
|
H A D | record_file.h | 67 RecordFileWriter(const std::string& filename, FILE* fp); 160 RecordFileReader(const std::string& filename, FILE* fp);
|
H A D | record_file_reader.cpp | 34 FILE* fp = fopen(filename.c_str(), mode.c_str()); local 35 if (fp == nullptr) { 39 auto reader = std::unique_ptr<RecordFileReader>(new RecordFileReader(filename, fp)); 47 RecordFileReader::RecordFileReader(const std::string& filename, FILE* fp) argument 48 : filename_(filename), record_fp_(fp), event_id_pos_in_sample_records_(0),
|
H A D | read_elf.cpp | 93 FILE* fp = fopen(filename.c_str(), mode.c_str()); local 94 if (fp == nullptr) { 97 ElfStatus result = IsValidElfFile(fileno(fp)); 98 fclose(fp);
|
H A D | utils.h | 139 void FprintIndented(FILE* fp, size_t indent, const char* fmt, ...);
|
/system/core/debuggerd/libdebuggerd/arm/ |
H A D | machine.cpp | 58 _LOG(log, logtype::REGISTERS, " r8 %08x r9 %08x sl %08x fp %08x\n", \ 60 static_cast<uint32_t>(reg_prefix##r10), static_cast<uint32_t>(reg_prefix##fp)); \
|
/system/core/logwrapper/ |
H A D | logwrap.c | 96 FILE *fp; member in struct:log_info 166 fprintf(log_info->fp, "%s\n", line); 343 log_info.fp = fdopen(fd, "a"); 456 fclose(log_info.fp); /* Also closes underlying fd */
|
/system/vold/ |
H A D | VolumeManager.cpp | 542 FILE* fp = setmntent("/proc/mounts", "r"); local 543 if (fp == NULL) { 552 while ((mentry = getmntent(fp)) != NULL) { 557 endmntent(fp); 728 FILE* fp = setmntent("/proc/mounts", "r"); local 729 if (fp == NULL) { 738 while ((mentry = getmntent(fp)) != NULL) { 744 endmntent(fp); 1889 FILE *fp = setmntent("/proc/mounts", "r"); local 1890 if (fp 1927 FILE *fp = setmntent("/proc/mounts", "r"); local [all...] |
H A D | Utils.cpp | 295 FILE* fp = popen(cmd.c_str(), "r"); local 301 if (!fp) { 306 while (fgets(line, sizeof(line), fp) != nullptr) { 310 if (pclose(fp) != 0) {
|
H A D | CommandListener.cpp | 126 FILE *fp = fopen("/proc/mounts", "re"); local 127 if (fp) { 129 while (fgets(line, sizeof(line), fp)) { 133 fclose(fp);
|
/system/core/logd/ |
H A D | LogStatistics.cpp | 602 FILE* fp = fopen(buffer, "r"); local 603 if (fp) { 604 while (fgets(buffer, sizeof(buffer), fp)) { 607 fclose(fp); 611 fclose(fp);
|
/system/extras/perfprofd/tests/ |
H A D | perfprofd_test.cc | 211 FILE *fp = fopen(processed.c_str(), "w"); local 213 fprintf(fp, "%d\n", i); 215 fclose(fp); 242 FILE *fp = fopen(config_path.c_str(), "w"); local 243 ASSERT_TRUE(fp != nullptr); 244 fprintf(fp, "%s\n", config_text.c_str()); 245 fclose(fp);
|
/system/core/adb/ |
H A D | adb_auth_host.cpp | 176 std::unique_ptr<FILE, decltype(&fclose)> fp(fopen(file.c_str(), "r"), fclose); 177 if (!fp) { 183 if (!PEM_read_RSAPrivateKey(fp.get(), &key, nullptr, nullptr)) {
|
/system/core/init/ |
H A D | reboot.cpp | 189 std::unique_ptr<std::FILE, int (*)(std::FILE*)> fp(setmntent("/proc/mounts", "r"), endmntent); 190 if (fp == nullptr) { 195 while ((mentry = getmntent(fp.get())) != nullptr) {
|
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/ |
H A D | header.h | 123 int perf_header__fprintf_info(struct perf_session *s, FILE *fp, bool full);
|
/system/bt/btif/src/ |
H A D | btif_dm.cc | 2694 FILE* fp; local 2711 fp = fopen(path, "wb+"); 2712 if (fp == NULL) { 2718 fwrite(c, 1, BT_OCTET16_LEN, fp); 2719 fwrite(r, 1, BT_OCTET16_LEN, fp); 2720 fclose(fp); 2791 FILE* fp; local 2806 fp = fopen(path, "rb"); 2807 if (fp == NULL) { 2812 fread(p_c, 1, BT_OCTET16_LEN, fp); [all...] |
/system/core/logcat/ |
H A D | logcat.cpp | 1271 FILE* fp = fopen(devname.c_str(), "web"); local 1273 if (!fp) break; 1277 if(!android::base::WriteFully(fileno(fp), pipePurpose.c_str(), 1279 fclose(fp); 1289 context->output = fp; 1290 context->output_fd = fileno(fp); 1293 context->error = fp; 1294 context->error_fd = fileno(fp);
|
/system/core/libpixelflinger/ |
H A D | scanline.cpp | 2258 const GGLFormat* fp = &(c->formats[cb->format]); local 2260 (x + (cb->stride * y)) * fp->size; 2266 (u + (tex->stride * v)) * fp->size; 2268 const size_t size = ct * fp->size; 2311 const GGLFormat* fp = &(c->formats[cb->format]); local 2313 (x + (cb->stride * y)) * fp->size; 2314 const size_t size = ct * fp->size; 2324 const GGLFormat* fp = &(c->formats[cb->format]); local 2326 (x + (cb->stride * y)) * fp->size; 2327 const size_t size = ct * fp 2349 const GGLFormat* fp = &(c->formats[cb->format]); local [all...] |
H A D | trap.cpp | 457 const GGLFormat* fp = &(c->formats[cb->format]); local 459 (x + (cb->stride * y)) * fp->size; 460 const size_t size = ct * fp->size;
|
/system/core/logd/tests/ |
H A D | logd_test.cpp | 420 FILE* fp; local 425 (fp = popen("/data/nativetest/liblog-benchmarks/liblog-benchmarks" 451 while (fgets(buffer, sizeof(buffer), fp)) { 461 int ret = pclose(fp);
|
/system/update_engine/payload_generator/ |
H A D | delta_diff_utils_unittest.cc | 51 base::ScopedFILE fp(fopen(part_path.c_str(), "r+")); 52 TEST_AND_RETURN_FALSE(fp.get()); 58 fseek(fp.get(), extent.start_block() * block_size, SEEK_SET) == 0); 63 fwrite(data.data() + offset, 1, to_write, fp.get()) == to_write);
|
/system/core/liblog/tests/ |
H A D | liblog_test.cpp | 111 FILE* fp = popen(command.c_str(), "r"); local 112 if (fp) { 113 if (!android::base::ReadFdToString(fileno(fp), &ret)) ret = ""; 114 pclose(fp); 661 FILE* fp = fopen(buffer, "r"); local 662 if (!fp) { 666 char* cp = fgets(buffer, sizeof(buffer), fp); 667 fclose(fp);
|
/system/sepolicy/tools/ |
H A D | check_seapp.c | 496 * @param fp 501 static void rule_map_print(FILE *fp, rule_map *r) { argument 509 fprintf(fp, "%s=%s ", m->name, m->data); 511 fprintf(fp, "%s=%s", m->name, m->data);
|
/system/core/fastboot/ |
H A D | fastboot.cpp | 595 FILE* fp = tmpfile(); local 596 if (fp == nullptr) { 606 fclose(fp); 610 int fd = fileno(fp); 614 fclose(fp); 619 // TODO: We're leaking 'fp' here.
|