Home
last modified time | relevance | path

Searched refs:byteArrayOutputStream (Results 1 – 9 of 9) sorted by relevance

/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/serializer/
H A DRuleBinarySerializerTest.java246 byteArrayOutputStream.write(DEFAULT_FORMAT_VERSION_BYTES); in testBinaryString_serializeValidCompoundFormula_notConnector()
247 byteArrayOutputStream.write(getBytes(expectedBits)); in testBinaryString_serializeValidCompoundFormula_notConnector()
296 byteArrayOutputStream.write(DEFAULT_FORMAT_VERSION_BYTES); in testBinaryString_serializeValidCompoundFormula_andConnector()
297 byteArrayOutputStream.write(getBytes(expectedBits)); in testBinaryString_serializeValidCompoundFormula_andConnector()
346 byteArrayOutputStream.write(DEFAULT_FORMAT_VERSION_BYTES); in testBinaryString_serializeValidCompoundFormula_orConnector()
347 byteArrayOutputStream.write(getBytes(expectedBits)); in testBinaryString_serializeValidCompoundFormula_orConnector()
379 byteArrayOutputStream.write(DEFAULT_FORMAT_VERSION_BYTES); in testBinaryString_serializeValidAtomicFormula_stringValue()
380 byteArrayOutputStream.write(getBytes(expectedBits)); in testBinaryString_serializeValidAtomicFormula_stringValue()
414 byteArrayOutputStream.write(getBytes(expectedBits)); in testBinaryString_serializeValidAtomicFormula_hashedValue()
443 byteArrayOutputStream.write(getBytes(expectedBits)); in testBinaryString_serializeValidAtomicFormula_integerValue()
[all …]
/aosp12/frameworks/base/services/core/java/com/android/server/timezonedetector/
H A DMetricsTimeZoneDetectorState.java299 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); in toBytes() local
300 ProtoOutputStream protoOutputStream = new ProtoOutputStream(byteArrayOutputStream); in toBytes()
314 closeQuietly(byteArrayOutputStream); in toBytes()
315 return byteArrayOutputStream.toByteArray(); in toBytes()
/aosp12/packages/apps/Camera2/src/com/android/camera/captureintent/
H A DCaptureIntentSession.java154 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); in saveAndFinish() local
156 exif.writeExif(data, byteArrayOutputStream); in saveAndFinish()
160 byte[] dataWithExif = byteArrayOutputStream.toByteArray(); in saveAndFinish()
/aosp12/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/testing/
H A DDiffScriptProcessor.java137 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); in readCommand() local
141 byteArrayOutputStream.write(b); in readCommand()
144 byte[] bytes = byteArrayOutputStream.toByteArray(); in readCommand()
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/
H A DResultStoreTest.java275 try (ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream()) { in writeBundleToFile() argument
276 persistableBundle.writeToStream(byteArrayOutputStream); in writeBundleToFile()
277 Files.write(file.toPath(), byteArrayOutputStream.toByteArray()); in writeBundleToFile()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/serialization/
H A DKeyChainSnapshotSerializerTest.java234 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); in roundTrip() local
235 KeyChainSnapshotSerializer.serialize(snapshot, byteArrayOutputStream); in roundTrip()
237 new ByteArrayInputStream(byteArrayOutputStream.toByteArray())); in roundTrip()
/aosp12/frameworks/base/telephony/java/android/telephony/mbms/
H A DDownloadRequest.java314 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); in toByteArray() local
315 ObjectOutputStream stream = new ObjectOutputStream(byteArrayOutputStream); in toByteArray()
319 return byteArrayOutputStream.toByteArray(); in toByteArray()
/aosp12/frameworks/base/services/core/java/com/android/server/policy/role/
H A DRoleServicePlatformHelperImpl.java302 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); in computePackageStateHash() local
303 DataOutputStream dataOutputStream = new DataOutputStream(byteArrayOutputStream); in computePackageStateHash()
334 return PackageUtils.computeSha256Digest(byteArrayOutputStream.toByteArray()); in computePackageStateHash()
/aosp12/frameworks/base/test-runner/src/android/test/
H A DInstrumentationTestRunner.java555 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); in onStart() local
556 PrintStream writer = new PrintStream(byteArrayOutputStream); in onStart()
576 byteArrayOutputStream.toString())); in onStart()