/libcore/ojluni/src/test/java/util/Random/ |
D | RandomTest.java | 234 long size = 0; in testIntsCount() local 240 assertEquals(counter.sum(), size); in testIntsCount() local 251 long size = 0; in testLongsCount() local 257 assertEquals(counter.sum(), size); in testLongsCount() local 268 long size = 0; in testDoublesCount() local 274 assertEquals(counter.sum(), size); in testDoublesCount() local 285 long size = 12345L; in testBoundedInts() local 305 long size = 123L; in testBoundedLongs() local 325 long size = 456; in testBoundedDoubles() local 345 long size = 100; in testUnsizedIntsCount() local [all …]
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | StreamBuilderTest.java | 99 public void testAfterBuilding(int size) { in testAfterBuilding() 111 public void testStreamBuilder(int size) { in testStreamBuilder() 128 private void testStreamBuilder(int size, Function<Integer, Stream<Integer>> supplier) { in testStreamBuilder() 162 public void testIntAfterBuilding(int size) { in testIntAfterBuilding() 174 public void testIntStreamBuilder(int size) { in testIntStreamBuilder() 191 private void testIntStreamBuilder(int size, Function<Integer, IntStream> supplier) { in testIntStreamBuilder() 225 public void testLongAfterBuilding(int size) { in testLongAfterBuilding() 237 public void testLongStreamBuilder(int size) { in testLongStreamBuilder() 254 private void testLongStreamBuilder(int size, Function<Integer, LongStream> supplier) { in testLongStreamBuilder() 287 public void testDoubleAfterBuilding(int size) { in testDoubleAfterBuilding() [all …]
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ThreadLocalRandom8Test.java | 78 long size = 0; in testIntsCount() local 93 long size = 0; in testLongsCount() local 108 long size = 0; in testDoublesCount() local 123 long size = 12345L; in testBoundedInts() local 142 long size = 123L; in testBoundedLongs() local 161 long size = 456; in testBoundedDoubles() local 180 long size = 100; in testUnsizedIntsCount() local 191 long size = 100; in testUnsizedLongsCount() local 202 long size = 100; in testUnsizedDoublesCount() local 213 long size = 100; in testUnsizedIntsCountSeq() local [all …]
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | ThreadLocalRandom8Test.java | 101 long size = 0; in testIntsCount() local 116 long size = 0; in testLongsCount() local 131 long size = 0; in testDoublesCount() local 146 long size = 12345L; in testBoundedInts() local 165 long size = 123L; in testBoundedLongs() local 184 long size = 456; in testBoundedDoubles() local 203 long size = 100; in testUnsizedIntsCount() local 214 long size = 100; in testUnsizedLongsCount() local 225 long size = 100; in testUnsizedDoublesCount() local 236 long size = 100; in testUnsizedIntsCountSeq() local [all …]
|
/libcore/luni/src/main/java/libcore/io/ |
D | MemoryMappedFile.java | 37 private final int size; field in MemoryMappedFile 40 public MemoryMappedFile(long address, long size) { in MemoryMappedFile() 56 long size = Libcore.os.fstat(fd).st_size; in mmapRO() local 110 public int size() { in size() method in MemoryMappedFile
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
D | FileLock.java | 127 private final long size; field in FileLock 152 long position, long size, boolean shared) in FileLock() 195 long position, long size, boolean shared) in FileLock() 261 public final long size() { in size() method in FileLock 286 public final boolean overlaps(long position, long size) { in overlaps()
|
D | SeekableByteChannel.java | 137 long size() throws IOException; in size() method 167 SeekableByteChannel truncate(long size) throws IOException; in truncate()
|
D | AsynchronousFileChannel.java | 324 public abstract long size() throws IOException; in size() method in AsynchronousFileChannel 351 public abstract AsynchronousFileChannel truncate(long size) throws IOException; in truncate() 468 long size, in lock() 542 public abstract Future<FileLock> lock(long position, long size, boolean shared); in lock() 616 public abstract FileLock tryLock(long position, long size, boolean shared) in tryLock()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | SpliteratorsTest.java | 165 PrimitiveIntArrayList(int size) { in PrimitiveIntArrayList() 183 PrimitiveLongArrayList(int size) { in PrimitiveLongArrayList() 201 PrimitiveDoubleArrayList(int size) { in PrimitiveDoubleArrayList() 873 private final int size; field in SpliteratorsTest.IncrementalDoubleSequenceSpliterator 875 IncrementalDoubleSequenceSpliterator(int size, int additionalCharacteristics) { in IncrementalDoubleSequenceSpliterator() 892 int size = 10; in testAbstractDoubleSpliterator_smallSize() local 896 assertEquals(spliterator.estimateSize(), size); in testAbstractDoubleSpliterator_smallSize() local 906 assertEquals(resultSpliterator.estimateSize(), size); in testAbstractDoubleSpliterator_smallSize() local 918 int size = maxBatch * 2; in testAbstractDoubleSpliterator_largeSize() local 922 assertEquals(spliterator.estimateSize(), size); in testAbstractDoubleSpliterator_largeSize() local [all …]
|
D | AbstractListTest.java | 128 private static void checkSpliteratorOfRandomAccessList(int size, in checkSpliteratorOfRandomAccessList() 147 SpliteratorTester.runSizedTests(spliteratorSupplier.get(), size /* expected size */); in checkSpliteratorOfRandomAccessList() local 149 SpliteratorTester.runSubSizedTests(spliteratorSupplier.get(), size); in checkSpliteratorOfRandomAccessList() local 166 @Override public int size() { return delegate.size(); } in size() method in AbstractListTest.SequentialList 177 public RandomAccessList(int size) { in RandomAccessList() 187 @Override public int size() { return delegate.size(); } in size() method in AbstractListTest.RandomAccessList 204 public OnlyRandomAccessList(int size) { in OnlyRandomAccessList()
|
D | SpliteratorTest.java | 39 private final int size; field in SpliteratorTest.PrimitiveIntegerSpliterator 41 PrimitiveIntegerSpliterator(int size) { in PrimitiveIntegerSpliterator()
|
/libcore/ojluni/annotations/hiddenapi/sun/security/util/ |
D | Cache.java | 39 public abstract int size(); in size() method in Cache 52 public abstract void setCapacity(int size); in setCapacity() 58 public static <K, V> sun.security.util.Cache<K, V> newSoftMemoryCache(int size) { in newSoftMemoryCache() 62 public static <K, V> sun.security.util.Cache<K, V> newSoftMemoryCache(int size, int timeout) { in newSoftMemoryCache() 67 public static <K, V> sun.security.util.Cache<K, V> newHardMemoryCache(int size) { in newHardMemoryCache() 75 public static <K, V> sun.security.util.Cache<K, V> newHardMemoryCache(int size, int timeout) { in newHardMemoryCache()
|
/libcore/luni/src/main/java/libcore/util/ |
D | NativeAllocationRegistry.java | 64 private final long size; field in NativeAllocationRegistry 94 @NonNull ClassLoader classLoader, long freeFunction, long size) { in createNonmalloced() 126 @NonNull ClassLoader classLoader, long freeFunction, long size) { in createMalloced() 180 private NativeAllocationRegistry(ClassLoader classLoader, long freeFunction, long size, in NativeAllocationRegistry() 219 … public NativeAllocationRegistry(@NonNull ClassLoader classLoader, long freeFunction, long size) { in NativeAllocationRegistry() 324 private static void registerNativeAllocation(long size) { in registerNativeAllocation() 339 private static void registerNativeFree(long size) { in registerNativeFree()
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | FileDispatcher.java | 41 abstract int truncate(FileDescriptor fd, long size) throws IOException; in truncate() 43 abstract long size(FileDescriptor fd) throws IOException; in size() method in FileDispatcher 45 abstract int lock(FileDescriptor fd, boolean blocking, long pos, long size, in lock() 48 abstract void release(FileDescriptor fd, long pos, long size) in release()
|
D | FileLockImpl.java | 36 FileLockImpl(FileChannel channel, long position, long size, boolean shared) in FileLockImpl() 41 FileLockImpl(AsynchronousFileChannel channel, long position, long size, boolean shared) in FileLockImpl()
|
D | FileDispatcherImpl.java | 94 int truncate(FileDescriptor fd, long size) throws IOException { in truncate() 100 long size(FileDescriptor fd) throws IOException { in size() method in FileDispatcherImpl 106 int lock(FileDescriptor fd, boolean blocking, long pos, long size, in lock() 114 void release(FileDescriptor fd, long pos, long size) throws IOException { in release() 165 static native int truncate0(FileDescriptor fd, long size) in truncate0() 171 long size, boolean shared) throws IOException; in lock0() 173 static native void release0(FileDescriptor fd, long pos, long size) in release0()
|
/libcore/ojluni/src/test/java/util/IdentityHashMap/ |
D | Capacity.java | 67 sizes.add(new Object[] { size }); in sizes.add() 71 sizes.add(new Object[] { size }); in sizes.add() 118 public void canInsertExpectedItemsWithoutResizing(int size) in canInsertExpectedItemsWithoutResizing() 151 static int threshold(int size) throws Throwable { in threshold() 164 public void passingThresholdCausesResize(int size) throws Throwable { in passingThresholdCausesResize() 181 public void differentGrowthPatternsResultInSameCapacity(int size) in differentGrowthPatternsResultInSameCapacity()
|
/libcore/ojluni/src/test/java/util/Arrays/ |
D | SortingNearlySortedPrimitive.java | 147 public void testShapes(String testName, IntFunction<int[]> dataMethod, int size) { in testShapes() 253 private int[] zeroHiData(int size) { in zeroHiData() 269 private int[] hiZeroLowData(int size) { in hiZeroLowData() 286 private int[] highFlatLowData(int size) { in highFlatLowData() 305 private int[] identicalData(int size) { in identicalData() 316 private int[] endLessThanData(int size) { in endLessThanData() 327 private int[] sortedReversedSortedData(int size) { in sortedReversedSortedData() 342 private int[] pairFlipData(int size) { in pairFlipData()
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | NativeBuffer.java | 39 private final int size; field in NativeBuffer 56 NativeBuffer(int size) { in NativeBuffer() 76 int size() { in size() method in NativeBuffer
|
D | NativeBuffers.java | 46 static NativeBuffer allocNativeBuffer(int size) { in allocNativeBuffer() 56 static NativeBuffer getNativeBufferFromCache(int size) { in getNativeBufferFromCache() 76 static NativeBuffer getNativeBuffer(int size) { in getNativeBuffer()
|
/libcore/ojluni/src/main/java/java/util/ |
D | ReverseOrderListView.java | 95 DescendingListIterator(int size, int pos) { in DescendingListIterator() 277 public int size() { in size() method in ReverseOrderListView 319 int size = base.size(); in add() local 326 int size = base.size(); in addAll() local 339 int size = base.size(); in get() local 359 int size = base.size(); in listIterator() local 366 int size = base.size(); in remove() local 388 int size = base.size(); in set() local 394 int size = base.size(); in subList() local 399 static void checkClosedRange(int index, int size) { in checkClosedRange()
|
D | ImmutableCollections.java | 272 int size = size(); in subList() local 277 static void subListRangeCheck(int fromIndex, int toIndex, int size) { in subListRangeCheck() 299 int size = size(); in listIterator() local 350 private final int size; field in ListItr 357 ListItr(List<E> list, int size) { in ListItr() 364 ListItr(List<E> list, int size, int index) { in ListItr() 444 private final int size; field in SubList 446 private SubList(AbstractImmutableList<E> root, int offset, int size) { in SubList() 473 public int size() { in size() method in SubList 575 public int size() { in size() method in List12 [all …]
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | Sink.java | 130 default void begin(long size) {} in begin() 254 public void begin(long size) { in begin() 286 public void begin(long size) { in begin() 318 public void begin(long size) { in begin() 350 public void begin(long size) { in begin()
|
D | SliceOps.java | 52 private static long calcSize(long size, long skip, long limit) { in calcSize() 131 long size = helper.exactOutputSizeIfKnown(spliterator); in makeRef() local 161 long size = helper.exactOutputSizeIfKnown(spliterator); in makeRef() local 194 public void begin(long size) { in makeRef()
|
/libcore/ojluni/src/main/java/sun/security/util/ |
D | Cache.java | 81 public abstract int size(); in size() method in Cache 111 public abstract void setCapacity(int size); in setCapacity() 127 public static <K,V> Cache<K,V> newSoftMemoryCache(int size) { in newSoftMemoryCache() 136 public static <K,V> Cache<K,V> newSoftMemoryCache(int size, int timeout) { in newSoftMemoryCache() 144 public static <K,V> Cache<K,V> newHardMemoryCache(int size) { in newHardMemoryCache() 161 public static <K,V> Cache<K,V> newHardMemoryCache(int size, int timeout) { in newHardMemoryCache() 212 public int size() { in size() method in NullCache 236 public void setCapacity(int size) { in setCapacity() 352 public synchronized int size() { in size() method in MemoryCache 444 public synchronized void setCapacity(int size) { in setCapacity()
|