/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/ |
D | CdmaSmsCbTest.java | 89 BitwiseOutputStream bos = new BitwiseOutputStream(10); in createBearerDataStream() local 90 bos.write(8, SUBPARAM_MESSAGE_IDENTIFIER); in createBearerDataStream() 91 bos.write(8, 3); // length: 3 bytes in createBearerDataStream() 92 bos.write(4, BearerData.MESSAGE_TYPE_DELIVER); in createBearerDataStream() 93 bos.write(8, ((messageId >>> 8) & 0xff)); in createBearerDataStream() 94 bos.write(8, (messageId & 0xff)); in createBearerDataStream() 95 bos.write(1, 0); // no User Data Header in createBearerDataStream() 96 bos.write(3, 0); // reserved in createBearerDataStream() 99 bos.write(8, SUBPARAM_PRIORITY_INDICATOR); in createBearerDataStream() 100 bos.write(8, 1); // length: 1 byte in createBearerDataStream() [all …]
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | UiAutomatorBridge.java | 113 BufferedOutputStream bos = null; in takeScreenshot() local 115 bos = new BufferedOutputStream(new FileOutputStream(storePath)); in takeScreenshot() 116 if (bos != null) { in takeScreenshot() 117 screenshot.compress(Bitmap.CompressFormat.PNG, quality, bos); in takeScreenshot() 118 bos.flush(); in takeScreenshot() 124 if (bos != null) { in takeScreenshot() 126 bos.close(); in takeScreenshot()
|
/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | RebootEscrowData.java | 119 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in fromSyntheticPassword() local 120 DataOutputStream dos = new DataOutputStream(bos); in fromSyntheticPassword() 126 return new RebootEscrowData(spVersion, syntheticPassword, bos.toByteArray(), ks); in fromSyntheticPassword()
|
D | AesEncryptionUtil.java | 87 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in encrypt() local 88 DataOutputStream dos = new DataOutputStream(bos); in encrypt() 107 return bos.toByteArray(); in encrypt()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | RebootEscrowDataTest.java | 122 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in fromEncryptedData_legacyVersion_success() local 123 DataOutputStream dos = new DataOutputStream(bos); in fromEncryptedData_legacyVersion_success() 127 byte[] legacyBlob = bos.toByteArray(); in fromEncryptedData_legacyVersion_success()
|
/frameworks/base/tests/AttestationVerificationTest/src/android/security/attestationverification/ |
D | PeerDeviceSystemAttestationVerificationTest.kt | 145 val bos = ByteArrayOutputStream() in <lambda>() constant 147 bos.write(it.encoded) in <lambda>() 149 return bos.toByteArray() in <lambda>()
|
D | SystemAttestationVerificationTest.kt | 210 val bos = ByteArrayOutputStream() in <lambda>() constant 212 bos.write(it.encoded) in <lambda>() 214 return bos.toByteArray() in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/graphics/ |
D | ImageLoaderTest.kt | 226 val bos = in validDataIcon_returnsBitmapDrawable() constant 230 bitmap.compress(Bitmap.CompressFormat.PNG, 100, bos) in validDataIcon_returnsBitmapDrawable() 232 val array = bos.toByteArray() in validDataIcon_returnsBitmapDrawable() 245 val bos = in validDataIcon_loadSize_returnsNull() constant 249 bitmap.compress(Bitmap.CompressFormat.PNG, 100, bos) in validDataIcon_loadSize_returnsNull() 251 val array = bos.toByteArray() in validDataIcon_loadSize_returnsNull()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | FileRotator.java | 409 final BufferedOutputStream bos = new BufferedOutputStream(fos); in writeFile() local 411 writer.write(bos); in writeFile() 412 bos.flush(); in writeFile() 418 IoUtils.closeQuietly(bos); in writeFile()
|
/frameworks/base/tests/AttestationVerificationTest/src/com/android/server/security/ |
D | AttestationVerificationPeerDeviceVerifierTest.kt | 226 val bos = ByteArrayOutputStream() in fromPEMFileToByteArray() constant 228 bos.write(it.encoded) in fromPEMFileToByteArray() 230 return bos.toByteArray() in fromPEMFileToByteArray()
|
/frameworks/base/apct-tests/perftests/core/src/com/android/internal/util/ |
D | FastDataPerfTest.java | 57 final BufferedOutputStream bos = new BufferedOutputStream(os, BUFFER_SIZE); in timeWrite_Upstream() local 58 final DataOutputStream out = new DataOutputStream(bos); in timeWrite_Upstream()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Typeface.java | 1334 private static void writeString(ByteArrayOutputStream bos, String value) throws IOException { 1336 writeInt(bos, bytes.length); 1337 bos.write(bytes); 1340 private static void writeInt(ByteArrayOutputStream bos, int value) { 1342 bos.write((value >> 24) & 0xFF); 1343 bos.write((value >> 16) & 0xFF); 1344 bos.write((value >> 8) & 0xFF); 1345 bos.write(value & 0xFF);
|
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/ |
D | TestDocumentsProvider.java | 332 final ByteArrayOutputStream bos = new ByteArrayOutputStream(); in openDocumentThumbnail() local 333 bitmap.compress(CompressFormat.JPEG, 50, bos); in openDocumentThumbnail() 335 final ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in openDocumentThumbnail()
|
/frameworks/layoutlib/create/tests/src/com/android/tools/layoutlib/create/ |
D | AsmGeneratorTest.java | 371 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in getByteArray() local 375 bos.write(buffer, 0, read); in getByteArray() 377 return bos.toByteArray(); in getByteArray()
|
/frameworks/base/services/core/java/com/android/server/wallpaper/ |
D | WallpaperCropper.java | 662 BufferedOutputStream bos = null; in generateCropInternal() local 773 bos = new BufferedOutputStream(f, 32 * 1024); in generateCropInternal() 774 finalCrop.compress(Bitmap.CompressFormat.PNG, 100, bos); in generateCropInternal() 776 bos.flush(); in generateCropInternal() 782 IoUtils.closeQuietly(bos); in generateCropInternal()
|
/frameworks/base/packages/Shell/tests/src/com/android/shell/ |
D | BugreportReceiverTest.java | 804 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in assertZipContent() local 805 Streams.copy(zis, bos); in assertZipContent() 806 String actualContent = new String(bos.toByteArray(), "UTF-8"); in assertZipContent() 807 bos.close(); in assertZipContent()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/usage/ |
D | AppIdleHistory.java | 883 final BufferedOutputStream bos = new BufferedOutputStream(fos); in writeAppIdleTimes() local 886 xml.setOutput(bos, StandardCharsets.UTF_8.name()); in writeAppIdleTimes()
|
/frameworks/base/media/java/android/media/ |
D | MediaPlayer.java | 3164 final ByteArrayOutputStream bos = new ByteArrayOutputStream(); in addTimedTextSource() 3174 bos.write(buffer, 0, bytes); in addTimedTextSource() 3184 Pair.create(track, bos.toByteArray()); in addTimedTextSource()
|