Home
last modified time | relevance | path

Searched refs:byteStream (Results 1 – 3 of 3) sorted by relevance

/development/samples/training/threadsample/src/com/example/android/threadsample/
DPhotoDownloadRunnable.java148 InputStream byteStream = null; in run() local
167 byteStream = httpConn.getInputStream(); in run()
214 readResult = byteStream.read(tempBuffer, bufferOffset, in run()
304 int readResult = byteStream.read( in run()
346 if (null != byteStream) { in run()
348 byteStream.close(); in run()
/development/samples/browseable/DataLayer/Application/src/com.example.android.wearable.datalayer/
DMainActivity.java310 ByteArrayOutputStream byteStream = null; in toAsset() local
312 byteStream = new ByteArrayOutputStream(); in toAsset()
313 bitmap.compress(Bitmap.CompressFormat.PNG, 100, byteStream); in toAsset()
314 return Asset.createFromBytes(byteStream.toByteArray()); in toAsset()
316 if (null != byteStream) { in toAsset()
318 byteStream.close(); in toAsset()
/development/samples/browseable/XYZTouristAttractions/Shared/src/com.example.android.xyztouristattractions.common/
DUtils.java164 final ByteArrayOutputStream byteStream = new ByteArrayOutputStream(); in createAssetFromBitmap() local
165 bitmap.compress(Bitmap.CompressFormat.PNG, 100, byteStream); in createAssetFromBitmap()
166 return Asset.createFromBytes(byteStream.toByteArray()); in createAssetFromBitmap()