Home
last modified time | relevance | path

Searched refs:bos (Results 1 – 19 of 19) 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/opt/gamesdk/third_party/protobuf-3.0.0/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DLiteralByteStringTest.java230 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testWriteTo() local
231 stringUnderTest.writeTo(bos); in testWriteTo()
232 byte[] roundTripBytes = bos.toByteArray(); in testWriteTo()
259 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testNewOutput() local
264 output.writeTo(bos); in testNewOutput()
266 Arrays.equals(referenceBytes, bos.toByteArray())); in testNewOutput()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DParseExceptionsTest.java73 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in setupDelimited() local
75 DescriptorProto.getDescriptor().toProto().writeDelimitedTo(bos); in setupDelimited()
79 serializedProto = bos.toByteArray(); in setupDelimited()
DLiteralByteStringTest.java300 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testWriteTo() local
301 stringUnderTest.writeTo(bos); in testWriteTo()
302 byte[] roundTripBytes = bos.toByteArray(); in testWriteTo()
379 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testNewOutput() local
384 output.writeTo(bos); in testNewOutput()
386 Arrays.equals(referenceBytes, bos.toByteArray())); in testNewOutput()
DNioByteStringTest.java321 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testWriteTo() local
322 testString.writeTo(bos); in testWriteTo()
323 byte[] roundTripBytes = bos.toByteArray(); in testWriteTo()
402 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testNewOutput() local
407 output.writeTo(bos); in testNewOutput()
409 Arrays.equals(BYTES, bos.toByteArray())); in testNewOutput()
/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.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.java470 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in getCert() local
477 bos.write(buf, 0, rd); in getCert()
480 bos.flush(); in getCert()
481 byte[] byteArray = bos.toByteArray(); in getCert()
/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/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/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.java609 ByteArrayOutputStream bos = new ByteArrayOutputStream(input.length); in compressToBase64() local
614 bos.write(buf, 0, count); in compressToBase64()
619 bos.close(); in compressToBase64()
626 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.java2280 final BufferedOutputStream bos = new BufferedOutputStream(fos); in writeUserLP() local
2281 writeUserLP(userData, bos); in writeUserLP()
2401 final BufferedOutputStream bos = new BufferedOutputStream(fos); in writeUserListLP() local
2405 serializer.setOutput(bos, StandardCharsets.UTF_8.name()); in writeUserListLP()
3308 final BufferedOutputStream bos = new BufferedOutputStream(fos); in writeApplicationRestrictionsLAr() local
3311 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.java658 BufferedOutputStream bos = null; in generateCrop() local
712 bos = new BufferedOutputStream(f, 32*1024); in generateCrop()
713 finalCrop.compress(Bitmap.CompressFormat.JPEG, 100, bos); in generateCrop()
714bos.flush(); // don't rely on the implicit flush-at-close when noting success in generateCrop()
722 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()