/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
TabSpecTest.java | 18 import static org.hamcrest.core.Is.is; 36 assertThat(self, is(spec)); 37 assertThat(shadowOf(spec).getIndicatorAsView(), is(view)); method 45 assertThat(self, is(spec)); 46 assertThat(shadowOf(spec).getContentAsIntent(), is(intent)); method 56 assertThat(shadowOf(spec).getIndicatorLabel(), is("labelText")); 57 assertThat(shadowOf(spec).getText(), is("labelText")); 64 assertThat(shadowOf(spec).getIndicatorLabel(), is("labelText")); 65 assertThat(shadowOf(spec).getText(), is("labelText")) 66 assertThat(shadowOf(spec).getIndicatorIcon(), is(icon1)); method [all...] |
VibratorTest.java | 5 import static org.hamcrest.CoreMatchers.is; 33 assertThat(shadowVibrator.isVibrating(), is(true)); method 42 assertThat(shadowVibrator.isVibrating(), is(true)); method 50 assertThat(shadowVibrator.isVibrating(), is(true)); method 51 assertThat(shadowVibrator.isCancelled(), is(false)); method 54 assertThat(shadowVibrator.isVibrating(), is(false)); method 55 assertThat(shadowVibrator.isCancelled(), is(true)); method
|
/external/valgrind/main/coregrind/m_demangle/ |
safe-ctype.c | 7 This file is part of the libiberty library. 8 Libiberty is free software; you can redistribute it and/or 13 Libiberty is distributed in the hope that it will be useful, 29 It is defined by @file{safe-ctype.h}, and will be an integer constant 34 The host character set is unknown - that is, not one of the next two 38 The host character set is ASCII. 41 The host character set is some variant of EBCDIC. (Only one of the 42 nineteen EBCDIC varying characters is tested; exercise caution.) 88 Note that, if the host character set is ASCII or a superset thereof 136 #define is macro [all...] |
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
ManifestDigestTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 38 InputStream is = new InputStream() { local 46 ManifestDigest.fromInputStream(is)); 50 InputStream is = new ByteArrayInputStream(MESSAGE_1); local 55 ManifestDigest actual = ManifestDigest.fromInputStream(is); 63 InputStream is = new ByteArrayInputStream(MESSAGE_1); local 65 ManifestDigest digest = ManifestDigest.fromInputStream(is);
|
/frameworks/base/libs/hwui/utils/ |
SortedListImpl.cpp | 11 * distributed under the License is distributed on an "AS IS" BASIS, 88 const size_t is = itemSize(); local 91 ssize_t err = add(reinterpret_cast<const char*> (buffer) + i * is);
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
PropertyNodesVerifier.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 56 public void verify(InputStream is, int vcardType) throws IOException, VCardException { 58 verify(is, vcardType, parser); 61 public void verify(InputStream is, int vcardType, final VCardParser parser) 65 parser.parse(is); 67 if (is != null) { 69 is.close();
|
/libcore/luni/src/main/java/libcore/net/url/ |
FileURLConnection.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 36 * This class is responsible for connecting, getting content and input stream of 43 private InputStream is; field in class:FileURLConnection 55 * @param url The URL this connection is connected to 68 * by this <code>URL</code>. If the file is a directory, it will return 79 is = getDirectoryListing(f); 82 is = new BufferedInputStream(new FileInputStream(f)); 103 // default is -1 132 result = guessContentTypeFromStream(is); [all...] |
/libcore/luni/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, 39 public byte[] getAllBytesFromStream(InputStream is) throws IOException { 44 while (is.available() > 0) { 45 iRead = is.read(buf, 0, buf.length); 252 assertEquals("incorrect contents", "This is also text", new String(buf, 297 InputStream is = null; local 300 is = zfile.getInputStream(zentry); 303 is.read(rbuf, 0, r = (int) zentry.getSize()); 304 assertEquals("getInputStream read incorrect data", "This is text" 357 InputStream is = zfile.getInputStream(zentry); local 403 InputStream is = zfile.getInputStream(zentry); local 463 InputStream is = Support_Resources.getStream("hyts_ZipFile.zip"); local [all...] |
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
IdentityScopeTest.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 49 IdentityScope is; field in class:IdentityScopeTest 69 is = new IdentityScopeStub("Aleksei Semenov"); 70 assertNotNull(is); 71 assertEquals("Aleksei Semenov", is.getName()); 79 is = new IdentityScopeStub("Aleksei Semenov", scope); 80 assertNotNull(is); 81 assertEquals("Aleksei Semenov", is.getName()); 82 assertEquals(scope.getName(), is.getScope().getName()) [all...] |
/libcore/luni/src/test/java/tests/api/java/lang/ |
Process2Test.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 52 InputStream is = process.getErrorStream(); local 55 int c = is.read(); 71 InputStream is = erProcess.getErrorStream(); local 74 int c = is.read();
|
/packages/apps/Calculator/src/com/android/calculator2/ |
Persist.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 52 InputStream is = new BufferedInputStream(mContext.openFileInput(FILE_NAME), 8192); local 53 DataInputStream in = new DataInputStream(is);
|
/packages/apps/CertInstaller/src/com/android/certinstaller/ |
CertInstallerMain.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 68 * There is a special INSTALL_AS_USER action that this activity is 77 // If bundle is empty of any actual credentials, install from external storage. 114 InputStream is = null; local 116 is = getContentResolver().openInputStream(data); 120 while ((read = is.read(buffer)) > 0) { 128 IoUtils.closeQuietly(is);
|
Util.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 48 ObjectInputStream is = local 50 return (T) is.readObject();
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
StockSource.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 84 InputStream is = null; local 88 is = mResources.openRawResource(PHOTOS[idx]); 91 is = null; 94 return is;
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
AccelerometerTestRenderer.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 167 * pseudovector in out. All arrays must be length 3 or more, and out is 304 InputStream is = mContext.getResources().openRawResource(R.raw.sns_texture); local 307 bitmap = BitmapFactory.decodeStream(is); 310 is.close();
|
/cts/hostsidetests/appsecurity/test-apps/MultiUserStorageApp/src/com/android/cts/multiuserstorageapp/ |
MultiUserStorageTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 67 // Expect that the value we wrote earlier is still valid and wasn't 133 final DataInputStream is = new DataInputStream(new FileInputStream(file)); local 135 return is.readInt(); 137 is.close();
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
MovieTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 115 InputStream is = getActivity().getResources().openRawResource(MOVIE); local 116 byte[] bytes = inputStreamToBytes(is); 118 is.close(); 126 InputStream is = getActivity().getResources() local 128 mMovie = Movie.decodeStream(is); 129 is.close();
|
TypefaceTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 172 InputStream is = getContext().getAssets().open("samplefont.ttf"); local 176 while ((readLength = is.read(dataBuffer)) != -1) { 179 is.close();
|
/cts/tests/tests/uidisolation/src/android/uidisolation/cts/ |
PermissionTestService.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 131 // testNetworkAccess is performed asynchronously and calls testNetworkAccessDone. 224 Log.e(TAG, "Test is bad, could not create the URL in " 228 InputStream is = null; local 230 is = url.openStream(); 233 int value = is.read(); 246 if (is != null) { 248 is.close();
|
/development/samples/ApiDemos/src/com/example/android/apis/content/ |
ExternalStorage.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 20 //class is in a sub-package. 195 // no error checking, and assumes the picture is small (does not 196 // try to copy it in chunks). Note that if external storage is 198 InputStream is = getResources().openRawResource(R.drawable.balloons); local 200 byte[] data = new byte[is.available()]; 201 is.read(data); 203 is.close(); 206 // Tell the media scanner about the new file so that it is 262 InputStream is = getResources().openRawResource(R.drawable.balloons); local 324 InputStream is = getResources().openRawResource(R.drawable.balloons); local [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
StaticTriangleRenderer.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 46 * provide a programming model that is closer to the C OpenGL ES APIs, which 96 * surface is created. 133 * Usually, the first thing one might want to do is to clear 134 * the screen. The most efficient way of doing this is to use 173 * be set when the viewport is resized. 189 InputStream is = mContext.getResources().openRawResource( local 193 bitmap = BitmapFactory.decodeStream(is); 196 is.close() [all...] |
TriangleRenderer.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 68 * surface is created. 91 InputStream is = mContext.getResources() local 95 bitmap = BitmapFactory.decodeStream(is); 98 is.close(); 120 * Usually, the first thing one might want to do is to clear 121 * the screen. The most efficient way of doing this is to use 160 * be set when the viewport is resized.
|
/external/apache-harmony/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/ |
DeflaterInputStreamTest.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 31 String testStr = "Hi,this is a test"; 33 InputStream is; field in class:DeflaterInputStreamTest 40 DeflaterInputStream dis = new DeflaterInputStream(is); 62 DeflaterInputStream dis = new DeflaterInputStream(is); 86 DeflaterInputStream dis = new DeflaterInputStream(is); 98 DeflaterInputStream dis = new DeflaterInputStream(is); 108 DeflaterInputStream dis = new DeflaterInputStream(is); 131 DeflaterInputStream dis = new DeflaterInputStream(is); [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ |
ClassLoaderTest.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 52 assertTrue("default domain is not dynamic", a.getProtectionDomain().implies(p)); 135 * and the same classloader. It is expected that both threads succeed but 171 java.io.InputStream is = null; local 173 is = u.openStream(); 174 assertNotNull("Resource returned is invalid", is); 175 is.close(); 189 java.io.InputStream is = null local 206 java.io.InputStream is = cl.getResourceAsStream("hyts_Foo.c"); local 264 InputStream is = getResourceAsStream(path + "A.class"); local [all...] |
ProcessTest.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 47 InputStream is = proc.getInputStream(); local 50 int c = is.read(); 55 is.close(); 80 // send data, and check if it is echoed back correctly 83 String str3 = "Here is some more data.\n"; 94 InputStream is = proc.getInputStream(); local 97 int c = is.read(); 102 is.close() [all...] |