Searched refs:contents (Results 1 - 25 of 30) 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/main/java/java/util/
H A DAbstractCollection.java45 * to the contents of this {@code Collection} (optional). This implementation
196 * @return an iterator for accessing the {@code Collection} contents.
349 public <T> T[] toArray(T[] contents) { argument
351 if (size > contents.length) {
352 Class<?> ct = contents.getClass().getComponentType();
353 contents = (T[]) Array.newInstance(ct, size);
356 contents[index++] = (T) entry;
358 if (index < contents.length) {
359 contents[index] = null;
361 return contents;
[all...]
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 DArrayList.java505 * @param contents
512 @Override public <T> T[] toArray(T[] contents) { argument
514 if (contents.length < s) {
516 = (T[]) Array.newInstance(contents.getClass().getComponentType(), s);
517 contents = newArray;
519 System.arraycopy(this.array, 0, contents, 0, s);
520 if (contents.length > s) {
521 contents[s] = null;
523 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;
994 * Returns a hash code based on the contents of the given array. For any two
1022 * Returns a hash code based on the contents o
[all...]
/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/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.
367 * if no changes may be made to the contents of this buffer.
384 * if no changes may be made to the contents of this buffer.
409 * if no changes may be made to the contents of this buffer.
436 * if no changes may be made to the contents of this buffer.
445 float[] contents = new float[src.remaining()];
446 src.get(contents);
447 put(contents);
463 * 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.
353 * if no changes may be made to the contents of this buffer.
370 * if no changes may be made to the contents of this buffer.
395 * if no changes may be made to the contents of this buffer.
422 * if no changes may be made to the contents of this buffer.
431 int[] contents = new int[src.remaining()];
432 src.get(contents);
433 put(contents);
449 * 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.
357 * if no changes may be made to the contents of this buffer.
374 * if no changes may be made to the contents of this buffer.
399 * if no changes may be made to the contents of this buffer.
426 * if no changes may be made to the contents of this buffer.
435 long[] contents = new long[src.remaining()];
436 src.get(contents);
437 put(contents);
453 * 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.
356 * if no changes may be made to the contents of this buffer.
373 * if no changes may be made to the contents of this buffer.
398 * if no changes may be made to the contents of this buffer.
425 * if no changes may be made to the contents of this buffer.
434 short[] contents = new short[src.remaining()];
435 src.get(contents);
436 put(contents);
452 * 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.
430 * if no changes may be made to the contents of this buffer.
447 * if no changes may be made to the contents of this buffer.
472 * if no changes may be made to the contents of this buffer.
499 * if no changes may be made to the contents of this buffer.
509 char[] contents = new char[src.remaining()];
510 src.get(contents);
511 put(contents);
527 * if no changes may be made to the contents of this buffer.
544 * 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.java649 Map<String, Object> contents = new HashMap<String, Object>();
650 contents.put("foo", Double.NaN);
651 contents.put("bar", Double.NEGATIVE_INFINITY);
652 contents.put("baz", Double.POSITIVE_INFINITY);
654 JSONObject object = new JSONObject(contents);
667 Map<String, Object> contents = new HashMap<String, Object>();
668 contents.put("foo", 5);
669 JSONObject object = new JSONObject(contents);
670 contents.put("foo", 10);
675 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/luni/src/test/java/dalvik/system/
H A DDexClassLoaderTest.java417 * the given expected contents.
424 byte[] contents = Streams.readFully(in);
425 String s = new String(contents, "UTF-8");
432 * the expected contents.
468 * contains the expected contents.

Completed in 1286 milliseconds

12