Home
last modified time | relevance | path

Searched refs:TEMP_FAILURE_RETRY (Results 1 – 25 of 25) sorted by relevance

/frameworks/native/cmds/dumpstate/
Dutils.cpp145 if ((fd = TEMP_FAILURE_RETRY(open(cmdpath, O_RDONLY | O_CLOEXEC))) >= 0) { in __for_each_pid()
146 TEMP_FAILURE_RETRY(read(fd, cmdline, sizeof(cmdline) - 2)); in __for_each_pid()
156 if ((fd = TEMP_FAILURE_RETRY(open(cmdpath, O_RDONLY | O_CLOEXEC))) >= 0) { in __for_each_pid()
157 TEMP_FAILURE_RETRY(read(fd, cmdline + 1, sizeof(cmdline) - 4)); in __for_each_pid()
215 if ((fd = TEMP_FAILURE_RETRY(open(commpath, O_RDONLY | O_CLOEXEC))) < 0) { in for_each_tid_helper()
219 TEMP_FAILURE_RETRY(read(fd, comm, sizeof(comm) - 2)); in for_each_tid_helper()
248 if ((fd = TEMP_FAILURE_RETRY(open(path, O_RDONLY | O_CLOEXEC))) < 0) { in show_wchan()
253 ret = TEMP_FAILURE_RETRY(read(fd, buffer, sizeof(buffer))); in show_wchan()
313 if ((fd = TEMP_FAILURE_RETRY(open(path, O_RDONLY | O_CLOEXEC))) < 0) { in show_showtime()
318 ret = TEMP_FAILURE_RETRY(read(fd, buffer, sizeof(buffer))); in show_showtime()
[all …]
Ddumpstate.cpp110 int fd = TEMP_FAILURE_RETRY(open(data[i].name, in get_tombstone_fds()
551 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer.data(), sizeof(buffer))); in add_zip_entry_from_fd()
575 ScopedFd fd(TEMP_FAILURE_RETRY(open(entry_path.c_str(), O_RDONLY | O_NONBLOCK | O_CLOEXEC))); in add_zip_entry()
726 int fd = TEMP_FAILURE_RETRY(open(anr_traces_path, in dumpstate()
999 ScopedFd fd(TEMP_FAILURE_RETRY(open(filepath.c_str(), O_RDONLY | O_NONBLOCK | O_CLOEXEC in SHA256_file_hash()
1011 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd.get(), buffer.data(), buffer.size())); in SHA256_file_hash()
/frameworks/base/cmds/idmap/
Dcreate.cpp35 int fd = TEMP_FAILURE_RETRY(open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644)); in open_idmap()
44 if (TEMP_FAILURE_RETRY(flock(fd, LOCK_EX)) != 0) { in open_idmap()
65 ssize_t w = TEMP_FAILURE_RETRY(write(fd, data + size - bytesLeft, bytesLeft)); in write_idmap()
93 ssize_t r = TEMP_FAILURE_RETRY(read(idmap_fd, buf + N - bytesLeft, bytesLeft)); in is_idmap_stale_fd()
143 int idmap_fd = TEMP_FAILURE_RETRY(open(idmap_path, O_RDONLY)); in is_idmap_stale_path()
Didmap.h13 #ifndef TEMP_FAILURE_RETRY
15 #define TEMP_FAILURE_RETRY(exp) ({ \ macro
Dinspect.cpp42 if ((fd = TEMP_FAILURE_RETRY(open(idmap_path, O_RDONLY))) < 0) { in init()
/frameworks/base/cmds/hid/jni/
Dcom_android_commands_hid_Device.cpp108 ssize_t ret = TEMP_FAILURE_RETRY(::write(fd, &ev, sizeof(ev))); in open()
116 ret = TEMP_FAILURE_RETRY(::read(fd, &ev, sizeof(ev))); in open()
136 TEMP_FAILURE_RETRY(::write(mFd, &ev, sizeof(ev))); in ~Device()
147 ssize_t ret = TEMP_FAILURE_RETRY(::write(mFd, &ev, sizeof(ev))); in sendReport()
160 ssize_t ret = TEMP_FAILURE_RETRY(::read(mFd, &ev, sizeof(ev))); in handleEvents()
/frameworks/native/cmds/bugreport/
Dbugreport.cpp67 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(s, buffer, sizeof(buffer))); in main()
82 bytes_written = TEMP_FAILURE_RETRY(write(STDOUT_FILENO, in main()
/frameworks/base/libs/androidfw/
DObbFile.cpp62 #ifndef TEMP_FAILURE_RETRY
64 #define TEMP_FAILURE_RETRY(exp) ({ \ macro
137 actual = TEMP_FAILURE_RETRY(read(fd, footer, kFooterTagSize)); in parseObbFile()
179 actual = TEMP_FAILURE_RETRY(read(fd, scanBuf, footerSize)); in parseObbFile()
DStreamingZipInflater.cpp34 #ifndef TEMP_FAILURE_RETRY
36 #define TEMP_FAILURE_RETRY(exp) ({ \ macro
213 ssize_t didRead = TEMP_FAILURE_RETRY(::read(mFd, mInBuf, toRead)); in readNextChunk()
DZipUtils.cpp184 return TEMP_FAILURE_RETRY(::read(mFd, mReadBuf, readSize)); in read()
DAssetManager.cpp45 #ifndef TEMP_FAILURE_RETRY
47 #define TEMP_FAILURE_RETRY(exp) ({ \ macro
/frameworks/native/cmds/bugreportz/
Dbugreportz.cpp99 ssize_t bytes_read = TEMP_FAILURE_RETRY( in main()
115 bytes_written = TEMP_FAILURE_RETRY( in main()
/frameworks/native/cmds/dumpsys/
Ddumpsys.cpp230 int rc = TEMP_FAILURE_RETRY(poll(&pfd, 1, time_left_ms())); in main()
242 rc = TEMP_FAILURE_RETRY(read(local_end.get(), buf, sizeof(buf))); in main()
/frameworks/rs/
DrsCppUtils.cpp84 pid_t w = TEMP_FAILURE_RETRY(waitpid(pid, &status, 0)); in rsuExecuteCommand()
/frameworks/webview/chromium/loader/
Dloader.cpp80 int tmp_fd = TEMP_FAILURE_RETRY(mkstemp(relro_tmp)); in DoCreateRelroFile()
110 int relro_fd = TEMP_FAILURE_RETRY(open(relro, O_RDONLY)); in DoLoadWithRelroFile()
/frameworks/base/core/jni/
Dandroid_view_InputQueue.cpp105 nRead = TEMP_FAILURE_RETRY(read(mDispatchReadFd, &byteread, sizeof(byteread))); in getEvent()
180 int res = TEMP_FAILURE_RETRY(write(mDispatchWriteFd, &dummy, sizeof(dummy))); in enqueueEvent()
Dandroid_ddm_DdmHandleNativeHeap.cpp61 while ((byteCount = TEMP_FAILURE_RETRY(read(fd, bytes, sizeof(bytes)))) > 0) { in ReadFile()
Dcom_android_internal_content_NativeLibraryHelper.cpp130 int fd = TEMP_FAILURE_RETRY(open(filePath, O_RDONLY)); in isFileDifferent()
141 while ((numBytes = TEMP_FAILURE_RETRY(read(fd, crcBuffer, sizeof(crcBuffer)))) > 0) { in isFileDifferent()
Dcom_android_internal_os_Zygote.cpp316 if (TEMP_FAILURE_RETRY(mount(storageSource.string(), "/storage", in MountEmulatedStorage()
328 if (TEMP_FAILURE_RETRY(mount(userSource.string(), "/storage/self", in MountEmulatedStorage()
Dandroid_hardware_camera2_CameraMetadata.cpp458 while ((res = TEMP_FAILURE_RETRY(read(readFd, &out[0], /*count*/1))) > 0) { in CameraMetadata_dump()
/frameworks/base/packages/MtpDocumentsProvider/jni/
Dcom_android_mtp_AppFuse.cpp457 const ssize_t result = TEMP_FAILURE_RETRY( in com_android_mtp_AppFuse_start_app_fuse_loop()
/frameworks/native/cmds/installd/
Dotapreopt.cpp416 pid_t got_pid = TEMP_FAILURE_RETRY(waitpid(pid, &status, 0)); in Exec()
Dcommands.cpp991 fd_t profile_dir_fd = TEMP_FAILURE_RETRY(open(profile_dir.c_str(), in open_profile_dir()
1013 profile_fd = TEMP_FAILURE_RETRY(open(profile_file.c_str(), open_mode | O_NOFOLLOW)); in open_primary_profile_file_from_dir()
/frameworks/av/cmds/screenrecord/
Dscreenrecord.cpp767 pid_t actualPid = TEMP_FAILURE_RETRY(waitpid(pid, &status, 0)); in notifyMediaScanner()
/frameworks/native/libs/binder/
DParcel.cpp112 int fd = TEMP_FAILURE_RETRY(open("/dev/ashmem", O_RDONLY)); in ashmem_rdev()
116 int ret = TEMP_FAILURE_RETRY(fstat(fd, &st)); in ashmem_rdev()