/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/ |
D | BitmapHelper.java | 66 InputStream inputStream = httpConnection.getInputStream(); in fetchAndRescaleBitmap() local 67 int scaleFactor = findScaleFactor(width, height, inputStream); in fetchAndRescaleBitmap() 72 inputStream = httpConnection.getInputStream(); in fetchAndRescaleBitmap() 73 Bitmap bitmap = scaleBitmap(scaleFactor, inputStream); in fetchAndRescaleBitmap()
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
D | ActionBarShareActionProviderActivity.java | 95 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/ |
D | ImageDownloader.java | 268 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()
|
D | XmlDocumentProvider.java | 226 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/ |
D | VoicemailProviderHelpers.java | 118 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()
|
D | VoicemailProviderHelper.java | 110 public void setVoicemailContent(Uri voicemailUri, InputStream inputStream, String mimeType) in setVoicemailContent() argument
|
/development/samples/training/threadsample/src/com/example/android/threadsample/ |
D | RSSPullParser.java | 72 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/ |
D | ImageCache.java | 326 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/ |
D | SimpleWikiHelper.java | 191 InputStream inputStream = entity.getContent(); in getUrlContent() local 197 while ((readBytes = inputStream.read(sBuffer)) != -1) { in getUrlContent()
|
/development/samples/WiktionarySimple/src/com/example/android/simplewiktionary/ |
D | SimpleWikiHelper.java | 198 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/ |
D | CalendarQueryService.java | 203 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/ |
D | DictionaryDatabase.java | 205 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/ |
D | DeviceDetailFragment.java | 278 public static boolean copyFile(InputStream inputStream, OutputStream out) { in copyFile() argument 282 while ((len = inputStream.read(buf)) != -1) { in copyFile() 287 inputStream.close(); in copyFile()
|