Home
last modified time | relevance | path

Searched refs:contents (Results 1 – 25 of 38) sorted by relevance

12

/libcore/ojluni/src/main/java/sun/misc/
DMetaIndex.java134 private String[] contents; field in MetaIndex
169 List<String> contents = new ArrayList<String>(); in registerDirectory() local
189 if ((curJarName != null) && (contents.size() > 0)) { in registerDirectory()
191 new MetaIndex(contents, in registerDirectory()
194 contents.clear(); in registerDirectory()
209 contents.add(line); in registerDirectory()
214 if ((curJarName != null) && (contents.size() > 0)) { in registerDirectory()
216 new MetaIndex(contents, isCurJarContainClassOnly)); in registerDirectory()
240 String[] conts = contents; in mayContain()
259 contents = entries.toArray(new String[0]); in MetaIndex()
/libcore/ojluni/src/main/java/java/util/
DListResourceBundle.java195 Object[][] contents = getContents(); in loadLookup()
196 HashMap<String,Object> temp = new HashMap<>(contents.length); in loadLookup()
197 for (int i = 0; i < contents.length; ++i) { in loadLookup()
199 String key = (String) contents[i][0]; in loadLookup()
200 Object value = contents[i][1]; in loadLookup()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DWriterTest.java100 private char[] contents; field in WriterTest.MockWriter
107 contents = new char[capacity]; in MockWriter()
114 contents = null; in close()
123 if (null == contents) { in write()
132 contents[this.offset + i] = buffer[offset + i]; in write()
141 result[i] = contents[i]; in getContents()
DReaderTest.java162 private char[] contents; field in ReaderTest.MockReader
173 contents = data; in MockReader()
174 length = contents.length; in MockReader()
180 contents = null; in close()
186 if (null == contents) { in read()
198 buf[offset + i] = contents[current_offset + i]; in read()
/libcore/ojluni/src/main/java/sun/util/resources/
DOpenListResourceBundle.java137 Object[][] contents = getContents(); in loadLookup() local
138 Map<String, Object> temp = createMap(contents.length); in loadLookup()
139 for (int i = 0; i < contents.length; ++i) { in loadLookup()
141 String key = (String) contents[i][0]; in loadLookup()
142 Object value = contents[i][1]; in loadLookup()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DPropertyResourceBundleTest.java187 Vector<String> contents = new Vector<String>(); in test_access$0_Enumeration() local
189 contents.add(keys.nextElement()); in test_access$0_Enumeration()
192 assertEquals("did not get the right number of properties", 4, contents in test_access$0_Enumeration()
194 assertTrue("did not get the parent property p1", contents in test_access$0_Enumeration()
196 assertTrue("did not get the parent property p2", contents in test_access$0_Enumeration()
198 assertTrue("did not get the local property p3", contents.contains("p3")); in test_access$0_Enumeration()
199 assertTrue("did not get the local property p4", contents.contains("p4")); in test_access$0_Enumeration()
/libcore/luni/src/test/etc/loading-test-jar/
DTestMethods.java129 byte[] contents = readFully(in); in test_getResourceAsStream()
130 String s = new String(contents, "UTF-8"); in test_getResourceAsStream()
185 byte[] contents = readFully(in); in test_diff_getResourceAsStream()
186 String s = new String(contents, "UTF-8"); in test_diff_getResourceAsStream()
/libcore/support/src/test/java/tests/support/
DSupport_TestResource_fr_FR.java24 Object[][] contents = { { "parent3", "frFRValue3" }, in getContents() local
27 return contents; in getContents()
DSupport_TestResource_en_US.java24 Object[][] contents = { { "parent3", "enUSValue3" }, in getContents() local
27 return contents; in getContents()
DSupport_TestResource_fr_FR_VAR.java24 Object[][] contents = { { "parent4", "frFRVARValue4" }, in getContents() local
28 return contents; in getContents()
DSupport_TestResource_fr.java24 Object[][] contents = { { "parent2", "frValue2" }, in getContents() local
27 return contents; in getContents()
DSupport_TestResource_en.java24 Object[][] contents = { { "parent2", "enValue2" }, in getContents() local
27 return contents; in getContents()
DSupport_TestResource.java25 Object[][] contents = { { "parent1", "parentValue1" }, in getContents() local
28 return contents; in getContents()
/libcore/ojluni/src/main/java/sun/security/util/
DResources.java35 private static final Object[][] contents = { field in Resources
169 return contents; in getContents()
/libcore/ojluni/src/main/java/sun/security/pkcs/
DContentInfo.java129 DerValue[] contents; in ContentInfo() local
150 contents = disTaggedContent.getSet(1, true); in ContentInfo()
151 content = contents[0]; in ContentInfo()
/libcore/luni/src/test/java/libcore/java/util/zip/
DOldAndroidGZIPStreamTest.java97 ByteArrayOutputStream contents = new ByteArrayOutputStream(); in scanGZIP() local
102 contents.write(buf, 0, len); in scanGZIP()
DOldAndroidZipStreamTest.java145 ByteArrayOutputStream contents = new ByteArrayOutputStream(); in scanZip() local
150 contents.write(buf, 0, len); in scanZip()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DAsynchronousFileChannelTest.java154 private static File createTemporaryFile(byte[] contents) throws IOException { in createTemporaryFile() argument
158 fos.write(contents); in createTemporaryFile()
191 byte[] contents = new byte[] { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h' }; in testRead_Future()
192 File temp = createTemporaryFile(contents); in testRead_Future()
280 byte[] contents = new byte[] { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h' }; in testRead_CompletionListener()
281 File temp = createTemporaryFile(contents); in testRead_CompletionListener()
361 byte[] contents = new byte[] { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h' }; in testWrite_Future()
362 File temp = createTemporaryFile(contents); in testWrite_Future()
451 byte[] contents = new byte[] { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h' }; in testWrite_CompletionListener()
452 File temp = createTemporaryFile(contents); in testWrite_CompletionListener()
/libcore/metrictests/memory/apps/src/libcore/heapdumper/
DAbstractMetricInstrumentation.java134 String contents = e.getMessage(); in recordException() local
138 errorStream.write(contents.getBytes("UTF-8")); in recordException()
/libcore/luni/src/test/java/libcore/xml/
DDeclarationTest.java60 private String stringToSystemId(String contents) throws IOException { in stringToSystemId() argument
64 out.write(contents.getBytes("UTF-8")); in stringToSystemId()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DDeflaterInputStreamTest.java151 byte[] contents = Streams.readFully(dis); in testRead_golden()
152 assertTrue(Arrays.equals(TEST_STRING_DEFLATED_BYTES, contents)); in testRead_golden()
172 byte[] contents = Streams.readFully(dis); in testRead_leavesBufUnmodified()
173 assertTrue(Arrays.equals(TEST_STRING_DEFLATED_BYTES, contents)); in testRead_leavesBufUnmodified()
/libcore/json/src/test/java/libcore/org/json/
DJSONObjectTest.java658 Map<String, Object> contents = new HashMap<String, Object>(); in testCreateWithUnsupportedNumbers() local
659 contents.put("foo", Double.NaN); in testCreateWithUnsupportedNumbers()
660 contents.put("bar", Double.NEGATIVE_INFINITY); in testCreateWithUnsupportedNumbers()
661 contents.put("baz", Double.POSITIVE_INFINITY); in testCreateWithUnsupportedNumbers()
663 JSONObject object = new JSONObject(contents); in testCreateWithUnsupportedNumbers()
676 Map<String, Object> contents = new HashMap<String, Object>(); in testMapConstructorCopiesContents() local
677 contents.put("foo", 5); in testMapConstructorCopiesContents()
678 JSONObject object = new JSONObject(contents); in testMapConstructorCopiesContents()
679 contents.put("foo", 10); in testMapConstructorCopiesContents()
684 Map<Object, Object> contents = new HashMap<Object, Object>(); in testMapConstructorWithBogusEntries() local
[all …]
/libcore/luni/src/test/java/libcore/dalvik/system/
DBaseDexClassLoaderTest.java289 List<String> contents = new ArrayList<>(); in readResources() local
295 contents.add(new String(bytes, StandardCharsets.UTF_8)); in readResources()
299 return contents; in readResources()
308 byte[] contents = Streams.readFully(in); in readResource()
309 return new String(contents, StandardCharsets.UTF_8); in readResource()
/libcore/luni/src/test/java/libcore/java/util/jar/
DOldJarFileTest.java133 String contents = stringBuffer.toString(); in test_getInputStreamLjava_util_jar_JarEntry() local
134 assertTrue("Incorrect stream read", contents.indexOf("bar") > 0); in test_getInputStreamLjava_util_jar_JarEntry()
/libcore/ojluni/annotations/hiddenapi/sun/misc/
DMetaIndex.java54 private java.lang.String[] contents; field in MetaIndex

12