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/tests/net/java/com/android/server/net/
DNetworkStatsCollectionTest.java126 final ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testReadLegacyNetwork() local
127 collection.write(new DataOutputStream(bos)); in testReadLegacyNetwork()
135 collection.read(new ByteArrayInputStream(bos.toByteArray())); in testReadLegacyNetwork()
154 final ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testReadLegacyUid() local
155 collection.write(new DataOutputStream(bos)); in testReadLegacyUid()
163 collection.read(new ByteArrayInputStream(bos.toByteArray())); in testReadLegacyUid()
182 final ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testReadLegacyUidTags() local
183 collection.write(new DataOutputStream(bos)); in testReadLegacyUidTags()
191 collection.read(new ByteArrayInputStream(bos.toByteArray())); in testReadLegacyUidTags()
/frameworks/base/core/java/com/android/internal/util/
DFileRotator.java380 final BufferedOutputStream bos = new BufferedOutputStream(fos); in writeFile() local
382 writer.write(bos); in writeFile()
383 bos.flush(); in writeFile()
386 IoUtils.closeQuietly(bos); in writeFile()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DOsuServerConnection.java501 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in getCert() local
508 bos.write(buf, 0, rd); in getCert()
511 bos.flush(); in getCert()
512 byte[] byteArray = bos.toByteArray(); in getCert()
/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/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/tests/wifitests/src/com/android/server/wifi/
DWifiBackupRestoreTest.java1026 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in createWpaSupplicantConfBackupData() local
1027 OutputStreamWriter out = new OutputStreamWriter(bos); in createWpaSupplicantConfBackupData()
1033 return bos.toByteArray(); in createWpaSupplicantConfBackupData()
1101 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in createIpConfBackupData() local
1102 DataOutputStream out = new DataOutputStream(bos); in createIpConfBackupData()
1113 return bos.toByteArray(); in createIpConfBackupData()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiDiagnostics.java665 ByteArrayOutputStream bos = new ByteArrayOutputStream(input.length); in compressToBase64() local
670 bos.write(buf, 0, count); in compressToBase64()
675 bos.close(); in compressToBase64()
682 byte[] compressed = bos.toByteArray(); in compressToBase64()
/frameworks/base/packages/Shell/tests/src/com/android/shell/
DBugreportReceiverTest.java897 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in assertZipContent() local
898 Streams.copy(zis, bos); in assertZipContent()
899 String actualContent = new String(bos.toByteArray(), "UTF-8"); in assertZipContent()
900 bos.close(); in assertZipContent()
/frameworks/base/services/usage/java/com/android/server/usage/
DAppIdleHistory.java598 final BufferedOutputStream bos = new BufferedOutputStream(fos); in writeAppIdleTimes() local
601 xml.setOutput(bos, StandardCharsets.UTF_8.name()); in writeAppIdleTimes()
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java2339 final BufferedOutputStream bos = new BufferedOutputStream(fos); in writeUserLP() local
2340 writeUserLP(userData, bos); in writeUserLP()
2463 final BufferedOutputStream bos = new BufferedOutputStream(fos); in writeUserListLP() local
2467 serializer.setOutput(bos, StandardCharsets.UTF_8.name()); in writeUserListLP()
3535 final BufferedOutputStream bos = new BufferedOutputStream(fos); in writeApplicationRestrictionsLAr() local
3538 serializer.setOutput(bos, StandardCharsets.UTF_8.name()); in writeApplicationRestrictionsLAr()
DShortcutService.java996 final BufferedOutputStream bos = new BufferedOutputStream(os); in saveUserInternalLocked() local
1000 out.setOutput(bos, StandardCharsets.UTF_8.name()); in saveUserInternalLocked()
1007 bos.flush(); in saveUserInternalLocked()
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperManagerService.java678 BufferedOutputStream bos = null; in generateCrop() local
761 bos = new BufferedOutputStream(f, 32*1024); in generateCrop()
762 finalCrop.compress(Bitmap.CompressFormat.JPEG, 100, bos); in generateCrop()
763bos.flush(); // don't rely on the implicit flush-at-close when noting success in generateCrop()
771 IoUtils.closeQuietly(bos); in generateCrop()
/frameworks/base/media/java/android/media/
DMediaPlayer.java2996 final ByteArrayOutputStream bos = new ByteArrayOutputStream(); in addTimedTextSource()
3006 bos.write(buffer, 0, bytes); in addTimedTextSource()
3016 Pair.create(track, bos.toByteArray()); in addTimedTextSource()