/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/ |
CloseShieldInputStream.java | 13 * software distributed under the License is distributed on an * 14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * 37 private InputStream is; field in class:CloseShieldInputStream 39 public CloseShieldInputStream(InputStream is) { 40 this.is = is; 44 return is; 52 return is.read(); 60 return is.available(); 68 is = null [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
OldFilterInputStreamTest.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 30 public MyFilterInputStream(java.io.InputStream is) { 31 super(is); 37 private FilterInputStream is; field in class:OldFilterInputStreamTest 50 is.close(); 60 INPUT_LENGTH, is.available()); 62 is.close(); 64 is.available(); 72 is.close() [all...] |
OldInputStreamTest.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 29 private InputStream is; field in class:OldInputStreamTest 62 assertEquals(is.available(), 0); 67 is.close(); 75 is.mark(10); 83 is.markSupported()); 95 is.read(b), 10); 102 // Test 2: Test that the correct number of bytes read is returned 105 bytesRead = is.read(b) [all...] |
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
DigestInputStream2Test.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 137 DigestInputStream is = new DigestInputStream(inStream, digest); local 140 is.read(buf, -1, 0); 148 is.read(buf, -1, 0); 155 is.read(buf, 0, -1); 162 is.read(buf, -1, -1); 169 is.read(buf, 0, 1001); 176 is.read(buf, 1001, 0); 183 is.read(buf, 500, 501) [all...] |
/cts/tests/tests/security/src/android/security/cts/ |
BitmapFactorySecurityTests.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 37 InputStream is = mContext.getResources().openRawResource(resId); local 38 assertNotNull(is); 44 while ((readLength = is.read(buffer)) != -1) { 47 is.close();
|
ConscryptIntermediateVerificationTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 41 InputStream is = null; local 44 is = getContext().getResources().openRawResource(resource); 45 certs = certFactory.generateCertificates(is); 48 if (is != null) { 49 is.close(); 87 // Where R is the trusted root CA 88 // I is an intermediate CA with name constraints disallowing android.com 89 // L is a certificate issued by I for example.co [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/content/ |
InstallApk.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 20 // class is in a sub-package. 151 InputStream is = null; local 154 is = getAssets().open(assetName); 157 while ((n=is.read(buffer)) >= 0) { 164 if (is != null) { 165 is.close();
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
DefaultSSLContextImpl.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 55 * is no way to put a synchronized around both the call to super and the 77 InputStream is = null; local 79 is = new BufferedInputStream(new FileInputStream(keystore)); 80 ks.load(is, pwd); 82 if (is != null) { 83 is.close(); 110 InputStream is = null; local 112 is = new BufferedInputStream(new FileInputStream(keystore)) [all...] |
/external/javassist/src/main/javassist/ |
URLClassPath.java | 10 * Software distributed under the License is distributed on an "AS IS" basis, 37 * <p>This search path is used only if a requested 39 * If <code>packageName</code> is "org.javassist." and a requested class is 40 * "org.javassist.test.Main", then the given URL is used for loading that class. 46 * <p>Here, we assume that <code>host</code> is "www.javassist.org", 47 * <code>port</code> is 80, and <code>directory</code> is "/java/classes/". 49 * <p>If <code>packageName</code> is <code>null</code>, the URL is use 104 InputStream is = con.getInputStream(); local [all...] |
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
MacAuthenticatedInputStreamTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 73 MacAuthenticatedInputStream is = new MacAuthenticatedInputStream(mTestStream1, mac); local 75 assertTrue(Arrays.equals(TEST_STRING_1, Streams.readFully(is))); 77 assertTrue(is.isTagEqual(TEST_STRING_1_MAC)); 84 MacAuthenticatedInputStream is = new MacAuthenticatedInputStream(mTestStream1, mac); local 86 assertTrue(Arrays.equals(TEST_STRING_1, Streams.readFully(is))); 88 assertFalse(is.isTagEqual(TEST_STRING_1_MAC_BROKEN)); 95 MacAuthenticatedInputStream is = new MacAuthenticatedInputStream(mTestStream1, mac); local 97 assertTrue(Arrays.equals(TEST_STRING_1, Streams.readFully(is))); 106 MacAuthenticatedInputStream is = new MacAuthenticatedInputStream(mTestStream1, mac); local [all...] |
/frameworks/base/tests/LargeAssetTest/src/com/android/largeassettest/ |
LargeAssetTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 33 * Skeleton to test large-asset handling. The asset in question is one million 70 InputStream is = am.open("million-ints", AssetManager.ACCESS_STREAMING); local 74 int num = is.read(buf, 0, 4); 79 // the byte array is stored in the asset in little-endian order 88 is.close();
|
/frameworks/rs/support/java/src/android/support/v8/renderscript/ |
ScriptC.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 33 * The superclass for all user-defined scripts. This is only 91 InputStream is = resources.openRawResource(resourceID); local 104 int bytesRead = is.read(pgm, pgmLength, bytesLeft); 111 is.close();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
ObjectOutputStream2Test.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 54 ObjectInputStream is = new ObjectInputStream(bis); local 55 Object readObj = is.readObject(); 56 is.close();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
GenericSignatureFormatErrorTest.java | 28 InputStream is = this.getClass().getResourceAsStream("/resources/dex1.bytes"); local 29 assertNotNull(is); 34 // dalvikvm: 'waitpid failed' log msg - only occurs when @SideEffect is removed 35 // and this test is run via running tests.luni.AllTestsLang TestSuite 38 * dex1.bytes is a jar file with a classes.dex in it. 57 InputStream is = this.getClass().getResourceAsStream("/resources/dex1.bytes"); local 58 assertNotNull(is); 60 copy(is, fos); 86 private void copy(InputStream is, OutputStream os) { 89 while ((b = is.read()) != -1) [all...] |
/libcore/luni/src/test/java/libcore/java/util/jar/ |
OldJarInputStreamTest.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 34 // we need a buffered stream because ByteArrayInputStream.close() is a no-op 35 InputStream is = new BufferedInputStream(new ByteArrayInputStream(new byte[0])); local 36 is.close(); 37 new JarInputStream(is, false); 59 InputStream is = Support_Resources.getStream("Broken_entry.jar"); local 60 Mock_JarInputStream mjis = new Mock_JarInputStream(is); 67 InputStream is = Support_Resources.getStream("Broken_entry_data.jar"); local 68 JarInputStream jis = new JarInputStream(is, true) [all...] |
/libcore/luni/src/test/java/libcore/java/util/zip/ |
Zip64FileTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 49 InputStream is = null; local 51 is = zf.getInputStream(ze); 52 byte[] uncompressed = Streams.readFully(is); 55 if (is != null) { 56 is.close();
|
/libcore/ojluni/src/main/java/javax/security/auth/x500/ |
X500Principal.java | 5 * This code is free software; you can redistribute it and/or modify it 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 43 * for the string representation of a distinguished name is defined in 84 * NOTE: this field is reflectively accessed from within X500Name. 91 * NOTE: The constructor is package private. It is intended to be accessed 104 * RFC 1779 or RFC 2253 (either format is acceptable). 123 * is {@code null} 125 * is improperly specifie [all...] |
/cts/tools/vm-tests-tf/src/util/build/ |
BytesStreamSucker.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 37 private final InputStream is; field in class:BytesStreamSucker 45 @Nonnull InputStream is, @Nonnull OutputStream os, boolean toBeClose) { 46 this.is = is; 51 public BytesStreamSucker(@Nonnull InputStream is, @Nonnull OutputStream os) { 52 this(is, os, false); 58 while ((bytesRead = is.read(buffer)) >= 0) {
|
/external/clang/test/Sema/ |
no-documentation-warn-tagdecl-specifier.c | 17 // expected-warning@+1 {{'@return' command used in a comment that is not attached to a function or method declaration}} 24 struct s4 { int is; }; member in struct:s4 26 // expected-warning@+1 {{'@return' command used in a comment that is not attached to a function or method declaration}} 28 struct s5 { int is; }; member in struct:s5 31 // expected-warning@+1 {{'@return' command used in a comment that is not attached to a function or method declaration}} 36 // expected-warning@+1 {{'@return' command used in a comment that is not attached to a function or method declaration}} 59 // expected-warning@+1 {{'@return' command used in a comment that is not attached to a function or method declaration}} 68 // expected-warning@+1 {{'@return' command used in a comment that is not attached to a function or method declaration}} 73 // expected-warning@+1 {{'@return' command used in a comment that is not attached to a function or method declaration}} 78 // expected-warning@+1 {{'@return' command used in a comment that is not attached to a function or method declaration} [all...] |
/external/conscrypt/openjdk/src/test/java/org/conscrypt/ |
OpenSSLKeyTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 51 ByteArrayInputStream is = new ByteArrayInputStream(RSA_PUBLIC_KEY.getBytes("UTF-8")); local 52 OpenSSLKey key = OpenSSLKey.fromPublicKeyPemInputStream(is); 59 ByteArrayInputStream is = new ByteArrayInputStream(RSA_PRIVATE_KEY.getBytes("UTF-8")); local 60 OpenSSLKey key = OpenSSLKey.fromPrivateKeyPemInputStream(is);
|
/external/glide/testutil/src/main/java/com/bumptech/glide/testutil/ |
TestUtil.java | 19 public static byte[] isToBytes(InputStream is) throws IOException { 24 while ((read = is.read(buffer)) != -1) { 28 is.close(); 33 public static String isToString(InputStream is) throws IOException { 34 return new String(isToBytes(is));
|
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/core/ |
Is.java | 15 * vs. assertThat(cheese, is(equalTo(smelly))) 17 public class Is<T> extends BaseMatcher<T> { 20 public Is(Matcher<T> matcher) { 31 description.appendText("is ").appendDescriptionOf(matcher); 43 * <pre>assertThat(cheese, is(equalTo(smelly)))</pre> 48 public static <T> Matcher<T> is(Matcher<T> matcher) { method in class:Is 49 return new Is<T>(matcher); 53 * A shortcut to the frequently used <code>is(equalTo(x))</code>. 55 * <pre>assertThat(cheese, is(smelly))</pre> 57 * <pre>assertThat(cheese, is(equalTo(smelly)))</pre 60 public static <T> Matcher<T> is(T value) { method in class:Is [all...] |
/external/mesa3d/src/gallium/drivers/ilo/ |
ilo_context.c | 6 * Permission is hereby granted, free of charge, to any person obtaining a 11 * Software is furnished to do so, subject to the following conditions: 16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 140 struct ilo_screen *is = ilo_screen(screen); local 147 ilo->winsys = is->dev.winsys; 148 ilo->dev = &is->dev; 213 ilo_init_context_functions(struct ilo_screen *is) 215 is->base.context_create = ilo_context_create;
|
/external/messageformat/java/com/ibm/icu/impl/ |
ICUConfig.java | 18 * ICUConfig is a class used for accessing ICU4J runtime configuration. 27 InputStream is = ICUData.getStream(CONFIG_PROPS_FILE); external variable declarations 28 if (is != null) { 29 CONFIG_PROPS.load(is); external variable declarations 52 * exist, <code>def</code> is returned.
|
/external/mockito/src/test/java/org/mockito/internal/verification/ |
VerificationOverTimeImplTest.java | 12 import static org.hamcrest.CoreMatchers.is; 40 exception.expect(is(toBeThrown)); method 49 exception.expect(is(toBeThrown)); method 59 exception.expect(is(toBeThrown)); method
|