/libcore/luni/src/test/java/dalvik/system/ |
DexClassLoaderTest.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 82 * Copy a resource in the package directory to the indicated 89 InputStream in = loader.getResourceAsStream(PACKAGE_PATH + resourceName); local 90 if (in == null) { 95 Streams.copy(in, out); 97 in.close(); 152 InputStream in = cl.getResourceAsStream(resourceName); local 153 if (in == null) { 157 byte[] contents = Streams.readFully(in); [all...] |
/libcore/luni/src/test/java/libcore/java/util/zip/ |
AbstractZipFileTest.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 178 ZipInputStream in = new ZipInputStream(new FileInputStream(f)); local 179 while (in.getNextEntry() != null) { 180 while (in.read(readBuffer, 0, readBuffer.length) != -1) {} 182 in.close(); 445 // when we find it in the central directory.
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
AVA.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 91 * If the value has any of these characters in it, it must be quoted. 99 * In RFC2253, if the value has any of these characters in it, it 132 AVA(Reader in) throws IOException { 133 this(in, DEFAULT); 138 * or perhaps with quotes. Additional keywords can be specified in the 145 AVA(Reader in, Map<String, String> keywordMap) throws IOException [all...] |
/packages/apps/Email/provider_src/com/android/email/ |
LegacyConversions.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 /** DO NOT CHECK IN "TRUE" */ 108 // Keep the message in the "unloaded" state until it has (at least) a display name. 109 // This prevents early flickering of empty messages in POP download. 127 // Only replace the local message-id if a new one was found. This is seen in some ISP's 227 // Run the mime type through inferMimeType in case we have something generic and can do 243 * This will skip adding attachments if they are already found in the attachments table. 245 * included in a single POP3 message. 281 // We test each of the fields here (instead of in SQL) because they may b 333 InputStream in = null; local [all...] |
/packages/apps/Messaging/src/android/support/v7/mms/ |
MmsHttpClient.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 InputStream in = new BufferedInputStream(connection.getInputStream()); local 198 while ((count = in.read(buf)) > 0) { 201 in.close(); 250 * US if we are in a different locale than US. 280 } else if ("in".equals(langCode)) { 304 * Resolve the macro in HTTP param value text 341 * macros like "##LINE1##" or "##NAI##" which is resolved with methods in this class
|
/packages/apps/Nfc/src/com/android/nfc/beam/ |
FireflyRenderer.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 254 InputStream in = null; local 257 in = mContext.getAssets().open("star.png"); 259 Bitmap bitmap = BitmapFactory.decodeStream(in); 272 if (in != null) { 274 in.close();
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
Attachment.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 * Attachment size in bytes. See {@link AttachmentColumns#SIZE}. 125 * handles file:// uris not content:// uris. We do the same workaround in 174 public Attachment(Parcel in) { 175 name = in.readString(); 176 size = in.readInt(); 177 uri = in.readParcelable(null); 178 contentType = in.readString(); 179 state = in.readInt() 267 final InputStream in = part.getBody().getInputStream(); local [all...] |
/packages/services/Mms/src/com/android/mms/service/ |
MmsHttpClient.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 192 final InputStream in = new BufferedInputStream(connection.getInputStream()); local 196 while ((count = in.read(buf)) > 0) { 199 in.close(); 282 * US if we are in a different locale than US. 312 } else if ("in".equals(langCode)) { 337 * macros like "##LINE1##" or "##NAI##" which is resolved with methods in this class 365 * Resolve the macro in HTTP param value text
|
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/ |
DataCollector.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 275 // Spaces matter in the following command line. Make sure there are no spaces 276 // in the filename and around the '>' sign. 326 InputStream in = null; local 330 in = new ParcelFileDescriptor.AutoCloseInputStream(pfd); 334 bytesRead = in.read(buffer); 341 if (in != null) { 342 in.close();
|
/prebuilts/tools/common/fest/ |
fest-reflect-1.2.jar | |
/bionic/libc/kernel/uapi/linux/ |
netfilter.h | 25 #include <linux/in.h> 81 struct in_addr in; member in union:nf_inet_addr
|
/bionic/tests/ |
time_test.cpp | 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 151 t.tm_isdst = 0; // "0 if Daylight Savings Time is not in effect". 156 t.tm_isdst = 2; // "positive if Daylight Savings Time is in effect" 572 timespec in; local 574 ASSERT_EQ(EINVAL, clock_nanosleep(-1, 0, &in, &out));
|
/bootable/recovery/minui/ |
graphics.cpp | 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 284 // fall back to the compiled-in font. 295 unsigned char* in = font.rundata; local 296 while((data = *in++)) {
|
/build/core/ |
product.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 19 # PRODUCT_MAKEFILES is set up in AndroidProducts.mks. 26 # Search for AndroidProducts.mks in the given dir. 28 define _search-android-products-files-in-dir 40 $(foreach d, device vendor product,$(call _search-android-products-files-in-dir,$(d))) \ 46 # variables set in the given AndroidProducts.mk files. 64 # variables set in all AndroidProducts.mk files. 145 # 2. Records the inheritance in the .INHERITS_FROM variable 146 # 3. Records that we've visited this node, in ALL_PRODUCT [all...] |
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/ |
BasePackageInstallTest.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 160 InputStream in = new FileInputStream(file); local 164 while ((c = in.read(buffer)) != -1) {
|
/cts/hostsidetests/jdwpsecurity/src/android/jdwpsecurity/cts/ |
JdwpSecurityHostTest.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 177 // We need a dalvik-cache in /data/local/tmp so we have read-write access. 178 // Note: this will cause the runtime to optimize the DEX file (contained in 205 private InputStream in; field in class:JdwpSecurityHostTest.AdbJdwpOutputReader 210 // in the background. Since we know the tested app is already running, we only need to 215 in = adbProcess.getInputStream(); 217 // Read the output for 5s in a separate thread before stopping the command. 233 br = new BufferedReader(new InputStreamReader(in));
|
/cts/libs/vogar-expect/src/vogar/commands/ |
Command.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 BufferedReader in = new BufferedReader( local 125 while ((outputLine = in.readLine()) != null) {
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
MovieTest.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 private byte[] inputStreamToBytes(InputStream in) throws IOException { 102 while ((len = in.read(buffer)) >= 0) { 105 in.close();
|
/dalvik/dx/src/com/android/dx/io/instructions/ |
DecodedInstruction.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 33 * match the names given in the Dalvik instruction format 35 * arbitrarily alphabetically from A. In this class, non-register 55 * though it is stored in an {@code int}. 69 public static DecodedInstruction decode(CodeInput in) throws EOFException { 70 int opcodeUnit = in.read(); 74 return format.decode(opcodeUnit, in); 85 ShortArrayCodeInput in = new ShortArrayCodeInput(encodedInstructions); local 88 while (in.hasMore()) [all...] |
/dalvik/dx/tests/098-dex-jsr-ret-throw/ |
ViewDebug$ViewServer.class | |
/dalvik/dx/tests/115-merge/com/android/dx/merge/ |
DexMergeTest.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 128 * Merging dex files uses pessimistic sizes that naturally leave gaps in the 186 private void copy(InputStream in, OutputStream out) throws IOException { 189 while ((count = in.read(buffer)) != -1) { 192 in.close();
|
/developers/build/prebuilts/gradle/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/net/ |
FeedParser.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 35 * where each list element represents a single entry (post) in the XML feed. 42 // Constants indicting XML element names that we're interested in 53 * @param in Atom feed, as a stream. 58 public List<Entry> parse(InputStream in) 63 parser.setInput(in, null); 67 in.close(); 97 // article in the feed. 208 * Processes link tags in the feed [all...] |
/developers/samples/android/connectivity/sync/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/net/ |
FeedParser.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 35 * where each list element represents a single entry (post) in the XML feed. 42 // Constants indicting XML element names that we're interested in 53 * @param in Atom feed, as a stream. 58 public List<Entry> parse(InputStream in) 63 parser.setInput(in, null); 67 in.close(); 97 // article in the feed. 208 * Processes link tags in the feed [all...] |
/development/samples/ToyVpn/src/com/example/android/toyvpn/ |
ToyVpnService.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 96 // In this demo, all we need to know is the server address. 158 // Packets to be sent are queued in this input stream. 159 FileInputStream in = new FileInputStream(mInterface.getFileDescriptor()); local 174 // Assume that we did not make any progress in this iteration. 178 int length = in.read(packet.array()); 219 // since everything is operated in non-blocking mode. 258 // and exchange session keys for encryption. To keep things simple in 259 // this demo, we just send the shared secret in plaintext and wai [all...] |
/development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/net/ |
FeedParser.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 35 * where each list element represents a single entry (post) in the XML feed. 42 // Constants indicting XML element names that we're interested in 53 * @param in Atom feed, as a stream. 58 public List<Entry> parse(InputStream in) 63 parser.setInput(in, null); 67 in.close(); 97 // article in the feed. 208 * Processes link tags in the feed [all...] |