/libcore/xml/src/main/java/org/xmlpull/v1/ |
H A D | XmlPullParser.java | 12 * in <a href="http://www.xmlpull.org/">XMLPULL V1 API</a> (visit this website to 17 * <li><b>non-validating</b> parser as defined in XML 1.0 spec when 19 * <li><b>validating parser</b> as defined in XML 1.0 spec when 24 * <em>no DOCDECL is present</em> in XML documents 26 * This mode of operation is intended <b>for operation in constrained environments</b> such as J2ME. 37 * Initially, the parser is in the <a href="#START_DOCUMENT">START_DOCUMENT</a> 49 * (when in validating mode next() will not report ignorable whitespace, use nextToken() instead) 57 * in following ways:<ul> 67 * null if stream had unknown encoding (not set in setInputStream) 68 * and it was not declared in XMLDec 468 setInput(Reader in) argument [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
H A D | SerializationBenchmark.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 99 ObjectInputStream in = new ObjectInputStream(bais); 100 in.readObject(); 101 in.close();
|
/libcore/luni/src/main/java/javax/xml/validation/ |
H A D | SchemaFactoryFinder.java | 6 * (the "License"); you may not use this file except in compliance with 11 * Unless required by applicable law or agreed to in writing, software 140 * See {@link SchemaFactory Schema Language} table in <code>SchemaFactory</code> 205 if (debug) debugPrintln("found " + factoryClassName + " in $java.home/jaxp.properties"); 315 /** Searches for a SchemaFactory for a given schema language in a META-INF/services file. */ 316 private SchemaFactory loadFromServicesFile(String schemaLanguage, String resourceName, InputStream in) { argument 320 // Read the service provider name in UTF-8 as specified in 321 // the jar spec. Unfortunately this fails in Microsoft 323 // encoding. Theoretically, we should simply let it fail in [all...] |
/libcore/luni/src/main/java/javax/xml/xpath/ |
H A D | XPathFactoryFinder.java | 6 * (the "License"); you may not use this file except in compliance with 11 * Unless required by applicable law or agreed to in writing, software 185 if (debug) debugPrintln("found " + factoryClassName + " in $java.home/jaxp.properties"); 265 /** Searches for a XPathFactory for a given uri in a META-INF/services file. */ 266 private XPathFactory loadFromServicesFile(String uri, String resourceName, InputStream in) { argument 272 rd = new BufferedReader(new InputStreamReader(in, "UTF-8"), DEFAULT_LINE_LENGTH); 274 rd = new BufferedReader(new InputStreamReader(in), DEFAULT_LINE_LENGTH); 288 // Ignore comments in the provider-configuration file
|
/libcore/luni/src/test/java/libcore/java/text/ |
H A D | DateFormatSymbolsTest.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 64 ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bytes)); 65 DateFormatSymbols deserializedDfs = (DateFormatSymbols) in.readObject(); 66 assertEquals(-1, in.read());
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
H A D | ZipEntryTest.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 73 ZipInputStream in = new ZipInputStream(new FileInputStream(f)); 76 while ((entry = in.getNextEntry()) != null) { 81 in.close(); 150 // that forces zip64. This also needs followup changes in ZipInputStream et al. to assume zip64 222 // Read it back and make sure comments and extra are in the right order
|
/libcore/ojluni/src/main/java/java/time/ |
H A D | MonthDay.java | 9 * by Oracle in the LICENSE file that accompanied this code. 11 * This code is distributed in the hope that it will be useful, but WITHOUT 14 * version 2 for more details (a copy is included in the LICENSE file that 36 * Redistribution and use in source and binary forms, with or without 42 * * Redistributions in binary form must reproduce the above copyright notice, 43 * this list of conditions and the following disclaimer in the documentation 91 * A month-day in the ISO-8601 calendar system, such as {@code --12-03}. 98 * For example, the value "December 3rd" can be stored in a {@code MonthDay}. 110 * in most of the world. It is equivalent to the proleptic Gregorian calendar 111 * system, in whic 780 readExternal(DataInput in) argument [all...] |
H A D | ZoneOffset.java | 9 * by Oracle in the LICENSE file that accompanied this code. 11 * This code is distributed in the hope that it will be useful, but WITHOUT 14 * version 2 for more details (a copy is included in the LICENSE file that 36 * Redistribution and use in source and binary forms, with or without 42 * * Redistributions in binary form must reproduce the above copyright notice, 43 * this list of conditions and the following disclaimer in the documentation 97 * The rules for how offsets vary by place and time of year are captured in the 100 * For example, Paris is one hour ahead of Greenwich/UTC in winter and two hours 101 * ahead in summer. The {@code ZoneId} instance for Paris will reference two 128 /** Cache of time-zone offset by offset in second 788 readExternal(DataInput in) argument [all...] |
H A D | Period.java | 9 * by Oracle in the LICENSE file that accompanied this code. 11 * This code is distributed in the hope that it will be useful, but WITHOUT 14 * version 2 for more details (a copy is included in the LICENSE file that 36 * Redistribution and use in source and binary forms, with or without 42 * * Redistributions in binary form must reproduce the above copyright notice, 43 * this list of conditions and the following disclaimer in the documentation 95 * A date-based amount of time in the ISO-8601 calendar system, 98 * This class models a quantity or amount of time in terms of years, months and days. 101 * Durations and periods differ in their treatment of daylight savings time 109 * the conceptual day and result in 1068 readExternal(DataInput in) argument [all...] |
/libcore/ojluni/src/main/java/java/time/chrono/ |
H A D | HijrahDate.java | 9 * by Oracle in the LICENSE file that accompanied this code. 11 * This code is distributed in the hope that it will be useful, but WITHOUT 14 * version 2 for more details (a copy is included in the LICENSE file that 31 * Redistribution and use in source and binary forms, with or without 37 * * Redistributions in binary form must reproduce the above copyright notice, 38 * this list of conditions and the following disclaimer in the documentation 90 * A date in the Hijrah calendar system. 95 * The Hijrah calendar has a different total of days in a year than 143 * @param prolepticYear the proleptic year to represent in the Hijrah calendar 166 * in th 684 readExternal(ObjectInput in) argument [all...] |
H A D | JapaneseDate.java | 9 * by Oracle in the LICENSE file that accompanied this code. 11 * This code is distributed in the hope that it will be useful, but WITHOUT 14 * version 2 for more details (a copy is included in the LICENSE file that 31 * Redistribution and use in source and binary forms, with or without 37 * * Redistributions in binary form must reproduce the above copyright notice, 38 * this list of conditions and the following disclaimer in the documentation 96 * A date in the Japanese Imperial calendar system. 99 * This calendar system is primarily used in Japan. 149 * Obtains the current {@code JapaneseDate} from the system clock in the default time-zone. 151 * This will query the {@link Clock#systemDefaultZone() system clock} in th 747 readExternal(DataInput in) argument [all...] |
/libcore/ |
H A D | NativeCode.mk | 5 # you may not use this file except in compliance with the License. 10 # Unless required by applicable law or agreed to in writing, software 24 # These two definitions are used to help sanity check what's put in 123 # Ignore "note: the mangling of 'va_list' has changed in GCC 4.4" 146 # Ignore "note: the mangling of 'va_list' has changed in GCC 4.4"
|
H A D | JavaLibrary.mk | 5 # you may not use this file except in compliance with the License. 10 # Unless required by applicable law or agreed to in writing, software 76 # in terms of android_icu4j. 209 # Build a library just containing files from luni/src/test/filesystems for use in tests. 229 # be loaded by tests using ClassLoaders but are not in the main classes.dex. 290 # jack bug workaround: int[] java.util.stream.StatefulTestOp.-getjava-util-stream-StreamShapeSwitchesValues() is a private synthetic method in an interface which causes a hard verifier error 314 # jack bug workaround: int[] java.util.stream.StatefulTestOp.-getjava-util-stream-StreamShapeSwitchesValues() is a private synthetic method in an interface which causes a hard verifier error 478 # The libcore_to_document paths are relative to $(TOPDIR). We are in libcore so we must prepend
|
/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | StringTest.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 44 protected CoderResult decodeLoop(ByteBuffer in, CharBuffer out) { argument 46 int inLength = in.remaining(); 48 in.put((byte) 'X'); 66 protected CoderResult encodeLoop(CharBuffer in, ByteBuffer out) { argument 67 int inLength = in.remaining(); 69 in.put('x'); 262 fail("Expected " + a + " to equal " + b + " in " + locale); 286 fail("Expected " + a + " to equal " + b + " in " [all...] |
/libcore/ojluni/src/main/java/sun/security/pkcs/ |
H A D | PKCS7.java | 10 * by Oracle in the LICENSE file that accompanied this code. 12 * This code is distributed in the hope that it will be useful, but WITHOUT 15 * version 2 for more details (a copy is included in the LICENSE file that 56 * PKCS7 as defined in RSA Laboratories PKCS7 Technical Note. Profile 80 // BEGIN Android-removed: unused in Android 115 * @param in an input stream holding at least one PKCS7 block. 119 public PKCS7(InputStream in) throws ParsingException, IOException { argument 120 DataInputStream dis = new DataInputStream(in); 405 DerInputStream in = signerInfoVals[i].toDerInputStream(); 406 signerInfos[i] = new SignerInfo(in); [all...] |
/libcore/dalvik/src/test/java/dalvik/system/profiler/ |
H A D | SamplingProfilerTest.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 121 // should have nothing in the thread history to start 192 // visible in the current sample, but it will be visible in a 287 InputStream in = new ByteArrayInputStream(bytes); 288 BinaryHprofReader reader = new BinaryHprofReader(in); 291 in.close();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
H A D | FileInputStreamTest.java | 6 * (the "License"); you may not use this file except in compliance with 11 * Unless required by applicable law or agreed to in writing, software 251 FileInputStream in = new FileInputStream(tmpFile); 253 in.read(null, 0, 0); 258 in.close();
|
H A D | SerializationStressTest1.java | 6 * (the "License"); you may not use this file except in compliance with 11 * Unless required by applicable law or agreed to in writing, software 118 private void readObject(java.io.ObjectInputStream in) argument 121 in.readObject(); 143 public void readObject(java.io.ObjectInputStream in) argument 146 in.readObject(); 156 // This one tests if field names are serialized in the same way (sorting) 178 private void readObject(java.io.ObjectInputStream in) argument 181 in.defaultReadObject(); 278 // A primitive instance variable exposes a bug in th 290 readObject(java.io.ObjectInputStream in) argument 316 readObject(java.io.ObjectInputStream in) argument 354 readObject(java.io.ObjectInputStream in) argument [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
H A D | StringBuffer2Test.java | 6 * (the "License"); you may not use this file except in compliance with 11 * Unless required by applicable law or agreed to in writing, software 489 private String writeString(String in) { argument 492 for (int i = 0; i < in.length(); i++) { 493 result.append(" 0x" + Integer.toHexString(in.charAt(i))); 569 assertTrue("Increase in length trashed buffer", testBuffer.toString() 573 assertEquals("Decrease in length failed",
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
H A D | JarURLConnectionTest.java | 6 * (the "License"); you may not use this file except in compliance with 11 * Unless required by applicable law or agreed to in writing, software 165 InputStream in = connection.getInputStream(); 169 while (in.read(data) >= 0) 171 in.close();
|
/libcore/ojluni/src/main/java/java/io/ |
H A D | FileInputStream.java | 10 * by Oracle in the LICENSE file that accompanied this code. 12 * This code is distributed in the hope that it will be useful, but WITHOUT 15 * version 2 for more details (a copy is included in the LICENSE file that 40 * from a file in a file system. What files 79 * in the file system. A new <code>FileDescriptor</code> 110 * object <code>file</code> in the file system. 157 * actual file in the file system. 238 * @param off the start offset in the destination array <code>b</code> 270 * <p>This method may skip more bytes than what are remaining in the 274 * the end will result in [all...] |
/libcore/ojluni/src/main/java/java/lang/ |
H A D | Enum.java | 10 * by Oracle in the LICENSE file that accompanied this code. 12 * This code is distributed in the hope that it will be useful, but WITHOUT 15 * version 2 for more details (a copy is included in the LICENSE file that 44 * found in section 8.9 of 48 * or as the type of the keys in a map, specialized and efficient 63 * The name of this enum constant, as declared in the enum declaration. 70 * Returns the name of this enum constant, exactly as declared in its 73 * <b>Most programmers should use the {@link #toString} method in 76 * use in specialized situations where correctness depends on getting the 87 * in th 300 readObject(ObjectInputStream in) argument [all...] |
/libcore/ojluni/src/main/native/ |
H A D | ServerSocketChannelImpl.c | 9 * by Oracle in the LICENSE file that accompanied this code. 11 * This code is distributed in the hope that it will be useful, but WITHOUT 14 * version 2 for more details (a copy is included in the LICENSE file that 32 #include <netinet/in.h> 36 typedef size_t socklen_t; /* New in SunOS 5.7, so need this for 5.6 */
|
H A D | net_util_md.h | 9 * by Oracle in the LICENSE file that accompanied this code. 11 * This code is distributed in the hope that it will be useful, but WITHOUT 14 * version 2 for more details (a copy is included in the LICENSE file that 32 #include <netinet/in.h>
|
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | URLConnectionTest.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 138 // Android became more strict after M about which characters were allowed in request header 162 // '\t' in header values can either be (a) forbidden or (b) allowed. 169 // throws IAE in case (a), passes in case (b) 445 // Setting the server workerThreads to 1 ensures the responses are generated in the order 788 // The inclusion of a body in the response to the CONNECT is key to reproducing b/6754912. 1070 InputStream in = connection.getInputStream(); 1071 assertEquals('A', (char) in 1179 readAscii(InputStream in, int count) argument [all...] |