/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/util/ |
H A D | PositionInputStream.java | 28 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 D | PartialInputStream.java | 29 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 D | ClassLoaderObjectInputStream.java | 44 * @param inputStream the InputStream to work on 49 ClassLoader classLoader, InputStream inputStream) 51 super(inputStream); 48 ClassLoaderObjectInputStream( ClassLoader classLoader, InputStream inputStream) argument
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
H A D | UriUtil.java | 182 public static Uri persistContentToScratchSpace(final InputStream inputStream) { argument 185 return copyContent(context, inputStream, scratchSpaceUri); 195 InputStream inputStream = null; 199 inputStream = context.getContentResolver().openInputStream(sourceUri); 204 inputStream = new BufferedInputStream(ucon.getInputStream()); 206 return persistContentToScratchSpace(inputStream); 211 if (inputStream != null) { 213 inputStream.close(); 215 LogUtil.e(LogUtil.BUGLE_TAG, "error trying to close the inputStream", e); 228 final InputStream inputStream, fina 227 persistContent( final InputStream inputStream, final File outputDir, final String contentType) argument 280 copyContent( final Context context, final InputStream inputStream, final Uri targetUri) argument [all...] |
H A D | ImageUtils.java | 265 * @param inputStream The stream to the image file. Closed on completion 268 public static int getOrientation(final InputStream inputStream) { argument 270 if (inputStream != null) { 273 exifInterface.readExif(inputStream); 283 if (inputStream != null) { 284 inputStream.close(); 305 InputStream inputStream = contentResolver.openInputStream(contentUri); 306 return ImageUtils.isGif(inputStream); 316 * @param inputStream The stream to the image file. Closed on completion 319 public static boolean isGif(InputStream inputStream) { argument [all...] |
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
H A D | GifImageResource.java | 39 public static GifImageResource createGifImageResource(String key, InputStream inputStream) { argument 42 frameSequence = FrameSequence.decodeStream(inputStream); 45 inputStream.close();
|
H A D | ImageRequest.java | 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) { 201 return BitmapFactory.decodeStream(inputStream, null, options); 208 inputStream, options, sampledWidth, sampledHeight); 211 inputStream.close();
|
H A D | NetworkUriImageRequest.java | 71 "IOException trying to get inputStream for image with url: " 86 InputStream inputStream = null; 108 "IOException trying to get inputStream for image with url: " 111 if (inputStream != null) { 112 inputStream.close();
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
H A D | ContactsAsyncHelper.java | 103 InputStream inputStream = null; 106 inputStream = mContentResolverAdapter.openInputStream( 112 if (inputStream != null) { 113 args.photo = Drawable.createFromStream(inputStream, 130 if (inputStream != null) { 132 inputStream.close();
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/wear/ |
H A D | InstallTask.java | 136 InputStream inputStream = null; 140 inputStream = new ParcelFileDescriptor.AutoCloseInputStream(mParcelFileDescriptor); 142 while ((bytesRead = inputStream.read(inputBuf)) > -1) { 154 safeClose(inputStream);
|
/packages/apps/TV/src/com/android/tv/util/ |
H A D | BitmapUtils.java | 87 InputStream inputStream = null; 89 inputStream = new BufferedInputStream(getInputStream(context, uriString)); 90 inputStream.mark(MARK_READ_LIMIT); 95 BitmapFactory.decodeStream(inputStream, null, options); 99 inputStream.reset(); 106 close(inputStream); 107 inputStream = getInputStream(context, uriString); 114 Bitmap bitmap = BitmapFactory.decodeStream(inputStream, null, options); 129 close(inputStream);
|
/packages/apps/Camera2/src/com/android/camera/exif/ |
H A D | ExifReader.java | 38 * 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 D | ExifParser.java | 201 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/Gallery2/gallerycommon/src/com/android/gallery3d/exif/ |
H A D | ExifReader.java | 38 * 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 D | ExifParser.java | 201 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/Messaging/src/com/android/messaging/util/exif/ |
H A D | ExifReader.java | 39 * Parses the inputStream and and returns the EXIF data in an 45 protected ExifData read(InputStream inputStream) throws ExifInvalidFormatException, argument 47 ExifParser parser = ExifParser.parse(inputStream, mInterface);
|
H A D | ExifParser.java | 202 private ExifParser(InputStream inputStream, int options, ExifInterface iRef) argument 204 if (inputStream == null) { 205 throw new IOException("Null argument inputStream to ExifParser"); 211 mContainExifData = seekTiffData(inputStream); 212 mTiffStream = new CountedDataInputStream(inputStream); 240 protected static ExifParser parse(InputStream inputStream, int options, ExifInterface iRef) argument 242 return new ExifParser(inputStream, options, iRef); 253 protected static ExifParser parse(InputStream inputStream, ExifInterface iRef) argument 255 return new ExifParser(inputStream, OPTION_IFD_0 | OPTION_IFD_1 754 private boolean seekTiffData(InputStream inputStream) throw argument [all...] |
/packages/apps/Dialer/InCallUI/src/com/android/incallui/ |
H A D | ContactsAsyncHelper.java | 119 InputStream inputStream = null; 122 inputStream = args.context.getContentResolver() 128 if (inputStream != null) { 129 args.photo = Drawable.createFromStream(inputStream, 146 if (inputStream != null) { 148 inputStream.close();
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
H A D | AttachmentUtils.java | 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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | BinaryDictionaryFileDumper.java | 262 InputStream inputStream = null; 287 inputStream = FileTransforms.getUncompressedStream(decryptedStream); 291 inputStream = FileTransforms.getUncompressedStream(decryptedStream); 296 inputStream = FileTransforms.getDecryptedStream(uncompressedStream); 299 inputStream = FileTransforms.getUncompressedStream(originalSourceStream); 302 inputStream = FileTransforms.getDecryptedStream(originalSourceStream); 305 inputStream = originalSourceStream; 308 bufferedInputStream = new BufferedInputStream(inputStream); 354 closeCloseableAndReportAnyException(inputStream); 533 InputStream inputStream [all...] |
/packages/apps/Browser2/src/org/chromium/webview_shell/ |
H A D | WebViewLayoutTest.java | 123 FileInputStream inputStream = new FileInputStream(new File(fileName)); 125 BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream)); 139 inputStream.close();
|
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/ |
H A D | ReadWriteDraftMessageActionTest.java | 377 InputStream inputStream = null; 379 inputStream = mContext.getContentResolver().openInputStream(mOutputUri); 381 final int read = inputStream.read(buffer); 423 inputStream = null; 425 inputStream = mContext.getContentResolver().openInputStream(mOutputUri); 426 assertNull("Original draft content should have been deleted", inputStream); 429 inputStream = null; 431 inputStream = mContext.getContentResolver().openInputStream(mAnotherUri); 433 final int read = inputStream.read(buffer); 446 inputStream [all...] |
/packages/apps/Dialer/tests/src/com/android/dialer/voicemail/ |
H A D | VoicemailArchiveTest.java | 102 try (InputStream inputStream = assets.open(TEST_ASSET_NAME); 104 copyBetweenStreams(inputStream, outputStream);
|
/packages/apps/Calendar/src/com/android/calendar/ |
H A D | ContactsAsyncHelper.java | 92 InputStream inputStream = null; 94 inputStream = Contacts.openContactPhotoInputStream( 100 if (inputStream != null) { 101 args.result = Drawable.createFromStream(inputStream, args.uri.toString());
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
H A D | BitmapPool.java | 219 * @param inputStream InputStream load. Cannot be null. 226 public Bitmap decodeSampledBitmapFromInputStream(@NonNull final InputStream inputStream, argument 229 Assert.notNull(inputStream); 235 b = BitmapFactory.decodeStream(inputStream, null, optionsTmp); 240 b = BitmapFactory.decodeStream(inputStream, null, optionsTmp); 249 LogUtil.w(LogUtil.BUGLE_TAG, "Oom decoding inputStream");
|