Home
last modified time | relevance | path

Searched refs:inputStream (Results 1 – 25 of 39) sorted by relevance

12

/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/util/
DPositionInputStream.java28 private final InputStream inputStream; field in PositionInputStream
32 public PositionInputStream(InputStream inputStream) { in PositionInputStream() argument
33 this.inputStream = inputStream; in PositionInputStream()
41 return inputStream.available(); in available()
45 int b = inputStream.read(); in read()
52 inputStream.close(); in close()
56 inputStream.reset(); in reset()
61 return inputStream.markSupported(); in markSupported()
65 inputStream.mark(readlimit); in mark()
70 final long c = inputStream.skip(n); in skip()
[all …]
DPartialInputStream.java29 … public PartialInputStream(InputStream inputStream, long offset, long length) throws IOException { in PartialInputStream() argument
30 super(inputStream); in PartialInputStream()
31 inputStream.skip(offset); in PartialInputStream()
/packages/apps/Mms/src/com/android/mms/exif/
DExifParser.java203 private ExifParser(InputStream inputStream, int options, ExifInterface iRef) in ExifParser() argument
205 if (inputStream == null) { in ExifParser()
212 mContainExifData = seekTiffData(inputStream); in ExifParser()
213 mTiffStream = new CountedDataInputStream(inputStream); in ExifParser()
241 protected static ExifParser parse(InputStream inputStream, int options, ExifInterface iRef) in parse() argument
243 return new ExifParser(inputStream, options, iRef); in parse()
254 protected static ExifParser parse(InputStream inputStream, ExifInterface iRef) in parse() argument
256 return new ExifParser(inputStream, OPTION_IFD_0 | OPTION_IFD_1 in parse()
754 private boolean seekTiffData(InputStream inputStream) throws IOException, in seekTiffData() argument
756 CountedDataInputStream dataStream = new CountedDataInputStream(inputStream); in seekTiffData()
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/exif/
DExifParser.java201 private ExifParser(InputStream inputStream, int options, ExifInterface iRef) in ExifParser() argument
203 if (inputStream == null) { in ExifParser()
210 mContainExifData = seekTiffData(inputStream); in ExifParser()
211 mTiffStream = new CountedDataInputStream(inputStream); in ExifParser()
239 protected static ExifParser parse(InputStream inputStream, int options, ExifInterface iRef) in parse() argument
241 return new ExifParser(inputStream, options, iRef); in parse()
252 protected static ExifParser parse(InputStream inputStream, ExifInterface iRef) in parse() argument
254 return new ExifParser(inputStream, OPTION_IFD_0 | OPTION_IFD_1 in parse()
752 private boolean seekTiffData(InputStream inputStream) throws IOException, in seekTiffData() argument
754 CountedDataInputStream dataStream = new CountedDataInputStream(inputStream); in seekTiffData()
/packages/apps/Camera2/src/com/android/camera/exif/
DExifParser.java201 private ExifParser(InputStream inputStream, int options, ExifInterface iRef) in ExifParser() argument
203 if (inputStream == null) { in ExifParser()
210 mContainExifData = seekTiffData(inputStream); in ExifParser()
211 mTiffStream = new CountedDataInputStream(inputStream); in ExifParser()
239 protected static ExifParser parse(InputStream inputStream, int options, ExifInterface iRef) in parse() argument
241 return new ExifParser(inputStream, options, iRef); in parse()
252 protected static ExifParser parse(InputStream inputStream, ExifInterface iRef) in parse() argument
254 return new ExifParser(inputStream, OPTION_IFD_0 | OPTION_IFD_1 in parse()
752 private boolean seekTiffData(InputStream inputStream) throws IOException, in seekTiffData() argument
754 CountedDataInputStream dataStream = new CountedDataInputStream(inputStream); in seekTiffData()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
DExifParser.java201 private ExifParser(InputStream inputStream, int options, ExifInterface iRef) in ExifParser() argument
203 if (inputStream == null) { in ExifParser()
210 mContainExifData = seekTiffData(inputStream); in ExifParser()
211 mTiffStream = new CountedDataInputStream(inputStream); in ExifParser()
239 protected static ExifParser parse(InputStream inputStream, int options, ExifInterface iRef) in parse() argument
241 return new ExifParser(inputStream, options, iRef); in parse()
252 protected static ExifParser parse(InputStream inputStream, ExifInterface iRef) in parse() argument
254 return new ExifParser(inputStream, OPTION_IFD_0 | OPTION_IFD_1 in parse()
752 private boolean seekTiffData(InputStream inputStream) throws IOException, in seekTiffData() argument
754 CountedDataInputStream dataStream = new CountedDataInputStream(inputStream); in seekTiffData()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DBinaryDictionaryFileDumper.java254 InputStream inputStream = null; in cacheWordList() local
279 inputStream = FileTransforms.getUncompressedStream(decryptedStream); in cacheWordList()
283 inputStream = FileTransforms.getUncompressedStream(decryptedStream); in cacheWordList()
288 inputStream = FileTransforms.getDecryptedStream(uncompressedStream); in cacheWordList()
291 inputStream = FileTransforms.getUncompressedStream(originalSourceStream); in cacheWordList()
294 inputStream = FileTransforms.getDecryptedStream(originalSourceStream); in cacheWordList()
297 inputStream = originalSourceStream; in cacheWordList()
300 bufferedInputStream = new BufferedInputStream(inputStream); in cacheWordList()
340 closeCloseableAndReportAnyException(inputStream); in cacheWordList()
/packages/services/Telecomm/src/com/android/server/telecom/
DContactsAsyncHelper.java117 InputStream inputStream = null; in handleMessage() local
120 inputStream = args.context.getContentResolver() in handleMessage()
126 if (inputStream != null) { in handleMessage()
127 args.photo = Drawable.createFromStream(inputStream, in handleMessage()
144 if (inputStream != null) { in handleMessage()
146 inputStream.close(); in handleMessage()
/packages/apps/InCallUI/src/com/android/incallui/
DContactsAsyncHelper.java117 InputStream inputStream = null; in handleMessage() local
120 inputStream = args.context.getContentResolver() in handleMessage()
126 if (inputStream != null) { in handleMessage()
127 args.photo = Drawable.createFromStream(inputStream, in handleMessage()
144 if (inputStream != null) { in handleMessage()
146 inputStream.close(); in handleMessage()
/packages/apps/VoiceDialer/src/com/android/voicedialer/
DRecognizerLogger.java214 public InputStream logInputStream(final InputStream inputStream, final int sampleRate) { in logInputStream() argument
220 return inputStream.available(); in logInputStream()
224 int rtn = inputStream.read(b, offset, length); in logInputStream()
230 int rtn = inputStream.read(b); in logInputStream()
236 int rtn = inputStream.read(); in logInputStream()
260 inputStream.close(); in logInputStream()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DAttachmentUtils.java184 InputStream inputStream = null; in cacheAttachmentUri() local
196 inputStream = new FileInputStream(fileDescriptor.getFileDescriptor()); in cacheAttachmentUri()
206 inputStream = context.getContentResolver().openInputStream(attachment.contentUri); in cacheAttachmentUri()
212 int len = inputStream.read(bytes); in cacheAttachmentUri()
245 if (inputStream != null) { in cacheAttachmentUri()
246 inputStream.close(); in cacheAttachmentUri()
/packages/apps/Mms/src/com/android/mms/util/
DThumbnailManager.java454 InputStream inputStream; in requestDecode() local
456 inputStream = mContext.getContentResolver().openInputStream(uri); in requestDecode()
463 BitmapFactory.decodeStream(inputStream, null, options); in requestDecode()
464 closeSilently(inputStream); in requestDecode()
468 inputStream = mContext.getContentResolver().openInputStream(uri); in requestDecode()
478 Bitmap result = BitmapFactory.decodeStream(inputStream, null, options); in requestDecode()
479 closeSilently(inputStream); in requestDecode()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/contenttype/parser/
DSimpleCharStream.java40 protected java.io.Reader inputStream; field in SimpleCharStream
127 if ((i = inputStream.read(buffer, maxNextCharInd, in FillBuff()
130 inputStream.close(); in FillBuff()
260 inputStream = dstream; in SimpleCharStream()
283 inputStream = dstream; in ReInit()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/parser/
DSimpleCharStream.java40 protected java.io.Reader inputStream; field in SimpleCharStream
127 if ((i = inputStream.read(buffer, maxNextCharInd, in FillBuff()
130 inputStream.close(); in FillBuff()
260 inputStream = dstream; in SimpleCharStream()
283 inputStream = dstream; in ReInit()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/parser/
DSimpleCharStream.java40 protected java.io.Reader inputStream; field in SimpleCharStream
127 if ((i = inputStream.read(buffer, maxNextCharInd, in FillBuff()
130 inputStream.close(); in FillBuff()
260 inputStream = dstream; in SimpleCharStream()
283 inputStream = dstream; in ReInit()
/packages/apps/Browser/src/com/android/browser/
DWallpaperHandler.java188 InputStream inputStream = null; in openStream() local
191 inputStream = new ByteArrayInputStream(dataUri.getData()); in openStream()
194 inputStream = url.openStream(); in openStream()
196 return inputStream; in openStream()
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DEmlAttachmentProvider.java315 InputStream inputStream = null; in copyAttachment() local
320 inputStream = new FileInputStream(oldFilePath); in copyAttachment()
336 final int len = inputStream.read(data); in copyAttachment()
381 if (inputStream != null) { in copyAttachment()
382 inputStream.close(); in copyAttachment()
/packages/apps/Contacts/src/com/android/contacts/util/
DContactPhotoUtils.java152 InputStream inputStream = null; in savePhotoFromUriToUri() local
156 inputStream = context.getContentResolver().openInputStream( in savePhotoFromUriToUri()
162 while ((length = inputStream.read(buffer)) > 0) { in savePhotoFromUriToUri()
171 Closeables.closeQuietly(inputStream); in savePhotoFromUriToUri()
/packages/apps/Calendar/src/com/android/calendar/
DContactsAsyncHelper.java92 InputStream inputStream = null; in handleMessage() local
94 inputStream = Contacts.openContactPhotoInputStream( in handleMessage()
100 if (inputStream != null) { in handleMessage()
101 args.result = Drawable.createFromStream(inputStream, args.uri.toString()); in handleMessage()
/packages/apps/Dialer/tests/src/com/android/dialer/
DCallDetailActivityTest.java265 InputStream inputStream = null; in setActivityIntentForRealFileVoicemailEntry() local
267 inputStream = assets.open(TEST_ASSET_NAME); in setActivityIntentForRealFileVoicemailEntry()
269 copyBetweenStreams(inputStream, outputStream); in setActivityIntentForRealFileVoicemailEntry()
272 Closeables.closeQuietly(inputStream); in setActivityIntentForRealFileVoicemailEntry()
/packages/apps/Mms/src/com/android/mms/ui/
DUriImage.java506 InputStream inputStream = context.getContentResolver().openInputStream(uri); in getOrientation() local
509 exif.readExif(inputStream); in getOrientation()
520 if (inputStream != null) { in getOrientation()
522 inputStream.close(); in getOrientation()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DDownloadProviderFunctionalTest.java108 InputStream inputStream = mResolver.openInputStream(downloadUri); in getDownloadContents() local
110 return readStream(inputStream); in getDownloadContents()
112 inputStream.close(); in getDownloadContents()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppObexClientSession.java355 InputStream inputStream = null; in sendFile() local
378 inputStream = putOperation.openInputStream(); in sendFile()
530 if (inputStream != null) { in sendFile()
531 inputStream.close(); in sendFile()
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
DContactLoader.java513 final InputStream inputStream; in loadPhotoBinaryData() local
519 inputStream = new URL(photoUri).openStream(); in loadPhotoBinaryData()
523 inputStream = fd.createInputStream(); in loadPhotoBinaryData()
529 while ((size = inputStream.read(buffer)) != -1) { in loadPhotoBinaryData()
534 inputStream.close(); in loadPhotoBinaryData()
/packages/wallpapers/PhaseBeam/src/com/android/phasebeam/
DPhaseBeamRS.java139 InputStream inputStream = mRes.openRawResource(R.raw.bgmesh); in createBackgroundMesh() local
140 BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream)); in createBackgroundMesh()
150 inputStream.close(); in createBackgroundMesh()

12