/libcore/luni/src/test/java/tests/security/cert/ |
CertificateFactory4Test.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 74 InputStream is = Support_Resources.getResourceStream("hyts_badpem.cer"); local 76 fact.generateCertificate(is); 80 is.close(); 94 InputStream is = certUrl.openStream(); local 95 Collection<? extends Certificate> certs = fact.generateCertificates(is); 116 InputStream is = certUrl.openStream(); local 117 CRL crl = fact.generateCRL(is); 137 InputStream is = certUrl.openStream() local [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
PhotoLoadingTestCase.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 52 // Test is probably going to fail as a result anyway. 67 * The instance generated here is always configured for 256x256 regardless of the 93 InputStream is = resources.openRawResource(resourceId); local 94 byte[] content = readInputStreamFully(is); 101 protected byte[] readInputStreamFully(InputStream is) { 106 while ((count = is.read(buffer)) != -1) { 109 is.close();
|
/external/clang/test/CodeGen/ |
staticinit.c | 12 static int is[] = { 1, 2, 3, 4 }; local
|
/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/ |
SCPOutputStream.java | 30 InputStream is = new BufferedInputStream(session.getStdout(), 512); local 32 scp.readResponse(is); 39 scp.readResponse(is);
|
/external/webkit/Source/JavaScriptCore/runtime/ |
CachedTranscendentalFunction.h | 13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY 88 uint32_t is[2]; member in union:JSC::CachedTranscendentalFunction::doubleAndUInt64 92 unsigned x = u.is[0] ^ u.is[1];
|
/libcore/luni/src/main/java/java/security/ |
KeyRep.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 31 * {@code KeyRep} is a standardized representation for serialized {@link Key} 61 * if {@code type, algorithm, format or encoded} is {@code null} 89 * is initialized with a {@link PKCS8EncodedKeySpec} using the encoded key 94 * generated from a key factory (suitable for the algorithm) that is 101 * if the {@code Type}|format combination is not recognized, or 146 private void readObject(ObjectInputStream is) 148 is.defaultReadObject();
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/ |
NfcImportVCardActivity.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 92 ByteArrayInputStream is = new ByteArrayInputStream(mRecord.getPayload()); local 93 is.mark(0); 100 parser.parse(is); 102 is.reset(); 110 parser.parse(is); 116 if (is != null) is.close(); 124 Log.w(TAG, "Nested Exception is found (it may be false-positive).") [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
FileInputStreamTest.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 37 private java.io.InputStream is; field in class:FileInputStreamTest 48 is = new FileInputStream(f); 49 is.close(); 66 is = new FileInputStream(fileName); 67 is.close(); 75 is = new FileInputStream(""); 80 if (is != null) { 81 is.close() [all...] |
BufferedInputStreamTest.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 36 private BufferedInputStream is; field in class:BufferedInputStreamTest 72 is = new BufferedInputStream(isFile, this.fileString.length()); 74 is.read(); 80 is.skip(this.fileString.length() - 2); 81 is.read(); 83 // is.read should now throw an exception because it will have to 85 is.read(); 102 MockBufferedInputStream(InputStream is) throws IOException [all...] |
/external/smack/src/org/xbill/DNS/ |
Tokenizer.java | 6 // purpose with or without fee is hereby granted, provided that the above 9 // THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES 26 * Tokenizer is used to parse DNS records and zones from text format, 43 /** Whitespace; only returned when wantWhitespace is set */ 52 /** A comment; only returned when wantComment is set */ 55 private PushbackInputStream is; field in class:Tokenizer 143 * @param is The InputStream to tokenize. 146 Tokenizer(InputStream is) { 147 if (!(is instanceof BufferedInputStream) [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
OldInputStreamReaderTest.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 33 private final String source = "This is a test message with Unicode character. \u4e2d\u56fd is China's name in Chinese"; 39 private InputStreamReader is; field in class:OldInputStreamReaderTest 58 is = new InputStreamReader(fis); 64 is.close(); 170 is = new InputStreamReader(fis, "8859_1"); 176 is = new InputStreamReader(fis, "Bogus"); 186 is.close() 261 ByteArrayInputStream is = new ByteArrayInputStream(bytes); local [all...] |
/cts/tests/tests/util/src/android/util/cts/ |
PrintWriterPrinterTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 69 InputStream is = new FileInputStream(mFile); local 71 new InputStreamReader(is));
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
AlphaBitmap.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 64 InputStream is = context.getResources().openRawResource(R.drawable.app_sample_code); local 65 mBitmap = BitmapFactory.decodeStream(is);
|
Pictures.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 75 InputStream is = new ByteArrayInputStream(os.toByteArray()); local 77 canvas.drawPicture(Picture.createFromStream(is));
|
/external/apache-harmony/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/ |
ZipFileTest.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 34 public byte[] getAllBytesFromStream(InputStream is) throws IOException { 39 while (is.available() > 0) { 40 iRead = is.read(buf, 0, buf.length); 211 "This is also text", new String(buf, 0, r, "UTF-8")); 233 java.io.InputStream is = null; local 236 is = zfile.getInputStream(zentry); 239 is.read(rbuf, 0, r = (int) zentry.getSize()); 240 assertEquals("getInputStream read incorrect data", "This is text", new String(rbuf 275 InputStream is = zfile.getInputStream(zentry); local 321 InputStream is = zfile.getInputStream(zentry); local 381 InputStream is = Support_Resources.getStream("hyts_ZipFile.zip"); local [all...] |
/external/apache-harmony/auth/src/test/java/common/org/apache/harmony/auth/tests/javax/security/sasl/serialization/ |
AuthorizeCallbackTest.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 57 boolean is = ref.isAuthorized(); 73 assertEquals(test.isAuthorized(), is); local
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
IdentityScopeTest.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 36 IdentityScope is; field in class:IdentityScopeTest 64 is = new IdentityScopeStub("Aleksei Semenov"); 65 assertNotNull(is); 66 assertEquals("Aleksei Semenov", is.getName()); 74 is = new IdentityScopeStub("Aleksei Semenov", scope); 75 assertNotNull(is); 76 assertEquals("Aleksei Semenov", is.getName()); 77 assertEquals(scope.getName(), is.getScope().getName()) [all...] |
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/ |
X509CRL2Test.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 36 InputStream is = Support_Resources local 40 pemCert = (X509Certificate) certFact.generateCertificate(is); 56 // check that it is an encoded as a OCTET STRING
|
X509CRLEntry2Test.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 36 InputStream is = Support_Resources local 40 pemCert = (X509Certificate) certFact.generateCertificate(is); 56 // check that it is an encoded as a OCTET STRING
|
X509Certificate2Test.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 39 InputStream is = Support_Resources local 44 .generateCertificate(is); 54 // check that it is an encoded as a OCTET STRING 72 // extension value is empty sequence
|
/external/apache-xml/src/main/java/org/apache/xpath/functions/ |
FuncSystemProperty.java | 13 * distributed under the License is distributed on an "AS IS" BASIS, 65 // property argument is to be looked for. 171 InputStream is = ss.getResourceAsStream(ObjectFactory.findClassLoader(), local 175 BufferedInputStream bis = new BufferedInputStream(is);
|
/external/eigen/bench/btl/data/ |
mean.cxx | 7 // This program is free software; you can redistribute it and/or 12 // This program is distributed in the hope that it will be useful, 120 multiset<Lib_Mean>::iterator is = s_lib_mean.begin(); local 121 Lib_Mean best(*is); 124 for (is=s_lib_mean.begin(); is!=s_lib_mean.end() ; is++){ 127 cout << " <TD> " << is->_lib_name << " </TD>" << endl ; 128 cout << " <TD> " << is->_mean_in_cache << " </TD>" << endl ; 129 cout << " <TD> " << 100*(is->_mean_in_cache/best._mean_in_cache) << " </TD>" << endl [all...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
ContentProviderOperationTest.java | 4 import static org.hamcrest.CoreMatchers.is; 29 assertThat(shadowOperation.isInsert(), is(true)); method 30 assertThat(shadowOperation.isUpdate(), is(false)); method 31 assertThat(shadowOperation.isDelete(), is(false)); method 32 assertThat(shadowOperation.getValues().size(), is(2)); 34 assertThat(Integer.parseInt(shadowOperation.getValues().get("intValue").toString()), is(5)); 45 assertThat(shadowBuilder.getWithValueBackReference("my_id"), is(0)); 46 assertThat(shadowOperation.getWithValueBackReference("my_id"), is(0)); 57 assertThat(shadowOperation.isInsert(), is(false)); method 58 assertThat(shadowOperation.isUpdate(), is(true)) method 59 assertThat(shadowOperation.isDelete(), is(false)); method 71 assertThat(shadowOperation.isInsert(), is(false)); method 72 assertThat(shadowOperation.isUpdate(), is(false)); method 73 assertThat(shadowOperation.isDelete(), is(true)); method [all...] |
CookieManagerTest.java | 8 import static org.hamcrest.CoreMatchers.is; 17 assertThat( CookieManager.getInstance(), is(CookieManager.getInstance())); 26 assertThat(cookieManager.getCookie(url), is(value)); method 40 assertThat(cookieManager.getCookie("http://www.google.com"), is(value1)); method 41 assertThat(cookieManager.getCookie(url2), is(value2)); method
|
ImageViewTest.java | 21 import static org.hamcrest.CoreMatchers.is; 99 assertThat(shadowOf(imageView.getDrawable()).getLoadedFromResourceId(), is(R.drawable.rainbow)); method
|