Searched refs:contents (Results 1 - 25 of 31) sorted by relevance

12

/libcore/support/src/test/java/tests/support/
H A DSupport_TestResource_en.java24 Object[][] contents = { { "parent2", "enValue2" },
27 return contents;
H A DSupport_TestResource_en_US.java24 Object[][] contents = { { "parent3", "enUSValue3" },
27 return contents;
H A DSupport_TestResource_fr.java24 Object[][] contents = { { "parent2", "frValue2" },
27 return contents;
H A DSupport_TestResource_fr_FR.java24 Object[][] contents = { { "parent3", "frFRValue3" },
27 return contents;
H A DSupport_TestResource_fr_FR_VAR.java24 Object[][] contents = { { "parent4", "frFRVARValue4" },
28 return contents;
H A DSupport_TestResource.java25 Object[][] contents = { { "parent1", "parentValue1" },
28 return contents;
/libcore/luni/src/test/etc/loading-test-jar/
H A DTestMethods.java64 * 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 DListResourceBundle.java118 Object[][] contents = getContents();
119 table = new HashMap<String, Object>(contents.length / 3 * 4 + 3);
120 for (Object[] content : contents) {
H A DAbstractCollection.java45 * 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 DArrayList.java509 * @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 DVector.java333 * 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 DLinkedList.java924 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 DArrays.java125 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 DOldAndroidGZIPStreamTest.java97 ByteArrayOutputStream contents = new ByteArrayOutputStream();
102 contents.write(buf, 0, len);
H A DOldAndroidZipStreamTest.java145 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 DDeclarationTest.java60 private String stringToSystemId(String contents) throws IOException { argument
64 out.write(contents.getBytes("UTF-8"));
/libcore/luni/src/main/java/java/nio/
H A DFloatBuffer.java132 * 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 DIntBuffer.java128 * 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 DLongBuffer.java130 * 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 DShortBuffer.java130 * 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 DCharBuffer.java196 * 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 DOldJarFileTest.java128 String contents = stringBuffer.toString();
129 assertTrue("Incorrect stream read", contents.indexOf("bar") > 0);
/libcore/json/src/test/java/org/json/
H A DJSONObjectTest.java651 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 DCopyOnWriteArrayList.java45 * 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 DBufferedReaderTest.java301 char[] contents = new char[size];
306 return contents[pos++];
315 System.arraycopy(contents, pos, buf, off, toRead);

Completed in 471 milliseconds

12