/libcore/luni/src/test/java/libcore/java/io/ |
OldObjectInputOutputStreamTest.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 30 private ObjectInputStream is; field in class:OldObjectInputOutputStreamTest 42 is.readBoolean()); 45 is.readBoolean(); 51 is.close(); 53 is.readBoolean(); 66 (byte) 127, is.readByte()); 69 is.readByte(); 75 is.close() [all...] |
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...] |
/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();
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
ICUConfig.java | 18 * ICUConfig is a class used for accessing ICU4J runtime configuration. 27 InputStream is = ICUData.getStream(CONFIG_PROPS_FILE); typedefs 28 if (is != null) { 30 CONFIG_PROPS.load(is); typedefs 32 is.close(); 56 * exist, <code>def</code> is returned.
|
/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...] |
/developers/build/prebuilts/gradle/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/utils/ |
BitmapHelper.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 40 public static Bitmap scaleBitmap(int scaleFactor, InputStream is) { 48 return BitmapFactory.decodeStream(is, null, bmOptions); 51 public static int findScaleFactor(int targetW, int targetH, InputStream is) { 55 BitmapFactory.decodeStream(is, null, bmOptions); 67 BufferedInputStream is = null; local 70 is = new BufferedInputStream(urlConnection.getInputStream()); 71 is.mark(MAX_READ_LIMIT_PER_IMG); 72 int scaleFactor = findScaleFactor(width, height, is); [all...] |
/developers/samples/android/media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/utils/ |
BitmapHelper.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 40 public static Bitmap scaleBitmap(int scaleFactor, InputStream is) { 48 return BitmapFactory.decodeStream(is, null, bmOptions); 51 public static int findScaleFactor(int targetW, int targetH, InputStream is) { 55 BitmapFactory.decodeStream(is, null, bmOptions); 67 BufferedInputStream is = null; local 70 is = new BufferedInputStream(urlConnection.getInputStream()); 71 is.mark(MAX_READ_LIMIT_PER_IMG); 72 int scaleFactor = findScaleFactor(width, height, is); [all...] |
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/ |
BitmapHelper.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 40 public static Bitmap scaleBitmap(int scaleFactor, InputStream is) { 48 return BitmapFactory.decodeStream(is, null, bmOptions); 51 public static int findScaleFactor(int targetW, int targetH, InputStream is) { 55 BitmapFactory.decodeStream(is, null, bmOptions); 67 BufferedInputStream is = null; local 70 is = new BufferedInputStream(urlConnection.getInputStream()); 71 is.mark(MAX_READ_LIMIT_PER_IMG); 72 int scaleFactor = findScaleFactor(width, height, is); [all...] |
/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...] |
/external/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/map/ |
main.cpp | 36 intstr_map is; local 38 is[85] = "goofy";// Set break point at this line. 39 is[1] = "is"; 40 is[2] = "smart"; 41 is[3] = "!!!"; 43 is.clear();// Set break point at this line. 50 ss["a Mac.."] = "..is always a Mac!";
|
/external/sfntly/cpp/src/test/ |
memory_io_test.cc | 11 * distributed under the License is distributed on an "AS IS" BASIS, 41 MemoryInputStream is; local 42 is.Attach(&(test_buffer[0]), kTestBufferLen); 43 EXPECT_EQ(is.Available(), (int32_t)kTestBufferLen); 46 EXPECT_EQ(is.Read(), '0'); // position 1 47 EXPECT_EQ(is.Read(), '1'); // position 2 48 EXPECT_EQ(is.Read(), '2'); // position 3 53 EXPECT_EQ(is.Read(&b), 7); // position 10 57 EXPECT_EQ(is.Read(&b, 7, 10), 10); // position 2 [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
ByteArrayInputStreamTest.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 27 private InputStream is; field in class:ByteArrayInputStreamTest 77 assertTrue("Returned incorrect number of available bytes", is 85 is.read(); 86 is.close(); 87 is.read(); // Should be able to read from a closed stream 96 is.skip(3000); 97 is.mark(1000); 98 is.read(buf1, 0, buf1.length) [all...] |
FilterInputStreamTest.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 32 public MyFilterInputStream(InputStream is) { 33 super(is); 38 private InputStream is; field in class:FilterInputStreamTest 95 * is called before a test is executed. 104 is = new MyFilterInputStream(new java.io.FileInputStream(fileName)); 109 * method is called after a test is executed [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();
|
/developers/build/prebuilts/gradle/Quiz/Application/src/main/java/com/example/android/wearable/quiz/ |
JsonUtils.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 39 InputStream is = context.getAssets().open(fileName); local 40 int size = is.available(); 42 is.read(buffer); 43 is.close();
|
/developers/build/prebuilts/gradle/RecipeAssistant/Application/src/main/java/com/example/android/wearable/recipeassistant/ |
AssetUtils.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 36 InputStream is = context.getAssets().open(asset); local 37 int size = is.available(); 39 is.read(buffer); 40 is.close(); 59 InputStream is = null; local 62 is = context.getAssets().open(asset); 63 if (is != null) { 64 bitmap = BitmapFactory.decodeStream(is); [all...] |
/developers/samples/android/wearable/wear/Quiz/Application/src/main/java/com/example/android/wearable/quiz/ |
JsonUtils.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 39 InputStream is = context.getAssets().open(fileName); local 40 int size = is.available(); 42 is.read(buffer); 43 is.close();
|
/developers/samples/android/wearable/wear/RecipeAssistant/Application/src/main/java/com/example/android/wearable/recipeassistant/ |
AssetUtils.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 36 InputStream is = context.getAssets().open(asset); local 37 int size = is.available(); 39 is.read(buffer); 40 is.close(); 59 InputStream is = null; local 62 is = context.getAssets().open(asset); 63 if (is != null) { 64 bitmap = BitmapFactory.decodeStream(is); [all...] |
/development/samples/browseable/Quiz/Application/src/com.example.android.wearable.quiz/ |
JsonUtils.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 39 InputStream is = context.getAssets().open(fileName); local 40 int size = is.available(); 42 is.read(buffer); 43 is.close();
|
/development/samples/browseable/RecipeAssistant/Application/src/com.example.android.wearable.recipeassistant/ |
AssetUtils.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 36 InputStream is = context.getAssets().open(asset); local 37 int size = is.available(); 39 is.read(buffer); 40 is.close(); 59 InputStream is = null; local 62 is = context.getAssets().open(asset); 63 if (is != null) { 64 bitmap = BitmapFactory.decodeStream(is); [all...] |
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/file/ |
FileToStreamDecoder.java | 35 InputStream is = null; local 38 is = fileOpener.open(source); 39 result = streamDecoder.decode(is, width, height); 41 if (is != null) { 43 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, 137 InputStream is = mContext.getContentResolver().openInputStream( local 139 bitmap = BitmapFactory.decodeStream(is); 143 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);
|