Home
last modified time | relevance | path

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

/frameworks/base/cmds/idmap/
Dcreate.cpp34 int fd = TEMP_FAILURE_RETRY(open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644)); in open_idmap()
43 if (TEMP_FAILURE_RETRY(flock(fd, LOCK_EX | LOCK_NB)) != 0) { in open_idmap()
64 ssize_t w = TEMP_FAILURE_RETRY(write(fd, data + size - bytesLeft, bytesLeft)); in write_idmap()
92 ssize_t r = TEMP_FAILURE_RETRY(read(idmap_fd, buf + N - bytesLeft, bytesLeft)); in is_idmap_stale_fd()
142 int idmap_fd = TEMP_FAILURE_RETRY(open(idmap_path, O_RDONLY)); in is_idmap_stale_path()
Didmap.h11 #ifndef TEMP_FAILURE_RETRY
13 #define TEMP_FAILURE_RETRY(exp) ({ \ macro
Dinspect.cpp42 if ((fd = TEMP_FAILURE_RETRY(open(idmap_path, O_RDONLY))) < 0) { in init()
/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()
DZipUtils.cpp184 return TEMP_FAILURE_RETRY(::read(mFd, mReadBuf, readSize)); in read()
DAssetManager.cpp47 #ifndef TEMP_FAILURE_RETRY
49 #define TEMP_FAILURE_RETRY(exp) ({ \ macro
/frameworks/webview/chromium/loader/
Dloader.cpp73 int tmp_fd = TEMP_FAILURE_RETRY(mkstemp(relro_tmp)); in DoCreateRelroFile()
102 int relro_fd = TEMP_FAILURE_RETRY(open(relro, O_RDONLY)); in DoLoadWithRelroFile()
/frameworks/base/core/jni/
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()
Dandroid_ddm_DdmHandleNativeHeap.cpp61 while ((byteCount = TEMP_FAILURE_RETRY(read(fd, bytes, sizeof(bytes)))) > 0) { in ReadFile()
Dcom_android_internal_os_Zygote.cpp297 if (TEMP_FAILURE_RETRY(mount(source, target, NULL, MS_BIND, NULL)) == -1) { in MountEmulatedStorage()
303 if (TEMP_FAILURE_RETRY( in MountEmulatedStorage()
315 if (TEMP_FAILURE_RETRY( in MountEmulatedStorage()
Dcom_android_internal_content_NativeLibraryHelper.cpp130 int fd = TEMP_FAILURE_RETRY(open(filePath, O_RDONLY)); in isFileDifferent()
139 while ((numBytes = TEMP_FAILURE_RETRY(read(fd, crcBuffer, sizeof(crcBuffer)))) > 0) { in isFileDifferent()
Dandroid_hardware_camera2_CameraMetadata.cpp442 while ((res = TEMP_FAILURE_RETRY(read(readFd, &out[0], /*count*/1))) > 0) { in CameraMetadata_dump()
/frameworks/av/cmds/screenrecord/
Dscreenrecord.cpp758 pid_t actualPid = TEMP_FAILURE_RETRY(waitpid(pid, &status, 0)); in notifyMediaScanner()