/art/compiler/utils/ |
H A D | swap_space_test.cc | 36 int fd = scratch.GetFd(); local 39 SwapSpace pool(fd, 1 * MB);
|
H A D | swap_space.cc | 66 SwapSpace::SwapSpace(int fd, size_t initial_size) argument 67 : fd_(fd),
|
/art/runtime/ |
H A D | zip_archive_test.cc | 52 int fd = open(tmp.GetFilename().c_str(), O_RDONLY); local 53 ASSERT_NE(-1, fd); 57 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buf, kBufSize));
|
H A D | zip_archive.cc | 77 static void SetCloseOnExec(int fd) { argument 79 int flags = fcntl(fd, F_GETFD); 81 PLOG(WARNING) << "fcntl(" << fd << ", F_GETFD) failed"; 84 int rc = fcntl(fd, F_SETFD, flags | FD_CLOEXEC); 86 PLOG(WARNING) << "fcntl(" << fd << ", F_SETFD, " << flags << ") failed"; 106 ZipArchive* ZipArchive::OpenFromFd(int fd, const char* filename, std::string* error_msg) { argument 108 DCHECK_GT(fd, 0); 111 const int32_t error = OpenArchiveFd(fd, filename, &handle);
|
H A D | mem_map.h | 77 static MemMap* MapFile(size_t byte_count, int prot, int flags, int fd, off_t start, argument 80 nullptr, byte_count, prot, flags, fd, start, false, filename, error_msg); 90 static MemMap* MapFileAtAddress(uint8_t* addr, size_t byte_count, int prot, int flags, int fd,
|
H A D | signal_catcher.cc | 109 int fd = open(stack_trace_file_.c_str(), O_APPEND | O_CREAT | O_WRONLY, 0666); local 110 if (fd == -1) { 114 std::unique_ptr<File> file(new File(fd, stack_trace_file_, true));
|
H A D | common_runtime_test.cc | 73 int fd = mkstemp(&filename_[0]); local 74 CHECK_NE(-1, fd); 75 file_.reset(new File(fd, GetFilename(), true)); 81 int fd = open(filename_.c_str(), O_RDWR | O_CREAT, 0666); local 82 CHECK_NE(-1, fd); 83 file_.reset(new File(fd, GetFilename(), true));
|
H A D | mem_map.cc | 245 int fd) { 246 void* actual = mmap(ptr, page_aligned_byte_count, prot, flags, fd, 0); 279 ScopedFd fd(-1); 297 fd.reset(ashmem_create_region(debug_friendly_name.c_str(), page_aligned_byte_count)); 298 if (fd.get() == -1) { 360 fd.get()); 396 fd.get()); 411 actual = mmap(expected_ptr, page_aligned_byte_count, prot, flags, fd.get(), 0); 422 void* actual = mmap(expected_ptr, page_aligned_byte_count, prot, flags, fd.get(), 0); 431 flags, fd 244 TryMemMapLow4GB(void* ptr, size_t page_aligned_byte_count, int prot, int flags, int fd) argument 450 MapFileAtAddress(uint8_t* expected_ptr, size_t byte_count, int prot, int flags, int fd, off_t start, bool reuse, const char* filename, std::string* error_msg) argument [all...] |
H A D | profiler.cc | 272 int fd = open(full_name.c_str(), O_RDWR); local 273 if (fd < 0) { 281 int err = flock(fd, LOCK_EX); 288 profile_table_.ReadPrevious(fd, options_.GetProfileType()); 291 lseek(fd, 0, SEEK_SET); 301 int n = ::write(fd, p, length); 307 ftruncate(fd, full_length); 310 err = flock(fd, LOCK_UN); 316 ::close(fd); 718 static bool ReadProfileLine(int fd, st argument 734 ReadPrevious(int fd, ProfileDataType type) argument [all...] |
H A D | dex_file.cc | 61 ScopedFd fd(open(filename, O_RDONLY, 0)); 62 if (fd.get() == -1) { 66 int n = TEMP_FAILURE_RETRY(read(fd.get(), magic, sizeof(*magic))); 71 if (lseek(fd.get(), 0, SEEK_SET) != 0) { 76 return fd.release(); 95 ScopedFd fd(OpenAndReadMagic(file_part, &magic, error_msg)); 96 if (fd.get() == -1) { 102 ZipArchive::OpenFromFd(fd.release(), filename, error_msg)); 119 DexFile::OpenFile(fd.release(), filename, false, error_msg)); 134 ScopedFd fd(OpenAndReadMagi 156 ContainsClassesDex(int fd, const char* filename) argument 211 OpenFile(int fd, const char* location, bool verify, std::string* error_msg) argument 261 OpenZip(int fd, const std::string& location, std::string* error_msg, std::vector<std::unique_ptr<const DexFile>>* dex_files) argument [all...] |
H A D | runtime.cc | 562 int fd = open(profile_output_filename_.c_str(), O_RDWR|O_CREAT|O_EXCL, 0660); local 563 if (fd >= 0) { 564 close(fd);
|
/art/runtime/base/unix_file/ |
H A D | fd_file.cc | 31 FdFile::FdFile(int fd, bool check_usage) argument 33 fd_(fd), auto_close_(true) { 36 FdFile::FdFile(int fd, const std::string& path, bool check_usage) argument 38 fd_(fd), file_path_(path), auto_close_(true) { 181 static ssize_t ReadIgnoreOffset(int fd, void *buf, size_t count, off_t offset) { argument 183 return read(fd, buf, count); 187 static bool ReadFullyGeneric(int fd, void* buffer, size_t byte_count, size_t offset) { argument 190 ssize_t bytes_read = TEMP_FAILURE_RETRY(read_func(fd, ptr, byte_count, offset));
|
/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/native/ |
H A D | dalvik_system_VMDebug.cc | 99 int fd = dup(originalFd); local 100 if (fd < 0) { 111 Trace::Start(traceFilename.c_str(), fd, bufferSize, flags, Trace::TraceOutputMode::kFile, 198 * static void dumpHprofData(String fileName, FileDescriptor fd) 207 ThrowNullPointerException("fileName == null && fd == null"); 219 filename = "[fd]"; 222 int fd = -1; local 224 fd = jniGetFDFromFileDescriptor(env, javaFd); 225 if (fd < 0) { 232 hprof::DumpHeap(filename.c_str(), fd, fals [all...] |
/art/compiler/utils/mips/ |
H A D | assembler_mips.cc | 71 void MipsAssembler::EmitFR(int opcode, int fmt, FRegister ft, FRegister fs, FRegister fd, int funct) { argument 74 CHECK_NE(fd, kNoFRegister); 79 static_cast<int32_t>(fd) << kFdShift | 345 void MipsAssembler::AddS(FRegister fd, FRegister fs, FRegister ft) { argument 346 EmitFR(0x11, 0x10, ft, fs, fd, 0x0); 349 void MipsAssembler::SubS(FRegister fd, FRegister fs, FRegister ft) { argument 350 EmitFR(0x11, 0x10, ft, fs, fd, 0x1); 353 void MipsAssembler::MulS(FRegister fd, FRegister fs, FRegister ft) { argument 354 EmitFR(0x11, 0x10, ft, fs, fd, 0x2); 357 void MipsAssembler::DivS(FRegister fd, FRegiste argument 361 AddD(DRegister fd, DRegister fs, DRegister ft) argument 366 SubD(DRegister fd, DRegister fs, DRegister ft) argument 371 MulD(DRegister fd, DRegister fs, DRegister ft) argument 376 DivD(DRegister fd, DRegister fs, DRegister ft) argument 381 MovS(FRegister fd, FRegister fs) argument 385 MovD(DRegister fd, DRegister fs) argument [all...] |
/art/compiler/utils/mips64/ |
H A D | assembler_mips64.cc | 71 void Mips64Assembler::EmitFR(int opcode, int fmt, FpuRegister ft, FpuRegister fs, FpuRegister fd, argument 75 CHECK_NE(fd, kNoFpuRegister); 80 static_cast<uint32_t>(fd) << kFdShift | 514 void Mips64Assembler::AddS(FpuRegister fd, FpuRegister fs, FpuRegister ft) { argument 515 EmitFR(0x11, 0x10, ft, fs, fd, 0x0); 518 void Mips64Assembler::SubS(FpuRegister fd, FpuRegister fs, FpuRegister ft) { argument 519 EmitFR(0x11, 0x10, ft, fs, fd, 0x1); 522 void Mips64Assembler::MulS(FpuRegister fd, FpuRegister fs, FpuRegister ft) { argument 523 EmitFR(0x11, 0x10, ft, fs, fd, 0x2); 526 void Mips64Assembler::DivS(FpuRegister fd, FpuRegiste argument 530 AddD(FpuRegister fd, FpuRegister fs, FpuRegister ft) argument 534 SubD(FpuRegister fd, FpuRegister fs, FpuRegister ft) argument 538 MulD(FpuRegister fd, FpuRegister fs, FpuRegister ft) argument 542 DivD(FpuRegister fd, FpuRegister fs, FpuRegister ft) argument 546 MovS(FpuRegister fd, FpuRegister fs) argument 550 MovD(FpuRegister fd, FpuRegister fs) argument 554 NegS(FpuRegister fd, FpuRegister fs) argument 558 NegD(FpuRegister fd, FpuRegister fs) argument 562 Cvtsw(FpuRegister fd, FpuRegister fs) argument 566 Cvtdw(FpuRegister fd, FpuRegister fs) argument 570 Cvtsd(FpuRegister fd, FpuRegister fs) argument 574 Cvtds(FpuRegister fd, FpuRegister fs) argument [all...] |
/art/runtime/hprof/ |
H A D | hprof.cc | 411 Hprof(const char* output_filename, int fd, bool direct_to_ddms) argument 413 fd_(fd), 727 // If direct_to_ddms_ is set, "filename_" and "fd" will be ignored. 728 // Otherwise, "filename_" must be valid, though if "fd" >= 0 it will 1213 // If "fd" is >= 0, the output will be written to that file descriptor. 1215 void DumpHeap(const char* filename, int fd, bool direct_to_ddms) { argument 1226 Hprof hprof(filename, fd, direct_to_ddms);
|