Searched refs:inputStream (Results 1 - 25 of 38) sorted by relevance

12

/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/util/
H A DPositionInputStream.java28 private final InputStream inputStream; field in class:PositionInputStream
32 public PositionInputStream(InputStream inputStream) { argument
33 this.inputStream = inputStream;
41 return inputStream.available();
45 int b = inputStream.read();
52 inputStream.close();
56 inputStream.reset();
61 return inputStream.markSupported();
65 inputStream
[all...]
H A DPartialInputStream.java29 public PartialInputStream(InputStream inputStream, long offset, long length) throws IOException { argument
30 super(inputStream);
31 inputStream.skip(offset);
/packages/apps/UnifiedEmail/src/org/apache/commons/io/input/
H A DClassLoaderObjectInputStream.java44 * @param inputStream the InputStream to work on
49 ClassLoader classLoader, InputStream inputStream)
51 super(inputStream);
48 ClassLoaderObjectInputStream( ClassLoader classLoader, InputStream inputStream) argument
/packages/apps/Browser/src/com/android/browser/
H A DWallpaperHandler.java188 InputStream inputStream = null;
191 inputStream = new ByteArrayInputStream(dataUri.getData());
194 inputStream = url.openStream();
196 return inputStream;
/packages/apps/Contacts/src/com/android/contacts/util/
H A DContactPhotoUtils.java149 InputStream inputStream = null;
153 inputStream = context.getContentResolver().openInputStream(
159 while ((length = inputStream.read(buffer)) > 0) {
168 Closeables.closeQuietly(inputStream);
/packages/apps/Camera2/src/com/android/camera/exif/
H A DExifReader.java38 * Parses the inputStream and and returns the EXIF data in an
44 protected ExifData read(InputStream inputStream) throws ExifInvalidFormatException, argument
46 ExifParser parser = ExifParser.parse(inputStream, mInterface);
H A DExifParser.java201 private ExifParser(InputStream inputStream, int options, ExifInterface iRef) argument
203 if (inputStream == null) {
204 throw new IOException("Null argument inputStream to ExifParser");
210 mContainExifData = seekTiffData(inputStream);
211 mTiffStream = new CountedDataInputStream(inputStream);
239 protected static ExifParser parse(InputStream inputStream, int options, ExifInterface iRef) argument
241 return new ExifParser(inputStream, options, iRef);
252 protected static ExifParser parse(InputStream inputStream, ExifInterface iRef) argument
254 return new ExifParser(inputStream, OPTION_IFD_0 | OPTION_IFD_1
752 private boolean seekTiffData(InputStream inputStream) throw argument
[all...]
/packages/apps/Exchange/src/com/android/exchange/adapter/
H A DItemOperationsParser.java101 * @param inputStream the InputStream we're reading the attachment from
107 public static void readChunked(final InputStream inputStream, final OutputStream outputStream, argument
116 final int read = inputStream.read(bytes, 0, CHUNK_SIZE);
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
H A DExifReader.java38 * Parses the inputStream and and returns the EXIF data in an
44 protected ExifData read(InputStream inputStream) throws ExifInvalidFormatException, argument
46 ExifParser parser = ExifParser.parse(inputStream, mInterface);
H A DExifParser.java201 private ExifParser(InputStream inputStream, int options, ExifInterface iRef) argument
203 if (inputStream == null) {
204 throw new IOException("Null argument inputStream to ExifParser");
210 mContainExifData = seekTiffData(inputStream);
211 mTiffStream = new CountedDataInputStream(inputStream);
239 protected static ExifParser parse(InputStream inputStream, int options, ExifInterface iRef) argument
241 return new ExifParser(inputStream, options, iRef);
252 protected static ExifParser parse(InputStream inputStream, ExifInterface iRef) argument
254 return new ExifParser(inputStream, OPTION_IFD_0 | OPTION_IFD_1
752 private boolean seekTiffData(InputStream inputStream) throw argument
[all...]
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/exif/
H A DExifReader.java38 * Parses the inputStream and and returns the EXIF data in an
44 protected ExifData read(InputStream inputStream) throws ExifInvalidFormatException, argument
46 ExifParser parser = ExifParser.parse(inputStream, mInterface);
H A DExifParser.java201 private ExifParser(InputStream inputStream, int options, ExifInterface iRef) argument
203 if (inputStream == null) {
204 throw new IOException("Null argument inputStream to ExifParser");
210 mContainExifData = seekTiffData(inputStream);
211 mTiffStream = new CountedDataInputStream(inputStream);
239 protected static ExifParser parse(InputStream inputStream, int options, ExifInterface iRef) argument
241 return new ExifParser(inputStream, options, iRef);
252 protected static ExifParser parse(InputStream inputStream, ExifInterface iRef) argument
254 return new ExifParser(inputStream, OPTION_IFD_0 | OPTION_IFD_1
752 private boolean seekTiffData(InputStream inputStream) throw argument
[all...]
/packages/apps/Mms/src/com/android/mms/exif/
H A DExifReader.java38 * Parses the inputStream and and returns the EXIF data in an
44 protected ExifData read(InputStream inputStream) throws ExifInvalidFormatException, argument
46 ExifParser parser = ExifParser.parse(inputStream, mInterface);
H A DExifParser.java201 private ExifParser(InputStream inputStream, int options, ExifInterface iRef) argument
203 if (inputStream == null) {
204 throw new IOException("Null argument inputStream to ExifParser");
210 mContainExifData = seekTiffData(inputStream);
211 mTiffStream = new CountedDataInputStream(inputStream);
239 protected static ExifParser parse(InputStream inputStream, int options, ExifInterface iRef) argument
241 return new ExifParser(inputStream, options, iRef);
252 protected static ExifParser parse(InputStream inputStream, ExifInterface iRef) argument
254 return new ExifParser(inputStream, OPTION_IFD_0 | OPTION_IFD_1
752 private boolean seekTiffData(InputStream inputStream) throw argument
[all...]
/packages/apps/InCallUI/src/com/android/incallui/
H A DContactsAsyncHelper.java188 InputStream inputStream = null;
191 inputStream = Contacts.openContactPhotoInputStream(
197 if (inputStream != null) {
198 args.photo = Drawable.createFromStream(inputStream,
215 if (inputStream != null) {
217 inputStream.close();
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DAttachmentUtils.java185 InputStream inputStream = null;
197 inputStream = new FileInputStream(fileDescriptor.getFileDescriptor());
207 inputStream = context.getContentResolver().openInputStream(attachment.contentUri);
213 int len = inputStream.read(bytes);
246 if (inputStream != null) {
247 inputStream.close();
/packages/apps/VoiceDialer/src/com/android/voicedialer/
H A DRecognizerLogger.java210 * @param inputStream
214 public InputStream logInputStream(final InputStream inputStream, final int sampleRate) { argument
220 return inputStream.available();
224 int rtn = inputStream.read(b, offset, length);
230 int rtn = inputStream.read(b);
236 int rtn = inputStream.read();
260 inputStream.close();
/packages/services/Telephony/src/com/android/phone/
H A DContactsAsyncHelper.java215 InputStream inputStream = null;
218 inputStream = Contacts.openContactPhotoInputStream(
224 if (inputStream != null) {
225 args.photo = Drawable.createFromStream(inputStream,
246 if (inputStream != null) {
248 inputStream.close();
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DBinaryDictionaryFileDumper.java250 InputStream inputStream = null;
275 inputStream = FileTransforms.getUncompressedStream(decryptedStream);
279 inputStream = FileTransforms.getUncompressedStream(decryptedStream);
284 inputStream = FileTransforms.getDecryptedStream(uncompressedStream);
287 inputStream = FileTransforms.getUncompressedStream(originalSourceStream);
290 inputStream = FileTransforms.getDecryptedStream(originalSourceStream);
293 inputStream = originalSourceStream;
296 bufferedInputStream = new BufferedInputStream(inputStream);
329 closeCloseableAndReportAnyException(inputStream);
/packages/apps/Calendar/src/com/android/calendar/
H A DContactsAsyncHelper.java92 InputStream inputStream = null;
94 inputStream = Contacts.openContactPhotoInputStream(
100 if (inputStream != null) {
101 args.result = Drawable.createFromStream(inputStream, args.uri.toString());
/packages/apps/Mms/src/com/android/mms/util/
H A DThumbnailManager.java454 InputStream inputStream;
456 inputStream = mContext.getContentResolver().openInputStream(uri);
463 BitmapFactory.decodeStream(inputStream, null, options);
464 closeSilently(inputStream);
468 inputStream = mContext.getContentResolver().openInputStream(uri);
478 Bitmap result = BitmapFactory.decodeStream(inputStream, null, options);
479 closeSilently(inputStream);
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppSendFileInfo.java81 FileInputStream inputStream, int status) {
85 mInputStream = inputStream;
80 BluetoothOppSendFileInfo(String fileName, String type, long length, FileInputStream inputStream, int status) argument
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
H A DDownloadProviderFunctionalTest.java108 InputStream inputStream = mResolver.openInputStream(downloadUri);
110 return readStream(inputStream);
112 inputStream.close();
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
H A DEmlAttachmentProvider.java285 InputStream inputStream = null;
290 inputStream = new FileInputStream(oldFilePath);
306 final int len = inputStream.read(data);
351 if (inputStream != null) {
352 inputStream.close();
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/parser/
H A DSimpleCharStream.java40 protected java.io.Reader inputStream; field in class:SimpleCharStream
127 if ((i = inputStream.read(buffer, maxNextCharInd,
130 inputStream.close();
260 inputStream = dstream;
283 inputStream = dstream;

Completed in 876 milliseconds

12