Lines Matching refs:fd

51     FileDescriptor(int fd) : mFd(fd) {}
67 FileOutputStreamLite(int fd) : mCopyAdapter(fd), mImpl(&mCopyAdapter) {}
85 FDAdapter(int fd) : mFd(fd) {}
108 FileDescriptor fd{open(path.c_str(), O_RDONLY)};
109 if (!fd.valid()) {
119 if (fstat(fd, &sb) || sb.st_size < sHeaderSize) {
129 void* addr = mmap(nullptr, sb.st_size, PROT_READ, MAP_SHARED, fd, 0);
227 void dumpAsTextToFd(protos::GraphicsStatsProto* proto, int fd) {
234 dprintf(fd, "\nPackage: %s", proto->package_name().c_str());
235 dprintf(fd, "\nVersion: %lld", proto->version_code());
236 dprintf(fd, "\nStats since: %lldns", proto->stats_start());
237 dprintf(fd, "\nStats end: %lldns", proto->stats_end());
239 dprintf(fd, "\nTotal frames rendered: %d", summary.total_frames());
240 dprintf(fd, "\nJanky frames: %d (%.2f%%)", summary.janky_frames(),
242 dprintf(fd, "\n50th percentile: %dms", findPercentile(proto, 50));
243 dprintf(fd, "\n90th percentile: %dms", findPercentile(proto, 90));
244 dprintf(fd, "\n95th percentile: %dms", findPercentile(proto, 95));
245 dprintf(fd, "\n99th percentile: %dms", findPercentile(proto, 99));
246 dprintf(fd, "\nNumber Missed Vsync: %d", summary.missed_vsync_count());
247 dprintf(fd, "\nNumber High input latency: %d", summary.high_input_latency_count());
248 dprintf(fd, "\nNumber Slow UI thread: %d", summary.slow_ui_thread_count());
249 dprintf(fd, "\nNumber Slow bitmap uploads: %d", summary.slow_bitmap_upload_count());
250 dprintf(fd, "\nNumber Slow issue draw commands: %d", summary.slow_draw_count());
251 dprintf(fd, "\nNumber Frame deadline missed: %d", summary.missed_deadline_count());
252 dprintf(fd, "\nHISTOGRAM:");
254 dprintf(fd, " %dms=%d", it.render_millis(), it.frame_count());
256 dprintf(fd, "\n");
298 ALOGW("Error writing to fd=%d, path='%s' err=%d (%s)", outFd, path.c_str(),
311 int fd() { return mFd; }
345 dumpAsTextToFd(&statsProto, dump->fd());
357 dumpAsTextToFd(&statsProto, dump->fd());
363 FileOutputStreamLite stream(dump->fd());