HomeSort by relevance Sort by last modified time
    Searched defs:in (Results 676 - 700 of 3847) sorted by null

<<21222324252627282930>>

  /frameworks/base/media/java/android/media/audiopolicy/
AudioPolicyConfig.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
102 private AudioPolicyConfig(Parcel in) {
104 int nbMixes = in.readInt();
108 int routeFlags = in.readInt();
111 mixBuilder.setCallbackFlags(in.readInt());
113 mixBuilder.setDevice(in.readInt(), in.readString());
115 int sampleRate = in.readInt();
116 int encoding = in.readInt()
    [all...]
  /frameworks/base/services/backup/java/com/android/server/backup/
KeyValueAdbRestoreEngine.java 30 * class resembles what is done in the standard key-value code paths in BackupManagerService, and
79 // Sort the keys, as the BackupAgent expect them to come in lexicographical order
126 private void copyKeysInLexicalOrder(BackupDataInput in, BackupDataOutput out)
129 while (in.readNextHeader()) {
130 String key = in.getKey();
131 int size = in.getDataSize();
133 in.skipEntityData();
137 in.readEntityData(value, 0, size);
  /frameworks/base/services/usage/java/com/android/server/usage/
UsageStatsXml.java 5 * use this file except in compliance with the License. You may obtain a copy
10 * Unless required by applicable law or agreed to in writing, software
44 // would be appended more than once to a checked-in file, causing a crash
60 FileInputStream in = file.openRead(); local
63 read(in, statsOut);
67 in.close();
90 static void read(InputStream in, IntervalStats statsOut) throws IOException {
93 parser.setInput(in, "utf-8");
  /frameworks/base/tools/preload/
MemoryUsage.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
38 // These values are in 1kB increments (not 4kB like you'd expect).
246 BufferedReader in = new BufferedReader( local
248 String line = in.readLine();
256 in.close();
274 private static void copy(InputStream in, OutputStream out) {
278 while ((read = in.read(buffer)) > -1) {
286 /** Measures memory usage information and stores it in the model. */
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/
WifiApConfigStore.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
143 DataInputStream in = null; local
146 in = new DataInputStream(
149 int version = in.readInt();
154 config.SSID = in.readUTF();
157 config.apBand = in.readInt();
158 config.apChannel = in.readInt();
161 int authType = in.readInt();
164 config.preSharedKey = in.readUTF()
    [all...]
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
SsidSetStoreDataTest.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
95 final XmlPullParser in = Xml.newPullParser(); local
97 in.setInput(inputStream, StandardCharsets.UTF_8.name());
98 mSsidSetStoreData.deserializeData(in, in.getDepth(), shared);
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
PasspointXmlUtilsTest.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
194 final XmlPullParser in = Xml.newPullParser(); local
197 in.setInput(inputStream, StandardCharsets.UTF_8.name());
200 PasspointXmlUtils.deserializePasspointConfiguration(in, in.getDepth());
236 final XmlPullParser in = Xml.newPullParser(); local
239 in.setInput(inputStream, StandardCharsets.UTF_8.name());
240 PasspointXmlUtils.deserializePasspointConfiguration(in, in.getDepth())
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
ProcessBuilderTest.java 5 * (the "License"); you may not use this file except in compliance with
10 * Unless required by applicable law or agreed to in writing, software
152 InputStream in = process.getInputStream(); local
165 if (in.available() > 0) {
166 assertTrue(in.read(buf) > 0);
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
JarEntryTest.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
131 try (InputStream in = jarFile.getInputStream(jarEntry1)) {
140 in.read(new byte[64]);
147 Streams.skipByReading(in, Long.MAX_VALUE);
149 assertEquals(-1, in.read());
163 InputStream in = jarFile.getInputStream(jarEntry); local
165 while (in.available() > 0) {
168 in.read(buffer);
170 assertEquals("the file is fully read", -1, in.read())
    [all...]
  /libcore/luni/src/test/java/libcore/java/io/
InterruptedStreamTest.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
51 // not leave us in a bad state.
67 PipedInputStream in = new PipedInputStream(out); local
68 testInterruptInputStream(in);
120 private void testInterruptInputStream(final InputStream in) throws Exception {
123 in.read();
  /libcore/luni/src/test/java/libcore/java/net/
OldUnixSocketTest.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
53 InputStream in = worker.getInputStream(); local
54 in.read();
105 // Port 0 is not allowed to be used in connect() on some platforms,
  /libcore/luni/src/test/java/libcore/java/util/zip/
GZIPInputStreamTest.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 GZIPInputStream in = new GZIPInputStream(new ByteArrayInputStream(gzipped)); local
104 count = in.skip(Long.MAX_VALUE);
109 in.close();
207 * close the input stream if trailing bytes looks "close" enough. Wrapping GZIP in
233 try (InputStream in = new GZIPInputStream(zipInputStream)) {
234 assertEquals(numBytes, in.skip(numBytes+1));
243 try (InputStream in = new GZIPInputStream(bis)) {
247 while ((count = in.read(buffer)) != -1)
    [all...]
OldZipFileTest.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
54 InputStream in; local
58 in = zfile.getInputStream(zentry);
64 if (in != null) {
65 data = in.read();
66 in.close();
71 // the file hyts_zipFile.zip in setup must be included as a resource
  /libcore/ojluni/src/main/java/java/io/
BufferedReader.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 * <p> In general, each read request made of a Reader causes a corresponding
51 * BufferedReader in
52 * = new BufferedReader(new FileReader("foo.in"));
73 private Reader in; field in class:BufferedReader
96 * @param in A Reader
101 public BufferedReader(Reader in, int sz) {
102 super(in);
    [all...]
  /libcore/ojluni/src/main/java/java/util/
ServiceLoader.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
46 * of a service. The classes in a provider typically implement the interfaces
47 * and subclass the classes defined in the service itself. Service providers
48 * can be installed in an implementation of the Java platform in the form of
68 * <i>provider-configuration file</i> in the resource directory
77 * The file must be encoded in UTF-8.
79 * <p> If a particular concrete provider class is named in more than on
301 InputStream in = null; local
    [all...]
  /libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
JarURLConnection.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
143 " not found in " +
161 " not found in " +
211 InputStream in = jarFile.getInputStream(jarEntry); local
213 new BufferedInputStream(in));
214 in.close();
315 * "reload" button in a browser). If the UseCaches flag on a connection
  /libcore/ojluni/src/main/java/sun/nio/cs/
StreamDecoder.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
50 // In order to handle surrogates properly we must never try to produce
61 public static StreamDecoder forInputStreamReader(InputStream in,
71 return new StreamDecoder(in, lock, Charset.forName(csn));
76 public static StreamDecoder forInputStreamReader(InputStream in,
80 return new StreamDecoder(in, lock, cs);
83 public static StreamDecoder forInputStreamReader(InputStream in,
87 return new StreamDecoder(in, lock, dec)
229 private InputStream in; field in class:StreamDecoder
    [all...]
  /libcore/ojluni/src/main/java/sun/security/provider/certpath/
OCSP.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
61 * incur the overhead of validating all of the certificates in the
76 * Integer value indicating the timeout length, in seconds, to be
94 // specified in seconds
124 ("No OCSP Responder URI in certificate");
215 InputStream in = null; local
242 in = con.getInputStream();
250 int count = in.read(response, total, response.length - total)
    [all...]
  /libcore/support/src/test/java/tests/support/resource/
Support_Resources.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
38 // If we have the resources packaged up in our jar file, get them that way.
44 // Otherwise, if we're in an Android build tree, get the files directly.
112 InputStream in = Support_Resources.getStream(resourceName); local
114 copyLocalFileto(dest, in);
127 public static void copyLocalFileto(File dest, InputStream in) throws IOException {
130 copy(in, out);
134 in.close();
137 private static int copy(InputStream in, OutputStream out) throws IOException
150 InputStream in = new URL(url).openStream(); local
    [all...]
  /packages/apps/Bluetooth/src/com/android/bluetooth/opp/
BluetoothOppReceiver.java 6 * Redistribution and use in source and binary forms, with or without
12 * - Redistributions in binary form must reproduce the above copyright notice,
13 * this list of conditions and the following disclaimer in the documentation
23 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
53 * Intents from OppService; Intents from modules in Opp application layer.
93 Intent in = new Intent(context, BluetoothOppIncomingFileConfirmActivity.class); local
94 in.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
95 in.setDataAndNormalize(uri)
138 Intent in = new Intent(context, BluetoothOppTransferActivity.class); local
147 Intent in = new Intent(context, BluetoothOppTransferHistory.class); local
154 Intent in = new Intent(context, BluetoothOppTransferHistory.class); local
161 Intent in = new Intent(context, BluetoothOppTransferHistory.class); local
    [all...]
  /packages/apps/Dialer/java/com/android/voicemail/impl/mail/internet/
MimeUtility.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
112 * character following the sequence resulting in a line longer than 76 characters.
168 * or if there are no additional parameters in the field the entire field is returned. Otherwise
169 * the named parameter is searched for in a case insensitive fashion and returned. If the
176 * as in: filename="ab%22d". ('+' -> ' ' conversion too? check RFC)
213 * @return a String containing the converted text in the body, or null if there was no text or an
219 InputStream in = part.getBody().getInputStream(); local
227 IOUtils.copy(in, out);
228 in.close()
    [all...]
  /packages/apps/Music/tests/src/com/android/music/functional/
TestSongs.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
87 InputStream in = new FileInputStream(src); local
90 // Transfer bytes from in to out
93 while ((len = in.read(buf)) > 0) {
96 in.close();
116 * Verification: The new playlist title should be sorted in alphabetical order
156 //This only check if there only 1 ringtone set in music player
  /packages/apps/Settings/tests/app/src/com/android/settings/vpn2/
CertInstallerHelper.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
78 InputStream in = null; local
83 in = new FileInputStream(new File(
85 raw = Streams.readFully(in);
94 Assert.fail("key store failed to put in keychain");
98 // be only one alias in the keystore
119 if (in != null) {
121 in.close();
  /packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/
MimeUtility.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
119 * character following the sequence resulting in a line longer than 76
176 * parameter is returned, or if there are no additional parameters in the
178 * searched for in a case insensitive fashion and returned. If the parameter
185 * TODO: Need to decode %-escaped strings, as in: filename="ab%22d".
222 * @return a String containing the converted text in the body, or null if there was no text
228 InputStream in = part.getBody().getInputStream(); local
236 IOUtils.copy(in, out);
237 in.close()
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/
NotificationActionIntentService.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
95 * Grab the alarm from the intent. Since the remote AlarmManagerService fills in the Intent
103 final Parcel in = Parcel.obtain(); local
104 in.unmarshall(data, 0, data.length);
105 in.setDataPosition(0);
106 notificationAction = NotificationAction.CREATOR.createFromParcel(in,
123 // logic after the Undo notification expires in a regular flow.

Completed in 4309 milliseconds

<<21222324252627282930>>