/frameworks/native/cmds/dumpstate/ |
D | utils.cpp | 145 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 …]
|
D | dumpstate.cpp | 110 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/ |
D | create.cpp | 35 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()
|
D | idmap.h | 13 #ifndef TEMP_FAILURE_RETRY 15 #define TEMP_FAILURE_RETRY(exp) ({ \ macro
|
D | inspect.cpp | 42 if ((fd = TEMP_FAILURE_RETRY(open(idmap_path, O_RDONLY))) < 0) { in init()
|
/frameworks/base/cmds/hid/jni/ |
D | com_android_commands_hid_Device.cpp | 108 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/ |
D | bugreport.cpp | 67 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/ |
D | ObbFile.cpp | 62 #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()
|
D | StreamingZipInflater.cpp | 34 #ifndef TEMP_FAILURE_RETRY 36 #define TEMP_FAILURE_RETRY(exp) ({ \ macro 213 ssize_t didRead = TEMP_FAILURE_RETRY(::read(mFd, mInBuf, toRead)); in readNextChunk()
|
D | ZipUtils.cpp | 184 return TEMP_FAILURE_RETRY(::read(mFd, mReadBuf, readSize)); in read()
|
D | AssetManager.cpp | 45 #ifndef TEMP_FAILURE_RETRY 47 #define TEMP_FAILURE_RETRY(exp) ({ \ macro
|
/frameworks/native/cmds/bugreportz/ |
D | bugreportz.cpp | 99 ssize_t bytes_read = TEMP_FAILURE_RETRY( in main() 115 bytes_written = TEMP_FAILURE_RETRY( in main()
|
/frameworks/native/cmds/dumpsys/ |
D | dumpsys.cpp | 230 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/ |
D | rsCppUtils.cpp | 84 pid_t w = TEMP_FAILURE_RETRY(waitpid(pid, &status, 0)); in rsuExecuteCommand()
|
/frameworks/webview/chromium/loader/ |
D | loader.cpp | 80 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/ |
D | android_view_InputQueue.cpp | 105 nRead = TEMP_FAILURE_RETRY(read(mDispatchReadFd, &byteread, sizeof(byteread))); in getEvent() 180 int res = TEMP_FAILURE_RETRY(write(mDispatchWriteFd, &dummy, sizeof(dummy))); in enqueueEvent()
|
D | android_ddm_DdmHandleNativeHeap.cpp | 61 while ((byteCount = TEMP_FAILURE_RETRY(read(fd, bytes, sizeof(bytes)))) > 0) { in ReadFile()
|
D | com_android_internal_content_NativeLibraryHelper.cpp | 130 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()
|
D | com_android_internal_os_Zygote.cpp | 316 if (TEMP_FAILURE_RETRY(mount(storageSource.string(), "/storage", in MountEmulatedStorage() 328 if (TEMP_FAILURE_RETRY(mount(userSource.string(), "/storage/self", in MountEmulatedStorage()
|
D | android_hardware_camera2_CameraMetadata.cpp | 458 while ((res = TEMP_FAILURE_RETRY(read(readFd, &out[0], /*count*/1))) > 0) { in CameraMetadata_dump()
|
/frameworks/base/packages/MtpDocumentsProvider/jni/ |
D | com_android_mtp_AppFuse.cpp | 457 const ssize_t result = TEMP_FAILURE_RETRY( in com_android_mtp_AppFuse_start_app_fuse_loop()
|
/frameworks/native/cmds/installd/ |
D | otapreopt.cpp | 416 pid_t got_pid = TEMP_FAILURE_RETRY(waitpid(pid, &status, 0)); in Exec()
|
D | commands.cpp | 991 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/ |
D | screenrecord.cpp | 767 pid_t actualPid = TEMP_FAILURE_RETRY(waitpid(pid, &status, 0)); in notifyMediaScanner()
|
/frameworks/native/libs/binder/ |
D | Parcel.cpp | 112 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()
|