/libcore/support/src/test/java/tests/support/ |
H A D | Support_TestResource_en.java | 24 Object[][] contents = { { "parent2", "enValue2" }, 27 return contents;
|
H A D | Support_TestResource_en_US.java | 24 Object[][] contents = { { "parent3", "enUSValue3" }, 27 return contents;
|
H A D | Support_TestResource_fr.java | 24 Object[][] contents = { { "parent2", "frValue2" }, 27 return contents;
|
H A D | Support_TestResource_fr_FR.java | 24 Object[][] contents = { { "parent3", "frFRValue3" }, 27 return contents;
|
H A D | Support_TestResource_fr_FR_VAR.java | 24 Object[][] contents = { { "parent4", "frFRVARValue4" }, 28 return contents;
|
H A D | Support_TestResource.java | 25 Object[][] contents = { { "parent1", "parentValue1" }, 28 return contents;
|
/libcore/luni/src/test/etc/loading-test-jar/ |
H A D | TestMethods.java | 64 * Fully read the contents of the given stream. 129 byte[] contents = readFully(in); 130 String s = new String(contents, "UTF-8"); 185 byte[] contents = readFully(in); 186 String s = new String(contents, "UTF-8");
|
/libcore/luni/src/main/java/java/util/ |
H A D | ListResourceBundle.java | 118 Object[][] contents = getContents(); 119 table = new HashMap<String, Object>(contents.length / 3 * 4 + 3); 120 for (Object[] content : contents) {
|
H A D | AbstractCollection.java | 45 * to the contents of this {@code Collection} (optional). This implementation 196 * @return an iterator for accessing the {@code Collection} contents. 342 public <T> T[] toArray(T[] contents) { argument 343 return toArrayList().toArray(contents);
|
H A D | ArrayList.java | 509 * @param contents 516 @Override public <T> T[] toArray(T[] contents) { argument 518 if (contents.length < s) { 520 = (T[]) Array.newInstance(contents.getClass().getComponentType(), s); 521 contents = newArray; 523 System.arraycopy(this.array, 0, contents, 0, s); 524 if (contents.length > s) { 525 contents[s] = null; 527 return contents;
|
H A D | Vector.java | 333 * enumeration may be affected if the contents of this vector is modified. 984 * @param contents 993 public synchronized <T> T[] toArray(T[] contents) { argument 994 if (elementCount > contents.length) { 995 Class<?> ct = contents.getClass().getComponentType(); 996 contents = (T[]) Array.newInstance(ct, elementCount); 998 System.arraycopy(elementData, 0, contents, 0, elementCount); 999 if (elementCount < contents.length) { 1000 contents[elementCount] = null; 1002 return contents; [all...] |
H A D | LinkedList.java | 924 Object[] contents = new Object[size]; 927 contents[index++] = link.data; 930 return contents; 941 * @param contents 950 public <T> T[] toArray(T[] contents) { argument 952 if (size > contents.length) { 953 Class<?> ct = contents.getClass().getComponentType(); 954 contents = (T[]) Array.newInstance(ct, size); 958 contents[index++] = (T) link.data; 961 if (index < contents [all...] |
H A D | Arrays.java | 125 public <T> T[] toArray(T[] contents) { argument 127 if (size > contents.length) { 128 Class<?> ct = contents.getClass().getComponentType(); 129 contents = (T[]) Array.newInstance(ct, size); 131 System.arraycopy(a, 0, contents, 0, size); 132 if (size < contents.length) { 133 contents[size] = null; 135 return contents; 995 * Returns a hash code based on the contents of the given array. For any two 1023 * Returns a hash code based on the contents o [all...] |
/libcore/luni/src/test/java/libcore/java/util/zip/ |
H A D | OldAndroidGZIPStreamTest.java | 97 ByteArrayOutputStream contents = new ByteArrayOutputStream(); 102 contents.write(buf, 0, len);
|
H A D | OldAndroidZipStreamTest.java | 145 ByteArrayOutputStream contents = new ByteArrayOutputStream(); 150 contents.write(buf, 0, len); 157 // + "', zero=" + contents.toByteArray()[0] 158 // + ", tfs=" + contents.toByteArray()[257]
|
/libcore/luni/src/test/java/libcore/xml/ |
H A D | DeclarationTest.java | 60 private String stringToSystemId(String contents) throws IOException { argument 64 out.write(contents.getBytes("UTF-8"));
|
/libcore/luni/src/main/java/java/nio/ |
H A D | FloatBuffer.java | 132 * if no changes may be made to the contents of this buffer. 365 * if no changes may be made to the contents of this buffer. 382 * if no changes may be made to the contents of this buffer. 407 * if no changes may be made to the contents of this buffer. 434 * if no changes may be made to the contents of this buffer. 446 float[] contents = new float[src.remaining()]; 447 src.get(contents); 448 put(contents); 464 * if no changes may be made to the contents of this buffer.
|
H A D | IntBuffer.java | 128 * if no changes may be made to the contents of this buffer. 351 * if no changes may be made to the contents of this buffer. 368 * if no changes may be made to the contents of this buffer. 393 * if no changes may be made to the contents of this buffer. 423 * if no changes may be made to the contents of this buffer. 435 int[] contents = new int[src.remaining()]; 436 src.get(contents); 437 put(contents); 453 * if no changes may be made to the contents of this buffer.
|
H A D | LongBuffer.java | 130 * if no changes may be made to the contents of this buffer. 355 * if no changes may be made to the contents of this buffer. 372 * if no changes may be made to the contents of this buffer. 397 * if no changes may be made to the contents of this buffer. 424 * if no changes may be made to the contents of this buffer. 436 long[] contents = new long[src.remaining()]; 437 src.get(contents); 438 put(contents); 454 * if no changes may be made to the contents of this buffer.
|
H A D | ShortBuffer.java | 130 * if no changes may be made to the contents of this buffer. 354 * if no changes may be made to the contents of this buffer. 371 * if no changes may be made to the contents of this buffer. 396 * if no changes may be made to the contents of this buffer. 423 * if no changes may be made to the contents of this buffer. 435 short[] contents = new short[src.remaining()]; 436 src.get(contents); 437 put(contents); 453 * if no changes may be made to the contents of this buffer.
|
H A D | CharBuffer.java | 196 * if no changes may be made to the contents of this buffer. 428 * if no changes may be made to the contents of this buffer. 445 * if no changes may be made to the contents of this buffer. 470 * if no changes may be made to the contents of this buffer. 497 * if no changes may be made to the contents of this buffer. 510 char[] contents = new char[src.remaining()]; 511 src.get(contents); 512 put(contents); 528 * if no changes may be made to the contents of this buffer. 545 * if no changes may be made to the contents o [all...] |
/libcore/luni/src/test/java/libcore/java/util/jar/ |
H A D | OldJarFileTest.java | 128 String contents = stringBuffer.toString(); 129 assertTrue("Incorrect stream read", contents.indexOf("bar") > 0);
|
/libcore/json/src/test/java/org/json/ |
H A D | JSONObjectTest.java | 651 Map<String, Object> contents = new HashMap<String, Object>(); 652 contents.put("foo", Double.NaN); 653 contents.put("bar", Double.NEGATIVE_INFINITY); 654 contents.put("baz", Double.POSITIVE_INFINITY); 656 JSONObject object = new JSONObject(contents); 669 Map<String, Object> contents = new HashMap<String, Object>(); 670 contents.put("foo", 5); 671 JSONObject object = new JSONObject(contents); 672 contents.put("foo", 10); 677 Map<Object, Object> contents [all...] |
/libcore/luni/src/main/java/java/util/concurrent/ |
H A D | CopyOnWriteArrayList.java | 45 * copy of the list's contents. It is always safe to iterate this list, but 66 * contents of an array after it has been assigned to this field. 228 public <T> T[] toArray(T[] contents) { argument 230 if (snapshot.length > contents.length) { 231 return (T[]) Arrays.copyOf(snapshot, snapshot.length, contents.getClass()); 233 System.arraycopy(snapshot, 0, contents, 0, snapshot.length); 234 if (snapshot.length < contents.length) { 235 contents[snapshot.length] = null; 237 return contents;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/luni/tests/java/io/ |
H A D | BufferedReaderTest.java | 301 char[] contents = new char[size]; 306 return contents[pos++]; 315 System.arraycopy(contents, pos, buf, off, toRead);
|