HomeSort by relevance Sort by last modified time
    Searched refs:FileLock (Results 1 - 17 of 17) sorted by null

  /cts/tests/tests/os/src/android/os/cts/
ParcelFileDescriptor_AutoCloseOutputStreamTest.java 22 import java.nio.channels.FileLock;
49 FileLock l = null;
  /external/llvm/unittests/Support/
LockFileManagerTest.cpp 56 SmallString<64> FileLocK(TmpDir);
57 sys::path::append(FileLocK, "file.lock");
69 EC = sys::fs::create_link(TmpFileLock.str(), FileLocK.str());
104 SmallString<64> FileLock(LockedFile);
105 FileLock += ".lock";
111 EXPECT_TRUE(sys::fs::exists(FileLock.str()));
116 EXPECT_FALSE(sys::fs::exists(FileLock.str()));
  /external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/
LockFileManagerTest.cpp 56 SmallString<64> FileLocK(TmpDir);
57 sys::path::append(FileLocK, "file.lock");
69 EC = sys::fs::create_link(TmpFileLock.str(), FileLocK.str());
104 SmallString<64> FileLock(LockedFile);
105 FileLock += ".lock";
111 EXPECT_TRUE(sys::fs::exists(FileLock.str()));
116 EXPECT_FALSE(sys::fs::exists(FileLock.str()));
  /cts/tests/tests/libcorefileio/src/android/cts/
LockHoldingService.java 25 import java.nio.channels.FileLock;
100 private FileLock fileLock = null;
129 this.fileLock = FileChannelInterProcessLockTest.acquire(this, lockType, channelType);
148 this.fileLock = FileChannelInterProcessLockTest.acquire(this, lockType, channelType);
162 fileLock.release();
179 if (fileLock != null) {
180 fileLock.release();
FileChannelInterProcessLockTest.java 30 import java.nio.channels.FileLock;
433 FileLock fileLock = acquire(getContext(), localLockType, localChannelType);
434 assertNotNull(fileLock);
435 assertTrue(fileLock.isValid());
483 FileLock fileLock = acquire(getContext(), localLockType, localChannelType);
523 // Asserting if the fileLock is valid.
524 assertTrue(fileLock.isValid());
615 static FileLock acquire(Context context, LockType lockType, ChannelType channelType) throw
    [all...]
  /external/toolchain-utils/
file_lock_machine.py 89 class FileLock(object):
139 file_lock = FileLock(lock_filename)
200 with FileLock(self._lock_file) as lock:
213 FileLock.FILE_OPS.append(fd)
226 with FileLock(self._lock_file) as lock:
250 i for i in FileLock.FILE_OPS
254 FileLock.FILE_OPS.remove(i)
361 FileLock.ListLock('*', options.locks_dir)
  /external/robolectric-shadows/robolectric/src/main/java/org/robolectric/internal/dependency/
MavenDependencyResolver.java 9 import java.nio.channels.FileLock;
91 try (FileLock ignored = channel.lock()) {
  /external/autotest/server/hosts/
file_store.py 41 self._lock = locking.FileLock(
file_store_unittest.py 58 This test intentionally uses a real locking.FileLock to ensure that
64 file_lock = locking.FileLock(store._lock_path,
74 This test intentionally uses a real locking.FileLock to ensure that
82 file_lock = locking.FileLock(store._lock_path,
122 @mock.patch('chromite.lib.locking.FileLock', autospec=True)
126 @param mock_file_lock_class: A patched version of the locking.FileLock
142 @mock.patch('chromite.lib.locking.FileLock', autospec=True)
146 @param mock_file_lock_class: A patched version of the locking.FileLock
167 @mock.patch('chromite.lib.locking.FileLock', autospec=True)
171 @param mock_file_lock_class: A patched version of the locking.FileLock
    [all...]
  /external/chromium-trace/catapult/common/py_utils/py_utils/
lock.py 37 def FileLock(target_file, flags):
39 with FileLock(f, LOCK_EX):
cloud_storage.py 294 with lock.FileLock(global_file, lock.LOCK_EX | lock.LOCK_NB):
322 with lock.FileLock(global_file, lock.LOCK_EX | lock.LOCK_NB):
cloud_storage_unittest.py 361 with lock.FileLock(pseudo_lock_fd, lock.LOCK_EX | lock.LOCK_NB):
369 with lock.FileLock(global_lock_fd, lock.LOCK_EX | lock.LOCK_NB):
lock_unittest.py 145 with lock.FileLock(f, lock.LOCK_EX):
  /external/chromium-trace/catapult/common/py_trace_event/py_trace_event/trace_event_impl/
log.py 78 with lock.FileLock(_log_file, lock.LOCK_EX):
116 with lock.FileLock(_log_file, lock.LOCK_EX):
  /external/autotest/server/cros/
lockfile.py 9 >>> lock = FileLock('somefile')
23 >>> lock = FileLock('somefile')
294 FileLock = LinkFileLock
tradefed_utils.py 24 filelock = lockfile.FileLock(filename)
25 # It is tempting just to call filelock.acquire(3600). But the implementation
29 while not filelock.i_am_locking():
33 # We must not use a random integer as the filelock implementations
35 filelock.acquire(random.uniform(0.0, pow(2.0, attempts)))
53 filelock.break_lock()
60 filelock.release()
  /external/autotest/utils/
loadtest.py 547 with locking.FileLock(options.config, blocking=True).lock():

Completed in 968 milliseconds