Searched refs:in (Results 251 - 275 of 331) sorted by relevance

<<11121314

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DObjectInputStream2Test.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
171 public TestObjectInputStream(InputStream in) throws IOException { argument
172 super(in);
222 // fields in java (but it's allowed in dex).
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
H A DCharsetTest.java5 * (the "License"); you may not use this file except in compliance with
10 * Unless required by applicable law or agreed to in writing, software
174 // This test uses REPLACE mode, so we get the U+FFFD replacement character in the result.
176 // Accepts a big-endian BOM and includes U+FEFF in the decoded output.
186 // Accepts a little-endian BOM and includes U+FEFF in the decoded output.
189 // This test uses REPLACE mode, so we get the U+FFFD replacement character in the result.
223 // This test uses REPLACE mode, so we get the U+FFFD replacement character in the result.
238 // This test uses REPLACE mode, so we get the U+FFFD replacement character in the result.
249 // This test uses REPLACE mode, so we get the U+FFFD replacement character in the result.
264 // This test uses REPLACE mode, so we get the U+FFFD replacement character in th
796 encodeLoop(CharBuffer in, ByteBuffer out) argument
810 decodeLoop(ByteBuffer in, CharBuffer out) argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
H A DZipInputStreamTest.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
40 // the file hyts_zipFile.zip used in setup needs to included as a resource
47 private byte[] dataBytes = "Some data in my file".getBytes();
167 InputStream in = new FilterInputStream(Support_Resources.getStream("hyts_ZipFile.zip")) {
179 try (ZipInputStream zis = new ZipInputStream(in)) {
226 assertNotNull("No entry in the archive.", entry);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/
H A DSAXParserTest.java5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
430 InputStream in = null;
432 in = new BrokenInputStream(new FileInputStream(list_wf[0]), 10);
433 is = new InputSource(in);
438 in.close();
480 InputStream in = null;
482 in = new BrokenInputStream(new FileInputStream(list_wf[0]), 10);
483 parser.parse(in, (HandlerBase) null, SAXParserTestSupport.XML_SYSTEM_ID);
487 in
[all...]
/libcore/luni/src/test/java/libcore/java/nio/charset/
H A DCharsetDecoderTest.java5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
35 ByteBuffer in = ByteBuffer.wrap(new byte[] { 109, 97, 109 });
36 assertEquals("\u6d61x", d.decode(in).toString());
/libcore/ojluni/src/main/java/java/lang/
H A DRuntime.java10 * 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
48 * the environment in which the application is running. The current
107 * if any, are started in some unspecified order and allowed to run
180 * <p> The Java virtual machine <i>shuts down</i> in response to two kinds
189 * <li> The virtual machine is <i>terminated</i> in response to a
197 * start all registered shutdown hooks in some unspecified order and let
214 * <p> Shutdown hooks run at a delicate time in the life cycle of a virtual
215 * machine and should therefore be coded defensively. They should, in
1129 getLocalizedInputStream(InputStream in) argument
[all...]
/libcore/ojluni/src/main/java/java/net/
H A DInetSocketAddress.java10 * 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
38 * It can also be a pair (hostname + port number), in which case an attempt
158 // These will be filled in the native implementation of recvfrom.
168 * ephemeral port in a {@code bind} operation.
184 * ephemeral port in a {@code bind} operation.
211 * to resolve it. This could result in a SecurityException.
215 * ephemeral port in a {@code bind} operation.
252 * ephemeral port in
289 readObject(ObjectInputStream in) argument
[all...]
/libcore/ojluni/src/main/java/java/text/
H A DChoiceFormat.java9 * 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
48 * It is generally used in a <code>MessageFormat</code> for handling plurals.
58 * in ascending order, the results of formatting will be incorrect. ChoiceFormat
64 * classes in that you create a <code>ChoiceFormat</code> object with a
288 // Single quotes themselves must be escaped in either case.
321 * @param limits limits in ascending order
330 * Set the choices to be used in formatting.
332 * parsed with that format, and should be in ascendin
511 readObject(ObjectInputStream in) argument
[all...]
/libcore/ojluni/src/main/java/java/time/chrono/
H A DJapaneseEra.java9 * 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
86 * An era in the Japanese Imperial calendar system.
129 // There could be an extra era defined in its configuration.
387 static JapaneseEra readExternal(DataInput in) throws IOException { argument
388 byte eraValue = in
[all...]
/libcore/ojluni/src/main/java/javax/crypto/
H A DEncryptedPrivateKeyInfo.java9 * 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
38 * as defined in PKCS #8.
116 * @param algName encryption algorithm name. See Appendix A in the
198 * in the constructor when such mapping is available.
199 * See Appendix A in the
355 * cipher to decrypt the encrypted data in <code>provider</code>.
410 DerInputStream in = new DerInputStream(encodedKey);
411 DerValue[] values = in
[all...]
H A DSealedObject.java9 * 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
41 * that encapsulates the original object, in serialized
52 * <p> The original object that was sealed can be recovered in two different
78 * in the sealed object.
97 * The serialized object contents in encrypted format.
119 * encoded in the default format.
133 * <p>Any algorithm parameters that may be used in the encryption
188 * Constructs a SealedObject object from the passed-in SealedObjec
459 extObjectInputStream(InputStream in) argument
[all...]
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
H A DURLJarFile.java9 * 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
50 // * Interface to be able to call retrieve() in plugin if
77 * Changed modifier from private to public in order to be able
85 * Changed modifier from private to public in order to be able
216 try (final InputStream in = url.openConnection().getInputStream()) {
222 Files.copy(in, tmpFile, StandardCopyOption.REPLACE_EXISTING);
246 // * Set the call back interface to call retrive function in sun.plugin
/libcore/ojluni/src/main/java/sun/security/x509/
H A DCRLExtensions.java9 * 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
78 * @param in the DerInputStream to read the Extension from, i.e. the
82 public CRLExtensions(DerInputStream in) throws CRLException { argument
83 init(in);
137 * Encode the extensions in DER form to the stream.
217 * @return an enumeration of the extensions in this CRL.
225 * @return a collection view of the extensions in this CRL.
290 * in th
[all...]
H A DAlgorithmId.java10 * 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 * algorithm type, and may also be used in other cases. Equivalence is
48 * <P>The OID constants defined in this class correspond to some widely
74 * Parameters for this algorithm. These are stored in unparsed
125 // It was searching for the EC parameters in an internal provider in the deleted package
126 // sun.security.ec before setting them to null. Since EC is in the OpenSSL provider,
177 // id-sha512 are used in a
[all...]
H A DX500Name.java10 * 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
48 * and descriptive. Entities can be identified by attributes, and in
82 * functionality specified in the X.500 series of specifications. The
85 * <li>attribute values encoded in different types (e.g.,
89 * <li>attribute values in types other than PrintableString are case
93 * <li>attribute values in PrintableString are not case sensitive
96 * <li>attribute values in PrintableString are compared after
109 * unfamiliar attributes in th
306 X500Name(DerInputStream in) argument
777 parseDER(DerInputStream in) argument
[all...]
/libcore/ojluni/src/test/java/time/tck/java/time/
H A DAbstractTCKTest.java9 * 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
171 * @param serClass the class to embed in the handcoded stream
195 ObjectInputStream in = new ObjectInputStream(bis)) {
196 Object o = in.readObject();
206 * Utility method to dump a byte array in
[all...]
/libcore/tzdata/update_test_app/src/libcore/tzdata/update_test_app/installupdatetestapp/
H A DMainActivity.java5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
176 FileInputStream in = new FileInputStream(from);
179 while ((count = in.read(buffer)) != -1) {
/libcore/luni/src/test/java/libcore/java/lang/
H A DProcessBuilderTest.java5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
51 * Returns the path to a command that is in /system/bin/ on Android but
106 .command(commandPath("/bin/sleep"), "5") // in seconds
113 Os.fstat(FileDescriptor.in).st_ino,
134 File file = File.createTempFile(TAG, "in");
167 // We assume that the path of the missing file occurs in the ls stderr.
208 // We assume that the path of the missing file occurs in the ls stderr.
247 InputStream in = process.getInputStream();
253 in
510 assertRedirects(Redirect in, Redirect out, Redirect err, ProcessBuilder pb) argument
[all...]
/libcore/ojluni/src/main/java/java/security/
H A DKeyStore.java9 * 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
51 * which is optionally stored in a protected format to prevent
62 * which is optionally stored in a protected format to prevent
68 * because the keystore owner trusts that the public key in the certificate
75 * <p> Each entry in a keystore is identified by an "alias" string. In the
77 * distinguish among the different ways in which the entity may authenticate
82 * to avoid problems, it is recommended not to use aliases in a KeyStore that
83 * only differ in cas
[all...]
/libcore/ojluni/src/main/java/java/time/
H A DLocalTime.java9 * 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 * A time without a time-zone in the ISO-8601 calendar system,
103 * For example, the value "13:45.30.123456789" can be stored in a {@code LocalTime}.
111 * in most of the world. This API assumes that all calendar systems use the same
137 * The time of noon in th
1664 readExternal(DataInput in) argument
[all...]
H A DInstant.java9 * 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
102 * This might be used to record event time-stamps in the application.
124 * As a result, the length of a solar day in 2012 is slightly longer than 86400 SI seconds.
134 * necessary in order to keep the day aligned with the Sun.
136 * The modern UTC time-scale was introduced in 197
1359 readExternal(DataInput in) argument
[all...]
/libcore/ojluni/src/main/java/java/nio/file/
H A DFiles.java9 * 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
163 * <p> This method opens or creates a file in exactly the manner specified
166 * option may not be present in the array of options. If no options are
242 * data are done in a single atomic operation is system-dependent and
243 * therefore unspecified. This option may not be used in conjunction
368 * <p> This method opens or creates a file in exactly the manner specified
425 * all entries in the directory. The elements returned by the directory
427 * Path}, each one representing an entry in th
2980 copy(InputStream in, Path target, CopyOption... options) argument
[all...]
/libcore/ojluni/src/main/java/java/util/logging/
H A DLogManager.java10 * 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
47 * named Loggers are stored in this namespace.
72 * is responsible for reading in the initial configuration. (That object
75 * to define properties in the LogManager.
79 * to specify a properties file (in java.util.Properties format). The
84 * properties file "{@code lib/logging.properties}" in the Java installation
107 * value. By default every logger calls its parent in addition to
108 * handling the logging message itself, this often result in message
[all...]
/libcore/ojluni/src/main/native/
H A DNet.c9 * 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
30 #include <netinet/in.h>
374 * it shouldn't fail. As such, we just fill in generic Linux-compatible values.
409 * it shouldn't fail. As such, we just fill in generic Linux-compatible values.
704 struct in_addr in; local
708 in.s_addr = htonl(interf);
711 (void*)&(in.s_addr), arglen);
720 struct in_addr in; local
[all...]
/libcore/luni/src/test/java/libcore/java/net/
H A DOldJarURLConnectionTest.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
234 InputStream in = connection.getInputStream();
237 in.read();
238 in.close();

Completed in 1521 milliseconds

<<11121314