/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/ |
D | FullBackupUtilsTest.java | 95 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/ |
D | lutgen.cpp | 142 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() 158 … outputStream << "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/ |
D | AudioHwDevice.cpp | 44 AudioStreamOut *outputStream = new AudioStreamOut(this, flags); in openOutputStream() local 53 status_t status = outputStream->open(handle, deviceType, 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, deviceType, &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/ |
D | PersistentDataBlockService.java | 290 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 …]
|
D | SensorPrivacyService.java | 102 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/base/services/backup/java/com/android/server/backup/encryption/chunking/ |
D | RawBackupWriter.java | 24 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()
|
D | SingleStreamDiffScriptWriter.java | 44 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()
|
D | DiffScriptBackupWriter.java | 39 public static DiffScriptBackupWriter newInstance(OutputStream outputStream) { in newInstance() argument 42 outputStream, ENCRYPTION_DIFF_SCRIPT_MAX_CHUNK_SIZE_BYTES); in newInstance()
|
/frameworks/av/media/libaaudio/examples/loopback/src/ |
D | loopback.cpp | 62 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/ |
D | XmlUtilTest.java | 501 final ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in testMacRandomizationSettingDefaultToRandomizationNone() local 502 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in testMacRandomizationSettingDefaultToRandomizationNone() 508 deserializeWifiConfiguration(outputStream.toByteArray()); in testMacRandomizationSettingDefaultToRandomizationNone() 518 final ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in serializeWifiConfigurationForBackup() local 519 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeWifiConfigurationForBackup() 523 return outputStream.toByteArray(); in serializeWifiConfigurationForBackup() 530 final ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in serializeWifiConfigurationForConfigStore() local 531 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeWifiConfigurationForConfigStore() 536 return outputStream.toByteArray(); in serializeWifiConfigurationForConfigStore() 603 final ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in serializeDeserializeIpConfiguration() local [all …]
|
/frameworks/base/drm/java/android/drm/ |
D | DrmUtils.java | 66 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/ |
D | KeyValueAdbRestoreEngine.java | 107 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/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/ |
D | InstallTask.java | 123 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/core/tests/BTtraffic/src/com/android/google/experimental/bttraffic/ |
D | BTtraffic.java | 216 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/robotests/src/com/android/server/testing/shadows/ |
D | ShadowFullBackup.java | 60 ObjectOutputStream outputStream = shadowBackupDataOutput.getOutputStream(); in backupToTar() local 61 outputStream.write(tarBlock.array()); in backupToTar() 62 outputStream.flush(); in backupToTar()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointConfigSharedStoreDataTest.java | 64 final ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in serializeData() local 65 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeData() 68 return outputStream.toByteArray(); in serializeData()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | IpConfigStoreTest.java | 53 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/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | RandomizedMacStoreDataTest.java | 64 final ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in serializeData() local 65 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeData() 68 return outputStream.toByteArray(); in serializeData()
|
D | DeletedEphemeralSsidsStoreDataTest.java | 80 final ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in serializeData() local 81 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeData() 85 return outputStream.toByteArray(); in serializeData()
|
D | SsidSetStoreDataTest.java | 83 final ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in serializeData() local 84 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeData() 87 return outputStream.toByteArray(); in serializeData()
|
D | NetworkRequestStoreDataTest.java | 82 final ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in serializeData() local 83 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeData() 86 return outputStream.toByteArray(); in serializeData()
|
D | WakeupConfigStoreDataTest.java | 77 final ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in serializeData() local 78 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeData() 81 return outputStream.toByteArray(); in serializeData()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/encryption/chunk/ |
D | ChunkListingMapTest.java | 176 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()
|
/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | SyntheticPasswordCrypto.java | 90 ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in encrypt() local 91 outputStream.write(iv); in encrypt() 92 outputStream.write(ciphertext); in encrypt() 93 return outputStream.toByteArray(); in encrypt()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | PictureCaptureDemo.java | 144 PipedOutputStream outputStream = new PipedOutputStream(inputStream); in deepCopy() local 146 src.writeToStream(outputStream); in deepCopy() 147 outputStream.close(); in deepCopy()
|