Home
last modified time | relevance | path

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

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/
DCdmaSmsCbTest.java88 BitwiseOutputStream bos = new BitwiseOutputStream(10); in createBearerDataStream() local
89 bos.write(8, SUBPARAM_MESSAGE_IDENTIFIER); in createBearerDataStream()
90 bos.write(8, 3); // length: 3 bytes in createBearerDataStream()
91 bos.write(4, BearerData.MESSAGE_TYPE_DELIVER); in createBearerDataStream()
92 bos.write(8, ((messageId >>> 8) & 0xff)); in createBearerDataStream()
93 bos.write(8, (messageId & 0xff)); in createBearerDataStream()
94 bos.write(1, 0); // no User Data Header in createBearerDataStream()
95 bos.write(3, 0); // reserved in createBearerDataStream()
98 bos.write(8, SUBPARAM_PRIORITY_INDICATOR); in createBearerDataStream()
99 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/apct-tests/perftests/core/src/com/android/internal/util/
DFastDataPerfTest.java54 final BufferedOutputStream bos = new BufferedOutputStream(os, BUFFER_SIZE); in timeWrite_Upstream() local
55 final DataOutput out = new DataOutputStream(bos); in timeWrite_Upstream()
57 bos.flush(); in timeWrite_Upstream()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DRebootEscrowDataTest.java117 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in fromEncryptedData_legacyVersion_success() local
118 DataOutputStream dos = new DataOutputStream(bos); in fromEncryptedData_legacyVersion_success()
122 byte[] legacyBlob = bos.toByteArray(); in fromEncryptedData_legacyVersion_success()
/frameworks/base/core/java/com/android/internal/util/
DFileRotator.java381 final BufferedOutputStream bos = new BufferedOutputStream(fos); in writeFile() local
383 writer.write(bos); in writeFile()
384 bos.flush(); in writeFile()
387 IoUtils.closeQuietly(bos); in writeFile()
/frameworks/base/graphics/java/android/graphics/
DTypeface.java1286 private static void writeString(ByteArrayOutputStream bos, String value) throws IOException {
1288 writeInt(bos, bytes.length);
1289 bos.write(bytes);
1292 private static void writeInt(ByteArrayOutputStream bos, int value) {
1294 bos.write((value >> 24) & 0xFF);
1295 bos.write((value >> 16) & 0xFF);
1296 bos.write((value >> 8) & 0xFF);
1297 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.java308 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in getByteArray() local
312 bos.write(buffer, 0, read); in getByteArray()
314 return bos.toByteArray(); in getByteArray()
/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.java694 final BufferedOutputStream bos = new BufferedOutputStream(fos); in writeAppIdleTimes() local
697 xml.setOutput(bos, StandardCharsets.UTF_8.name()); in writeAppIdleTimes()
/frameworks/base/telephony/java/android/telephony/
DSubscriptionManager.java2464 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in serializeUriLists() local
2465 ObjectOutputStream oos = new ObjectOutputStream(bos); in serializeUriLists()
2468 return Base64.encodeToString(bos.toByteArray(), Base64.DEFAULT); in serializeUriLists()
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperManagerService.java671 BufferedOutputStream bos = null; in generateCrop() local
747 bos = new BufferedOutputStream(f, 32*1024); in generateCrop()
748 finalCrop.compress(Bitmap.CompressFormat.PNG, 100, bos); in generateCrop()
749bos.flush(); // don't rely on the implicit flush-at-close when noting success in generateCrop()
757 IoUtils.closeQuietly(bos); in generateCrop()
/frameworks/base/media/java/android/media/
DMediaPlayer.java3106 final ByteArrayOutputStream bos = new ByteArrayOutputStream(); in addTimedTextSource()
3116 bos.write(buffer, 0, bytes); in addTimedTextSource()
3126 Pair.create(track, bos.toByteArray()); in addTimedTextSource()