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

12 3 4 5 6 7 8 91011>>

  /cts/tests/tests/content/src/android/content/res/cts/
AssetFileDescriptor_AutoCloseOutputStreamTest.java 71 FileInputStream inputStream = mAssetFileDes.createInputStream();
73 assertEquals(FILE_DATA[i], inputStream.read());
76 assertEquals(FILE_DATA[i], inputStream.read());
78 assertEquals(FILE_END, inputStream.read());
  /external/mockftpserver/branches/1.x_Branch/src/main/java/org/mockftpserver/stub/command/
FileRetrCommandHandler.java 19 import java.io.InputStream;
87 InputStream inputStream = getClass().getClassLoader().getResourceAsStream(file);
88 Assert.notNull(inputStream, "InputStream for [" + file + "]");
92 while ((numBytes = inputStream.read(buffer)) != -1) {
  /external/proguard/src/proguard/gui/
ReTraceRunnable.java 73 InputStream oldIn = System.in;
77 ByteArrayInputStream inputStream =
83 System.setIn(inputStream);
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
BitmapFactoryTest.java 13 import java.io.InputStream;
49 InputStream inputStream = Robolectric.application.getContentResolver().openInputStream(Uri.parse("content:/path"));
50 Bitmap bitmap = BitmapFactory.decodeStream(inputStream);
121 InputStream inputStream = Robolectric.application.getContentResolver().openInputStream(Uri.parse("content:/path"));
122 Bitmap bitmap = BitmapFactory.decodeStream(inputStream);
  /external/skia/tools/
render_pdfs_main.cpp 216 SkFILEStream inputStream;
217 inputStream.setPath(files[i].c_str());
218 if (!inputStream.isValid()) {
225 SkPicture::CreateFromStream(&inputStream));
  /frameworks/base/media/mca/filterfw/java/android/filterfw/io/
GraphReader.java 25 import java.io.InputStream;
42 InputStream inputStream = context.getResources().openRawResource(resourceId);
43 InputStreamReader reader = new InputStreamReader(inputStream);
  /libcore/dalvik/src/main/java/dalvik/system/profiler/
HprofBinaryToAscii.java 26 import java.io.InputStream;
89 DataInputStream inputStream = null;
91 inputStream = new DataInputStream(new BufferedInputStream(new FileInputStream(file)));
92 return BinaryHprof.readMagic(inputStream) != null;
96 closeQuietly(inputStream);
104 InputStream inputStream = null;
106 inputStream = new BufferedInputStream(new FileInputStream(file));
107 return read(inputStream);
109 closeQuietly(inputStream);
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/datamodel/media/
GifImageResource.java 28 import java.io.InputStream;
39 public static GifImageResource createGifImageResource(String key, InputStream inputStream) {
42 frameSequence = FrameSequence.decodeStream(inputStream);
45 inputStream.close();
ImageRequest.java 33 import java.io.InputStream;
96 protected abstract InputStream getInputStreamForResource() throws FileNotFoundException;
156 final InputStream inputStream = getInputStreamForResource();
157 if (inputStream != null) {
160 BitmapFactory.decodeStream(inputStream, null, options);
168 inputStream.close();
193 final InputStream inputStream = getInputStreamForResource();
194 if (inputStream != null)
    [all...]
VCardRequest.java 43 import java.io.InputStream;
182 InputStream is;
268 final InputStream inputStream = new ByteArrayInputStream(photoBytes);
270 avatarUri = UriUtil.persistContentToScratchSpace(inputStream);
277 inputStream.close();
  /external/glide/library/src/main/java/com/bumptech/glide/load/data/
MediaStoreThumbFetcher.java 15 import java.io.InputStream;
18 * A DataFetcher that retrieves an {@link java.io.InputStream} for a local Uri that may or may not be for a resource
24 public class MediaStoreThumbFetcher implements DataFetcher<InputStream> {
31 private final DataFetcher<InputStream> defaultFetcher;
35 private InputStream inputStream;
37 public MediaStoreThumbFetcher(Context context, Uri mediaStoreUri, DataFetcher<InputStream> defaultFetcher,
42 MediaStoreThumbFetcher(Context context, Uri mediaStoreUri, DataFetcher<InputStream> defaultFetcher, int width,
53 public InputStream loadData(Priority priority) throws Exception {
57 inputStream = fetcher.open(context, mediaStoreUri)
    [all...]
  /external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/
BlenderLoader.java 181 BlenderInputStream inputStream = new BlenderInputStream(assetInfo.openStream(), assetInfo.getManager());
187 blenderContext.setBlenderVersion(inputStream.getVersionNumber());
189 blenderContext.setInputStream(inputStream);
193 blenderContext.putHelper(ArmatureHelper.class, new ArmatureHelper(inputStream.getVersionNumber(), blenderKey.isFixUpAxis()));
194 blenderContext.putHelper(TextureHelper.class, new TextureHelper(inputStream.getVersionNumber(), blenderKey.isFixUpAxis()));
195 blenderContext.putHelper(MeshHelper.class, new MeshHelper(inputStream.getVersionNumber(), blenderKey.isFixUpAxis()));
196 blenderContext.putHelper(ObjectHelper.class, new ObjectHelper(inputStream.getVersionNumber(), blenderKey.isFixUpAxis()));
197 blenderContext.putHelper(CurvesHelper.class, new CurvesHelper(inputStream.getVersionNumber(), blenderKey.isFixUpAxis()));
198 blenderContext.putHelper(LightHelper.class, new LightHelper(inputStream.getVersionNumber(), blenderKey.isFixUpAxis()));
199 blenderContext.putHelper(CameraHelper.class, new CameraHelper(inputStream.getVersionNumber(), blenderKey.isFixUpAxis()));
    [all...]
  /external/jmonkeyengine/engine/src/core-plugins/com/jme3/audio/plugins/
WAVLoader.java 44 import java.io.InputStream;
126 private AudioData load(InputStream inputStream, boolean stream) throws IOException{
127 this.in = new LittleEndien(inputStream);
177 InputStream inputStream = null;
179 inputStream = info.openStream();
180 data = load(inputStream, ((AudioKey)info.getKey()).isStream());
182 inputStream = null;
186 if (inputStream != null)
    [all...]
  /external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/tracks/
AC3TrackImpl.java 10 import java.io.InputStream;
35 private InputStream inputStream;
41 public AC3TrackImpl(InputStream fin, String lang) throws IOException {
46 public AC3TrackImpl(InputStream fin) throws IOException {
50 private void parse(InputStream fin) throws IOException {
51 inputStream = fin;
133 inputStream.mark(100);
134 if (100 != inputStream.read(data, 0, 100)) {
137 inputStream.reset(); // Rewin
    [all...]
  /external/nist-sip/java/gov/nist/javax/sip/parser/
PipelinedMsgParser.java 181 private String readLine(InputStream inputStream) throws IOException {
185 int i = inputStream.read();
213 Pipeline inputStream = this.rawInputStream;
214 // inputStream = new MyFilterInputStream(this.rawInputStream);
231 line1 = readLine(inputStream);
255 line2 = readLine(inputStream);
321 int readlength = inputStream.read(message_body,
352 inputStream.close();
  /external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/android/
HttpResponseCacheTest.java 33 import java.io.InputStream;
153 InputStream inputStream = c1.getInputStream();
154 assertEquals('A', inputStream.read());
155 inputStream.close();
  /frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/loaders/
LoaderRaw.java 105 FileInputStream inputStream;
113 inputStream = new FileInputStream(file);
114 MappedByteBuffer mbb = inputStream.getChannel().map(FileChannel.MapMode.READ_ONLY,
118 inputStream.close();
  /libcore/benchmarks/src/benchmarks/
XmlParseBenchmark.java 43 ByteArrayInputStream inputStream;
59 inputStream = new ByteArrayInputStream(xmlBytes);
60 inputStream.mark(xmlBytes.length);
88 inputStream.reset();
90 saxParser.parse(inputStream, elementCounterSaxHandler);
107 inputStream.reset();
108 Document document = documentBuilder.parse(inputStream);
137 inputStream.reset();
139 xmlPullParser.setInput(inputStream, "UTF-8");
  /libcore/luni/src/main/java/java/nio/channels/
Channels.java 21 import java.io.InputStream;
55 * the channel to be wrapped by an InputStream.
56 * @return an InputStream that takes bytes from the given byte channel.
58 public static InputStream newInputStream(ReadableByteChannel channel) {
91 * @param inputStream
95 public static ReadableByteChannel newChannel(InputStream inputStream) {
96 return new InputStreamChannel(inputStream);
204 private static class ChannelInputStream extends InputStream {
288 private final InputStream inputStream
    [all...]
  /packages/apps/InCallUI/src/com/android/incallui/
ContactsAsyncHelper.java 34 import java.io.InputStream;
117 InputStream inputStream = null;
120 inputStream = args.context.getContentResolver()
126 if (inputStream != null) {
127 args.photo = Drawable.createFromStream(inputStream,
144 if (inputStream != null) {
146 inputStream.close();
  /packages/apps/UnifiedEmail/src/com/android/mail/utils/
AttachmentUtils.java 36 import java.io.InputStream;
184 InputStream inputStream = null;
196 inputStream = new FileInputStream(fileDescriptor.getFileDescriptor());
206 inputStream = context.getContentResolver().openInputStream(attachment.contentUri);
212 int len = inputStream.read(bytes);
245 if (inputStream != null) {
246 inputStream.close();
  /packages/services/Telecomm/src/com/android/server/telecom/
ContactsAsyncHelper.java 33 import java.io.InputStream;
95 InputStream inputStream = null;
98 inputStream = args.context.getContentResolver()
104 if (inputStream != null) {
105 args.photo = Drawable.createFromStream(inputStream,
122 if (inputStream != null) {
124 inputStream.close();
  /platform_testing/tests/perf/PerformanceAppTest/src/com/android/performanceapp/tests/
AppLaunchTests.java 23 import java.io.InputStream;
140 InputStream inputStream = new FileInputStream(parcelFile.getFileDescriptor());
146 while ((length = inputStream.read(buffer)) > 0) {
152 inputStream.close();
  /development/samples/Wiktionary/src/com/example/android/wiktionary/
SimpleWikiHelper.java 38 import java.io.InputStream;
191 InputStream inputStream = entity.getContent();
197 while ((readBytes = inputStream.read(sBuffer)) != -1) {
  /development/samples/WiktionarySimple/src/com/example/android/simplewiktionary/
SimpleWikiHelper.java 38 import java.io.InputStream;
198 InputStream inputStream = entity.getContent();
204 while ((readBytes = inputStream.read(sBuffer)) != -1) {

Completed in 1720 milliseconds

12 3 4 5 6 7 8 91011>>