HomeSort by relevance Sort by last modified time
    Searched defs:is (Results 26 - 50 of 581) sorted by null

12 3 4 5 6 7 8 91011>>

  /cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/
ExternalStorageTest.java 11 * distributed under the License is distributed on an "AS IS" BASIS,
28 * Test if {@link Environment#getExternalStorageDirectory()} is readable.
40 final InputStream is = new FileInputStream(file); local
42 is.read();
44 is.close();
  /frameworks/base/core/tests/coretests/src/android/app/activity/
IntentSenderTest.java 11 * distributed under the License is distributed on an "AS IS" BASIS,
33 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, local
35 is.send();
37 is.cancel();
54 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, intent, 0); local
55 is.send(Activity.RESULT_CANCELED, finish, null);
57 is.cancel();
62 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, local
64 is.send()
81 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, intent, 0); local
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/content/
ReadAsset.java 11 * distributed under the License is distributed on an "AS IS" BASIS,
20 // class is in a sub-package.
46 // text view. Note that the text we are loading is ASCII, so we
49 InputStream is = getAssets().open("read_asset.txt"); local
54 int size = is.available();
58 is.read(buffer);
59 is.close();
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();
  /libcore/luni/src/main/java/libcore/net/url/
FtpURLInputStream.java 12 * distributed under the License is distributed on an "AS IS" BASIS,
27 * the control socket Object stays live while the stream is in use
31 private InputStream is; // Actual input stream field in class:FtpURLInputStream
35 public FtpURLInputStream(InputStream is, Socket controlSocket) {
36 this.is = is;
42 return is.read();
47 return is.read(buf, off, nbytes);
52 is.reset()
    [all...]
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/
FilterInputStreamTest.java 12 * distributed under the License is distributed on an "AS IS" BASIS,
31 public MyFilterInputStream(InputStream is) {
32 super(is);
38 private InputStream is; field in class:FilterInputStreamTest
48 assertTrue("Returned incorrect number of available bytes", is
56 is.close();
59 is.read();
77 assertTrue("markSupported returned true", !is.markSupported());
84 int c = is.read()
    [all...]
ObjectOutputStream2Test.java 12 * distributed under the License is distributed on an "AS IS" BASIS,
53 ObjectInputStream is = new ObjectInputStream(bis); local
54 Object readObj = is.readObject();
55 is.close();
  /external/hamcrest/src/org/hamcrest/core/
Is.java 15 * vs assertThat(cheese, is(equalTo(smelly)))
17 public class Is<T> extends BaseMatcher<T> {
21 public Is(Matcher<T> matcher) {
30 description.appendText("is ").appendDescriptionOf(matcher);
38 * vs assertThat(cheese, is(equalTo(smelly)))
41 public static <T> Matcher<T> is(Matcher<T> matcher) { method in class:Is
42 return new Is<T>(matcher);
46 * This is a shortcut to the frequently used is(equalTo(x)).
48 * eg. assertThat(cheese, is(equalTo(smelly))
52 public static <T> Matcher<T> is(T value) { method in class:Is
63 public static Matcher<Object> is(Class<?> type) { method in class:Is
    [all...]
  /libcore/luni/src/test/java/libcore/java/io/
OldByteArrayInputStreamTest.java 12 * distributed under the License is distributed on an "AS IS" BASIS,
25 private ByteArrayInputStream is; field in class:OldByteArrayInputStreamTest
81 assertTrue("Returned incorrect number of available bytes", is
89 is.read();
91 is.close();
96 is.read();
107 is.skip(3000);
108 is.mark(1000);
109 is.read(buf1, 0, buf1.length)
    [all...]
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
52 is.close();
62 testLength, is.available());
64 is.close();
66 is.available();
74 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...]
  /cts/tests/tests/content/src/android/content/res/cts/
RawResourceTest.java 11 * distributed under the License is distributed on an "AS IS" BASIS,
38 final InputStream is = mResources.openRawResource(R.raw.text); local
39 verifyTextAsset(is);
42 static void verifyTextAsset(final InputStream is) throws IOException {
48 while ((readCount = is.read(buffer, 0, buffer.length)) > 0) {
58 readCount = is.read(buffer, 0, buffer.length);
62 readCount = is.read(buffer, buffer.length, 0);
66 is.close();
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/res/
RawResourceLoaderTest.java 33 InputStream is = rawResourceLoader.getValue(R.raw.raw_resource); local
34 assertEquals("raw txt file contents", readString(is));
39 InputStream is = rawResourceLoader.getValue(R.raw.raw_no_ext); local
40 assertEquals("no ext file contents", readString(is));
43 private static String readString(InputStream is) throws IOException {
47 Reader reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
53 is.close();
  /frameworks/base/core/java/android/text/style/
ImageSpan.java 11 * distributed under the License is distributed on an "AS IS" BASIS,
136 InputStream is = mContext.getContentResolver().openInputStream( local
138 bitmap = BitmapFactory.decodeStream(is);
142 is.close();
  /frameworks/base/core/tests/coretests/src/android/content/
AssetTest.java 11 * distributed under the License is distributed on an "AS IS" BASIS,
35 public static void verifyTextAsset(InputStream is) throws IOException {
41 while ((readCount = is.read(buffer, 0, buffer.length)) > 0) {
51 readCount = is.read(buffer, 0, buffer.length);
55 readCount = is.read(buffer, buffer.length, 0);
59 is.close();
64 InputStream is = mAssets.open("text.txt"); local
65 verifyTextAsset(is);
  /packages/apps/Email/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/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...]
  /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...]
  /external/jmonkeyengine/engine/src/tools/jme3tools/savegame/
SaveGame.java 90 InputStream is = null; local
97 is = new GZIPInputStream(new BufferedInputStream(new FileInputStream(file)));
102 sav = imp.load(is);
107 if (is != null) {
109 is.close();
  /frameworks/base/core/java/com/android/internal/util/
MemInfoReader.java 11 * distributed under the License is distributed on an "AS IS" BASIS,
69 FileInputStream is = new FileInputStream("/proc/meminfo"); local
70 int len = is.read(mBuffer);
71 is.close();
  /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/graphics/java/android/graphics/
Movie.java 11 * distributed under the License is distributed on an "AS IS" BASIS,
45 public static native Movie decodeStream(InputStream is);
52 InputStream is; local
54 is = new FileInputStream(pathName);
59 return decodeTempStream(is);
71 private static Movie decodeTempStream(InputStream is) {
74 moov = decodeStream(is);
75 is.close();
80 If it happened on close, moov is still valid
    [all...]
  /frameworks/base/graphics/java/android/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
76 InputStream is = resources.openRawResource(resourceID); local
89 int bytesRead = is.read(pgm, pgmLength, bytesLeft);
96 is.close();
  /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/support/v8/renderscript/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
78 InputStream is = resources.openRawResource(resourceID); local
91 int bytesRead = is.read(pgm, pgmLength, bytesLeft);
98 is.close();

Completed in 429 milliseconds

12 3 4 5 6 7 8 91011>>