Lines Matching refs:is
11 * distributed under the License is distributed on an "AS IS" BASIS,
28 private final byte[] TEST_STRING1 = "This is a test".getBytes();
42 InputStream is = new LimitedLengthInputStream(mTestStream1, -1, TEST_STRING1.length);
52 InputStream is = new LimitedLengthInputStream(mTestStream1, 0, -1);
62 InputStream is = new LimitedLengthInputStream(null, 0, 1);
72 InputStream is = new LimitedLengthInputStream(mTestStream1, Long.MAX_VALUE - 1,
74 fail("Should fail when offset + length is > Long.MAX_VALUE");
88 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length);
89 assertEquals(length, is.read(temp, 0, temp.length));
94 assertEquals(-1, is.read(temp, 0, temp.length));
123 InputStream is = new LimitedLengthInputStream(mTestStream1, 0, TEST_STRING1.length + 10);
124 assertEquals(TEST_STRING1.length, is.read(temp, 0, TEST_STRING1.length + 10));
138 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length);
139 assertEquals(length, is.read(temp));
144 assertEquals(-1, is.read(temp));
168 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length);
171 assertEquals(TEST_STRING1[offset + i], is.read());
174 assertEquals(-1, is.read());