Home
last modified time | relevance | path

Searched refs:bos (Results 1 – 18 of 18) sorted by relevance

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/
DCdmaSmsCbTest.java89 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/
DUiAutomatorBridge.java113 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/
DRebootEscrowData.java119 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()
DAesEncryptionUtil.java87 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/
DRebootEscrowDataTest.java122 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/
DPeerDeviceSystemAttestationVerificationTest.kt145 val bos = ByteArrayOutputStream() in <lambda>() constant
147 bos.write(it.encoded) in <lambda>()
149 return bos.toByteArray() in <lambda>()
DSystemAttestationVerificationTest.kt210 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/
DImageLoaderTest.kt226 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/
DFileRotator.java409 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/
DAttestationVerificationPeerDeviceVerifierTest.kt226 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/
DFastDataPerfTest.java57 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/
DTypeface.java1334 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/
DTestDocumentsProvider.java332 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/
DAsmGeneratorTest.java371 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/
DWallpaperCropper.java662 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/
DBugreportReceiverTest.java804 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/
DAppIdleHistory.java883 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/
DMediaPlayer.java3164 final ByteArrayOutputStream bos = new ByteArrayOutputStream(); in addTimedTextSource()
3174 bos.write(buffer, 0, bytes); in addTimedTextSource()
3184 Pair.create(track, bos.toByteArray()); in addTimedTextSource()