Home
last modified time | relevance | path

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

/frameworks/base/media/mca/filterpacks/java/android/filterpacks/base/
DInputStreamSource.java68 ByteArrayOutputStream byteStream = new ByteArrayOutputStream(); in process() local
72 byteStream.write(buffer, 0, bytesRead); in process()
75 byteBuffer = ByteBuffer.wrap(byteStream.toByteArray()); in process()
/frameworks/ml/bordeaux/learning/predictor_histogram/java/android/bordeaux/learning/
DHistogramPredictor.java148 ByteArrayOutputStream byteStream = new ByteArrayOutputStream(); in getModel() local
149 ObjectOutputStream objStream = new ObjectOutputStream(byteStream); in getModel()
153 byte[] bytes = byteStream.toByteArray(); in getModel()
313 ByteArrayOutputStream byteStream = new ByteArrayOutputStream(); in getModel() local
314 ObjectOutputStream objStream = new ObjectOutputStream(byteStream); in getModel()
316 byte[] bytes = byteStream.toByteArray(); in getModel()
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
DLearning_StochasticLinearRanker.java110 ByteArrayOutputStream byteStream = new ByteArrayOutputStream(); in getModel() local
111 ObjectOutputStream objStream = new ObjectOutputStream(byteStream); in getModel()
114 byte[] bytes = byteStream.toByteArray(); in getModel()
/frameworks/base/core/java/android/gesture/
DGesture.java315 final ByteArrayOutputStream byteStream = in writeToParcel() local
317 final DataOutputStream outStream = new DataOutputStream(byteStream); in writeToParcel()
326 GestureUtils.closeStream(byteStream); in writeToParcel()
330 out.writeByteArray(byteStream.toByteArray()); in writeToParcel()
/frameworks/base/docs/html/training/wearables/data-layer/
Dassets.jd45 final ByteArrayOutputStream byteStream = new ByteArrayOutputStream();
46 bitmap.compress(Bitmap.CompressFormat.PNG, 100, byteStream);
47 return Asset.createFromBytes(byteStream.toByteArray());
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DRationalTest.java461 ByteArrayOutputStream byteStream = new ByteArrayOutputStream(); in serialize() local
462 try (ObjectOutputStream objectStream = new ObjectOutputStream(byteStream)) { in serialize()
465 return byteStream.toByteArray(); in serialize()