Lines Matching refs:fd

77 static bool FdIsValid(int fd) {  in FdIsValid()  argument
78 return fd != kInvalidFd; in FdIsValid()
612 std::unique_ptr<const ProfileCompilationInfo> LoadProfile(const std::string& filename, int fd) { in LoadProfile() argument
619 fd = open(filename.c_str(), flags); in LoadProfile()
620 if (fd < 0) { in LoadProfile()
626 if (!info->Load(fd)) { in LoadProfile()
627 LOG(ERROR) << "Cannot load profile info from fd=" << fd << "\n"; in LoadProfile()
635 int fd, in DumpOneProfile() argument
638 std::unique_ptr<const ProfileCompilationInfo> info(LoadProfile(filename, fd)); in DumpOneProfile()
640 LOG(ERROR) << "Cannot load profile info from filename=" << filename << " fd=" << fd; in DumpOneProfile()
728 bool GetClassNamesAndMethods(int fd, in GetClassNamesAndMethods() argument
732 if (!profile_info.Load(fd)) { in GetClassNamesAndMethods()
788 int fd = open(profile_file.c_str(), flags); in GetClassNamesAndMethods() local
789 if (!FdIsValid(fd)) { in GetClassNamesAndMethods()
793 if (!GetClassNamesAndMethods(fd, dex_files, out_lines)) { in GetClassNamesAndMethods()
796 if (close(fd) < 0) { in GetClassNamesAndMethods()
1219 int fd = reference_profile_file_fd_; in OpenReferenceProfile() local
1220 if (!FdIsValid(fd)) { in OpenReferenceProfile()
1227 fd = open(reference_profile_file_.c_str(), flags, 0644); in OpenReferenceProfile()
1228 if (fd < 0) { in OpenReferenceProfile()
1233 return fd; in OpenReferenceProfile()
1254 int fd = OpenReferenceProfile(); in CreateBootProfile() local
1255 if (!FdIsValid(fd)) { in CreateBootProfile()
1275 CHECK(info.Save(fd)); in CreateBootProfile()
1277 if (close(fd) < 0) { in CreateBootProfile()
1309 int fd = OpenReferenceProfile(); in CreateProfile() local
1310 if (!FdIsValid(fd)) { in CreateProfile()
1330 CHECK(info.Save(fd)); in CreateProfile()
1331 if (close(fd) < 0) { in CreateProfile()
1477 int fd; in ParseFdForCollection() local
1478 ParseUintOption(raw_option, option_prefix, &fd); in ParseFdForCollection()
1479 fds->push_back(fd); in ParseFdForCollection()