/frameworks/base/cmds/incidentd/src/ |
D | FdBuffer.cpp | 79 int count = TEMP_FAILURE_RETRY(poll(&pfds, 1, remainingTime)); in read() 92 ssize_t amt = TEMP_FAILURE_RETRY( in read() 129 TEMP_FAILURE_RETRY(::read(fd, mBuffer->writeBuffer(), mBuffer->currentToWrite())); in readFully() 185 int count = TEMP_FAILURE_RETRY(poll(pfds, 3, remainingTime)); in readProcessedDataInStream() 211 amt = TEMP_FAILURE_RETRY(::read(fd, cirBuf + rpos, BUFFER_SIZE - rpos)); in readProcessedDataInStream() 213 amt = TEMP_FAILURE_RETRY(::read(fd, cirBuf + rpos, wpos - rpos)); in readProcessedDataInStream() 233 amt = TEMP_FAILURE_RETRY(::write(toFd.get(), cirBuf + wpos, rpos - wpos)); in readProcessedDataInStream() 235 amt = TEMP_FAILURE_RETRY(::write(toFd.get(), cirBuf + wpos, BUFFER_SIZE - wpos)); in readProcessedDataInStream() 264 ssize_t amt = TEMP_FAILURE_RETRY( in readProcessedDataInStream()
|
D | incidentd_util.cpp | 117 if (in >= 0 && (TEMP_FAILURE_RETRY(dup2(in, STDIN_FILENO)) < 0 || close(in))) { in fork_execute_cmd() 121 if (TEMP_FAILURE_RETRY(dup2(out, STDOUT_FILENO)) < 0 || close(out)) { in fork_execute_cmd() 195 int ret = TEMP_FAILURE_RETRY(sigtimedwait(&child_mask, nullptr, &ts)); in waitpid_with_timeout()
|
/frameworks/base/cmds/statsd/tests/storage/ |
D | StorageManager_test.cpp | 107 android::base::unique_fd fd(TEMP_FAILURE_RETRY( in prepareLocalHistoryTestFiles() 115 android::base::unique_fd fd2(TEMP_FAILURE_RETRY( in prepareLocalHistoryTestFiles() 126 TEMP_FAILURE_RETRY(remove(file1.c_str())); in clearLocalHistoryTestFiles() 127 TEMP_FAILURE_RETRY(remove(file2.c_str())); in clearLocalHistoryTestFiles() 128 TEMP_FAILURE_RETRY(remove(file1_history.c_str())); in clearLocalHistoryTestFiles() 129 TEMP_FAILURE_RETRY(remove(file2_history.c_str())); in clearLocalHistoryTestFiles() 133 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(name.c_str(), O_RDONLY | O_CLOEXEC))); in fileExist()
|
/frameworks/opt/net/wifi/libwifi_hal/ |
D | wifi_hal_common.cpp | 59 fd = TEMP_FAILURE_RETRY(open(filename, O_RDONLY | O_CLOEXEC | O_NOFOLLOW)); in insmod() 99 fd = TEMP_FAILURE_RETRY(open(WIFI_DRIVER_STATE_CTRL_PARAM, O_WRONLY)); in wifi_change_driver_state() 105 if (TEMP_FAILURE_RETRY(write(fd, state, len)) != len) { in wifi_change_driver_state() 241 fd = TEMP_FAILURE_RETRY(open(WIFI_DRIVER_FW_PATH_PARAM, O_WRONLY)); in wifi_change_fw_path() 247 if (TEMP_FAILURE_RETRY(write(fd, fwpath, len)) != len) { in wifi_change_fw_path()
|
/frameworks/base/core/jni/ |
D | fd_utils.cpp | 215 if (TEMP_FAILURE_RETRY(fstat(fd, &f_stat)) == -1) { in CreateFromFd() 277 const int fd_flags = TEMP_FAILURE_RETRY(fcntl(fd, F_GETFD)); in CreateFromFd() 297 int fs_flags = TEMP_FAILURE_RETRY(fcntl(fd, F_GETFL)); in CreateFromFd() 306 const off_t offset = TEMP_FAILURE_RETRY(lseek64(fd, 0, SEEK_CUR)); in CreateFromFd() 319 if (TEMP_FAILURE_RETRY(fstat(fd, &f_stat)) == -1) { in RefersToSameFile() 340 const int new_fd = TEMP_FAILURE_RETRY(open(file_path.c_str(), open_flags)); in ReopenOrDetach() 349 if (TEMP_FAILURE_RETRY(fcntl(new_fd, F_SETFD, fd_flags)) == -1) { in ReopenOrDetach() 358 if (TEMP_FAILURE_RETRY(fcntl(new_fd, F_SETFL, fs_flags)) == -1) { in ReopenOrDetach() 367 if (offset != -1 && TEMP_FAILURE_RETRY(lseek64(new_fd, offset, SEEK_SET)) == -1) { in ReopenOrDetach() 376 if (TEMP_FAILURE_RETRY(dup3(new_fd, fd, dup_flags)) == -1) { in ReopenOrDetach() [all …]
|
D | android_os_storage_StorageManager.cpp | 49 TEMP_FAILURE_RETRY(open(utf_chars_path.c_str(), O_RDONLY | O_CLOEXEC))); in android_os_storage_StorageManager_setQuotaProjectId()
|
/frameworks/opt/net/wifi/libwifi_system_iface/ |
D | interface_tool.cpp | 45 if (TEMP_FAILURE_RETRY(ioctl(sock, SIOCGIFFLAGS, ifr)) != 0) { in GetIfState() 96 if (TEMP_FAILURE_RETRY(ioctl(sock.get(), SIOCSIFFLAGS, &ifr)) != 0) { in SetUpState() 129 if (TEMP_FAILURE_RETRY(ioctl(sock.get(), SIOCSIFHWADDR, &ifr)) != 0) { in SetMacAddress() 163 if (TEMP_FAILURE_RETRY(ioctl(sock.get(), SIOCETHTOOL, &ifr)) != 0) { in GetFactoryMacAddress()
|
/frameworks/base/tools/aapt2/io/ |
D | FileStream.cpp | 43 fd_.reset(TEMP_FAILURE_RETRY(::android::base::utf8::open(path.c_str(), mode))); in FileInputStream() 74 ssize_t n = TEMP_FAILURE_RETRY(read(fd_, buffer_.get(), buffer_capacity_)); in Next() 114 owned_fd_.reset(TEMP_FAILURE_RETRY(::android::base::utf8::open(path.c_str(), mode, 0666))); in FileOutputStream() 181 ssize_t n = TEMP_FAILURE_RETRY(write(fd_, buffer_.get(), buffer_offset_)); in FlushImpl()
|
/frameworks/av/media/mtp/ |
D | MtpFfsCompatHandle.cpp | 76 int n = TEMP_FAILURE_RETRY(::write(fd, buf, write_len)); in writeHandle() 98 int n = TEMP_FAILURE_RETRY(::read(fd, buf, read_len)); in readHandle() 239 if (TEMP_FAILURE_RETRY(::read(mBulkOut, data, packet_size)) != 0) { in receiveFile() 280 if (TEMP_FAILURE_RETRY(pread(mfr.fd, reinterpret_cast<char*>(data) + in sendFile() 332 if (TEMP_FAILURE_RETRY(::write(mBulkIn, data, 0)) != 0) { in sendFile()
|
D | MtpFfsHandle.cpp | 89 mBulkIn.reset(TEMP_FAILURE_RETRY(open(ptp ? FFS_PTP_EP_IN : FFS_MTP_EP_IN, O_RDWR))); in openEndpoints() 97 mBulkOut.reset(TEMP_FAILURE_RETRY(open(ptp ? FFS_PTP_EP_OUT : FFS_MTP_EP_OUT, O_RDWR))); in openEndpoints() 105 mIntr.reset(TEMP_FAILURE_RETRY(open(ptp ? FFS_PTP_EP_INTR : FFS_MTP_EP_INTR, O_RDWR))); in openEndpoints() 178 int nbytes = TEMP_FAILURE_RETRY(::read(mControl, event, in handleEvent() 335 … int this_events = TEMP_FAILURE_RETRY(io_getevents(mCtx, 0, AIO_BUFS_MAX, events, &ZERO_TIMEOUT)); in waitEvents() 394 int evs = TEMP_FAILURE_RETRY(io_getevents(mCtx, num_events, AIO_BUFS_MAX, events, nullptr)); in cancelEvents() 590 if (TEMP_FAILURE_RETRY(pread(mfr.fd, mIobuf[0].bufs.data() + in sendFile()
|
D | MtpDescriptors.cpp | 264 ssize_t ret = TEMP_FAILURE_RETRY(write(fd, in writeDescriptors() 268 ret = TEMP_FAILURE_RETRY(write(fd, in writeDescriptors() 275 ret = TEMP_FAILURE_RETRY(write(fd, &mtp_strings, sizeof(mtp_strings))); in writeDescriptors()
|
D | PosixAsyncIO.cpp | 50 ret = TEMP_FAILURE_RETRY(pread64(aiocbp->aio_fildes, in work_func() 53 ret = TEMP_FAILURE_RETRY(pwrite64(aiocbp->aio_fildes, in work_func()
|
D | MtpDevHandle.cpp | 64 mFd.reset(TEMP_FAILURE_RETRY(open(mtp_dev_path, O_RDWR))); in start()
|
/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()
|
/frameworks/native/cmds/lshal/ |
D | PipeRelay.cpp | 67 int res = TEMP_FAILURE_RETRY(select(mFd + 1, &set, nullptr, nullptr, &timeout)); in threadLoop() 83 ssize_t n = TEMP_FAILURE_RETRY(read(mFd, buffer, sizeof(buffer))); in threadLoop()
|
/frameworks/base/tests/ApkVerityTest/block_device_writer/ |
D | block_device_writer.cpp | 63 fd_.reset(TEMP_FAILURE_RETRY(open(file_path, O_WRONLY | O_CLOEXEC, 0))); in ScopedF2fsFilePinning() 149 TEMP_FAILURE_RETRY(pread(fd, block_buffer, block_size, block_offset)); in read_block_from_device() 167 ssize_t retval = TEMP_FAILURE_RETRY( in write_block_to_device()
|
/frameworks/native/cmds/dumpstate/ |
D | DumpstateUtil.cpp | 59 int ret = TEMP_FAILURE_RETRY(sigtimedwait(&child_mask, nullptr, &ts)); in waitpid_with_timeout() 206 …android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(path.c_str(), O_RDONLY | O_NONBLOCK | O_CLOEXE… in DumpFileToFd() 310 TEMP_FAILURE_RETRY(dup2(STDERR_FILENO, STDOUT_FILENO)); in RunCommandToFd() 313 TEMP_FAILURE_RETRY(dup2(fd, STDOUT_FILENO)); in RunCommandToFd()
|
D | dumpstate.cpp | 205 int fd = TEMP_FAILURE_RETRY(open(path.c_str(), flags, mode)); in Open() 224 while ((byte_count = TEMP_FAILURE_RETRY(read(in_fd, buf, sizeof(buf)))) > 0) { in CopyFile() 363 … TEMP_FAILURE_RETRY(open(abs_path.c_str(), O_RDONLY | O_CLOEXEC | O_NOFOLLOW | O_NONBLOCK))); in GetDumpFds() 821 int rc = TEMP_FAILURE_RETRY(poll(&pfd, 1, time_left_ms())); in AddZipEntryFromFd() 833 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer.data(), buffer.size())); in AddZipEntryFromFd() 859 TEMP_FAILURE_RETRY(open(entry_path.c_str(), O_RDONLY | O_NONBLOCK | O_CLOEXEC))); in AddZipEntry() 987 auto fd = android::base::unique_fd(TEMP_FAILURE_RETRY(open(path.c_str(), in DumpIncidentReport() 1012 auto fd = android::base::unique_fd(TEMP_FAILURE_RETRY(open(path.c_str(), in DumpVisibleWindowViews() 1329 TEMP_FAILURE_RETRY(open(path.c_str(), in DumpHals() 2025 android::base::unique_fd fd(TEMP_FAILURE_RETRY( in DumpstateBoard() [all …]
|
D | DumpstateInternal.cpp | 168 int ret = TEMP_FAILURE_RETRY(poll(fds, arraysize(fds), 30 * 1000)); in DumpFileFromFdToFd() 180 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer, sizeof(buffer))); in DumpFileFromFdToFd()
|
/frameworks/base/cmds/hid/jni/ |
D | com_android_commands_hid_Device.cpp | 160 ssize_t ret = TEMP_FAILURE_RETRY(::write(fd, &ev, sizeof(ev))); in open() 167 ret = TEMP_FAILURE_RETRY(::read(fd, &ev, sizeof(ev))); in open() 196 TEMP_FAILURE_RETRY(::write(mFd, &ev, sizeof(ev))); in ~Device() 201 ssize_t ret = TEMP_FAILURE_RETRY(::write(fd, &ev, sizeof(ev))); in writeEvent() 238 ssize_t ret = TEMP_FAILURE_RETRY(::read(mFd, &ev, sizeof(ev))); in handleEvents()
|
/frameworks/native/cmds/bugreportz/ |
D | bugreportz.cpp | 49 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(s, buffer, sizeof(buffer))); in bugreportz()
|
/frameworks/native/cmds/installd/ |
D | otapreopt_utils.cpp | 71 pid_t got_pid = TEMP_FAILURE_RETRY(waitpid(pid, &status, 0)); in Exec()
|
/frameworks/base/native/webview/loader/ |
D | loader.cpp | 83 int tmp_fd = TEMP_FAILURE_RETRY(mkstemp(relro_tmp)); in DoCreateRelroFile() 122 int relro_fd = TEMP_FAILURE_RETRY(open(relro, O_RDONLY)); in DoLoadWithRelroFile()
|