Home
last modified time | relevance | path

Searched refs:outputStream (Results 1 – 25 of 72) 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/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/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/base/services/backup/java/com/android/server/backup/encryption/chunking/
DRawBackupWriter.java24 private final OutputStream outputStream; field in RawBackupWriter
28 public RawBackupWriter(OutputStream outputStream) { in RawBackupWriter() argument
29 this.outputStream = outputStream; in RawBackupWriter()
34 outputStream.write(bytes); in writeBytes()
50 outputStream.flush(); in flush()
DSingleStreamDiffScriptWriter.java44 public SingleStreamDiffScriptWriter(OutputStream outputStream, int maxNewByteChunkSize) { in SingleStreamDiffScriptWriter() argument
45 mOutputStream = outputStream; in SingleStreamDiffScriptWriter()
123 public SingleStreamDiffScriptWriter create(OutputStream outputStream) { in create() argument
125 outputStream = mOutputStreamWrapper.wrap(outputStream); in create()
127 return new SingleStreamDiffScriptWriter(outputStream, mMaxNewByteChunkSize); in create()
DDiffScriptBackupWriter.java39 public static DiffScriptBackupWriter newInstance(OutputStream outputStream) { in newInstance() argument
42 outputStream, ENCRYPTION_DIFF_SCRIPT_MAX_CHUNK_SIZE_BYTES); in newInstance()
/frameworks/base/services/core/java/com/android/server/
DPersistentDataBlockService.java290 DataOutputStream outputStream; in computeAndWriteDigestLocked() local
292 outputStream = new DataOutputStream( in computeAndWriteDigestLocked()
300 outputStream.write(digest, 0, DIGEST_SIZE_BYTES); in computeAndWriteDigestLocked()
301 outputStream.flush(); in computeAndWriteDigestLocked()
306 IoUtils.closeQuietly(outputStream); in computeAndWriteDigestLocked()
357 DataOutputStream outputStream; in formatPartitionLocked() local
359 outputStream = new DataOutputStream(new FileOutputStream(new File(mDataBlockFile))); in formatPartitionLocked()
367 outputStream.write(data, 0, DIGEST_SIZE_BYTES); in formatPartitionLocked()
368 outputStream.writeInt(PARTITION_TYPE_MARKER); in formatPartitionLocked()
369 outputStream.writeInt(0); // data size in formatPartitionLocked()
[all …]
DSensorPrivacyService.java102 FileOutputStream outputStream = null; in setSensorPrivacy() local
105 outputStream = mAtomicFile.startWrite(); in setSensorPrivacy()
106 serializer.setOutput(outputStream, StandardCharsets.UTF_8.name()); in setSensorPrivacy()
112 mAtomicFile.finishWrite(outputStream); in setSensorPrivacy()
115 mAtomicFile.failWrite(outputStream); in setSensorPrivacy()
177 FileOutputStream outputStream = null; in persistSensorPrivacyState() local
180 outputStream = mAtomicFile.startWrite(); in persistSensorPrivacyState()
181 serializer.setOutput(outputStream, StandardCharsets.UTF_8.name()); in persistSensorPrivacyState()
187 mAtomicFile.finishWrite(outputStream); in persistSensorPrivacyState()
190 mAtomicFile.failWrite(outputStream); in persistSensorPrivacyState()
/frameworks/av/media/libaaudio/examples/loopback/src/
Dloopback.cpp62 AAudioStream *outputStream = nullptr; member
106 * AAudioStream_getSampleRate(outputStream) in hangIfRequested()
159 AAudioStream *outputStream, in MyDataCallbackProc() argument
164 (void) outputStream; in MyDataCallbackProc()
395 AAudioStream *outputStream = nullptr; in main() local
521 outputStream = loopbackData.outputStream = player.getStream(); in main()
523 actualOutputFormat = AAudioStream_getFormat(outputStream); in main()
529 actualSampleRate = AAudioStream_getSampleRate(outputStream); in main()
532 outputFramesPerBurst = AAudioStream_getFramesPerBurst(outputStream); in main()
534 argParser.compareWithStream(outputStream); in main()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DXmlUtilTest.java444 final ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in testMacRandomizationSettingDefaultToRandomizationNone() local
445 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in testMacRandomizationSettingDefaultToRandomizationNone()
451 deserializeWifiConfiguration(outputStream.toByteArray()); in testMacRandomizationSettingDefaultToRandomizationNone()
461 final ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in serializeWifiConfigurationForBackup() local
462 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeWifiConfigurationForBackup()
466 return outputStream.toByteArray(); in serializeWifiConfigurationForBackup()
473 final ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in serializeWifiConfigurationForConfigStore() local
474 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeWifiConfigurationForConfigStore()
478 return outputStream.toByteArray(); in serializeWifiConfigurationForConfigStore()
542 final ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in serializeDeserializeIpConfiguration() local
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/
DByteString.cs324 internal void WriteRawBytesTo(CodedOutputStream outputStream) in WriteRawBytesTo() argument
326 outputStream.WriteRawBytes(bytes, 0, bytes.Length); in WriteRawBytesTo()
340 public void WriteTo(Stream outputStream) in WriteTo() argument
342 outputStream.Write(bytes, 0, bytes.Length); in WriteTo()
/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/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DInstallTask.java123 private boolean writeToOutputStreamFromAsset(OutputStream outputStream) { in writeToOutputStreamFromAsset() argument
124 if (outputStream == null) { in writeToOutputStreamFromAsset()
144 outputStream.write(inputBuf, 0, bytesRead); in writeToOutputStreamFromAsset()
148 outputStream.flush(); in writeToOutputStreamFromAsset()
/frameworks/base/services/backup/java/com/android/server/backup/
DKeyValueAdbRestoreEngine.java107 FileOutputStream outputStream = null; in sortKeyValueData() local
110 outputStream = new FileOutputStream(sortedData); in sortKeyValueData()
112 BackupDataOutput writer = new BackupDataOutput(outputStream.getFD()); in sortKeyValueData()
118 if (outputStream != null) { in sortKeyValueData()
119 IoUtils.closeQuietly(outputStream); in sortKeyValueData()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DLazyStringEndToEndTest.java86 CodedOutputStream outputStream = CodedOutputStream.newInstance(sink); in testParseAndWrite() local
87 tV2.writeTo(outputStream); in testParseAndWrite()
88 outputStream.flush(); in testParseAndWrite()
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/
DShadowFullBackup.java60 ObjectOutputStream outputStream = shadowBackupDataOutput.getOutputStream(); in backupToTar() local
61 outputStream.write(tarBlock.array()); in backupToTar()
62 outputStream.flush(); in backupToTar()
/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/hotspot2/
DPasspointConfigSharedStoreDataTest.java63 final ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in serializeData() local
64 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeData()
67 return outputStream.toByteArray(); in serializeData()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DRandomizedMacStoreDataTest.java63 final ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in serializeData() local
64 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeData()
67 return outputStream.toByteArray(); in serializeData()
DDeletedEphemeralSsidsStoreDataTest.java79 final ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in serializeData() local
80 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeData()
83 return outputStream.toByteArray(); in serializeData()
DSsidSetStoreDataTest.java81 final ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in serializeData() local
82 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeData()
85 return outputStream.toByteArray(); in serializeData()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DLazyStringEndToEndTest.java85 CodedOutputStream outputStream = CodedOutputStream.newInstance(sink); in testParseAndWrite() local
86 tV2.writeTo(outputStream); in testParseAndWrite()
87 outputStream.flush(); in testParseAndWrite()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DIpConfigStoreTest.java53 DataOutputStream outputStream = new DataOutputStream(byteStream); in backwardCompatibility2to3() local
59 writeDhcpConfigV2(outputStream, KEY_CONFIG, expectedConfig); in backwardCompatibility2to3()
132 DataOutputStream outputStream = new DataOutputStream(byteStream); in write() local
135 w.onWriteCalled(outputStream); in write()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/
DGPBDictionary.m344 void GPBDictionaryWriteToStreamInternalHelper(GPBCodedOutputStream *outputStream,
353 [outputStream writeInt32NoTag:tag];
359 [outputStream writeInt32NoTag:(int32_t)msgSize];
360 [outputStream writeString:kMapKeyFieldNumber value:key];
361 WriteDictObjectField(outputStream, obj, kMapValueFieldNumber, mapValueType);
895 //%- (void)writeToCodedOutputStream:(GPBCodedOutputStream *)outputStream
905 //% [outputStream writeInt32NoTag:tag];
909 //% [outputStream writeInt32NoTag:(int32_t)msgSize];
911 //% WriteDict##KEY_NAME##Field(outputStream, UNWRAP##KEY_NAME(aKey), kMapKeyFieldNumber, keyData…
912 //% WriteDict##VALUE_NAME##Field(outputStream, UNWRAP##VALUE_NAME(a##VNAME_VAR$u), kMapValueFiel…
[all …]
/frameworks/base/services/robotests/backup/src/com/android/server/backup/encryption/chunk/
DChunkListingMapTest.java176 ProtoOutputStream outputStream = new ProtoOutputStream(); in createChunkListingProto() local
179 writeToProtoOutputStream(outputStream, hashes[i], lengths[i]); in createChunkListingProto()
181 outputStream.flush(); in createChunkListingProto()
183 return outputStream.getBytes(); in createChunkListingProto()

123