/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, 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/ |
D | PersistentDataBlockService.java | 242 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/ |
D | SliceXmlTest.java | 59 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/ |
D | loopback.cpp | 116 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/ |
D | XmlUtilTest.java | 434 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/ |
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 | 110 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/ |
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/tests/servicestests/src/com/android/server/net/ |
D | IpConfigStoreTest.java | 52 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/ |
D | WorkTypeConverters.java | 260 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/ |
D | ArchiveFile.kt | 45 override fun writeSelfTo(outputStream: OutputStream) { in writeSelfTo() 46 outputStream.write(data) in writeSelfTo()
|
D | ArchiveItem.kt | 56 fun writeSelfTo(outputStream: OutputStream)
|
D | Archive.kt | 102 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/ |
D | DeletedEphemeralSsidsStoreDataTest.java | 70 final ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in serializeData() local 71 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeData() 74 return outputStream.toByteArray(); in serializeData()
|
D | SsidSetStoreDataTest.java | 80 final ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in serializeData() local 81 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeData() 84 return outputStream.toByteArray(); in serializeData()
|
D | WakeupConfigStoreDataTest.java | 73 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/ |
D | ChannelLogoUtils.java | 129 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/ |
D | HeifWriterTest.java | 96 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/ |
D | SyntheticPasswordCrypto.java | 82 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/ |
D | Data.java | 296 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/ |
D | PasspointXmlUtilsTest.java | 189 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/ |
D | TracingController.java | 90 public abstract boolean stop(@Nullable OutputStream outputStream, in stop() argument
|
/frameworks/support/slices/view/src/androidTest/java/androidx/slice/render/ |
D | SliceRenderer.java | 184 ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in serAndUnSer() local 185 SliceUtils.serializeSlice(s, mContext, outputStream, "UTF-8", in serAndUnSer() 190 byte[] bytes = outputStream.toByteArray(); in serAndUnSer()
|