Home
last modified time | relevance | path

Searched refs:flock (Results 1 – 7 of 7) sorted by relevance

/frameworks/compile/libbcc/lib/
DFileBase.cpp37 int flock(int fd, int operation) { in flock() function
163 if (::flock(mFD, lock_operation) == 0) { in lock()
212 if (::flock(mFD, LOCK_UN) == 0) { in unlock()
/frameworks/base/cmds/idmap/
Dscan.cpp48 if (TEMP_FAILURE_RETRY(flock(fileno(fout), LOCK_EX)) != 0) { in writePackagesList()
54 TEMP_FAILURE_RETRY(flock(fileno(fout), LOCK_UN)); in writePackagesList()
65 TEMP_FAILURE_RETRY(flock(fileno(fout), LOCK_UN)); in writePackagesList()
Dcreate.cpp44 if (TEMP_FAILURE_RETRY(flock(fd, LOCK_EX)) != 0) { in open_idmap()
/frameworks/native/cmds/installd/
Ddexopt.cpp117 if (flock(ufd.get(), LOCK_EX | LOCK_NB) != 0) { in clear_profile()
143 if (flock(ufd.get(), LOCK_UN) != 0) { in clear_profile()
986 if (flock(out_fd.get(), LOCK_EX | LOCK_NB) != 0) { in copy_system_profile()
1015 if (flock(out_fd.get(), LOCK_UN) != 0) { in copy_system_profile()
2166 if (flock(out_oat_fd.get(), LOCK_EX | LOCK_NB) != 0) { in dexopt()
DInstalldNativeService.cpp2286 if (flock(idmap_fd, LOCK_EX | LOCK_NB) != 0) { in delete_stale_idmap()
2406 if (flock(idmap_fd, LOCK_EX | LOCK_NB) != 0) { in idmap()
/frameworks/base/libs/androidfw/
DAssetManager.cpp712 if (TEMP_FAILURE_RETRY(flock(fileno(fin), LOCK_SH)) != 0) { in addSystemOverlays()
750 TEMP_FAILURE_RETRY(flock(fileno(fin), LOCK_UN)); in addSystemOverlays()
/frameworks/base/core/java/android/content/res/
DAssetManager.java253 final FileLock flock = fis.getChannel().lock(0, Long.MAX_VALUE, true /*shared*/)) { in loadStaticRuntimeOverlays()