Home
last modified time | relevance | path

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

12

/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.java241 DataOutputStream outputStream; in computeAndWriteDigestLocked() local
243 outputStream = new DataOutputStream( in computeAndWriteDigestLocked()
251 outputStream.write(digest, 0, DIGEST_SIZE_BYTES); in computeAndWriteDigestLocked()
252 outputStream.flush(); in computeAndWriteDigestLocked()
257 IoUtils.closeQuietly(outputStream); in computeAndWriteDigestLocked()
308 DataOutputStream outputStream; in formatPartitionLocked() local
310 outputStream = new DataOutputStream(new FileOutputStream(new File(mDataBlockFile))); in formatPartitionLocked()
318 outputStream.write(data, 0, DIGEST_SIZE_BYTES); in formatPartitionLocked()
319 outputStream.writeInt(PARTITION_TYPE_MARKER); in formatPartitionLocked()
320 outputStream.writeInt(0); // data size in formatPartitionLocked()
[all …]
/frameworks/av/media/libaaudio/examples/loopback/src/
Dloopback.cpp79 AAudioStream *outputStream, in MyDataCallbackProc() argument
84 (void) outputStream; in MyDataCallbackProc()
252 AAudioStream *outputStream = nullptr; in main() local
347 outputStream = player.getStream(); in main()
348 argParser.compareWithStream(outputStream); in main()
350 actualOutputFormat = AAudioStream_getFormat(outputStream); in main()
370 framesPerBurst = AAudioStream_getFramesPerBurst(outputStream); in main()
372 actualInputFormat = AAudioStream_getFormat(outputStream); in main()
423 int64_t outputFramesWritten = AAudioStream_getFramesWritten(outputStream); in main()
424 int64_t outputFramesRead = AAudioStream_getFramesRead(outputStream); in main()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DXmlUtilTest.java433 final ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in serializeWifiConfigurationForBackup() local
434 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeWifiConfigurationForBackup()
438 return outputStream.toByteArray(); in serializeWifiConfigurationForBackup()
445 final ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in serializeWifiConfigurationForConfigStore() local
446 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeWifiConfigurationForConfigStore()
450 return outputStream.toByteArray(); in serializeWifiConfigurationForConfigStore()
514 final ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in serializeDeserializeIpConfiguration() local
515 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeDeserializeIpConfiguration()
522 ByteArrayInputStream inputStream = new ByteArrayInputStream(outputStream.toByteArray()); in serializeDeserializeIpConfiguration()
534 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.java109 FileOutputStream outputStream = null; in sortKeyValueData() local
112 outputStream = new FileOutputStream(sortedData); in sortKeyValueData()
114 BackupDataOutput writer = new BackupDataOutput(outputStream.getFD()); in sortKeyValueData()
120 if (outputStream != null) { in sortKeyValueData()
121 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/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()
DNetworkListStoreDataTest.java200 final ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in serializeData() local
201 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeData()
204 return outputStream.toByteArray(); in serializeData()
/frameworks/support/tv-provider/src/android/support/media/tv/
DChannelLogoUtils.java128 try (OutputStream outputStream = context.getContentResolver().openOutputStream(localUri)) { in storeChannelLogo() argument
129 result = logo.compress(Bitmap.CompressFormat.PNG, 100, outputStream); in storeChannelLogo()
130 outputStream.flush(); in storeChannelLogo()
/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/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()
DPasspointConfigStoreDataTest.java208 final ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in serializeData() local
209 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeData()
212 return outputStream.toByteArray(); in serializeData()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DOwners.java534 FileOutputStream outputStream = null; in writeToFileLocked() local
536 outputStream = f.startWrite(); in writeToFileLocked()
538 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in writeToFileLocked()
553 f.finishWrite(outputStream); in writeToFileLocked()
554 outputStream = null; in writeToFileLocked()
558 if (outputStream != null) { in writeToFileLocked()
559 f.failWrite(outputStream); in writeToFileLocked()
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
DAutomaticActivity.java225 FileOutputStream outputStream = new FileOutputStream(outputFile); in finishTest() local
226 outputStream.write(outputString.getBytes()); in finishTest()
227 outputStream.close(); in finishTest()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiConfigStore.java274 final ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in serializeData() local
275 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeData()
294 return outputStream.toByteArray(); in serializeData()
/frameworks/support/samples/SupportLeanbackJank/src/com/google/android/leanbackjank/data/
DVideoProvider.java135 FileOutputStream outputStream = new FileOutputStream(file); in makeIcon() local
136 bitmap.compress(CompressFormat.JPEG, 90, outputStream); in makeIcon()
/frameworks/av/media/libstagefright/codecs/amrwbenc/inc/
Dcod_main.h91 unsigned short *outputStream; member
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DTestMtpManager.java143 try (final ParcelFileDescriptor.AutoCloseOutputStream outputStream = in importFile() argument
145 outputStream.write(mImportFileBytes.get(key)); in importFile()
/frameworks/base/libs/androidfw/include/androidfw/
DBackupHelpers.h141 BackupDataWriter* outputStream);
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Dbits.c46 unsigned short* dataOut = st->outputStream; in PackBits()
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3Device.cpp783 for (auto& outputStream : (*firstRequest)->mOutputStreams) { in convertMetadataListToRequestListLocked()
784 if (outputStream->isVideoStream()) { in convertMetadataListToRequestListLocked()
2099 sp<Camera3OutputStreamInterface> outputStream = mOutputStreams.editValueAt(i); in cancelStreamsConfigurationLocked() local
2100 if (outputStream->isConfiguring()) { in cancelStreamsConfigurationLocked()
2101 res = outputStream->cancelConfiguration(); in cancelStreamsConfigurationLocked()
2104 outputStream->getId(), strerror(-res), res); in cancelStreamsConfigurationLocked()
2184 camera3_stream_t *outputStream; in configureStreamsLocked() local
2185 outputStream = mOutputStreams.editValueAt(i)->startConfiguration(); in configureStreamsLocked()
2186 if (outputStream == NULL) { in configureStreamsLocked()
2191 streams.add(outputStream); in configureStreamsLocked()
[all …]

12