Home
last modified time | relevance | path

Searched refs:overlaps (Results 1 – 3 of 3) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DFileLockTest.java149 assertTrue(mockLock.overlaps(0, 11)); in test_overlaps_JJ()
150 assertFalse(mockLock.overlaps(0, 10)); in test_overlaps_JJ()
151 assertTrue(mockLock.overlaps(100, 110)); in test_overlaps_JJ()
152 assertTrue(mockLock.overlaps(99, 110)); in test_overlaps_JJ()
153 assertFalse(mockLock.overlaps(-1, 10)); in test_overlaps_JJ()
155 assertTrue(mockLock.overlaps(1, 120)); in test_overlaps_JJ()
156 assertTrue(mockLock.overlaps(20, 50)); in test_overlaps_JJ()
/libcore/luni/src/main/java/java/nio/channels/
DFileLock.java155 public final boolean overlaps(long start, long length) { in overlaps() method in FileLock
/libcore/luni/src/main/java/java/nio/
DFileChannelImpl.java552 if (existingLock.overlaps(lock.position(), lock.size())) { in addLock()