HomeSort by relevance Sort by last modified time
    Searched refs:FileLock (Results 1 - 25 of 26) 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 21 // FileLock lock(header);
29 class FileLock {
31 explicit FileLock(BlockFileHeader* header);
32 virtual ~FileLock() {
block_files.cc 57 disk_cache::FileLock lock(header);
104 disk_cache::FileLock lock(header);
294 FileLock lock(header);
349 FileLock lock(header);
  /libcore/luni/src/main/java/org/apache/harmony/nio/internal/
LockManager.java 19 import java.nio.channels.FileLock;
33 private final Comparator<FileLock> lockComparator = new Comparator<FileLock>() {
34 public int compare(FileLock lock1, FileLock lock2) {
41 private final SortedSet<FileLock> locks = new TreeSet<FileLock>(
56 synchronized void addLock(FileLock lock)
59 for (Iterator<FileLock> keyItr = locks.iterator(); keyItr.hasNext();) {
60 FileLock existingLock = keyItr.next()
    [all...]
FileLockImpl.java 22 import java.nio.channels.FileLock;
27 final class FileLockImpl extends FileLock {
52 * @see java.nio.channels.FileLock#isValid()
63 * @see java.nio.channels.FileLock#release()
ReadOnlyFileChannel.java 31 import java.nio.channels.FileLock;
99 protected final FileLock basicLock(long position, long size,
WriteOnlyFileChannel.java 30 import java.nio.channels.FileLock;
108 protected final FileLock basicLock(long position, long size,
FileChannelImpl.java 36 import java.nio.channels.FileLock;
111 protected FileLock basicLock(long position, long size, boolean shared,
117 FileLock pendingLock = new FileLockImpl(this, position, size, shared);
135 public final FileLock lock(long position, long size, boolean shared)
138 FileLock resultLock = null;
158 public final FileLock tryLock(long position, long size, boolean shared)
168 void release(FileLock lock) throws IOException {
  /bionic/libc/stdio/
flockfile.c 54 typedef struct FileLock {
55 struct FileLock* next;
58 } FileLock;
68 FileLock* buckets[ FILE_LOCK_BUCKETS ];
98 static FileLock**
102 FileLock** pnode;
107 FileLock* node = *pnode;
121 FileLock** lookup = lock_table_lookup(t, fp);
122 FileLock* lock = *lookup;
161 FileLock** lookup = lock_table_lookup(t, fp)
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/
FileLockTest.java 29 import java.nio.channels.FileLock;
32 @TestTargetClass(FileLock.class)
34 * Tests class FileLock.
42 class MockFileLock extends FileLock {
76 * @tests java.nio.channels.FileLock#FileLock(FileChannel, long, long,
82 method = "FileLock",
86 FileLock fileLock1 = new MockFileLock(null, 0, 0, false);
111 * @tests java.nio.channels.FileLock#channel()
121 FileLock lock = new MockFileLock(null, 0, 10, true)
    [all...]
  /cts/tools/host/src/com/android/cts/
HostLock.java 23 import java.nio.channels.FileLock;
30 private static FileLock mLock;
  /libcore/luni/src/main/java/java/nio/channels/
FileChannel.java 186 public final FileLock lock() throws IOException {
205 * If the lock is obtained successfully then the {@link FileLock} object
252 public abstract FileLock lock(long position, long size, boolean shared)
588 public final FileLock tryLock() throws IOException {
621 public abstract FileLock tryLock(long position, long size, boolean shared)
    [all...]
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,
199 buffer.append("FileLock: [position=");
  /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;
109 private static final Hashtable<String, FileLock> allLocks = new Hashtable<String, FileLock>();
134 FileLock lock = null;
  /libcore/luni/src/main/java/java/util/prefs/
XMLParser.java 31 import java.nio.channels.FileLock;
492 FileLock lock = null;
537 FileLock lock = null;
565 private static void releaseQuietly(FileLock lock) {
  /libcore/luni/src/test/java/libcore/java/nio/channels/
OldFileChannelTest.java 35 import java.nio.channels.FileLock;
90 private FileLock fileLock;
103 fileLock = null;
142 if (null != fileLock) {
144 fileLock.release();
    [all...]
  /external/quake/src/com/android/quake/
DownloaderActivity.java 29 import java.nio.channels.FileLock;
    [all...]
  /prebuilt/sdk/10/
android.jar 
  /prebuilt/sdk/5/
android.jar 
  /prebuilt/sdk/6/
android.jar 
  /prebuilt/sdk/7/
android.jar 
  /prebuilt/sdk/8/
android.jar 

Completed in 977 milliseconds

1 2