/libcore/ojluni/src/main/java/java/io/ |
H A D | BufferedInputStream.java | 88 * elements <code>buf[0]</code> through <code>buf[count-1] 92 protected int count; field in class:BufferedInputStream 99 * through <code>count</code>. If it is less 100 * than <code>count</code>, then <code>buf[pos]</code> 102 * if it is equal to <code>count</code>, then 129 * of <code>count</code>, <code>pos</code>, 213 * hence pos > count. 247 count = pos; 250 count = n + pos; 266 if (pos >= count) { [all...] |
/libcore/ojluni/src/main/java/java/net/ |
H A D | PlainSocketImpl.java | 169 void socketListen(int count) throws IOException { argument 175 Libcore.os.listen(fd, count);
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
H A D | FileChannel.java | 488 * The new size, a non-negative byte count 560 * <p> An attempt is made to read up to <tt>count</tt> bytes starting at 566 * <tt>count</tt> bytes starting at the given <tt>position</tt>, or if the 567 * target channel is non-blocking and it has fewer than <tt>count</tt> 585 * @param count 619 public abstract long transferTo(long position, long count, argument 627 * <p> An attempt is made to read up to <tt>count</tt> bytes from the 633 * <tt>count</tt> bytes remaining, or if the source channel is non-blocking 634 * and has fewer than <tt>count</tt> bytes immediately available in its 655 * @param count 686 transferFrom(ReadableByteChannel src, long position, long count) argument [all...] |
/libcore/ojluni/src/main/java/java/util/concurrent/ |
H A D | CountedCompleter.java | 50 * count} starts at zero, but may be (atomically) changed using 53 * #tryComplete}, if the pending action count is nonzero, it is 153 * setPendingCount(2); // must set pending count before fork 168 * {@code tryComplete}) the pending count is set to one: 190 * and add a pending count for each fork. Additionally, because no task 333 * in which the pending count is, or becomes, zero: (1) by a task 334 * itself, if its pending count is zero upon invocation of {@code 336 * decrement the pending count to zero. The {@code caller} argument 422 * and initial pending count. 425 * @param initialPendingCount the initial pending count 517 setPendingCount(int count) argument 538 compareAndSetPendingCount(int expected, int count) argument [all...] |
/libcore/ojluni/src/main/java/java/util/stream/ |
H A D | Node.java | 39 * via the {@link #count}, {@link #spliterator}, {@link #forEach}, 114 * be in range 0..count(). 116 * in range 0..count(). 122 if (from == 0 && to == count()) 183 long count(); method in interface:Node 260 * {@link #count()} and then invokes {@link #copyInto(T[], int)} with 268 long size = count(); 271 T[] boxed = generator.apply((int) count()); 291 * @param count the length of the primitive array. 294 T_ARR newArray(int count); argument 370 newArray(int count) argument 443 newArray(int count) argument 518 newArray(int count) argument [all...] |
H A D | DoubleStream.java | 538 * Returns the count of elements in this stream. This is a special case of 547 * @return the count of elements in this stream 549 long count(); method in interface:DoubleStream
|
H A D | Stream.java | 80 * as {@link Stream#count()} or {@link Stream#forEach(Consumer)}). 840 * Returns the count of elements in this stream. This is a special case of 849 * @return the count of elements in this stream 851 long count(); method in interface:Stream
|
H A D | Streams.java | 160 * to a count lower than this threshold. 284 * to a count lower than this threshold. 306 int count; field in class:Streams.AbstractStreamBuilderImpl 309 // count == -1 for no elements 310 // count == -2 for one element held by first 319 return -count - 1; 333 // valid if count == 1 337 // non-null if count == 2 352 count = -2; 359 if (count [all...] |
/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | EPoll.java | 66 * Allocates a poll array to handle up to {@code count} events. 68 static long allocatePollArray(int count) { argument 69 return unsafe.allocateMemory(count * SIZEOF_EPOLLEVENT);
|
H A D | Util.java | 62 private int count; field in class:Util.BufferCache 64 // the index of the first valid buffer (undefined if count == 0) 80 if (count == 0) 108 count--; 117 if (count >= TEMP_BUF_POOL_SIZE) { 122 count++; 128 if (count >= TEMP_BUF_POOL_SIZE) { 131 int next = (start + count) % TEMP_BUF_POOL_SIZE; 133 count++; 139 return count [all...] |
/libcore/ojluni/src/main/native/ |
H A D | FileChannelImpl.c | 161 jlong position, jlong count, 169 jlong n = sendfile64(dstFD, srcFD, &offset, (size_t)count); 173 if ((errno == EINVAL) && ((ssize_t)count >= 0)) 190 sfv.sfv_len = count; 204 if ((errno == EINVAL) && ((ssize_t)count >= 0)) 216 numBytes = count; 228 if ((errno == EINVAL) && ((ssize_t)count >= 0)) 246 if (count > max) 247 count = max; 252 sf_iobuf.file_bytes = count; 159 FileChannelImpl_transferTo0(JNIEnv *env, jobject this, jobject srcFDO, jlong position, jlong count, jobject dstFDO) argument [all...] |
H A D | linux_close.cpp | 130 int NET_ReadV(int s, const struct iovec * vector, int count) { argument 131 BLOCKING_IO_RETURN_INT( s, readv(s, vector, count) ); 145 int NET_WriteV(int s, const struct iovec * vector, int count) { argument 146 BLOCKING_IO_RETURN_INT( s, writev(s, vector, count) );
|
/libcore/support/src/test/java/org/apache/harmony/testframework/ |
H A D | CharWrapperTester.java | 207 public void write(char[] buf, int offset, int count) throws IOException { argument 211 buffer.append(buf, offset, count); 220 public void write(char[] buf, int offset, int count) throws IOException { argument 249 public void write(char[] buf, int offset, int count) throws IOException { argument
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
H A D | BufferedOutputStreamTest.java | 112 int count; field in class:BufferedOutputStreamTest.MockOutputStream 116 count = 0; 120 written[count++] = (byte) b; 124 return new String(written, 0, count);
|
H A D | DataInputStreamTest.java | 490 public void readFully(byte[] buffer, int offset, int count) argument 522 public int skipBytes(int count) throws IOException { argument
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
H A D | FutureTaskTest.java | 228 final AtomicInteger count = new AtomicInteger(0); field in class:FutureTaskTest.Counter 229 public int get() { return count.get(); } 231 count.getAndIncrement();
|
H A D | ScheduledExecutorTest.java | 149 AtomicInteger count = new AtomicInteger(0); field in class:ScheduledExecutorTest.RunnableCounter 150 public void run() { count.getAndIncrement(); } 655 long count = p.getTaskCount(); 656 if (count == max) 669 final int count = 5; 681 for (int i = 0; i < count; i++) 694 assertEquals(count - poolSize, queuedTasks.size());
|
/libcore/luni/src/main/java/libcore/io/ |
H A D | Memory.java | 225 public static native void pokeByteArray(long address, byte[] src, int offset, int count); argument 226 public static native void pokeCharArray(long address, char[] src, int offset, int count, boolean swap); argument 227 public static native void pokeDoubleArray(long address, double[] src, int offset, int count, boolean swap); argument 228 public static native void pokeFloatArray(long address, float[] src, int offset, int count, boolean swap); argument 229 public static native void pokeIntArray(long address, int[] src, int offset, int count, boolean swap); argument 230 public static native void pokeLongArray(long address, long[] src, int offset, int count, boolean swap); argument 231 public static native void pokeShortArray(long address, short[] src, int offset, int count, boolean swap); argument
|
/libcore/luni/src/test/java/libcore/java/util/ |
H A D | GregorianCalendarTest.java | 493 private static int hours(int count) { argument 494 return HOUR_IN_MILLIS * count;
|
/libcore/ojluni/src/main/java/java/text/ |
H A D | Bidi.java | 387 * <code>objectStart</code> up to <code>objectStart + count</code> 396 * @param count the number of objects to reorder 398 public static void reorderVisually(byte[] levels, int levelStart, Object[] objects, int objectStart, int count) { argument 410 if (0 > count || objects.length < (objectStart+count)) { 411 throw new IllegalArgumentException("Value count " + 418 android.icu.text.Bidi.reorderVisually(levels, levelStart, objects, objectStart, count);
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | TimeZone.java | 456 private static void appendNumber(StringBuilder builder, int count, int value) { argument 458 for (int i = 0; i < count - string.length(); i++) {
|
/libcore/ojluni/src/main/java/java/util/jar/ |
H A D | Manifest.java | 323 private int count = 0; field in class:Manifest.FastInputStream 336 if (pos >= count) { 338 if (pos >= count) { 346 int avail = count - pos; 352 avail = count - pos; 373 int avail = count - pos; 376 avail = count - pos; 401 if (pos == count) 403 if (pos == count) 416 long avail = count [all...] |
/libcore/ojluni/src/main/java/java/util/logging/ |
H A D | FileHandler.java | 90 * <li> <handler-name>.count 122 * If no "%g" field has been specified and the file count is greater 126 * Thus for example a pattern of "%t/java%g.log" with a count of 2 155 private int count; field in class:FileHandler 231 count = manager.getIntProperty(cname + ".count", 1); 232 if (count <= 0) { 233 count = 1; 273 * set to no limit, and the file count is set to one. 292 this.count 353 FileHandler(String pattern, int limit, int count) argument 392 FileHandler(String pattern, int limit, int count, boolean append) argument [all...] |
/libcore/ojluni/src/main/java/sun/security/util/ |
H A D | ObjectIdentifier.java | 151 int count = 0; 168 if (count == 0) { 172 if (count == 1) { 176 checkOtherComponent(count, bignum); 182 if (count == 0) { 186 if (count == 1) { 190 checkOtherComponent(count, num); 196 count++; 199 checkCount(count); 519 int count 624 checkCount(int count) argument [all...] |
/libcore/luni/src/main/native/ |
H A D | libcore_io_Memory.cpp | 63 static inline void swapShorts(jshort* dstShorts, const jshort* srcShorts, size_t count) { argument 67 for (size_t i = 0; i < count / 2; ++i) { 71 if ((count % 2) != 0) { 77 static inline void swapInts(jint* dstInts, const jint* srcInts, size_t count) { argument 78 for (size_t i = 0; i < count; ++i) { 84 static inline void swapLongs(jlong* dstLongs, const jlong* srcLongs, size_t count) { argument 87 for (size_t i = 0; i < count; ++i) { 129 SWAP_FN(reinterpret_cast<SWAP_TYPE*>(elements.get()) + dstOffset, src, count); /*NOLINT*/ \ 132 env->Set ## JNI_NAME ## ArrayRegion(dst, dstOffset, count, src); \ 136 static void Memory_peekCharArray(JNIEnv* env, jclass, jlong srcAddress, jcharArray dst, jint dstOffset, jint count, jboolea argument 140 Memory_peekDoubleArray(JNIEnv* env, jclass, jlong srcAddress, jdoubleArray dst, jint dstOffset, jint count, jboolean swap) argument 144 Memory_peekFloatArray(JNIEnv* env, jclass, jlong srcAddress, jfloatArray dst, jint dstOffset, jint count, jboolean swap) argument 148 Memory_peekIntArray(JNIEnv* env, jclass, jlong srcAddress, jintArray dst, jint dstOffset, jint count, jboolean swap) argument 152 Memory_peekLongArray(JNIEnv* env, jclass, jlong srcAddress, jlongArray dst, jint dstOffset, jint count, jboolean swap) argument 156 Memory_peekShortArray(JNIEnv* env, jclass, jlong srcAddress, jshortArray dst, jint dstOffset, jint count, jboolean swap) argument 188 Memory_pokeCharArray(JNIEnv* env, jclass, jlong dstAddress, jcharArray src, jint srcOffset, jint count, jboolean swap) argument 192 Memory_pokeDoubleArray(JNIEnv* env, jclass, jlong dstAddress, jdoubleArray src, jint srcOffset, jint count, jboolean swap) argument 196 Memory_pokeFloatArray(JNIEnv* env, jclass, jlong dstAddress, jfloatArray src, jint srcOffset, jint count, jboolean swap) argument 200 Memory_pokeIntArray(JNIEnv* env, jclass, jlong dstAddress, jintArray src, jint srcOffset, jint count, jboolean swap) argument 204 Memory_pokeLongArray(JNIEnv* env, jclass, jlong dstAddress, jlongArray src, jint srcOffset, jint count, jboolean swap) argument 208 Memory_pokeShortArray(JNIEnv* env, jclass, jlong dstAddress, jshortArray src, jint srcOffset, jint count, jboolean swap) argument [all...] |