/art/runtime/hprof/ |
H A D | hprof.h | 24 void DumpHeap(const char* filename, int fd, bool direct_to_ddms);
|
H A D | hprof.cc | 369 Hprof(const char* output_filename, int fd, bool direct_to_ddms) argument 371 fd_(fd), 654 // If direct_to_ddms_ is set, "filename_" and "fd" will be ignored. 655 // Otherwise, "filename_" must be valid, though if "fd" >= 0 it will 1076 // If "fd" is >= 0, the output will be written to that file descriptor. 1078 void DumpHeap(const char* filename, int fd, bool direct_to_ddms) { argument 1082 Hprof hprof(filename, fd, direct_to_ddms);
|
/art/runtime/jdwp/ |
H A D | jdwp_adb.cc | 130 * Receive a file descriptor from ADB. The fd can be used to communicate 309 int fd; local 314 fd = control_sock_; 315 if (fd >= 0) { 316 FD_SET(fd, &readfds); 317 if (maxfd < fd) { 318 maxfd = fd; 321 fd = clientSock; 322 if (fd >= 0) { 323 FD_SET(fd, [all...] |
H A D | jdwp_socket.cc | 197 static int SetNoDelay(int fd) { argument 199 int cc = setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &on, sizeof(on)); 360 int fd; local 365 fd = listenSock; 366 if (fd >= 0) { 367 FD_SET(fd, &readfds); 368 if (maxfd < fd) { 369 maxfd = fd; 372 fd = clientSock; 373 if (fd > [all...] |
/art/runtime/ |
H A D | mem_map.h | 47 static MemMap* MapFile(size_t byte_count, int prot, int flags, int fd, off_t start) { argument 48 return MapFileAtAddress(NULL, byte_count, prot, flags, fd, start, false); 57 byte* addr, size_t byte_count, int prot, int flags, int fd, off_t start, bool reuse);
|
H A D | zip_archive_test.cc | 46 int fd = open(tmp.GetFilename().c_str(), O_RDONLY); local 47 ASSERT_NE(-1, fd); 51 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buf, kBufSize));
|
H A D | mem_map.cc | 82 ScopedFd fd(ashmem_create_region(debug_friendly_name.c_str(), page_aligned_byte_count)); 84 if (fd.get() == -1) { 89 ScopedFd fd(-1); 93 byte* actual = reinterpret_cast<byte*>(mmap(addr, page_aligned_byte_count, prot, flags, fd.get(), 0)); 98 << ", " << prot << ", " << flags << ", " << fd.get() << ", 0) failed for " << name 106 int prot, int flags, int fd, off_t start, bool reuse) { 131 fd, 138 << ", " << prot << ", " << flags << ", " << fd << ", " << page_aligned_offset 105 MapFileAtAddress(byte* addr, size_t byte_count, int prot, int flags, int fd, off_t start, bool reuse) argument
|
H A D | monitor_android.cc | 60 int fd = open("/proc/self/cmdline", O_RDONLY); 63 read(fd, procName, sizeof(procName) - 1); 64 close(fd);
|
H A D | zip_archive.h | 113 static ZipArchive* OpenFromFd(int fd); 122 explicit ZipArchive(int fd) : fd_(fd), num_entries_(0), dir_offset_(0) {} argument
|
H A D | zip_archive.cc | 318 static void SetCloseOnExec(int fd) { argument 320 int flags = fcntl(fd, F_GETFD); 322 PLOG(WARNING) << "fcntl(" << fd << ", F_GETFD) failed"; 325 int rc = fcntl(fd, F_SETFD, flags | FD_CLOEXEC); 327 PLOG(WARNING) << "fcntl(" << fd << ", F_SETFD, " << flags << ") failed"; 334 int fd = open(filename.c_str(), O_RDONLY, 0); local 335 if (fd == -1) { 339 return OpenFromFd(fd); 342 ZipArchive* ZipArchive::OpenFromFd(int fd) { argument 343 SetCloseOnExec(fd); [all...] |
H A D | dex_file.cc | 67 int fd = open(filename.c_str(), O_RDONLY, 0); local 68 if (fd == -1) { 72 int n = TEMP_FAILURE_RETRY(read(fd, magic, sizeof(*magic))); 77 if (lseek(fd, 0, SEEK_SET) != 0) { 81 return fd; 87 int fd = OpenAndReadMagic(filename, &magic); local 88 if (fd == -1) { 92 UniquePtr<ZipArchive> zip_archive(ZipArchive::OpenFromFd(fd)); 105 UniquePtr<const DexFile> dex_file(DexFile::OpenFile(fd, filename, false)); 119 int fd local 163 OpenFile(int fd, const std::string& location, bool verify) argument 210 OpenZip(int fd, const std::string& location) argument [all...] |
H A D | signal_catcher.cc | 104 int fd = open(stack_trace_file_.c_str(), O_APPEND | O_CREAT | O_WRONLY, 0666); local 105 if (fd == -1) { 109 UniquePtr<File> file(new File(fd, stack_trace_file_));
|
H A D | common_test.h | 128 int fd = mkstemp(&filename_[0]); local 129 CHECK_NE(-1, fd); 130 file_.reset(new File(fd, GetFilename()));
|
H A D | dex_file.h | 818 static const DexFile* OpenFile(int fd, 823 static const DexFile* OpenZip(int fd, const std::string& location);
|
/art/runtime/base/unix_file/ |
H A D | fd_file.cc | 29 FdFile::FdFile(int fd) : fd_(fd), auto_close_(true) { argument 32 FdFile::FdFile(int fd, const std::string& path) : fd_(fd), file_path_(path), auto_close_(true) { argument
|
H A D | fd_file.h | 35 explicit FdFile(int fd); 36 explicit FdFile(int fd, const std::string& path);
|
H A D | mapped_file.h | 43 explicit MappedFile(int fd) : FdFile(fd), file_size_(-1), mapped_file_(NULL) { argument
|
H A D | mapped_file_test.cc | 36 int fd = TEMP_FAILURE_RETRY(open(good_path_.c_str(), O_CREAT|O_RDWR, 0666)); local 37 FdFile dst(fd);
|
/art/runtime/native/ |
H A D | dalvik_system_VMDebug.cc | 74 int fd = dup(originalFd); local 75 if (fd < 0) { 87 Trace::Start(traceFilename.c_str(), fd, bufferSize, flags, false, false, 0); 170 * static void dumpHprofData(String fileName, FileDescriptor fd) 179 ThrowNullPointerException(NULL, "fileName == null && fd == null"); 191 filename = "[fd]"; 194 int fd = -1; local 196 fd = jniGetFDFromFileDescriptor(env, javaFd); 197 if (fd < 0) { 204 hprof::DumpHeap(filename.c_str(), fd, fals [all...] |
/art/compiler/utils/mips/ |
H A D | assembler_mips.cc | 82 void MipsAssembler::EmitFR(int opcode, int fmt, FRegister ft, FRegister fs, FRegister fd, int funct) { argument 85 CHECK_NE(fd, kNoFRegister); 90 static_cast<int32_t>(fd) << kFdShift | 356 void MipsAssembler::AddS(FRegister fd, FRegister fs, FRegister ft) { argument 357 EmitFR(0x11, 0x10, ft, fs, fd, 0x0); 360 void MipsAssembler::SubS(FRegister fd, FRegister fs, FRegister ft) { argument 361 EmitFR(0x11, 0x10, ft, fs, fd, 0x1); 364 void MipsAssembler::MulS(FRegister fd, FRegister fs, FRegister ft) { argument 365 EmitFR(0x11, 0x10, ft, fs, fd, 0x2); 368 void MipsAssembler::DivS(FRegister fd, FRegiste argument 372 AddD(DRegister fd, DRegister fs, DRegister ft) argument 377 SubD(DRegister fd, DRegister fs, DRegister ft) argument 382 MulD(DRegister fd, DRegister fs, DRegister ft) argument 387 DivD(DRegister fd, DRegister fs, DRegister ft) argument 392 MovS(FRegister fd, FRegister fs) argument 396 MovD(DRegister fd, DRegister fs) argument [all...] |
H A D | assembler_mips.h | 275 void AddS(FRegister fd, FRegister fs, FRegister ft); 276 void SubS(FRegister fd, FRegister fs, FRegister ft); 277 void MulS(FRegister fd, FRegister fs, FRegister ft); 278 void DivS(FRegister fd, FRegister fs, FRegister ft); 279 void AddD(DRegister fd, DRegister fs, DRegister ft); 280 void SubD(DRegister fd, DRegister fs, DRegister ft); 281 void MulD(DRegister fd, DRegister fs, DRegister ft); 282 void DivD(DRegister fd, DRegister fs, DRegister ft); 283 void MovS(FRegister fd, FRegister fs); 284 void MovD(DRegister fd, DRegiste [all...] |
/art/compiler/ |
H A D | elf_writer_mclinker.cc | 330 // TODO: avoid dup of fd by fixing Linker::emit to not close the argument fd. 331 int fd = dup(elf_file_->Fd()); local 332 if (fd == -1) { 336 if (!linker_->emit(fd)) {
|
/art/jdwpspy/ |
H A D | Net.cpp | 351 static int setNoDelay(int fd) argument 355 cc = setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &on, sizeof(on));
|