/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
MatrixCursorTest.java | 4 import static org.hamcrest.CoreMatchers.is; 130 assertThat(singleColumnSingleNullValueMatrixCursor.getString(0), is(nullValue())); 135 assertThat(singleColumnSingleNullValueMatrixCursor.getInt(0), is(equalTo(0))); 140 assertThat(singleColumnSingleNullValueMatrixCursor.getLong(0), is(equalTo(0L))); 145 assertThat(singleColumnSingleNullValueMatrixCursor.getShort(0), is(equalTo((short) 0))); method 150 assertThat(singleColumnSingleNullValueMatrixCursor.getFloat(0), is(equalTo(0.0f))); 155 assertThat(singleColumnSingleNullValueMatrixCursor.getDouble(0), is(equalTo(0.0)));
|
PendingIntentTest.java | 5 import static org.hamcrest.CoreMatchers.is; 40 assertThat(shadow.isActivityIntent(), is(false)); method 41 assertThat(shadow.isBroadcastIntent(), is(true)); method 42 assertThat(shadow.isServiceIntent(), is(false)); method 52 assertThat(shadow.isActivityIntent(), is(true)); method 53 assertThat(shadow.isBroadcastIntent(), is(false)); method 54 assertThat(shadow.isServiceIntent(), is(false)); method 64 assertThat(shadow.isActivityIntent(), is(false)); method 65 assertThat(shadow.isBroadcastIntent(), is(false)); method 66 assertThat(shadow.isServiceIntent(), is(true)) method [all...] |
PopupWindowTest.java | 23 import static org.hamcrest.CoreMatchers.is; 46 assertThat(popupWindow.getContentView(), is(contentView)); method 53 assertThat(popupWindow.getWidth(), is(1)); 60 assertThat(popupWindow.getHeight(), is(2)); 102 @SuppressWarnings("RedundantCast") //For some reason this is needed because of a compile error without it 108 assertThat((BitmapDrawable) popupWindow.getBackground(), is(bitmapDrawable));
|
ProgressDialogTest.java | 19 import static org.hamcrest.core.Is.is; 45 CharSequence message = "This is only a test"; 69 assertThat(shadowProgressDialog.getContext(), is(context)); method 75 assertThat(cancelListener.onCancelDialogInterface, is((DialogInterface) progressDialog));
|
RectTest.java | 9 import static org.hamcrest.CoreMatchers.is; 21 assertThat(r.left, is(1)); 22 assertThat(r.top, is(2)); 23 assertThat(r.right, is(3)); 24 assertThat(r.bottom, is(4)); 31 assertThat(r.left, is(1)); 32 assertThat(r.top, is(2)); 33 assertThat(r.right, is(3)); 34 assertThat(r.bottom, is(4)); 41 assertThat(r.width(), is(10)) 54 assertThat(a.equals(b), is(false)); method 61 assertThat(a.equals(b), is(true)); method 67 assertThat(r.contains(11, 11), is(false)); method 73 assertThat(r.contains(5, 5), is(true)); method 79 assertThat(r.contains(0, 5), is(false)); method 85 assertThat(r.contains(10, 5), is(false)); method 91 assertThat(r.contains(5, 0), is(true)); method 97 assertThat(r.contains(5, 10), is(true)); method 104 assertThat(a.contains(b), is(false)); method 111 assertThat(a.contains(b), is(true)); method 118 assertThat(a.contains(b), is(true)); method 125 assertThat(a.contains(b), is(false)); method 132 assertThat(Rect.intersects(a, b), is(false)); method 139 assertThat(Rect.intersects(a, b), is(true)); method 146 assertThat(Rect.intersects(a, b), is(false)); method 153 assertThat(a.intersect(b), is(true)); method 159 assertThat(r.intersect(5, 0, 15, 10), is(true)); method [all...] |
TabHostTest.java | 17 import static org.hamcrest.CoreMatchers.is; 45 assertThat(tabHost.getChildAt(0), is(fooView)); method 46 assertThat(tabHost.getChildAt(1), is(barView)); method 60 assertThat(shadowOf(tabHost).getSpecByTag("Bar"), is(bar)); method 61 assertThat(shadowOf(tabHost).getSpecByTag("Baz"), is(baz)); method
|
/external/sfntly/cpp/src/test/ |
bitmap_table_test.cc | 11 * distributed under the License is distributed on an "AS IS" BASIS, 111 // Strike 4 Index Sub Table 1 is a Format 3 156 MemoryInputStream is; local 157 is.Attach(os.Get(), os.Size()); 159 factory->LoadFonts(&is, &font_array); 164 // Strike 4 Index Sub Table 1 is a Format 4
|
/frameworks/base/core/java/android/content/pm/ |
Signature.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 39 * This class name is slightly misleading, since it's not actually a signature. 88 * @throws IllegalArgumentException when signature is odd-length 95 throw new IllegalArgumentException("text size " + N + " is not even"); 295 final InputStream is = new ByteArrayInputStream(s.mSignature); local 296 final X509Certificate cert = (X509Certificate) cf.generateCertificate(is);
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/ |
BandwidthTestUtil.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 77 * @param deviceId the device id that is downloading 101 InputStream is = ucon.getInputStream(); local 102 BufferedInputStream bis = new BufferedInputStream(is); 121 * @param deviceId {@link String} device id that is uploading
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
ExifModifier.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 52 InputStream is = null; local 54 is = new ByteBufferInputStream(byteBuffer); 56 ExifParser parser = ExifParser.parse(is, mInterface); 61 ExifInterface.closeSilently(is); 70 InputStream is = null; local 72 is = new ByteBufferInputStream(mByteBuffer); 98 ExifParser parser = ExifParser.parse(is, flag, mInterface); 135 ExifInterface.closeSilently(is); [all...] |
/frameworks/base/rs/java/android/renderscript/ |
FileA3D.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 42 * Specifies what renderscript object type is contained within 289 InputStream is = null; local 291 is = res.openRawResource(id); 297 if (is instanceof AssetManager.AssetInputStream) { 298 long asset = ((AssetManager.AssetInputStream) is).getNativeAsset(); 307 FileA3D fa3d = new FileA3D(fileId, rs, is);
|
Font.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 34 * rendered glyph bitmaps is maintained. Each font object represents a combination of a typeface, 39 * font to the RenderScript is required. A note of caution on performance, though the state changes 40 * are transparent to the user, they do happen internally, and it is more efficient to 41 * render large batches of text in sequence. It is also more efficient to render multiple 202 InputStream is = null; local 204 is = res.openRawResource(id); 212 if (is instanceof AssetManager.AssetInputStream) { 213 long asset = ((AssetManager.AssetInputStream) is).getNativeAsset() [all...] |
/frameworks/data-binding/compiler/src/main/java/android/databinding/annotationprocessor/ |
ProcessExpressions.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 175 final InputStream is = IOUtils.toInputStream(content); local 178 = (ResourceBundle.LayoutFileBundle) mUnmarshaller.unmarshal(is); 182 IOUtils.closeQuietly(is); 192 // this is the way we get rid of files that are copied from previous modules 193 // it is important to do this before saving the intermediate file
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
ProcessTest.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 58 // send data, and check if it is echoed back correctly 61 String str3 = "Here is some more data.\n"; 98 private String readAndCloseStream(InputStream is) throws IOException { 101 int c = is.read(); 107 is.close(); 120 process.waitFor(); // destroy is asynchronous.
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/ |
JarInputStreamTest.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 57 InputStream is = new URL(jarName).openConnection().getInputStream(); local 59 JarInputStream jis = new JarInputStream(is); 75 InputStream is = Support_Resources.getStream("Broken_entry.jar"); local 76 JarInputStream jis = new JarInputStream(is, false); 97 InputStream is = new URL(jarName).openConnection().getInputStream(); local 98 JarInputStream jis = new JarInputStream(is); 116 is = Support_Resources.getStream("Broken_entry.jar"); 117 jis = new JarInputStream(is, false) 131 InputStream is = new URL(jarName2).openConnection().getInputStream(); local 146 InputStream is = new URL(jarName).openConnection().getInputStream(); local 159 InputStream is = new URL(intJarName).openConnection() local 175 InputStream is = new URL(modJarName).openConnection() local 202 InputStream is = new URL(modJarName).openConnection() local 223 InputStream is = new URL(modJarName).openConnection() local 250 InputStream is = new URL(modJarName).openConnection() local 275 InputStream is = new URL(modJarName).openConnection() local 304 InputStream is = new URL(intJarName).openConnection() local 327 InputStream is = new URL(modJarName).openConnection() local 358 InputStream is = new URL(modJarName).openConnection() local 388 InputStream is = Support_Resources.getStream("Broken_entry.jar"); local [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/ |
DocumentBuilderTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 57 // it is a fake 66 // it is a fake 75 // it is a fake 84 // it is a fake 92 public Document parse(InputSource is) throws SAXException, IOException { 93 // it is a fake 103 // it is a fake 112 // it is a fak 299 InputStream is = getClass().getResourceAsStream("\/simple.xml"); local 360 InputSource is = new InputSource(stream); local 422 InputStream is = getClass().getResourceAsStream("\/systemid.xml"); local [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/helpers/ |
XMLFilterImplTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 47 // properly. The rest is outside the scope of the specification. 183 InputSource is = new InputSource(); local 187 child.parse(is); 199 orphan.parse(is);
|
/libcore/luni/src/main/java/java/util/jar/ |
JarFile.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 34 * {@code JarFile} is used to read jar entries and their associated data from 66 JarFileInputStream(InputStream is, long size, JarVerifier.VerifierEntry e) { 67 super(is); 177 * if this JAR file is signed whether it must be verified. 191 * if this JAR filed is signed whether it must be verified. 206 // Verification is possible *only* if the JAR file contains a manifest 210 // TODO: Is this really the behaviour we want if verify == true ? 245 * if this JAR filed is signed whether it must be verified 350 InputStream is = zipFile.getInputStream(entry); local [all...] |
StrictJarFile.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 102 * Returns {@code null} if this jar file isn't signed or if this method is 103 * called before the stream is processed. 118 * Returns {@code null} if this jar file isn't signed or if this method is 119 * called before the stream is processed. 149 final InputStream is = getZipInputStream(ze); local 154 return is; 157 return new JarFile.JarFileInputStream(is, ze.getSize(), entry); 160 return is; [all...] |
/libcore/luni/src/main/java/javax/xml/datatype/ |
FactoryFinder.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 35 * <p>This class is duplicated for each JAXP subpackage so keep it in 36 * sync. It is package private for secure class loading.</p> 109 * <p>The context ClassLoader is preferred.</p> 117 // class. If there is a Context ClassLoader then use it. 180 * @param fallbackClassName Implementation class name, if nothing else is found. Use null to mean no fallback. 233 InputStream is = null; local 238 is = cl.getResourceAsStream(serviceId); 241 if (is == null) [all...] |
/libcore/luni/src/main/java/libcore/net/url/ |
FileURLConnection.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 41 * This class is responsible for connecting, getting content and input stream of 63 private InputStream is; field in class:FileURLConnection 88 * @param url The URL this connection is connected to 105 * by this <code>URL</code>. If the file is a directory, it will return 117 is = getDirectoryListing(f); 123 is = new BufferedInputStream(new FileInputStream(f)); 235 // default is -1 248 // The content-type header field is always at position 0 [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/utils/ |
JarUtils.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 87 final InputStream is = new ByteArrayInputStream(encoded); local 88 certs[i++] = new VerbatimX509Certificate((X509Certificate) cf.generateCertificate(is), 201 // RFC 2315 section 9.1: if authenticatedAttributes is present, it 235 // Signer is self-signed 252 /* Prevent growing infinitely if there is a loop */
|
/libcore/luni/src/test/java/libcore/java/lang/ |
OldRuntimeTest.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 35 InputStream is; field in class:OldRuntimeTest
|
/libcore/luni/src/test/java/libcore/java/util/jar/ |
OldManifestTest.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 162 ByteArrayInputStream is = new ByteArrayInputStream(os.toByteArray()); local 164 m2.read(is);
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
OldZipInputStreamTest.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 38 InputStream is = Support_Resources.getStream("hyts_ZipFile.zip"); local 39 if (is == null) { 42 zis = new ZipInputStream(is);
|