/libcore/jsr166-tests/src/test/java/jsr166/ |
H A D | LinkedBlockingDequeTest.java | 54 * Returns a new deque of given size containing consecutive 65 assertEquals(n, q.size()); 84 * size changes when elements added and removed 89 assertEquals(SIZE - i, q.size()); 93 assertEquals(i, q.size()); 417 assertEquals(SIZE, q.size() + q.remainingCapacity()); 422 assertEquals(SIZE, q.size() + q.remainingCapacity()); 582 assertEquals(SIZE, q.size()); 604 assertEquals(SIZE, q.size()); 812 assertEquals(SIZE, q.size()); [all...] |
H A D | LinkedListTest.java | 32 * Returns a new queue of given size containing consecutive 41 assertEquals(n, q.size()); 49 assertEquals(0, new LinkedList().size()); 89 * size changes when elements added and removed 94 assertEquals(SIZE - i, q.size()); 98 assertEquals(i, q.size()); 128 assertEquals(i, q.size()); 281 assertEquals(0, q.size()); 316 assertEquals(SIZE - i, q.size()); 329 assertEquals(SIZE - i, q.size()); [all...] |
/libcore/ojluni/src/main/java/java/io/ |
H A D | ObjectOutputStream.java | 303 if (handles.size() != 0) { 1409 "\", size: " + len + ")"); 2317 private int size; field in class:ObjectOutputStream.HandleTable 2318 /* size threshold determining when to expand hash spine */ 2320 /* factor for computing size threshold */ 2346 if (size >= next.length) { 2349 if (size >= threshold) { 2352 insert(obj, size); 2353 return size++; 2361 if (size 2385 int size() { method in class:ObjectOutputStream.HandleTable 2485 int size() { method in class:ObjectOutputStream.ReplaceTable [all...] |
H A D | ObjectInputStream.java | 1454 if (passHandle < 0 || passHandle >= handles.size()) { 3258 int size = 0; field in class:ObjectInputStream.HandleTable 3276 if (size >= entries.length) { 3279 status[size] = STATUS_UNKNOWN; 3280 entries[size] = obj; 3281 return size++; 3349 int ndeps = dlist.size(); 3377 end = size; 3449 Arrays.fill(status, 0, size, (byte) 0); 3450 Arrays.fill(entries, 0, size, nul 3459 int size() { method in class:ObjectInputStream.HandleTable 3487 private int size = 0; field in class:ObjectInputStream.HandleTable.HandleList 3508 public int size() { method in class:ObjectInputStream.HandleTable.HandleList [all...] |
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
H A D | ProviderTest.java | 170 assertEquals("Incorrect set size", 8, s.size()); 211 assertEquals(p.size(), hm.size()); 251 assertEquals(8, s1.size()); 278 assertEquals(8, c1.size()); 299 assertEquals(3, services.size()); 330 assertEquals(1, p.getServices().size()); 389 return getServices().size(); 419 assertEquals(0, services.size()); [all...] |
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
H A D | SpliteratorTestHelper.java | 218 // assert that size, tryAdvance, and forEach are consistent 220 assertEquals(sizeIfKnown, exp.size()); 222 assertEquals(fromForEach.size(), exp.size()); 248 // assert that size, tryAdvance, and forEach are consistent 250 assertEquals(sizeIfKnown, exp.size()); 252 assertEquals(fromTryAdvance.size(), exp.size()); 281 assertEquals(sizeIfKnown, dest.size()); 283 assertEquals(dest.size(), ex [all...] |
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
H A D | SpliteratorTestHelper.java | 218 // assert that size, tryAdvance, and forEach are consistent 220 assertEquals(sizeIfKnown, exp.size()); 222 assertEquals(fromForEach.size(), exp.size()); 248 // assert that size, tryAdvance, and forEach are consistent 250 assertEquals(sizeIfKnown, exp.size()); 252 assertEquals(fromTryAdvance.size(), exp.size()); 281 assertEquals(sizeIfKnown, dest.size()); 283 assertEquals(dest.size(), ex [all...] |
/libcore/dalvik/src/main/java/dalvik/system/ |
H A D | DexPathList.java | 149 if (suppressedExceptions.size() > 0) { 151 suppressedExceptions.toArray(new IOException[suppressedExceptions.size()]); 163 new File[allNativeLibraryDirectories.size()]); 198 if (suppressedExceptionList.size() > 0) { 200 new IOException[suppressedExceptionList.size()]); 288 Element[] elements = new Element[files.size()];
|
/libcore/ojluni/src/main/java/java/net/ |
H A D | DatagramSocket.java | 917 * network implementation as a hint to size the underlying 919 * by the network implementation to determine the maximum size 923 * what size the buffer is should call {@link #getSendBufferSize()}. 925 * Increasing the buffer size may allow multiple outgoing packets 934 * @param size the size to which to set the send buffer 935 * size. This value must be greater than 0. 943 public synchronized void setSendBufferSize(int size) argument 945 if (!(size > 0)) { 946 throw new IllegalArgumentException("negative send size"); 1001 setReceiveBufferSize(int size) argument [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | CalendarTest.java | 978 assertTrue(allResult.size() >= shortResult.size()); 979 assertTrue(allResult.size() >= longResult.size()); 980 assertTrue(allResult.size() <= shortResult.size() 981 + longResult.size()); 988 assertTrue(allResult.size() >= shortResult.size()); 989 assertTrue(allResult.size() > [all...] |
H A D | AbstractMapTest.java | 301 return index < values.size(); 305 if (index < values.size()) { 334 public int size() { 335 return values.size();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
H A D | ServerSocketChannelTest.java | 421 * Asserts read content. The read content should contain <code>size</code> 422 * bytes, and the value should be a sequence from 0 to size-1 423 * ([0,1,...size-1]). Otherwise, the method throws Exception. 426 private void assertReadResult(InputStream in, int size) throws IOException{ argument 427 byte[] readContent = new byte[size + 1]; 430 while ((count = in.read(readContent, total, size + 1 - total)) != -1) { 433 assertEquals(size, total); 434 for (int i = 0; i < size; i++) { 637 private void assertWriteResult(int size) throws IOException{ argument 638 ByteBuffer buf = ByteBuffer.allocate(size [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/ |
H A D | MockAbstractPreferences.java | 93 String[] r = new String[childs.size()]; 151 String[] results = new String[keys.size()];
|
/libcore/luni/src/test/java/libcore/java/util/ |
H A D | ForEachRemainingTester.java | 59 assertEquals(initialData.length - 1, recorder.size()); 81 assertEquals(initialData.length - 1, recorder.size());
|
/libcore/luni/src/test/java/tests/security/cert/ |
H A D | CertificateRevocationExceptionTest.java | 170 assertEquals(expected.getExtensions().size(), actual.getExtensions().size());
|
/libcore/ojluni/src/main/java/java/util/stream/ |
H A D | DistinctOps.java | 130 public void begin(long size) { 160 public void begin(long size) {
|
/libcore/ojluni/src/main/java/java/util/zip/ |
H A D | GZIPInputStream.java | 66 * Creates a new input stream with the specified buffer size. 68 * @param size the input buffer size 73 * @exception IllegalArgumentException if size is <= 0 75 public GZIPInputStream(InputStream in, int size) throws IOException { argument 76 super(in, new Inflater(true), size); 81 * Creates a new input stream with a default buffer size. 218 // rfc1952; ISIZE is the input size modulo 2^32
|
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
H A D | SunCertPathBuilder.java | 282 + "certPathList.size: " + certPathList.size()); 350 + "certs.size=" + vertices.size()); 420 appendedCerts.size(), 482 for (int i = 0; i < appendedCerts.size(); i++) { 607 vertex.setIndex(adjList.size() - 1); 668 + "certs.size=" + vertices.size()); 744 vertex.setIndex(adjList.size() [all...] |
/libcore/support/src/test/java/tests/support/ |
H A D | Support_Format.java | 72 return vector1.size() == vector2.size() && vector1.containsAll(vector2);
|
/libcore/benchmarks/src/benchmarks/regression/ |
H A D | PriorityQueueBenchmark.java | 71 int elementsSize = seekElements.size();
|
/libcore/dalvik/src/test/java/dalvik/system/profiler/ |
H A D | SamplingProfilerTest.java | 122 assertEquals(0, hprofData.getThreadHistory().size()); 160 assertEquals(0, hprofData.getSamples().size()); 184 assertEquals(1, samples.size()); 206 assertEquals(1, hprofData.getSamples().size());
|
/libcore/dom/src/test/java/org/w3c/domts/level2/core/ |
H A D | createAttributeNS03.java | 103 for (int indexN10090 = 0; indexN10090 < illegalQNames.size(); indexN10090++) {
|
H A D | createDocument05.java | 107 for (int indexN1009A = 0; indexN1009A < illegalQNames.size(); indexN1009A++) {
|
H A D | createDocumentType02.java | 106 for (int indexN1009A = 0; indexN1009A < illegalQNames.size(); indexN1009A++) {
|
H A D | createElementNS03.java | 105 for (int indexN10098 = 0; indexN10098 < illegalQNames.size(); indexN10098++) {
|