/frameworks/base/services/core/java/com/android/server/wm/ |
ViewServer.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 63 // Lists all of the available windows in the system 222 BufferedReader in = null; local 224 in = new BufferedReader(new InputStreamReader(mClient.getInputStream()), 1024); 226 final String request = in.readLine(); 262 if (in != null) { 264 in.close();
|
/frameworks/base/wifi/java/android/net/wifi/hotspot2/ |
ConfigParser.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 214 * @param in The input stream for reading the message data 218 private static Map<String, byte[]> parseMimeMultipartMessage(LineNumberReader in) 221 MimeHeader header = parseHeaders(in); 234 String line = in.readLine(); 237 in.getLineNumber()); 248 MimePart mimePart = parseMimePart(in, header.boundary); 257 * be encoded in base64. 259 * @param in Input stream to read the data fro 451 ByteArrayInputStream in = new ByteArrayInputStream(octets); local [all...] |
/frameworks/multidex/library/test/src/android/support/multidex/ |
ZipUtilTest.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 120 InputStream in = zip.getInputStream(refEntry); local 122 int read = in.read(buffer); 125 read = in.read(buffer); 127 in.close(); 150 InputStream in = zip.getInputStream(refEntry); local 152 int read = in.read(buffer); 155 read = in.read(buffer); 157 in.close() [all...] |
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
NetworkListStoreDataTest.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 216 final XmlPullParser in = Xml.newPullParser(); local 218 in.setInput(inputStream, StandardCharsets.UTF_8.name()); 219 mNetworkListStoreData.deserializeData(in, in.getDepth(), shared); 443 * Tests that an invalid data in one of the WifiConfiguration object parsing would be skipped 444 * gracefully. The other networks in the XML should still be parsed out correctly. 452 // argument exception in WifiEnterpriseConfig.setEapMethod().
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
PasspointConfigStoreDataTest.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 223 final XmlPullParser in = Xml.newPullParser(); local 225 in.setInput(inputStream, StandardCharsets.UTF_8.name()); 226 mConfigStoreData.deserializeData(in, in.getDepth(), share);
|
/frameworks/support/core-utils/tests/java/android/support/v4/content/ |
FileProviderTest.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 359 final InputStream in = mResolver.openInputStream(actual); local 361 MoreAsserts.assertEquals(expected, readFully(in)); 363 closeQuietly(in); 408 * Returns a byte[] containing the remainder of 'in', closing it when done. 410 private static byte[] readFully(InputStream in) throws IOException { 412 return readFullyNoClose(in); 414 in.close(); 419 * Returns a byte[] containing the remainder of 'in' [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
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(); local 169 while (in.read(data) >= 0) 171 in.close();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/ |
SAXParserTest.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 430 InputStream in = null; local 432 in = new BrokenInputStream(new FileInputStream(list_wf[0]), 10); 433 is = new InputSource(in); 438 in.close(); 480 InputStream in = null; local 482 in = new BrokenInputStream(new FileInputStream(list_wf[0]), 10); 483 parser.parse(in, (HandlerBase) null, SAXParserTestSupport.XML_SYSTEM_ID); 487 in.close() [all...] |
/libcore/luni/src/test/java/dalvik/system/ |
InMemoryDexClassLoaderTest.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 72 * Copy a resource in the package directory to the indicated 78 InputStream in = loader.getResourceAsStream(PACKAGE_PATH + resourceName); local 79 if (in == null) { 83 Streams.copy(in, out); 85 in.close(); 279 // NB See comment in test_twoDexDirect_diff_constructor. 285 // NB See comment in test_twoDexDirect_diff_constructor. 291 // NB See comment in test_twoDexDirect_diff_constructor [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
OldInputStreamReaderTest.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 33 private final String source = "This is a test message with Unicode character. \u4e2d\u56fd is China's name in Chinese"; 35 private InputStream in; field in class:OldInputStreamReaderTest 48 in = new ByteArrayInputStream(source.getBytes("UTF-8")); 49 reader = new InputStreamReader(in, "UTF-8"); 63 in.close();
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
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 93 ZipInputStream in = new ZipInputStream(new FileInputStream(f)); local 96 while ((entry = in.getNextEntry()) != null) { 101 in.close(); 206 // that forces zip64. This also needs followup changes in ZipInputStream et al. to assume zip64 280 // Read it back and make sure comments and extra are in the right order
|
/libcore/luni/src/test/java/libcore/util/ |
ZoneInfoDBTest.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 56 // Given no tzdata files we can use, we should fall back to built-in "GMT". 67 RandomAccessFile in = new RandomAccessFile(SYSTEM_TZDATA_FILE, "r"); local 68 byte[] content = new byte[(int) in.length()]; 69 in.readFully(content); 70 in.close(); 92 RandomAccessFile in = new RandomAccessFile(SYSTEM_TZDATA_FILE, "r"); local 93 byte[] content = new byte[(int) in.length()]; 94 in.readFully(content) [all...] |
/libcore/ojluni/src/main/java/java/net/ |
ServerSocket.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 * requests to come in over the network. It performs some operation 108 * This could result in a SecurityException. 152 * This could result in a SecurityException. 156 * specific. In particular, an implementation may impose a maximum length 201 * This could result in a SecurityException. 205 * specific. In particular, an implementation may impose a maximum length 343 * specific. In particular, an implementation may impose a maximum lengt 410 InetAddress in = getImpl().getInetAddress(); local [all...] |
/libcore/ojluni/src/main/java/java/util/logging/ |
LogRecord.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 51 * the values to be filled in. 57 * <li> Because objects in the parameters array may not be serializable, 58 * during serialization all objects in the parameters array are 77 * MIN_SEQUENTIAL_THREAD_ID, in which case we try harder to keep 120 * @serial Event time in milliseconds since 1970 164 * These sequence values are allocated in increasing order within a VM. 271 * Sequence numbers are normally assigned in the LogRecor [all...] |
/packages/apps/Car/SystemUpdater/src/com/android/car/systemupdater/ |
SystemUpdaterActivity.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 191 Log.e(TAG, "Security Exception in verifying package " + file, e); 194 Log.e(TAG, "IO Exception in verifying package " + file, e); 255 Log.e(TAG, "IOException in installing ota package"); 257 "IOException in installing ota package ", 270 InputStream in = new FileInputStream(src); local 273 // Transfer bytes from in to out 276 while ((len = in.read(buf)) > 0) { 286 in.close() [all...] |
/packages/apps/Email/provider_src/com/android/email/provider/ |
AttachmentProvider.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 195 InputStream in = local 197 Bitmap thumbnail = createThumbnail(type, in); 205 in.close(); 244 * Returns a cursor based on the data in the attachments table, or null if the attachment 245 * is not recorded in the table. 336 * Need this to suppress warning in unit tests.
|
/packages/apps/Settings/src/com/android/settings/ |
LicenseHtmlGeneratorFromXml.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 147 InputStreamReader in = null; local 150 in = new InputStreamReader(new GZIPInputStream(new FileInputStream(xmlFile))); 152 in = new FileReader(xmlFile); 155 parse(in, mFileNameToContentIdMap, mContentIdToFileContentMap); 157 in.close(); 160 if (in != null) { 162 in.close(); 186 static void parse(InputStreamReader in, Map<String, String> outFileNameToContentIdMap [all...] |
/packages/apps/Settings/src/com/android/settings/dashboard/conditional/ |
ConditionManager.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 85 FileReader in = new FileReader(xmlFile); local 86 parser.setInput(in); 111 in.close();
|
/frameworks/base/core/java/android/provider/ |
DocumentsContract.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 98 * is used in the {@code <intent-filter>} of a {@code <provider>}. 131 * Set this in a DocumentsUI intent to cause a package's own roots to be 137 * Included in {@link AssetFileDescriptor#getExtras()} when returned 145 * Overrides the default prompt text in DocumentsUI when set in an intent. 151 * document in the provider application. 157 * <li>When supplying information in {@link DocumentsProvider#queryChildDocuments}, include 158 * {@link Document#FLAG_SUPPORTS_SETTINGS} in the flags for each document that support 1167 final Bundle in = new Bundle(); local 1180 final Bundle in = new Bundle(); local 1225 final Bundle in = new Bundle(); local 1259 final Bundle in = new Bundle(); local 1291 final Bundle in = new Bundle(); local 1327 final Bundle in = new Bundle(); local 1365 final Bundle in = new Bundle(); local 1392 final Bundle in = new Bundle(); local 1469 final Bundle in = new Bundle(); local 1531 final Bundle in = new Bundle(); local 1610 final Bundle in = new Bundle(); local [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
CharsetEncoderTest.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 282 CharBuffer in = CharBuffer.wrap("aaa"); local 295 encoder.encode(in, out, true); 304 encoder.encode(in, out, false); 327 // encode facade can be execute in anywhere 328 CharBuffer in = CharBuffer.wrap("aaa"); local 330 encoder.encode(in); 331 in.rewind(); 334 encoder.encode(in); 372 CharBuffer in = CharBuffer.wrap("aaa"); local 422 CharBuffer in = CharBuffer.wrap("aaa"); local 591 CharBuffer in = CharBuffer.wrap("\\ud800"); local 628 CharBuffer in; local 708 CharBuffer in = CharBuffer.wrap(unistr); local 833 CharBuffer in = getMalformedCharBuffer(); local 917 CharBuffer in = CharBuffer.wrap("aaa"); local [all...] |
/libcore/luni/src/test/java/libcore/xml/ |
XsltXPathConformanceTestSuite.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 80 * <p>Unfortunately, some of the tests in the OASIS suite will fail when 84 * "Couldn't open file" errors due to a mismatch in file name casing. 86 * stylesheet files. In particular, "http://webxtest/" isn't generally 271 * Finds the named file in the named directory. This tries extra hard to 273 * available in a different casing. 428 * Returns the given file's XML fragment as a single node, wrapped in 451 // it in <result> tags would result in a malformed XML document 581 InputStream in = new BufferedInputStream(new FileInputStream(file), 1024); local [all...] |
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/ |
SplitAppTest.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 97 fail("Unexpected drawable in base"); 120 // Receiver disabled by default in base 127 // We shouldn't have any native code in base 130 fail("Unexpected native code in base"); 265 // Receiver only enabled in feature 283 // And assert that we spun up the provider in this process 334 * done in {@link #testBaseInstalled()}. 381 * Write app data in a number of locations that expect to remain intact ove 576 BufferedReader in = null; local [all...] |
/cts/libs/json/src/com/android/json/stream/ |
JsonReader.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 29 * end delimiters of objects and arrays. The tokens are traversed in 30 * depth-first order, the same order that they appear in the JSON document. 37 * <p>Next, create handler methods for each structure in your JSON text. You'll 86 * public List<Message> readJsonStream(InputStream in) throws IOException { 87 * JsonReader reader = new JsonReader(new InputStreamReader(in, "UTF-8")); 165 * in JSON. 176 private final Reader in; field in class:JsonReader 207 * and length in the buffer [all...] |
/cts/tests/tests/os/src/android/os/cts/ |
ParcelFileDescriptorTest.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 53 AutoCloseInputStream in = new AutoCloseInputStream(pfd); local 56 assertEquals(0, in.read()); 57 assertEquals(1, in.read()); 58 assertEquals(2, in.read()); 59 assertEquals(3, in.read()); 61 in.close(); 105 AutoCloseInputStream in = new AutoCloseInputStream(pfd); local 106 assertEquals(DATA, in.read()) 179 AutoCloseInputStream in = new AutoCloseInputStream(pfd); local [all...] |
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
ForEachTest.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 65 Allocation in = Allocation.createTyped(mRS, t); local 68 fe_all.forEach_test_i8(in, out); 71 fe_all.forEach_test_i8(in, badOut); 76 in.destroy(); 81 in = Allocation.createTyped(mRS, t); 84 fe_all.forEach_test_i8_2(in, out); 87 fe_all.forEach_test_i8_2(in, badOut); 92 in.destroy() [all...] |