/packages/apps/VoiceDialer/src/com/android/voicedialer/ |
RecognizerLogger.java | 33 import java.io.InputStream; 209 * InputStream wrapper which will log the contents to a WAV file. 210 * @param inputStream 214 public InputStream logInputStream(final InputStream inputStream, final int sampleRate) { 217 return new InputStream() { 220 return inputStream.available(); 224 int rtn = inputStream.read(b, offset, length); 230 int rtn = inputStream.read(b) [all...] |
/packages/services/Telephony/src/com/android/phone/ |
ContactsAsyncHelper.java | 37 import java.io.InputStream; 215 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/ |
BinaryDictionaryFileDumper.java | 44 import java.io.InputStream; 249 final InputStream originalSourceStream; 250 InputStream inputStream = null; 251 InputStream uncompressedStream = null; 252 InputStream decryptedStream = null; 275 inputStream = FileTransforms.getUncompressedStream(decryptedStream); 279 inputStream = FileTransforms.getUncompressedStream(decryptedStream); 284 inputStream = FileTransforms.getDecryptedStream(uncompressedStream); 287 inputStream = FileTransforms.getUncompressedStream(originalSourceStream) [all...] |
/development/samples/XmlAdapters/src/com/example/android/xmladapters/ |
ImageDownloader.java | 38 import java.io.InputStream; 268 InputStream inputStream = null; 271 inputStream = entity.getContent(); 274 copy(inputStream, outputStream); 280 // FIXME : Should use BitmapFactory.decodeStream(inputStream) instead. 281 //final Bitmap bitmap = BitmapFactory.decodeStream(inputStream); 286 if (inputStream != null) { 287 inputStream.close(); 338 public void copy(InputStream in, OutputStream out) throws IOException [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowDrawable.java | 16 import java.io.InputStream; 34 private InputStream inputStream; 40 public static Drawable createFromStream(InputStream is, String srcName) { 51 public static Drawable createFromResourceStream(Resources res, TypedValue value, InputStream is, String srcName) { 56 public static Drawable createFromResourceStream(Resources res, TypedValue value, InputStream is, String srcName, BitmapFactory.Options opts) { 131 public InputStream getInputStream() { 132 return inputStream; 135 public void setInputStream(InputStream inputStream) { [all...] |
/external/smack/src/org/jivesoftware/smackx/filetransfer/ |
OutgoingFileTransfer.java | 230 InputStream inputStream = null;
232 inputStream = new FileInputStream(file);
233 writeToStream(inputStream, outputStream);
243 if (inputStream != null) {
244 inputStream.close();
276 public synchronized void sendStream(final InputStream in, final String fileName, final long fileSize, final String description){
|
/external/chromium_org/third_party/libxml/src/ |
parserInternals.c | [all...] |
/external/libxml2/ |
parserInternals.c | [all...] |
/external/objenesis/main/src/org/objenesis/instantiator/basic/ |
ObjectInputStreamInstantiator.java | 21 import java.io.InputStream; 42 private static class MockStream extends InputStream { 152 private ObjectInputStream inputStream; 157 this.inputStream = new ObjectInputStream(new MockStream(clazz)); 170 return inputStream.readObject();
|
/development/samples/VoicemailProviderDemo/src/com/example/android/voicemail/common/core/ |
VoicemailProviderHelpers.java | 33 import java.io.InputStream; 118 public void setVoicemailContent(Uri voicemailUri, InputStream inputStream, String mimeType) 120 setVoicemailContent(voicemailUri, null, inputStream, mimeType); 129 private void setVoicemailContent(Uri voicemailUri, byte[] inputBytes, InputStream inputStream, 131 if (inputBytes != null && inputStream != null) { 132 throw new IllegalArgumentException("Both inputBytes & inputStream non-null. Don't" + 142 } else if (inputStream != null) { 143 copyStreamData(inputStream, outputStream) [all...] |
/cts/tests/src/android/os/cts/ |
FileUtils.java | 23 import java.io.InputStream; 109 public static boolean copyToFile(InputStream inputStream, File destFile) { 118 while ((bytesRead = inputStream.read(buffer)) >= 0) { 149 public static byte[] readInputStreamFully(InputStream is) {
|
/development/samples/training/threadsample/src/com/example/android/threadsample/ |
RSSPullParser.java | 28 import java.io.InputStream; 67 * @param inputStream a stream of data containing XML elements, usually a RSS feed 72 public void parseXml(InputStream inputStream, 88 localXmlPullParser.setInput(inputStream, null);
|
/libcore/luni/src/main/java/java/security/cert/ |
CertificateFactory.java | 20 import java.io.InputStream; 193 public final Certificate generateCertificate(InputStream inStream) 211 * {@code InputStream}. The default encoding scheme is applied. 214 * {@code InputStream} with encoded data. 219 public final CertPath generateCertPath(InputStream inStream) throws CertificateException { 229 * {@code inputStream}, assuming the given {@code encoding} from 237 public final CertPath generateCertPath(InputStream inputStream, String encoding) 239 return spiImpl.engineGenerateCertPath(inputStream, encoding); 271 public final Collection<? extends Certificate> generateCertificates(InputStream inStream [all...] |
/external/chromium_org/third_party/libxslt/libxslt/ |
documents.c | 66 xmlParserInputPtr inputStream; 85 inputStream = xmlLoadExternalEntity((const char *) URI, NULL, pctxt); 86 if (inputStream == NULL) { 90 inputPush(pctxt, inputStream);
|
/external/libxslt/libxslt/ |
documents.c | 66 xmlParserInputPtr inputStream; 85 inputStream = xmlLoadExternalEntity((const char *) URI, NULL, pctxt); 86 if (inputStream == NULL) { 90 inputPush(pctxt, 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 | 164 SkFILEStream inputStream; 165 inputStream.setPath(inputPath.c_str()); 166 if (!inputStream.isValid()) { 171 SkAutoTUnref<SkPicture> picture(SkPicture::CreateFromStream(&inputStream));
|
/frameworks/volley/src/com/android/volley/toolbox/ |
HurlStack.java | 35 import java.io.InputStream; 135 InputStream inputStream; 137 inputStream = connection.getInputStream(); 139 inputStream = connection.getErrorStream(); 141 entity.setContent(inputStream);
|
/libcore/luni/src/main/java/java/lang/ |
ProcessManager.java | 24 import java.io.InputStream; 235 private final InputStream errorStream; 238 private final InputStream inputStream; 251 this.inputStream = new ProcessInputStream(in); 267 IoUtils.closeQuietly(inputStream); 281 public InputStream getErrorStream() { 285 public InputStream getInputStream() { 286 return this.inputStream;
|
/packages/apps/Calendar/src/com/android/calendar/ |
ContactsAsyncHelper.java | 33 import java.io.InputStream; 92 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/ |
ThumbnailManager.java | 39 import java.io.InputStream; 454 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);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
ExifParser.java | 22 import java.io.InputStream; 30 * InputStream, the caller can request which IFD's to read via 31 * {@link #parse(InputStream, int)} with given options. 201 private ExifParser(InputStream inputStream, int options, ExifInterface iRef) 203 if (inputStream == null) { 204 throw new IOException("Null argument inputStream to ExifParser"); 210 mContainExifData = seekTiffData(inputStream); 211 mTiffStream = new CountedDataInputStream(inputStream); 234 * Parses the the given InputStream with the given option [all...] |
/packages/apps/Camera2/src/com/android/camera/exif/ |
ExifParser.java | 22 import java.io.InputStream; 30 * InputStream, the caller can request which IFD's to read via 31 * {@link #parse(InputStream, int)} with given options. 201 private ExifParser(InputStream inputStream, int options, ExifInterface iRef) 203 if (inputStream == null) { 204 throw new IOException("Null argument inputStream to ExifParser"); 210 mContainExifData = seekTiffData(inputStream); 211 mTiffStream = new CountedDataInputStream(inputStream); 234 * Parses the the given InputStream with the given option [all...] |
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/ |
ExifParser.java | 22 import java.io.InputStream; 30 * InputStream, the caller can request which IFD's to read via 31 * {@link #parse(InputStream, int)} with given options. 201 private ExifParser(InputStream inputStream, int options, ExifInterface iRef) 203 if (inputStream == null) { 204 throw new IOException("Null argument inputStream to ExifParser"); 210 mContainExifData = seekTiffData(inputStream); 211 mTiffStream = new CountedDataInputStream(inputStream); 234 * Parses the the given InputStream with the given option [all...] |
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/exif/ |
ExifParser.java | 22 import java.io.InputStream; 30 * InputStream, the caller can request which IFD's to read via 31 * {@link #parse(InputStream, int)} with given options. 201 private ExifParser(InputStream inputStream, int options, ExifInterface iRef) 203 if (inputStream == null) { 204 throw new IOException("Null argument inputStream to ExifParser"); 210 mContainExifData = seekTiffData(inputStream); 211 mTiffStream = new CountedDataInputStream(inputStream); 234 * Parses the the given InputStream with the given option [all...] |