Home
last modified time | relevance | path

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

/development/samples/ApiDemos/src/com/example/android/apis/app/
DActionBarShareActionProviderActivity.java95 InputStream inputStream = null; in copyPrivateRawResuorceToPubliclyAccessibleFile() local
98 inputStream = getResources().openRawResource(R.raw.robot); in copyPrivateRawResuorceToPubliclyAccessibleFile()
104 while ((length = inputStream.read(buffer)) > 0){ in copyPrivateRawResuorceToPubliclyAccessibleFile()
114 inputStream.close(); in copyPrivateRawResuorceToPubliclyAccessibleFile()
/development/samples/XmlAdapters/src/com/example/android/xmladapters/
DImageDownloader.java268 InputStream inputStream = null; in doInBackground() local
271 inputStream = entity.getContent(); in doInBackground()
274 copy(inputStream, outputStream); in doInBackground()
286 if (inputStream != null) { in doInBackground()
287 inputStream.close(); in doInBackground()
DXmlDocumentProvider.java226 InputStream inputStream = null; in getUriXmlPullParser() local
234 inputStream = entity.getContent(); in getUriXmlPullParser()
243 parser.setInput(inputStream, null); in getUriXmlPullParser()
/development/samples/VoicemailProviderDemo/src/com/example/android/voicemail/common/core/
DVoicemailProviderHelpers.java118 public void setVoicemailContent(Uri voicemailUri, InputStream inputStream, String mimeType) in setVoicemailContent() argument
120 setVoicemailContent(voicemailUri, null, inputStream, mimeType); in setVoicemailContent()
129 private void setVoicemailContent(Uri voicemailUri, byte[] inputBytes, InputStream inputStream, in setVoicemailContent() argument
131 if (inputBytes != null && inputStream != null) { in setVoicemailContent()
142 } else if (inputStream != null) { in setVoicemailContent()
143 copyStreamData(inputStream, outputStream); in setVoicemailContent()
DVoicemailProviderHelper.java110 public void setVoicemailContent(Uri voicemailUri, InputStream inputStream, String mimeType) in setVoicemailContent() argument
/development/samples/training/threadsample/src/com/example/android/threadsample/
DRSSPullParser.java72 public void parseXml(InputStream inputStream, in parseXml() argument
88 localXmlPullParser.setInput(inputStream, null); in parseXml()
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
DImageCache.java326 InputStream inputStream = null; in getBitmapFromDiskCache() local
333 inputStream = snapshot.getInputStream(DISK_CACHE_INDEX); in getBitmapFromDiskCache()
334 if (inputStream != null) { in getBitmapFromDiskCache()
335 FileDescriptor fd = ((FileInputStream) inputStream).getFD(); in getBitmapFromDiskCache()
347 if (inputStream != null) { in getBitmapFromDiskCache()
348 inputStream.close(); in getBitmapFromDiskCache()
/development/samples/Wiktionary/src/com/example/android/wiktionary/
DSimpleWikiHelper.java191 InputStream inputStream = entity.getContent(); in getUrlContent() local
197 while ((readBytes = inputStream.read(sBuffer)) != -1) { in getUrlContent()
/development/samples/WiktionarySimple/src/com/example/android/simplewiktionary/
DSimpleWikiHelper.java198 InputStream inputStream = entity.getContent(); in getUrlContent() local
204 while ((readBytes = inputStream.read(sBuffer)) != -1) { in getUrlContent()
/development/samples/browseable/AgendaData/Application/src/com.example.android.wearable.agendadata/
DCalendarQueryService.java203 InputStream inputStream = Contacts.openContactPhotoInputStream(contentResolver, in getProfilePicture() local
206 if (null != inputStream) { in getProfilePicture()
208 Bitmap bitmap = BitmapFactory.decodeStream(inputStream); in getProfilePicture()
215 closeQuietly(inputStream); in getProfilePicture()
/development/samples/SearchableDictionary/src/com/example/android/searchabledict/
DDictionaryDatabase.java205 InputStream inputStream = resources.openRawResource(R.raw.definitions); in loadWords() local
206 BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream)); in loadWords()
/development/samples/WiFiDirectDemo/src/com/example/android/wifidirect/
DDeviceDetailFragment.java284 public static boolean copyFile(InputStream inputStream, OutputStream out) { in copyFile() argument
288 while ((len = inputStream.read(buf)) != -1) { in copyFile()
293 inputStream.close(); in copyFile()