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

1 2

  /external/qemu/android/utils/
filelock.h 18 ** a FileLock is useful to prevent several emulator instances from using the same
21 ** create a FileLock object with filelock_create(), the function will return
33 typedef struct FileLock FileLock;
35 extern FileLock* filelock_create ( const char* path );
36 extern void filelock_release( FileLock* lock );
filelock.c 13 #include "android/utils/filelock.h"
43 ** a FileLock is useful to prevent several emulator instances from using the same
46 ** create a FileLock object with filelock_create(), ithis function should return NULL
73 struct FileLock
79 FileLock* next;
83 static FileLock* _all_filelocks;
95 filelock_lock( FileLock* lock )
350 filelock_release( FileLock* lock )
366 FileLock* lock;
373 FileLock*
    [all...]
  /external/chromium/net/disk_cache/
file_lock.cc 9 FileLock::FileLock(BlockFileHeader* header) {
15 void FileLock::Lock() {
21 void FileLock::Unlock() {
file_lock.h 22 // FileLock lock(header);
30 class FileLock {
32 explicit FileLock(BlockFileHeader* header);
33 virtual ~FileLock() {
block_files.cc 60 disk_cache::FileLock lock(header);
108 disk_cache::FileLock lock(header);
451 FileLock lock(header);
506 FileLock lock(header);
  /external/apache-harmony/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/
FileLockTest.java 25 import java.nio.channels.FileLock;
30 * Tests class FileLock.
38 class MockFileLock extends FileLock {
72 * @tests java.nio.channels.FileLock#FileLock(FileChannel, long, long,
76 FileLock fileLock1 = new MockFileLock(null, 0, 0, false);
101 * @tests java.nio.channels.FileLock#channel()
105 FileLock lock = new MockFileLock(null, 0, 10, true);
110 * @tests java.nio.channels.FileLock#position()
113 FileLock fileLock1 = new MockFileLock(readWriteChannel, 20, 100, true)
    [all...]
FileChannelLockingTest.java 26 import java.nio.channels.FileLock;
106 FileLock flock = readWriteChannel.lock();
134 FileLock flock1 = readWriteChannel.lock(22, 110, true);
147 FileLock flock1 = readWriteChannel.lock(0, 10, false);
150 FileLock flock2 = readWriteChannel.lock(22, 100, true);
184 FileLock tmpLock = readOnlyChannel.tryLock(0, 10, true);
189 FileLock lock = readOnlyChannel.tryLock(10, 788, true);
201 FileLock adjacentLock = readOnlyChannel.tryLock(1, 3, true);
FileChannelTest.java 35 import java.nio.channels.FileLock;
108 private FileLock fileLock;
121 fileLock = null;
160 if (null != fileLock) {
162 fileLock.release();
783 fileLock = readOnlyFileChannel.lock(POSITION, SIZE, true);
784 assertTrue(fileLock.isValid());
785 // fileLock.isShared depends on whether the underlying platform support
787 assertTrue(fileLock.isShared())
    [all...]
  /libcore/luni/src/main/java/java/nio/channels/
FileLock.java 23 * A {@code FileLock} represents a locked region of a file.
31 * application can determine whether a {@code FileLock} is shared or exclusive
71 public abstract class FileLock {
99 protected FileLock(FileChannel channel, long position, long size, boolean shared) {
195 return "FileLock[position=" + position + ", size=" + size + ", shared=" + shared + "]";
FileChannel.java 184 public final FileLock lock() throws IOException {
203 * If the lock is obtained successfully then the {@link FileLock} object
250 public abstract FileLock lock(long position, long size, boolean shared)
586 public final FileLock tryLock() throws IOException {
619 public abstract FileLock tryLock(long position, long size, boolean shared)
    [all...]
  /external/webkit/Tools/Scripts/webkitpy/common/system/
file_lock_unittest.py 31 from webkitpy.common.system.file_lock import FileLock
39 self._file_lock1 = FileLock(self._lock_path, 1)
40 self._file_lock2 = FileLock(self._lock_path, 1)
file_lock.py 38 class FileLock(object):
  /libcore/luni/src/main/java/java/nio/
FileChannelImpl.java 25 import java.nio.channels.FileLock;
45 private static final Comparator<FileLock> LOCK_COMPARATOR = new Comparator<FileLock>() {
46 public int compare(FileLock lock1, FileLock lock2) {
58 private final SortedSet<FileLock> locks = new TreeSet<FileLock>(LOCK_COMPARATOR);
94 private FileLock basicLock(long position, long size, boolean shared, boolean wait) throws IOException {
110 FileLock pendingLock = new FileLockImpl(this, position, size, shared);
137 private static final class FileLockImpl extends FileLock {
    [all...]
  /external/webkit/Tools/Scripts/webkitpy/layout_tests/port/
http_lock.py 39 from webkitpy.common.system.file_lock import FileLock
57 self._guard_lock = FileLock(self._guard_lock_file)
  /frameworks/base/media/java/android/media/
MiniThumbFile.java 29 import java.nio.channels.FileLock;
156 FileLock lock = null;
194 FileLock lock = null;
241 FileLock lock = null;
  /libcore/luni/src/main/java/java/util/logging/
FileHandler.java 27 import java.nio.channels.FileLock;
108 private static final Hashtable<String, FileLock> allLocks = new Hashtable<String, FileLock>();
133 FileLock lock = null;
  /libcore/luni/src/test/java/libcore/java/nio/channels/
OldFileChannelTest.java 31 import java.nio.channels.FileLock;
76 private FileLock fileLock;
89 fileLock = null;
128 if (null != fileLock) {
130 fileLock.release();
239 FileLock lock = readWriteFileChannel.tryLock(tooBig, 1, false);
249 FileLock lockOne = readWriteFileChannel.tryLock(0, 10, false);
250 FileLock lockTwo = readWriteFileChannel.tryLock(10, 20, false);
    [all...]
  /external/quake/src/com/android/quake/
DownloaderActivity.java 29 import java.nio.channels.FileLock;
    [all...]
  /external/robolectric/lib/main/
h2-1.2.147.jar 
  /prebuilts/sdk/10/
android.jar 
  /prebuilts/sdk/11/
android.jar 
  /prebuilts/sdk/13/
android.jar 
  /prebuilts/sdk/16/
android.jar 
  /prebuilts/sdk/5/
android.jar 
  /prebuilts/sdk/6/
android.jar 

Completed in 3866 milliseconds

1 2