Home
last modified time | relevance | path

Searched refs:outputStream (Results 1 – 6 of 6) sorted by relevance

/development/samples/ApiDemos/src/com/example/android/apis/app/
DActionBarShareActionProviderActivity.java96 FileOutputStream outputStream = null; in copyPrivateRawResuorceToPubliclyAccessibleFile() local
99 outputStream = openFileOutput(SHARED_FILE_NAME, in copyPrivateRawResuorceToPubliclyAccessibleFile()
105 outputStream.write(buffer, 0, length); in copyPrivateRawResuorceToPubliclyAccessibleFile()
119 outputStream.close(); in copyPrivateRawResuorceToPubliclyAccessibleFile()
/development/samples/XmlAdapters/src/com/example/android/xmladapters/
DImageDownloader.java269 OutputStream outputStream = null; in doInBackground() local
273 outputStream = new BufferedOutputStream(dataStream, IO_BUFFER_SIZE); in doInBackground()
274 copy(inputStream, outputStream); in doInBackground()
275 outputStream.flush(); in doInBackground()
289 if (outputStream != null) { in doInBackground()
290 outputStream.close(); in doInBackground()
/development/samples/VoicemailProviderDemo/src/com/example/android/voicemail/common/core/
DVoicemailProviderHelpers.java137 OutputStream outputStream = null; in setVoicemailContent() local
139 outputStream = mContentResolver.openOutputStream(voicemailUri); in setVoicemailContent()
141 outputStream.write(inputBytes); in setVoicemailContent()
143 copyStreamData(inputStream, outputStream); in setVoicemailContent()
146 CloseUtils.closeQuietly(outputStream); in setVoicemailContent()
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
DImageFetcher.java266 public boolean downloadUrlToStream(String urlString, OutputStream outputStream) { in downloadUrlToStream() argument
276 out = new BufferedOutputStream(outputStream, IO_BUFFER_SIZE); in downloadUrlToStream()
/development/samples/browseable/StorageProvider/src/com.example.android.storageprovider/
DMyCloudProvider.java580 ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
585 outputStream.write(buffer, 0, size);
588 buffer = outputStream.toByteArray();
/development/samples/browseable/Camera2Raw/src/com.example.android.camera2raw/
DCamera2RawFragment.java1679 private static void closeOutput(OutputStream outputStream) {
1680 if (null != outputStream) {
1682 outputStream.close();