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

12

/libcore/ojluni/src/main/java/sun/security/util/
H A DResources.java35 private static final Object[][] contents = { field in class:Resources
455 "the policy contents to the persistent store).\n\n" +
661 * Returns the contents of this <code>ResourceBundle</code>.
665 * @return the contents of this <code>ResourceBundle</code>.
668 return contents;
/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/ojluni/src/main/java/sun/misc/
H A DMetaIndex.java90 * as a precise index of the contents of the jar.
97 * chosen as the principal contents.
134 // List of contents of this meta-index
135 private String[] contents; field in class:MetaIndex
170 List<String> contents = new ArrayList<String>();
189 // Store away current contents, if any
190 if ((curJarName != null) && (contents.size() > 0)) {
192 new MetaIndex(contents,
195 contents.clear();
210 contents
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DListResourceBundle.java189 Object[][] contents = getContents();
190 HashMap<String,Object> temp = new HashMap<>(contents.length);
191 for (int i = 0; i < contents.length; ++i) {
193 String key = (String) contents[i][0];
194 Object value = contents[i][1];
/libcore/ojluni/src/main/java/sun/util/resources/
H A DOpenListResourceBundle.java125 Object[][] contents = getContents();
126 Map temp = createMap(contents.length);
127 for (int i = 0; i < contents.length; ++i) {
129 String key = (String) contents[i][0];
130 Object value = contents[i][1];
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DWriterTest.java100 private char[] contents; field in class:WriterTest.MockWriter
107 contents = new char[capacity];
114 contents = null;
123 if (null == contents) {
132 contents[this.offset + i] = buffer[offset + i];
141 result[i] = contents[i];
H A DReaderTest.java162 private char[] contents; field in class:ReaderTest.MockReader
173 contents = data;
174 length = contents.length;
180 contents = null;
186 if (null == contents) {
198 buf[offset + i] = contents[current_offset + i];
H A DBufferedInputStreamTest.java395 byte[] contents = new byte[size];
402 return contents[pos++];
414 System.arraycopy(contents, pos, buf, off, toRead);
/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/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DPropertyResourceBundleTest.java187 Vector<String> contents = new Vector<String>();
189 contents.add(keys.nextElement());
192 assertEquals("did not get the right number of properties", 4, contents
194 assertTrue("did not get the parent property p1", contents
196 assertTrue("did not get the parent property p2", contents
198 assertTrue("did not get the local property p3", contents.contains("p3"));
199 assertTrue("did not get the local property p4", contents.contains("p4"));
/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/ojluni/src/main/java/sun/security/pkcs/
H A DContentInfo.java130 DerValue[] contents;
151 contents = disTaggedContent.getSet(1, true);
152 content = contents[0];
H A DPKCS7.java210 DerValue[] contents = dis.getSequence(2, true);
211 certificates = new X509Certificate[contents.length];
220 for (int i=0; i < contents.length; i++) {
223 byte[] original = contents[i].getOriginalEncodedForm();
225 certificates[i] = new X509CertImpl(contents[i], original);
/libcore/luni/src/test/java/libcore/java/util/jar/
H A DOldJarFileTest.java133 String contents = stringBuffer.toString();
134 assertTrue("Incorrect stream read", contents.indexOf("bar") > 0);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
H A DDeflaterInputStreamTest.java146 byte[] contents = Streams.readFully(dis);
147 assertTrue(Arrays.equals(TEST_STRING_DEFLATED_BYTES, contents));
164 byte[] contents = Streams.readFully(dis);
165 assertTrue(Arrays.equals(TEST_STRING_DEFLATED_BYTES, contents));
/libcore/json/src/test/java/org/json/
H A DJSONObjectTest.java652 Map<String, Object> contents = new HashMap<String, Object>();
653 contents.put("foo", Double.NaN);
654 contents.put("bar", Double.NEGATIVE_INFINITY);
655 contents.put("baz", Double.POSITIVE_INFINITY);
657 JSONObject object = new JSONObject(contents);
670 Map<String, Object> contents = new HashMap<String, Object>();
671 contents.put("foo", 5);
672 JSONObject object = new JSONObject(contents);
673 contents.put("foo", 10);
678 Map<Object, Object> contents
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
H A DThreadGroupTest.java326 String contents = new String(contentsStream.toByteArray());
327 boolean passed = (contents.indexOf("ThreadGroup[name=main") != -1) &&
328 (contents.indexOf("Thread[") != -1) &&
329 (contents.indexOf("ThreadGroup[name=Test group") != -1);
330 assertTrue("'list()' does not print expected contents. "
332 + contents, passed);
/libcore/luni/src/main/java/java/util/concurrent/
H A DCopyOnWriteArrayList.java49 * copy of the list's contents. It is always safe to iterate this list, but
70 * contents of an array after it has been assigned to this field.
232 public <T> T[] toArray(T[] contents) { argument
234 if (snapshot.length > contents.length) {
235 return (T[]) Arrays.copyOf(snapshot, snapshot.length, contents.getClass());
237 System.arraycopy(snapshot, 0, contents, 0, snapshot.length);
238 if (snapshot.length < contents.length) {
239 contents[snapshot.length] = null;
241 return contents;

Completed in 2458 milliseconds

12