Home
last modified time | relevance | path

Searched refs:bos (Results 1 – 17 of 17) 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.java131 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in fromSyntheticPassword() local
132 DataOutputStream dos = new DataOutputStream(bos); in fromSyntheticPassword()
153 return new RebootEscrowData(spVersion, iv, syntheticPassword, bos.toByteArray(), in fromSyntheticPassword()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutPackageItem.java157 final BufferedOutputStream bos = new BufferedOutputStream(os); in saveToFile() local
161 itemOut.setOutput(bos, StandardCharsets.UTF_8.name()); in saveToFile()
168 bos.flush(); in saveToFile()
DUserManagerService.java2829 final BufferedOutputStream bos = new BufferedOutputStream(fos); in writeUserLP() local
2830 writeUserLP(userData, bos); in writeUserLP()
2953 final BufferedOutputStream bos = new BufferedOutputStream(fos); in writeUserListLP() local
2957 serializer.setOutput(bos, StandardCharsets.UTF_8.name()); in writeUserListLP()
4208 final BufferedOutputStream bos = new BufferedOutputStream(fos); in writeApplicationRestrictionsLAr() local
4211 serializer.setOutput(bos, StandardCharsets.UTF_8.name()); in writeApplicationRestrictionsLAr()
DShortcutService.java1015 final BufferedOutputStream bos = new BufferedOutputStream(os); in saveUserInternalLocked() local
1019 out.setOutput(bos, StandardCharsets.UTF_8.name()); in saveUserInternalLocked()
1026 bos.flush(); in saveUserInternalLocked()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsCollectionTest.java125 final ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testReadLegacyNetwork() local
126 collection.write(new DataOutputStream(bos)); in testReadLegacyNetwork()
134 collection.read(new ByteArrayInputStream(bos.toByteArray())); in testReadLegacyNetwork()
153 final ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testReadLegacyUid() local
154 collection.write(new DataOutputStream(bos)); in testReadLegacyUid()
162 collection.read(new ByteArrayInputStream(bos.toByteArray())); in testReadLegacyUid()
181 final ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testReadLegacyUidTags() local
182 collection.write(new DataOutputStream(bos)); in testReadLegacyUidTags()
190 collection.read(new ByteArrayInputStream(bos.toByteArray())); in testReadLegacyUidTags()
/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/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/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DOsuServerConnection.java527 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in getCert() local
534 bos.write(buf, 0, rd); in getCert()
537 bos.flush(); in getCert()
538 byte[] byteArray = bos.toByteArray(); in getCert()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiBackupRestoreTest.java1094 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in createWpaSupplicantConfBackupData() local
1095 OutputStreamWriter out = new OutputStreamWriter(bos); in createWpaSupplicantConfBackupData()
1101 return bos.toByteArray(); in createWpaSupplicantConfBackupData()
1177 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in createIpConfBackupData() local
1178 DataOutputStream out = new DataOutputStream(bos); in createIpConfBackupData()
1192 return bos.toByteArray(); in createIpConfBackupData()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiDiagnostics.java683 ByteArrayOutputStream bos = new ByteArrayOutputStream(input.length); in compressToBase64() local
688 bos.write(buf, 0, count); in compressToBase64()
693 bos.close(); in compressToBase64()
700 byte[] compressed = bos.toByteArray(); in compressToBase64()
/frameworks/base/packages/Shell/tests/src/com/android/shell/
DBugreportReceiverTest.java899 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in assertZipContent() local
900 Streams.copy(zis, bos); in assertZipContent()
901 String actualContent = new String(bos.toByteArray(), "UTF-8"); in assertZipContent()
902 bos.close(); in assertZipContent()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/usage/
DAppIdleHistory.java691 final BufferedOutputStream bos = new BufferedOutputStream(fos); in writeAppIdleTimes() local
694 xml.setOutput(bos, StandardCharsets.UTF_8.name()); in writeAppIdleTimes()
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperManagerService.java681 BufferedOutputStream bos = null; in generateCrop() local
764 bos = new BufferedOutputStream(f, 32*1024); in generateCrop()
765 finalCrop.compress(Bitmap.CompressFormat.JPEG, 100, bos); in generateCrop()
766bos.flush(); // don't rely on the implicit flush-at-close when noting success in generateCrop()
774 IoUtils.closeQuietly(bos); in generateCrop()
/frameworks/base/media/java/android/media/
DMediaPlayer.java2997 final ByteArrayOutputStream bos = new ByteArrayOutputStream(); in addTimedTextSource()
3007 bos.write(buffer, 0, bytes); in addTimedTextSource()
3017 Pair.create(track, bos.toByteArray()); in addTimedTextSource()