Home
last modified time | relevance | path

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

/frameworks/native/libs/utils/
DZipFileRO.cpp56 #ifndef TEMP_FAILURE_RETRY
58 #define TEMP_FAILURE_RETRY(exp) ({ \ macro
110 TEMP_FAILURE_RETRY(close(mFd)); in ~ZipFileRO()
151 TEMP_FAILURE_RETRY(close(fd)); in open()
181 TEMP_FAILURE_RETRY(close(fd)); in open()
211 ssize_t actual = TEMP_FAILURE_RETRY(read(mFd, scanBuf, sizeof(int32_t))); in mapCentralDirectory()
250 actual = TEMP_FAILURE_RETRY(read(mFd, scanBuf, readAmount)); in mapCentralDirectory()
544 TEMP_FAILURE_RETRY(pread64(mFd, lfhBuf, sizeof(lfhBuf), localHdrOffset)); in getEntryInfo()
575 TEMP_FAILURE_RETRY(read(mFd, lfhBuf, sizeof(lfhBuf))); in getEntryInfo()
/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()
DAssetManager.cpp44 #ifndef TEMP_FAILURE_RETRY
46 #define TEMP_FAILURE_RETRY(exp) ({ \ macro
188 if (TEMP_FAILURE_RETRY(access(overlayPath.string(), R_OK)) == 0) { in addAssetPath()
215 if (TEMP_FAILURE_RETRY(stat(idmapPath.string(), &st)) == -1) { in isIdmapStaleLocked()
227 int fd = TEMP_FAILURE_RETRY(::open(idmapPath.string(), O_RDONLY)); in isIdmapStaleLocked()
235 ssize_t r = TEMP_FAILURE_RETRY(read(fd, buf + ResTable::IDMAP_HEADER_SIZE_BYTES - bytesLeft, in isIdmapStaleLocked()
238 TEMP_FAILURE_RETRY(close(fd)); in isIdmapStaleLocked()
246 TEMP_FAILURE_RETRY(close(fd)); in isIdmapStaleLocked()
327 fd = TEMP_FAILURE_RETRY(::open(idmapPath.string(), O_WRONLY | O_CREAT | O_TRUNC, 0644)); in createIdmapFileLocked()
333 ssize_t written = TEMP_FAILURE_RETRY(write(fd, data + offset, size)); in createIdmapFileLocked()
[all …]
/frameworks/base/core/jni/
Dandroid_bluetooth_BluetoothAudioGateway.cpp199 int nsk = TEMP_FAILURE_RETRY(accept(ag_fd, (struct sockaddr *) &raddr, &alen)); in do_accept()
334 n = TEMP_FAILURE_RETRY(select( in waitForHandsfreeConnectNative()
394 n = TEMP_FAILURE_RETRY(poll(fds, cnt, timeout_ms)); in waitForHandsfreeConnectNative()
Dandroid_bluetooth_HeadsetBase.cpp118 int ret = TEMP_FAILURE_RETRY(poll(&pfd, 1, timeout_ms)); in get_line()
139 int rc = TEMP_FAILURE_RETRY(read(fd, bufit, 1)); in get_line()
430 int nr = TEMP_FAILURE_RETRY(read(nat->rfcomm_sock, &ch, 1)); in waitForAsyncConnectNative()
Dcom_android_internal_content_NativeLibraryHelper.cpp122 int fd = TEMP_FAILURE_RETRY(open(filePath, O_RDONLY)); in isFileDifferent()
131 while ((numBytes = TEMP_FAILURE_RETRY(read(fd, crcBuffer, sizeof(crcBuffer)))) > 0) { in isFileDifferent()