Home
last modified time | relevance | path

Searched refs:view (Results 1 – 25 of 26) sorted by relevance

12

/libcore/ojluni/src/main/java/sun/nio/fs/
DFileOwnerAttributeViewImpl.java42 private final FileAttributeView view; field in FileOwnerAttributeViewImpl
45 FileOwnerAttributeViewImpl(PosixFileAttributeView view) { in FileOwnerAttributeViewImpl() argument
46 this.view = view; in FileOwnerAttributeViewImpl()
50 FileOwnerAttributeViewImpl(AclFileAttributeView view) { in FileOwnerAttributeViewImpl() argument
51 this.view = view; in FileOwnerAttributeViewImpl()
89 return ((PosixFileAttributeView)view).readAttributes().owner(); in getOwner()
91 return ((AclFileAttributeView)view).getOwner(); in getOwner()
100 ((PosixFileAttributeView)view).setOwner(owner); in setOwner()
102 ((AclFileAttributeView)view).setOwner(owner); in setOwner()
DAbstractFileSystemProvider.java78 DynamicFileAttributeView view = getFileAttributeView(file, s[0], options); in setAttribute() local
79 if (view == null) in setAttribute()
81 view.setAttribute(s[1], value); in setAttribute()
91 DynamicFileAttributeView view = getFileAttributeView(file, s[0], options); in readAttributes() local
92 if (view == null) in readAttributes()
94 return view.readAttributes(s[1].split(",")); in readAttributes()
DUnixFileStore.java138 public <V extends FileStoreAttributeView> V getFileStoreAttributeView(Class<V> view) in getFileStoreAttributeView() argument
140 if (view == null) in getFileStoreAttributeView()
DUnixFileSystemProvider.java141 Class<? extends BasicFileAttributeView> view; in readAttributes() local
143 view = BasicFileAttributeView.class; in readAttributes()
145 view = PosixFileAttributeView.class; in readAttributes()
150 return (A) getFileAttributeView(file, view, options).readAttributes(); in readAttributes()
/libcore/benchmarks/src/benchmarks/regression/
DPropertyAccessBenchmark.java24 private View view = new View(); field in PropertyAccessBenchmark
39 view.setX(0.1f); in timeDirectSetter()
45 view.x = 0.1f; in timeDirectFieldSet()
52 view.setX(value); in timeDirectSetterAndBoxing()
59 view.x = value; in timeDirectFieldSetAndBoxing()
65 setX.invoke(view, 0.1f); in timeReflectionSetterAndTwoBoxes()
72 setX.invoke(view, argsBox); in timeReflectionSetterAndOneBox()
78 x.setFloat(view, 0.1f); in timeReflectionFieldSet()
84 generatedSetter.setFloat(view, 0.1f); in timeGeneratedSetter()
90 generatedField.setFloat(view, 0.1f); in timeGeneratedFieldSet()
/libcore/ojluni/src/main/java/java/util/
DAbstractMap.java904 abstract Collection<E> view(); in view() method in AbstractMap.ViewCollection
908 public void clear() { view().clear(); } in clear()
909 public boolean contains(Object o) { return view().contains(o); } in contains()
910 public boolean containsAll(Collection<?> c) { return view().containsAll(c); } in containsAll()
911 public void forEach(Consumer<? super E> c) { view().forEach(c); } in forEach()
912 public boolean isEmpty() { return view().isEmpty(); } in isEmpty()
913 public Iterator<E> iterator() { return view().iterator(); } in iterator()
914 public Stream<E> parallelStream() { return view().parallelStream(); } in parallelStream()
915 public boolean remove(Object o) { return view().remove(o); } in remove()
916 public boolean removeAll(Collection<?> c) { return view().removeAll(c); } in removeAll()
[all …]
DSequencedMap.java277 Collection<K> view() { in sequencedKeySet() method in SequencedMap.SeqKeySet
284 return view().equals(other); in sequencedKeySet()
287 return view().hashCode(); in sequencedKeySet()
310 Collection<V> view() { in sequencedValues() method in SequencedMap.SeqValues
337 Collection<Map.Entry<K, V>> view() { in sequencedEntrySet() method in SequencedMap.SeqEntrySet
344 return view().equals(other); in sequencedEntrySet()
347 return view().hashCode(); in sequencedEntrySet()
DReverseOrderSortedSetView.java209 SortedSet<T> view = set; in descendingIterator()
213 return ! view.isEmpty(); in descendingIterator()
217 if (view.isEmpty()) in descendingIterator()
219 T t = prev = view.last(); in descendingIterator()
220 view = root.headSet(t); in descendingIterator()
DReverseOrderSortedMapView.java196 SortedMap<K, V> view = map;
200 return ! view.isEmpty();
204 if (view.isEmpty())
206 K k = prev = view.lastKey();
207 view = root.headMap(k);
/libcore/ojluni/src/test/java/nio/file/attribute/
DPosixFileAttributeViewTest.java142 PosixFileAttributeView view = in permissionTests() local
144 Set<PosixFilePermission> save = view.readAttributes() in permissionTests()
171 view.setPermissions(save); in permissionTests()
251 PosixFileAttributeView view = in ownerTests() local
253 PosixFileAttributes attrs = view.readAttributes(); in ownerTests()
256 view.setOwner(attrs.owner()); in ownerTests()
257 view.setGroup(attrs.group()); in ownerTests()
334 PosixFileAttributeView view = in exceptionsTests() local
339 view.setOwner(null); in exceptionsTests()
344 view.setGroup(null); in exceptionsTests()
[all …]
DBasicFileAttributeViewTest.java82 BasicFileAttributeView view = in checkAttributesOfFile() local
85 view.setTimes(dirAttrs.lastModifiedTime(), null, null); in checkAttributesOfFile()
87 attrs = view.readAttributes(); in checkAttributesOfFile()
DBasicFileAttributeViewCreationTimeTest.java59 BasicFileAttributeView view = in setCreationTime() local
61 view.setTimes(null, null, time); in setCreationTime()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DAbstractMapTest.java385 private void testNullsOnView(Collection<?> view) {
387 assertFalse(view.contains(null));
392 assertFalse(view.remove(null));
397 assertFalse(view.equals(setOfNull));
400 assertFalse(view.removeAll(setOfNull));
405 assertTrue(view.retainAll(setOfNull)); // destructive
/libcore/ojluni/src/main/java/java/nio/file/
DCopyMoveHelper.java132 BasicFileAttributeView view = in copyToForeignTarget() local
135 view.setTimes(attrs.lastModifiedTime(), in copyToForeignTarget()
DFiles.java2041 PosixFileAttributeView view =
2043 if (view == null)
2045 view.setPermissions(perms);
2075 FileOwnerAttributeView view =
2077 if (view == null)
2079 return view.getOwner();
2123 FileOwnerAttributeView view =
2125 if (view == null)
2127 view.setOwner(owner);
/libcore/ojluni/src/test/java/util/SequencedCollection/
DBasicMap.java502 public <T> void checkUnmodifiableView(Collection<T> view) { in checkUnmodifiableView() argument
503 assertThrows(UOE, () -> view.clear()); in checkUnmodifiableView()
504 assertThrows(UOE, () -> { var it = view.iterator(); it.next(); it.remove(); }); in checkUnmodifiableView()
505 assertThrows(UOE, () -> { var t = view.iterator().next(); view.remove(t); }); in checkUnmodifiableView()
511 assertThrows(UOE, () -> view.removeAll(view)); in checkUnmodifiableView()
512 assertThrows(UOE, () -> view.removeIf(x -> true)); in checkUnmodifiableView()
513 assertThrows(UOE, () -> view.retainAll(List.of())); in checkUnmodifiableView()
522 public <T> void checkUnmodifiableSeqView(SequencedCollection<T> view) { in checkUnmodifiableSeqView() argument
523 checkUnmodifiableView(view); in checkUnmodifiableSeqView()
524 assertThrows(UOE, () -> view.removeFirst()); in checkUnmodifiableSeqView()
[all …]
/libcore/ojluni/src/main/java/java/nio/
DX-Buffer-bin.java.template123 * Creates a view of this byte buffer as $a$ $type$ buffer.
133 * of the byte buffer at the moment the view is created. The new buffer
DX-Buffer.java.template77 * <li><p> Methods for creating <i><a href="#views">view buffers</a></i>,
100 * <a href="ByteBuffer.html#views"><i>view</i></a> of an existing byte buffer.
172 * given byte buffer. A <i>view buffer</i> is simply another buffer whose
174 * will be visible in the view buffer, and vice versa; the two buffers'
178 * the method is invoked. Corresponding view-creation methods are defined for
186 * <li><p> A view buffer is indexed not in terms of bytes but rather in terms
189 * <li><p> A view buffer provides relative bulk <i>get</i> and <i>put</i>
193 * <li><p> A view buffer is potentially much more efficient because it will
198 * <p> The byte order of a view buffer is fixed to be that of its byte buffer
199 * at the time that the view is created. </p>
[all …]
DDirect-X-Buffer.java.template61 // An object attached to this buffer. If this buffer is a view of another
DHeap-X-Buffer.java.template41 * ReadOnlyBufferException} and overriding the view-buffer methods to return an
/libcore/ojluni/src/test/java/util/Collection/
DMOAT.java1481 abstract NavigableMap view(NavigableMap m); in testNavigableMapRemovers()
1485 new NavigableMapView() { NavigableMap view(NavigableMap m) { in testNavigableMapRemovers()
1487 new NavigableMapView() { NavigableMap view(NavigableMap m) { in testNavigableMapRemovers()
1489 new NavigableMapView() { NavigableMap view(NavigableMap m) { in testNavigableMapRemovers()
1491 new NavigableMapView() { NavigableMap view(NavigableMap m) { in testNavigableMapRemovers()
1539 for (NavigableMapView view : views) { in testNavigableMapRemovers()
1546 NavigableMap v = view.view(m); in testNavigableMapRemovers()
/libcore/ojluni/src/test/
DLICENSE109 these conditions, and telling the user how to view a copy of this
/libcore/ojluni/src/tools/
DLICENSE109 these conditions, and telling the user how to view a copy of this
/libcore/
DLICENSE104 the program under these conditions, and telling the user how to view a copy
/libcore/ojluni/src/test/java/nio/Buffer/
DBasic-X.java.template994 fail("Buffer not equal to read-only view", b, rb);

12