/libcore/luni/src/main/java/java/nio/ |
H A D | DoubleBuffer.java | 78 * the start index, must not be negative and not greater than 279 * Returns a double at the specified index; the position is not changed. 281 * @param index 282 * the index, must not be negative and less than limit. 283 * @return a double at the specified index. 285 * if index is invalid. 287 public abstract double get(int index); argument 454 * Write a double to the specified index of this buffer and the position is 457 * @param index 458 * the index, mus 467 put(int index, double d) argument [all...] |
H A D | FloatBuffer.java | 77 * the start index, must not be negative and not greater than 280 * Returns a float at the specified index; the position is not changed. 282 * @param index 283 * the index, must not be negative and less than limit. 284 * @return a float at the specified index. 286 * if index is invalid. 288 public abstract float get(int index); argument 453 * Writes a float to the specified index of this buffer; the position is not 456 * @param index 457 * the index, mus 466 put(int index, float f) argument [all...] |
H A D | IntBuffer.java | 75 * the start index, must not be negative and not greater than 266 * Returns an int at the specified index; the position is not changed. 268 * @param index 269 * the index, must not be negative and less than limit. 270 * @return an int at the specified index. 272 * if index is invalid. 274 public abstract int get(int index); argument 442 * Write a int to the specified index of this buffer; the position is not 445 * @param index 446 * the index, mus 455 put(int index, int i) argument [all...] |
H A D | LongBuffer.java | 77 * the start index, must not be negative and not greater than 268 * Returns the long at the specified index; the position is not changed. 270 * @param index 271 * the index, must not be negative and less than limit. 272 * @return the long at the specified index. 274 * if index is invalid. 276 public abstract long get(int index); argument 443 * Writes a long to the specified index of this buffer; the position is not 446 * @param index 447 * the index, mus 456 put(int index, long l) argument [all...] |
H A D | ShortBuffer.java | 77 * the start index, must not be negative and not greater than 269 * Returns the short at the specified index; the position is not changed. 271 * @param index 272 * the index, must not be negative and less than limit. 273 * @return a short at the specified index. 275 * if index is invalid. 277 public abstract short get(int index); argument 442 * Writes a short to the specified index of this buffer; the position is not 445 * @param index 446 * the index, mus 455 put(int index, short s) argument [all...] |
H A D | DatagramChannelImpl.java | 357 int index = offset; 361 int putLength = Math.min(targets[index].remaining(), left); 362 targets[index].put(readArray, readCount - left, putLength); 363 index++;
|
H A D | SocketChannelImpl.java | 323 int index = offset; 326 int putLength = Math.min(targets[index].remaining(), left); 327 targets[index].put(readArray, readCount - left, putLength); 328 index++;
|
/libcore/luni/src/test/java/libcore/icu/ |
H A D | AlphabeticIndexTest.java | 27 int index = ii.getBucketIndex(string); 28 String label = ii.getBucketLabel(index); 189 // index with a larger number of labels.
|
/libcore/support/src/test/java/tests/security/ |
H A D | MessageDigestTest.java | 91 int index = 0; 94 checkDigest[index++] = (byte)read;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
H A D | NetworkInterfaceTest.java | 87 int index = 0; 92 index++; 98 index = 0; 103 index++;
|
/libcore/luni/src/main/java/java/util/concurrent/ |
H A D | Exchanger.java | 113 * anyway as ThreadLocals, and include in them per-thread index 178 * order, restarting at the maximum index (which will tend to be 234 * The maximum supported arena index. The maximum allocatable 251 * The maximum slot index of the arena: The number of slots that 283 int index; // Arena index field in class:Exchanger.Node 318 * The index of the largest valid arena position, OR'ed with SEQ 337 for (int i = p.index;;) { // access slot at i 387 i = p.index >>>= 1; // descend 412 p.index [all...] |
/libcore/luni/src/main/java/libcore/util/ |
H A D | ZoneInfoDB.java | 38 * with an index to indicate the starting position of each time zone record. 80 int index = Arrays.binarySearch(ids, id); 81 if (index < 0) { 86 it.skip(byteOffsets[index]); 182 throw new AssertionError("length in index file < sizeof(tzhead)");
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | CalendarTest.java | 594 int index = fields[i]; 595 calendar.clear(index); 596 if (5 == index) { 598 assertEquals("Field " + index + " Should equal to 20.", 20, 599 calendar.get(index)); 600 } else if (11 == index) { 602 assertEquals("Field " + index + " Should equal to 17.", 17, 603 calendar.get(index)); 606 assertEquals("Field " + index + " Should equal to " 607 + defaults[i] + ".", defaults[i], calendar.get(index)); [all...] |
H A D | AbstractListTest.java | 40 public Object get(int index) { argument 41 return this.arrayList.get(index); 222 public E get(int index) { argument 223 return list.get(index);
|
H A D | ArrayListTest.java | 198 assertTrue("Manipulated elements < index", 427 for (int index = 0; index < size; index++) { 428 assertEquals(1, arrayListA.get(index)); 438 for (int index = 0; index < size; index++) { 439 assertEquals(1, arrayList.get(index)); 565 fail("Failed to throw expected exception for index > siz [all...] |
/libcore/luni/src/main/java/java/util/ |
H A D | EnumMap.java | 376 int index = 0; 383 for (; index < size; index++) { 385 entryArray[index] = new MapEntry<KT, VT>(entry.getKey(), entry 388 if (index < array.length) { 389 entryArray[index] = null;
|
H A D | LinkedList.java | 271 * the index at which to insert. 329 * the index at which to insert. 582 * index of the last occurrence. 586 * @return the index of the last occurrence of the object, or -1 if it was 619 * the index at which to start the iteration 634 * the index of the object to remove 849 * the index at which to put the specified object. 852 * @return the previous element at the index. 923 int index = 0; 927 contents[index [all...] |
H A D | LinkedHashMap.java | 184 @Override void addNewEntry(K key, V value, int hash, int index) { argument 196 key, value, hash, table[index], header, oldTail); 197 table[index] = oldTail.nxt = header.prv = newTail;
|
H A D | Formatter.java | 52 * argument index, optional flags, an optional width, an optional precision, and a mandatory 57 * Not all combinations of argument index, flags, width, precision, and conversion type 60 * <i>Argument index</i>. Normally, each format specifier consumes the next argument to 1075 int index = token.getArgIndex() == FormatToken.UNSET ? currentObjectIndex++ : token.getArgIndex(); 1076 argument = getArgument(args, index, fsp, lastArgument, hasLastArgumentSet); 1100 private Object getArgument(Object[] args, int index, FormatSpecifierParser fsp, argument 1102 if (index == FormatToken.LAST_ARGUMENT_INDEX && !hasLastArgumentSet) { 1110 if (index >= args.length) { 1114 if (index == FormatToken.LAST_ARGUMENT_INDEX) { 1118 return args[index]; 1170 setArgIndex(int index) argument [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/x501/ |
H A D | AttributeTypeAndValue.java | 427 int index = hashIntArray(oid) % CAPACITY; 430 ObjectIdentifier[] list = KNOWN_OIDS[index]; 445 int index = hashIntArray(newOid) % CAPACITY; 448 ObjectIdentifier[] list = KNOWN_OIDS[index];
|
/libcore/luni/src/test/java/libcore/xml/ |
H A D | PullParserDtdTest.java | 358 int index = indexOfAttributeWithName(parser, "bar:a"); 359 assertEquals("", parser.getAttributeNamespace(index)); 360 assertEquals("bar:a", parser.getAttributeName(index)); 361 assertEquals("android", parser.getAttributeValue(index)); 362 assertEquals("CDATA", parser.getAttributeType(index));
|
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/ |
H A D | DOMConfigurationImpl.java | 362 public String item(int index) { 363 return index < result.length ? result[index] : null;
|
/libcore/luni/src/main/java/java/lang/ |
H A D | System.java | 166 * the starting index of the content in {@code src}. 170 * the starting index for the copied content in {@code dst}. 674 int index = entry.indexOf('='); 675 if (index != -1) { 676 map.put(entry.substring(0, index), entry.substring(index + 1));
|
/libcore/luni/src/main/java/java/io/ |
H A D | ObjectInputStream.java | 1236 int index = findStreamSuperclass(superclass, streamClassList, lastIndex); 1237 if (index == -1) { 1241 for (int j = lastIndex; j <= index; j++) { 1244 lastIndex = index + 1; 2137 int index = handle - ObjectStreamConstants.baseWireHandle; 2142 while (index > size) { 2146 if (index == size) { 2149 objectsRead.set(index, obj); 2201 break; // Found the index where to insert
|
/libcore/luni/src/main/java/java/net/ |
H A D | NetworkInterface.java | 68 * Returns the index for the network interface, or -1 if unknown. 152 // 2. interface index 175 // Skip the interface index and its trailing space. 273 * Returns the NetworkInterface corresponding to the given interface index, or null if no 274 * interface has this index. 279 public static NetworkInterface getByIndex(int index) throws SocketException { argument 280 String name = Libcore.os.if_indextoname(index);
|