Searched refs:fp (Results 51 - 75 of 76) sorted by relevance

1234

/system/extras/simpleperf/
H A Dsample_tree.h308 void DisplaySamples(FILE* fp, const std::vector<EntryT*>& samples, argument
314 displayer_.PrintNames(fp);
316 displayer_.PrintSample(fp, sample);
H A Dutils.cpp103 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 Drecord_file.h67 RecordFileWriter(const std::string& filename, FILE* fp);
160 RecordFileReader(const std::string& filename, FILE* fp);
H A Drecord_file_reader.cpp34 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 Dread_elf.cpp93 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 Dutils.h139 void FprintIndented(FILE* fp, size_t indent, const char* fmt, ...);
/system/core/debuggerd/libdebuggerd/arm/
H A Dmachine.cpp58 _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 Dlogwrap.c96 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 DVolumeManager.cpp542 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 DUtils.cpp295 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 DCommandListener.cpp126 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 DLogStatistics.cpp602 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 Dperfprofd_test.cc211 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 Dadb_auth_host.cpp176 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 Dreboot.cpp189 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 Dheader.h123 int perf_header__fprintf_info(struct perf_session *s, FILE *fp, bool full);
/system/bt/btif/src/
H A Dbtif_dm.cc2694 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 Dlogcat.cpp1271 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 Dscanline.cpp2258 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 Dtrap.cpp457 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 Dlogd_test.cpp420 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 Ddelta_diff_utils_unittest.cc51 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 Dliblog_test.cpp111 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 Dcheck_seapp.c496 * @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 Dfastboot.cpp595 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.

Completed in 754 milliseconds

1234