Home
last modified time | relevance | path

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

123

/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/
DFullBackupUtilsTest.java95 DataOutputStream outputStream = new DataOutputStream(new FileOutputStream(mTemporaryFile)); in routeSocketDataToOutput_emptyInput_throwsEOFException() local
96 outputStream.close(); in routeSocketDataToOutput_emptyInput_throwsEOFException()
115 DataOutputStream outputStream = new DataOutputStream(new FileOutputStream(mTemporaryFile)); in routeSocketDataToOutput_incompleteChunkSizeInput_throwsEOFException() local
116 outputStream.writeByte(100); in routeSocketDataToOutput_incompleteChunkSizeInput_throwsEOFException()
117 outputStream.close(); in routeSocketDataToOutput_incompleteChunkSizeInput_throwsEOFException()
135 DataOutputStream outputStream = new DataOutputStream(new FileOutputStream(mTemporaryFile)); in routeSocketDataToOutput_validEmptyInput_doesNotWriteAnything() local
136 outputStream.writeInt(0); in routeSocketDataToOutput_validEmptyInput_doesNotWriteAnything()
137 outputStream.close(); in routeSocketDataToOutput_validEmptyInput_doesNotWriteAnything()
151 DataOutputStream outputStream = new DataOutputStream(new FileOutputStream(mTemporaryFile)); in routeSocketDataToOutput_notEnoughData_throwsEOFException() local
152 outputStream.writeInt(data.length + 1); in routeSocketDataToOutput_notEnoughData_throwsEOFException()
[all …]
/frameworks/native/libs/ui/tools/
Dlutgen.cpp142 ofstream outputStream(filename, ios::trunc); in main() local
143 if (outputStream.good()) { in main()
147 outputStream << "// generated with lutgen " << filename.c_str() << endl; in main()
148 outputStream << "// 3D LUT stored as an RGB16F texture, in GL order" << endl; in main()
149 outputStream << "// Size is " << gSize << "x" << gSize << "x" << gSize << endl; in main()
158outputStream << "const size_t LUT_" << src << "_TO_" << dst << "_SIZE = " << gSize << endl; in main()
159 outputStream << "const uint16_t LUT_" << src << "_TO_" << dst << "[] = {"; in main()
161 outputStream << "// From " << src << " to " << dst << endl; in main()
167 if (x % 4 == 0) outputStream << endl << " "; in main()
175 outputStream << "0x" << setfill('0') << setw(4) << hex << r << ", "; in main()
[all …]
/frameworks/av/services/audioflinger/
DAudioHwDevice.cpp44 AudioStreamOut *outputStream = new AudioStreamOut(this, flags); in openOutputStream() local
53 status_t status = outputStream->open(handle, devices, config, address); in openOutputStream()
56 delete outputStream; in openOutputStream()
57 outputStream = NULL; in openOutputStream()
77 outputStream = new SpdifStreamOut(this, flags, originalConfig.format); in openOutputStream()
78 status = outputStream->open(handle, devices, &originalConfig, address); in openOutputStream()
82 delete outputStream; in openOutputStream()
83 outputStream = NULL; in openOutputStream()
92 *ppStreamOut = outputStream; in openOutputStream()
/frameworks/base/services/core/java/com/android/server/
DPersistentDataBlockService.java242 DataOutputStream outputStream; in computeAndWriteDigestLocked() local
244 outputStream = new DataOutputStream( in computeAndWriteDigestLocked()
252 outputStream.write(digest, 0, DIGEST_SIZE_BYTES); in computeAndWriteDigestLocked()
253 outputStream.flush(); in computeAndWriteDigestLocked()
258 IoUtils.closeQuietly(outputStream); in computeAndWriteDigestLocked()
309 DataOutputStream outputStream; in formatPartitionLocked() local
311 outputStream = new DataOutputStream(new FileOutputStream(new File(mDataBlockFile))); in formatPartitionLocked()
319 outputStream.write(data, 0, DIGEST_SIZE_BYTES); in formatPartitionLocked()
320 outputStream.writeInt(PARTITION_TYPE_MARKER); in formatPartitionLocked()
321 outputStream.writeInt(0); // data size in formatPartitionLocked()
[all …]
/frameworks/support/slices/view/src/androidTest/java/androidx/slice/
DSliceXmlTest.java59 ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in testThrowForAction() local
63 SliceUtils.serializeSlice(s, mContext, outputStream, "UTF-8", new SliceUtils in testThrowForAction()
69 ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in testThrowForRemoteInput() local
73 SliceUtils.serializeSlice(s, mContext, outputStream, "UTF-8", new SliceUtils in testThrowForRemoteInput()
79 ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in testThrowForImage() local
83 SliceUtils.serializeSlice(s, mContext, outputStream, "UTF-8", new SliceUtils in testThrowForImage()
89 ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in testNoThrowForAction() local
93 SliceUtils.serializeSlice(s, mContext, outputStream, "UTF-8", new SliceUtils in testNoThrowForAction()
99 ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in testNoThrowForRemoteInput() local
103 SliceUtils.serializeSlice(s, mContext, outputStream, "UTF-8", new SliceUtils in testNoThrowForRemoteInput()
[all …]
/frameworks/av/media/libaaudio/examples/loopback/src/
Dloopback.cpp116 AAudioStream *outputStream, in MyDataCallbackProc() argument
121 (void) outputStream; in MyDataCallbackProc()
335 AAudioStream *outputStream = nullptr; in main() local
440 outputStream = player.getStream(); in main()
442 actualOutputFormat = AAudioStream_getFormat(outputStream); in main()
448 actualSampleRate = AAudioStream_getSampleRate(outputStream); in main()
451 outputFramesPerBurst = AAudioStream_getFramesPerBurst(outputStream); in main()
453 argParser.compareWithStream(outputStream); in main()
467 int32_t outputBufferCapacity = AAudioStream_getBufferCapacityInFrames(outputStream); in main()
551 int64_t outputFramesWritten = AAudioStream_getFramesWritten(outputStream); in main()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DXmlUtilTest.java434 final ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in serializeWifiConfigurationForBackup() local
435 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeWifiConfigurationForBackup()
439 return outputStream.toByteArray(); in serializeWifiConfigurationForBackup()
446 final ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in serializeWifiConfigurationForConfigStore() local
447 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeWifiConfigurationForConfigStore()
451 return outputStream.toByteArray(); in serializeWifiConfigurationForConfigStore()
515 final ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in serializeDeserializeIpConfiguration() local
516 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeDeserializeIpConfiguration()
523 ByteArrayInputStream inputStream = new ByteArrayInputStream(outputStream.toByteArray()); in serializeDeserializeIpConfiguration()
535 final ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in serializeNetworkSelectionStatus() local
[all …]
/frameworks/base/drm/java/android/drm/
DDrmUtils.java66 FileOutputStream outputStream = null; in writeToFile() local
70 outputStream = new FileOutputStream(path); in writeToFile()
71 outputStream.write(data); in writeToFile()
73 quietlyDispose(outputStream); in writeToFile()
/frameworks/base/services/backup/java/com/android/server/backup/
DKeyValueAdbRestoreEngine.java110 FileOutputStream outputStream = null; in sortKeyValueData() local
113 outputStream = new FileOutputStream(sortedData); in sortKeyValueData()
115 BackupDataOutput writer = new BackupDataOutput(outputStream.getFD()); in sortKeyValueData()
121 if (outputStream != null) { in sortKeyValueData()
122 IoUtils.closeQuietly(outputStream); in sortKeyValueData()
/frameworks/base/core/tests/BTtraffic/src/com/android/google/experimental/bttraffic/
DBTtraffic.java216 private void doListening(InputStream inputStream, OutputStream outputStream) in doListening() argument
229 outputStream.write(0x55); in doListening()
298 private void doSending(OutputStream outputStream) throws IOException { in doSending() argument
306 writeBytes(outputStream, bytes.length); in doSending()
307 outputStream.write(bytes, 0, bytes.length); in doSending()
321 private static void writeBytes(OutputStream outputStream, int value) throws IOException { in writeBytes() argument
324 outputStream.write(lengthBuffer.array(), lengthBuffer.position(), lengthBuffer.limit()); in writeBytes()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DIpConfigStoreTest.java52 DataOutputStream outputStream = new DataOutputStream(byteStream); in backwardCompatibility2to3() local
58 writeDhcpConfigV2(outputStream, KEY_CONFIG, expectedConfig); in backwardCompatibility2to3()
131 DataOutputStream outputStream = new DataOutputStream(byteStream); in write() local
134 w.onWriteCalled(outputStream); in write()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/model/
DWorkTypeConverters.java260 ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in contentUriTriggersToByteArray() local
263 objectOutputStream = new ObjectOutputStream(outputStream); in contentUriTriggersToByteArray()
280 outputStream.close(); in contentUriTriggersToByteArray()
285 return outputStream.toByteArray(); in contentUriTriggersToByteArray()
/frameworks/support/jetifier/jetifier/processor/src/main/kotlin/com/android/tools/build/jetifier/processor/archive/
DArchiveFile.kt45 override fun writeSelfTo(outputStream: OutputStream) { in writeSelfTo()
46 outputStream.write(data) in writeSelfTo()
DArchiveItem.kt56 fun writeSelfTo(outputStream: OutputStream)
DArchive.kt102 override fun writeSelfTo(outputStream: OutputStream) { in writeSelfTo()
103 val out = ZipOutputStream(outputStream) in writeSelfTo()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DDeletedEphemeralSsidsStoreDataTest.java70 final ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in serializeData() local
71 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeData()
74 return outputStream.toByteArray(); in serializeData()
DSsidSetStoreDataTest.java80 final ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in serializeData() local
81 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeData()
84 return outputStream.toByteArray(); in serializeData()
DWakeupConfigStoreDataTest.java73 final ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in serializeData() local
74 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeData()
77 return outputStream.toByteArray(); in serializeData()
/frameworks/support/tv-provider/src/main/java/androidx/tvprovider/media/tv/
DChannelLogoUtils.java129 try (OutputStream outputStream = context.getContentResolver().openOutputStream(localUri)) { in storeChannelLogo() argument
130 result = logo.compress(Bitmap.CompressFormat.PNG, 100, outputStream); in storeChannelLogo()
131 outputStream.flush(); in storeChannelLogo()
/frameworks/support/heifwriter/src/androidTest/java/androidx/heifwriter/
DHeifWriterTest.java96 FileOutputStream outputStream = null; in setUp() local
99 outputStream = new FileOutputStream(outputPath); in setUp()
100 copy(inputStream, outputStream); in setUp()
103 closeQuietly(outputStream); in setUp()
401 FileOutputStream outputStream = null; in doTest() local
431 outputStream = new FileOutputStream(outputFile); in doTest()
439 outputStream.write(data); in doTest()
470 if (outputStream != null) { in doTest()
471 outputStream.close(); in doTest()
/frameworks/base/services/core/java/com/android/server/locksettings/
DSyntheticPasswordCrypto.java82 ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in encrypt() local
83 outputStream.write(iv); in encrypt()
84 outputStream.write(ciphertext); in encrypt()
85 return outputStream.toByteArray(); in encrypt()
/frameworks/support/work/workmanager/src/main/java/androidx/work/
DData.java296 ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in toByteArray() local
299 objectOutputStream = new ObjectOutputStream(outputStream); in toByteArray()
316 outputStream.close(); in toByteArray()
322 if (outputStream.size() > MAX_DATA_BYTES) { in toByteArray()
326 return outputStream.toByteArray(); in toByteArray()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointXmlUtilsTest.java189 final ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in serializeAndDeserializePasspointConfiguration() local
190 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeAndDeserializePasspointConfiguration()
196 new ByteArrayInputStream(outputStream.toByteArray()); in serializeAndDeserializePasspointConfiguration()
/frameworks/base/core/java/android/webkit/
DTracingController.java90 public abstract boolean stop(@Nullable OutputStream outputStream, in stop() argument
/frameworks/support/slices/view/src/androidTest/java/androidx/slice/render/
DSliceRenderer.java184 ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in serAndUnSer() local
185 SliceUtils.serializeSlice(s, mContext, outputStream, "UTF-8", in serAndUnSer()
190 byte[] bytes = outputStream.toByteArray(); in serAndUnSer()

123