Home
last modified time | relevance | path

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

/frameworks/native/include/utils/
DCompat.h55 #ifndef TEMP_FAILURE_RETRY
57 #define TEMP_FAILURE_RETRY(exp) ({ \ macro
/frameworks/native/libs/utils/
DZipFileRO.cpp88 TEMP_FAILURE_RETRY(close(mFd)); in ~ZipFileRO()
121 fd = TEMP_FAILURE_RETRY(::open(zipFileName, O_RDONLY | O_BINARY)); in open()
129 TEMP_FAILURE_RETRY(close(fd)); in open()
159 TEMP_FAILURE_RETRY(close(fd)); in open()
189 ssize_t actual = TEMP_FAILURE_RETRY(read(mFd, scanBuf, sizeof(int32_t))); in mapCentralDirectory()
228 actual = TEMP_FAILURE_RETRY(read(mFd, scanBuf, readAmount)); in mapCentralDirectory()
541 TEMP_FAILURE_RETRY(pread64(mFd, lfhBuf, sizeof(lfhBuf), localHdrOffset)); in getEntryInfo()
572 TEMP_FAILURE_RETRY(read(mFd, lfhBuf, sizeof(lfhBuf))); in getEntryInfo()
752 ssize_t actual = TEMP_FAILURE_RETRY(write(fd, ptr, uncompLen)); in uncompressEntry()
901 int cc = TEMP_FAILURE_RETRY(write(fd, writeBuf, writeSize)); in inflateBuffer()
DZipUtils.cpp102 int cc = TEMP_FAILURE_RETRY(read(fd, readBuf, getSize)); in inflateToBuffer()
/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
211 ssize_t didRead = TEMP_FAILURE_RETRY(::read(mFd, mInBuf, toRead)); in readNextChunk()
DAssetManager.cpp48 #ifndef TEMP_FAILURE_RETRY
50 #define TEMP_FAILURE_RETRY(exp) ({ \ macro
218 if (TEMP_FAILURE_RETRY(access(overlayPath.string(), R_OK)) == 0) { in addAssetPath()
245 if (TEMP_FAILURE_RETRY(stat(idmapPath.string(), &st)) == -1) { in isIdmapStaleLocked()
257 int fd = TEMP_FAILURE_RETRY(::open(idmapPath.string(), O_RDONLY)); in isIdmapStaleLocked()
265 ssize_t r = TEMP_FAILURE_RETRY(read(fd, buf + ResTable::IDMAP_HEADER_SIZE_BYTES - bytesLeft, in isIdmapStaleLocked()
268 TEMP_FAILURE_RETRY(close(fd)); in isIdmapStaleLocked()
276 TEMP_FAILURE_RETRY(close(fd)); in isIdmapStaleLocked()
357 fd = TEMP_FAILURE_RETRY(::open(idmapPath.string(), O_WRONLY | O_CREAT | O_TRUNC, 0644)); in createIdmapFileLocked()
363 ssize_t written = TEMP_FAILURE_RETRY(write(fd, data + offset, size)); in createIdmapFileLocked()
[all …]
/frameworks/base/core/jni/
Dandroid_ddm_DdmHandleNativeHeap.cpp53 while ((byteCount = TEMP_FAILURE_RETRY(read(fd, bytes, sizeof(bytes)))) > 0) { in ReadFile()
Dandroid_view_InputQueue.cpp103 nRead = TEMP_FAILURE_RETRY(read(mDispatchReadFd, &byteread, sizeof(byteread))); in getEvent()
178 int res = TEMP_FAILURE_RETRY(write(mDispatchWriteFd, &dummy, sizeof(dummy))); in enqueueEvent()
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()