Home
last modified time | relevance | path

Searched refs:baos (Results 1 – 25 of 31) sorted by relevance

12

/packages/modules/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/table/packed/
DPackedTableReaderWriterTest.java79 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in headerFields() local
84 PackedTableWriter tableWriter = PackedTableWriter.create(baos, entrySizeBytes, keyBits, in headerFields()
88 BlockData blockData = new BlockData(createByteBuffer(baos.toByteArray())); in headerFields()
100 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in entryGetValue_int() local
105 baos, entrySizeBytes, keyBits, signedValue, null); in entryGetValue_int()
111 BlockData blockData = new BlockData(createByteBuffer(baos.toByteArray())); in entryGetValue_int()
119 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in entryGetValue_long() local
124 baos, entrySizeBytes, keyBits, signedValue, null); in entryGetValue_long()
136 BlockData blockData = new BlockData(createByteBuffer(baos.toByteArray())); in entryGetValue_long()
151 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in valueSizeMax_unsigned() local
[all …]
DIntValuePackedTableTest.java46 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in valueSizeTooBig() local
48 PackedTableWriter writer = PackedTableWriter.create(baos, 5, 4, signedValue, null); in valueSizeTooBig()
51 BlockData blockData = new BlockData(createByteBuffer(baos.toByteArray())); in valueSizeTooBig()
63 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in valueSizeMax_unsigned() local
65 try (PackedTableWriter writer = PackedTableWriter.create(baos, 5, 9, signedValue, null)) { in valueSizeMax_unsigned()
74 BlockData blockData = new BlockData(createByteBuffer(baos.toByteArray())); in valueSizeMax_unsigned()
86 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in valueSizeMax_signed() local
88 try (PackedTableWriter writer = PackedTableWriter.create(baos, 5, 8, signedValue, null)) { in valueSizeMax_signed()
97 BlockData blockData = new BlockData(createByteBuffer(baos.toByteArray())); in valueSizeMax_signed()
108 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in addEntry_outOfOrder() local
[all …]
/packages/apps/RemoteProvisioner/tests/unittests/src/com/android/remoteprovisioner/unittest/
DUtils.java128 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in encodeAndSignSigStructure() local
129 new CborEncoder(baos).encode(new CborBuilder() in encodeAndSignSigStructure()
138 return signer.sign(baos.toByteArray()); in encodeAndSignSigStructure()
142 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in encodeEd25519PubKey() local
143 new CborEncoder(baos).encode(new CborBuilder() in encodeEd25519PubKey()
151 return baos.toByteArray(); in encodeEd25519PubKey()
155 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in encodeX25519PubKey() local
158 new CborEncoder(baos).encode(new CborBuilder() in encodeX25519PubKey()
167 return baos.toByteArray(); in encodeX25519PubKey()
171 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in encodeSimpleMap() local
[all …]
DSystemInterfaceTest.java103 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in generateEekChain() local
104 new CborEncoder(baos).encode(new CborBuilder() in generateEekChain()
112 return baos.toByteArray(); in generateEekChain()
239 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in buildKdfContext() local
240 new CborEncoder(baos).encode(new CborBuilder() in buildKdfContext()
259 return baos.toByteArray(); in buildKdfContext()
264 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in buildEncStructure() local
265 new CborEncoder(baos).encode(new CborBuilder() in buildEncStructure()
272 return baos.toByteArray(); in buildEncStructure()
/packages/apps/RemoteProvisioner/src/com/android/remoteprovisioner/
DSystemInterface.java48 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in makeProtectedHeaders() local
49 new CborEncoder(baos).encode(new CborBuilder() in makeProtectedHeaders()
54 return baos.toByteArray(); in makeProtectedHeaders()
58 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in encodePayload() local
63 new CborEncoder(baos).encode(builder.end().build()); in encodePayload()
64 return baos.toByteArray(); in encodePayload()
90 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in generateCsr() local
91 new CborEncoder(baos).encode(new CborBuilder() in generateCsr()
100 return baos.toByteArray(); in generateCsr()
DCborUtils.java217 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in parseGeekResponse() local
218 new CborEncoder(baos).encode(curveAndEekChain.get(EEK_CERT_CHAIN_INDEX)); in parseGeekResponse()
220 resp.addGeek(curve.getValue().intValue(), baos.toByteArray()); in parseGeekResponse()
246 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in buildProvisioningInfo() local
247 new CborEncoder(baos).encode(new CborBuilder() in buildProvisioningInfo()
254 return baos.toByteArray(); in buildProvisioningInfo()
304 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in buildCertificateRequest() local
305 new CborEncoder(baos).encode(new CborBuilder() in buildCertificateRequest()
316 return baos.toByteArray(); in buildCertificateRequest()
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/block/read/
DBlockDataTest.java37 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in getSize() local
38 TypedOutputStream typedOutputStream = new TypedOutputStream(baos); in getSize()
45 byte[] blockDataBytes = baos.toByteArray(); in getSize()
53 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in getByteBuffer() local
54 TypedOutputStream typedOutputStream = new TypedOutputStream(baos); in getByteBuffer()
61 byte[] blockDataBytes = baos.toByteArray(); in getByteBuffer()
74 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in typedRandomAccess() local
75 TypedOutputStream typedOutputStream = new TypedOutputStream(baos); in typedRandomAccess()
91 byte[] blockDataBytes = baos.toByteArray(); in typedRandomAccess()
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/io/
DTypedStreamsTest.java41 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in writeReadOk() local
42 TypedOutputStream tos = new TypedOutputStream(baos); in writeReadOk()
78 byte[] bytes = baos.toByteArray(); in writeReadOk()
143 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in writeVarByteValueUnusedBitsCheck() local
144 TypedOutputStream tos = new TypedOutputStream(baos); in writeVarByteValueUnusedBitsCheck()
185 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in writeBoundChecks() local
186 TypedOutputStream tos = new TypedOutputStream(baos); in writeBoundChecks()
202 assertEquals(0, baos.toByteArray().length); in writeBoundChecks()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DSoftApBackupRestoreTest.java129 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in getBytesForBackup() local
130 DataOutputStream out = new DataOutputStream(baos); in getBytesForBackup()
139 return baos.toByteArray(); in getBytesForBackup()
347 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in retrieveVersion5BackupDataFromSoftApConfiguration() local
348 DataOutputStream out = new DataOutputStream(baos); in retrieveVersion5BackupDataFromSoftApConfiguration()
362 return baos.toByteArray(); in retrieveVersion5BackupDataFromSoftApConfiguration()
425 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in retrieveVersion6BackupDataFromSoftApConfiguration() local
426 DataOutputStream out = new DataOutputStream(baos); in retrieveVersion6BackupDataFromSoftApConfiguration()
441 return baos.toByteArray(); in retrieveVersion6BackupDataFromSoftApConfiguration()
451 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in retrieveVersion7BackupDataFromSoftApConfiguration() local
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DPhotoProcessor.java246 final ByteArrayOutputStream baos = new ByteArrayOutputStream(); in getCompressedBytes() local
247 final boolean compressed = b.compress(Bitmap.CompressFormat.JPEG, quality, baos); in getCompressedBytes()
248 baos.flush(); in getCompressedBytes()
249 baos.close(); in getCompressedBytes()
250 byte[] result = baos.toByteArray(); in getCompressedBytes()
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DDictionaryBackupAgent.java161 ByteArrayOutputStream baos = new ByteArrayOutputStream(cursor.getCount() * 10); in getDictionary() local
164 gzip = new GZIPOutputStream(baos); in getDictionary()
189 return baos.toByteArray(); in getDictionary()
199 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in restoreDictionary() local
203 baos.write(tempData, 0, got); in restoreDictionary()
206 dictionary = baos.toByteArray(); in restoreDictionary()
/packages/modules/GeoTZ/s2storage/src/write/java/com/android/timezone/location/storage/tzs2range/write/
DSuffixTableSharedDataWriter.java36 try (ByteArrayOutputStream baos = new ByteArrayOutputStream(); in toBytes() argument
37 TypedOutputStream tos = new TypedOutputStream(baos)) { in toBytes()
41 return baos.toByteArray(); in toBytes()
DSuffixTableWriter.java201 ByteArrayOutputStream baos = new ByteArrayOutputStream();
202 try (TypedOutputStream tos = new TypedOutputStream(baos)) {
207 return baos.toByteArray();
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/
DRequestGetMessage.java64 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in readResponse() local
70 baos.write(buf, 0, len); in readResponse()
81 bmsg = baos.toString(StandardCharsets.UTF_8.name()); in readResponse()
/packages/apps/CertInstaller/src/com/android/certinstaller/
DUtil.java34 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in toBytes() local
36 ObjectOutputStream os = new ObjectOutputStream(baos); in toBytes()
42 return baos.toByteArray(); in toBytes()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DEvenMoreAsserts.java69 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in assertImageRawData() local
74 baos.write(buffer, 0, count); in assertImageRawData()
78 assertImageRawData(context, expected, baos.toByteArray()); in assertImageRawData()
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/
DHttpFetcher.java83 final ByteArrayOutputStream baos = new ByteArrayOutputStream(); in sendRequestAsByteArray() local
88 baos.write(buffer, 0, bytesRead); in sendRequestAsByteArray()
92 handleBadResponse(url.toString(), baos.toByteArray()); in sendRequestAsByteArray()
99 byte[] response = baos.toByteArray(); in sendRequestAsByteArray()
/packages/providers/CallLogProvider/src/com/android/calllogbackup/
DCallLogBackupAgent.java426 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in addCallToBackup() local
427 DataOutputStream data = new DataOutputStream(baos); in addCallToBackup()
471 output.writeEntityHeader(Integer.toString(call.id), baos.size()); in addCallToBackup()
472 output.writeEntityData(baos.toByteArray(), baos.size()); in addCallToBackup()
475 Log.d(TAG, "Wrote call to backup: " + call + " with byte array: " + baos); in addCallToBackup()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DSoftApBackupRestore.java81 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in retrieveBackupDataFromSoftApConfiguration() local
83 DataOutputStream out = new DataOutputStream(baos); in retrieveBackupDataFromSoftApConfiguration()
118 return baos.toByteArray(); in retrieveBackupDataFromSoftApConfiguration()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DBitmapUtils.java242 ByteArrayOutputStream baos = new ByteArrayOutputStream(65536); in compressToBytes() local
243 bitmap.compress(CompressFormat.JPEG, quality, baos); in compressToBytes()
244 return baos.toByteArray(); in compressToBytes()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DInformationElementUtilTest.java75 final ByteArrayOutputStream baos = new ByteArrayOutputStream(); in concatenateByteArrays() local
77 baos.write(b); in concatenateByteArrays()
79 baos.flush(); in concatenateByteArrays()
80 return baos.toByteArray(); in concatenateByteArrays()
/packages/apps/Messaging/src/com/android/messaging/sms/
DDatabaseMessages.java656 final ByteArrayOutputStream baos = new ByteArrayOutputStream(); in loadText() local
662 baos.write(buffer, 0, len); in loadText()
677 data = baos.toByteArray(); in loadText()
/packages/apps/Dialer/java/com/android/dialer/contactphoto/
DContactPhotoManagerImpl.java1257 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in loadUriBasedPhotos() local
1261 baos.write(buffer, 0, size); in loadUriBasedPhotos()
1266 cacheBitmap(originalUri, baos.toByteArray(), false, uriRequest.getRequestedExtent()); in loadUriBasedPhotos()
/packages/apps/Contacts/src/com/android/contacts/model/
DContactLoader.java531 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in loadPhotoBinaryData() local
535 baos.write(buffer, 0, size); in loadPhotoBinaryData()
537 contactData.setPhotoBinaryData(baos.toByteArray()); in loadPhotoBinaryData()
/packages/apps/Dialer/java/com/android/contacts/common/model/
DContactLoader.java343 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in loadPhotoBinaryData() local
347 baos.write(buffer, 0, size); in loadPhotoBinaryData()
349 contactData.setPhotoBinaryData(baos.toByteArray()); in loadPhotoBinaryData()

12