Lines Matching refs:fd
73 static bool FdIsValid(int fd) { in FdIsValid() argument
74 return fd != kInvalidFd; in FdIsValid()
515 std::unique_ptr<const ProfileCompilationInfo> LoadProfile(const std::string& filename, int fd) { in LoadProfile() argument
522 fd = open(filename.c_str(), flags); in LoadProfile()
523 if (fd < 0) { in LoadProfile()
529 if (!info->Load(fd)) { in LoadProfile()
530 LOG(ERROR) << "Cannot load profile info from fd=" << fd << "\n"; in LoadProfile()
538 int fd, in DumpOneProfile() argument
541 std::unique_ptr<const ProfileCompilationInfo> info(LoadProfile(filename, fd)); in DumpOneProfile()
543 LOG(ERROR) << "Cannot load profile info from filename=" << filename << " fd=" << fd; in DumpOneProfile()
631 bool GetClassNamesAndMethods(int fd, in GetClassNamesAndMethods() argument
635 if (!profile_info.Load(fd)) { in GetClassNamesAndMethods()
691 int fd = open(profile_file.c_str(), flags); in GetClassNamesAndMethods() local
692 if (!FdIsValid(fd)) { in GetClassNamesAndMethods()
696 if (!GetClassNamesAndMethods(fd, dex_files, out_lines)) { in GetClassNamesAndMethods()
699 if (close(fd) < 0) { in GetClassNamesAndMethods()
1069 int fd = reference_profile_file_fd_; in OpenReferenceProfile() local
1070 if (!FdIsValid(fd)) { in OpenReferenceProfile()
1077 fd = open(reference_profile_file_.c_str(), flags, 0644); in OpenReferenceProfile()
1078 if (fd < 0) { in OpenReferenceProfile()
1083 return fd; in OpenReferenceProfile()
1111 int fd = OpenReferenceProfile(); in CreateProfile() local
1112 if (!FdIsValid(fd)) { in CreateProfile()
1132 CHECK(info.Save(fd)); in CreateProfile()
1133 if (close(fd) < 0) { in CreateProfile()
1294 int fd; in ParseFdForCollection() local
1295 ParseUintOption(raw_option, option_prefix, &fd); in ParseFdForCollection()
1296 fds->push_back(fd); in ParseFdForCollection()