Home
last modified time | relevance | path

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

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/
DCdmaSmsCbTest.java90 BitwiseOutputStream bos = new BitwiseOutputStream(10); in createBearerDataStream() local
91 bos.write(8, SUBPARAM_MESSAGE_IDENTIFIER); in createBearerDataStream()
92 bos.write(8, 3); // length: 3 bytes in createBearerDataStream()
93 bos.write(4, BearerData.MESSAGE_TYPE_DELIVER); in createBearerDataStream()
94 bos.write(8, ((messageId >>> 8) & 0xff)); in createBearerDataStream()
95 bos.write(8, (messageId & 0xff)); in createBearerDataStream()
96 bos.write(1, 0); // no User Data Header in createBearerDataStream()
97 bos.write(3, 0); // reserved in createBearerDataStream()
100 bos.write(8, SUBPARAM_PRIORITY_INDICATOR); in createBearerDataStream()
101 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/tests/servicestests/src/com/android/server/net/
DNetworkStatsCollectionTest.java80 final ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testReadLegacyNetwork() local
81 collection.write(new DataOutputStream(bos)); in testReadLegacyNetwork()
89 collection.read(new ByteArrayInputStream(bos.toByteArray())); in testReadLegacyNetwork()
106 final ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testReadLegacyUid() local
107 collection.write(new DataOutputStream(bos)); in testReadLegacyUid()
115 collection.read(new ByteArrayInputStream(bos.toByteArray())); in testReadLegacyUid()
132 final ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testReadLegacyUidTags() local
133 collection.write(new DataOutputStream(bos)); in testReadLegacyUidTags()
141 collection.read(new ByteArrayInputStream(bos.toByteArray())); in testReadLegacyUidTags()
/frameworks/data-binding/extensions/library/src/androidTest/java/android/databinding/
DObservableParcelTest.java179 ByteArrayOutputStream bos = null; in serializeAndDeserialize() local
182 bos = new ByteArrayOutputStream(); in serializeAndDeserialize()
183 oos = new ObjectOutputStream(bos); in serializeAndDeserialize()
187 closeQuietly(bos); in serializeAndDeserialize()
193 bis = new ByteArrayInputStream(bos.toByteArray()); in serializeAndDeserialize()
/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/tests/wifitests/src/com/android/server/wifi/
DWifiBackupRestoreTest.java701 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in createWpaSupplicantConfBackupData() local
702 OutputStreamWriter out = new OutputStreamWriter(bos); in createWpaSupplicantConfBackupData()
708 return bos.toByteArray(); in createWpaSupplicantConfBackupData()
776 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in createIpConfBackupData() local
777 DataOutputStream out = new DataOutputStream(bos); in createIpConfBackupData()
786 return bos.toByteArray(); in createIpConfBackupData()
/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/base/tools/layoutlib/create/tests/com/android/tools/layoutlib/create/
DAsmGeneratorTest.java304 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in getByteArray() local
308 bos.write(buffer, 0, read); in getByteArray()
310 return bos.toByteArray(); in getByteArray()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiDiagnostics.java544 ByteArrayOutputStream bos = new ByteArrayOutputStream(input.length); in compressToBase64() local
549 bos.write(buf, 0, count); in compressToBase64()
554 bos.close(); in compressToBase64()
561 byte[] compressed = bos.toByteArray(); in compressToBase64()
/frameworks/base/services/usage/java/com/android/server/usage/
DAppIdleHistory.java339 final BufferedOutputStream bos = new BufferedOutputStream(fos); in writeAppIdleTimes() local
342 xml.setOutput(bos, StandardCharsets.UTF_8.name()); in writeAppIdleTimes()
/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/core/java/com/android/server/wallpaper/
DWallpaperManagerService.java398 BufferedOutputStream bos = null; in generateCrop() local
451 bos = new BufferedOutputStream(f, 32*1024); in generateCrop()
452 finalCrop.compress(Bitmap.CompressFormat.JPEG, 100, bos); in generateCrop()
453bos.flush(); // don't rely on the implicit flush-at-close when noting success in generateCrop()
461 IoUtils.closeQuietly(bos); in generateCrop()
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java1996 final BufferedOutputStream bos = new BufferedOutputStream(fos); in writeUserLP() local
1997 writeUserLP(userData, bos); in writeUserLP()
2110 final BufferedOutputStream bos = new BufferedOutputStream(fos); in writeUserListLP() local
2114 serializer.setOutput(bos, StandardCharsets.UTF_8.name()); in writeUserListLP()
2999 final BufferedOutputStream bos = new BufferedOutputStream(fos); in writeApplicationRestrictionsLP() local
3002 serializer.setOutput(bos, StandardCharsets.UTF_8.name()); in writeApplicationRestrictionsLP()
DShortcutService.java956 final BufferedOutputStream bos = new BufferedOutputStream(os); in saveUserInternalLocked() local
960 out.setOutput(bos, StandardCharsets.UTF_8.name()); in saveUserInternalLocked()
967 bos.flush(); in saveUserInternalLocked()
/frameworks/base/media/java/android/media/
DMediaPlayer.java2849 final ByteArrayOutputStream bos = new ByteArrayOutputStream(); in addTimedTextSource()
2859 bos.write(buffer, 0, bytes); in addTimedTextSource()
2866 Pair<SubtitleTrack, byte[]> trackData = Pair.create(track, bos.toByteArray()); in addTimedTextSource()
/frameworks/data-binding/prebuilds/1.0-rc0/
Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/ ...