Home
last modified time | relevance | path

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

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/
DCdmaSmsCbTest.java85 BitwiseOutputStream bos = new BitwiseOutputStream(10); in createBearerDataStream() local
86 bos.write(8, SUBPARAM_MESSAGE_IDENTIFIER); in createBearerDataStream()
87 bos.write(8, 3); // length: 3 bytes in createBearerDataStream()
88 bos.write(4, BearerData.MESSAGE_TYPE_DELIVER); in createBearerDataStream()
89 bos.write(8, ((messageId >>> 8) & 0xff)); in createBearerDataStream()
90 bos.write(8, (messageId & 0xff)); in createBearerDataStream()
91 bos.write(1, 0); // no User Data Header in createBearerDataStream()
92 bos.write(3, 0); // reserved in createBearerDataStream()
95 bos.write(8, SUBPARAM_PRIORITY_INDICATOR); in createBearerDataStream()
96 bos.write(8, 1); // length: 1 byte in createBearerDataStream()
[all …]
/frameworks/testing/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.java74 final ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testReadLegacyNetwork() local
75 collection.write(new DataOutputStream(bos)); in testReadLegacyNetwork()
83 collection.read(new ByteArrayInputStream(bos.toByteArray())); in testReadLegacyNetwork()
100 final ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testReadLegacyUid() local
101 collection.write(new DataOutputStream(bos)); in testReadLegacyUid()
109 collection.read(new ByteArrayInputStream(bos.toByteArray())); in testReadLegacyUid()
126 final ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testReadLegacyUidTags() local
127 collection.write(new DataOutputStream(bos)); in testReadLegacyUidTags()
135 collection.read(new ByteArrayInputStream(bos.toByteArray())); in testReadLegacyUidTags()
/frameworks/base/core/java/com/android/internal/util/
DFileRotator.java375 final BufferedOutputStream bos = new BufferedOutputStream(fos); in writeFile() local
377 writer.write(bos); in writeFile()
378 bos.flush(); in writeFile()
381 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/base/services/java/com/android/server/pm/
DUserManagerService.java629 final BufferedOutputStream bos = new BufferedOutputStream(fos); in writeUserLocked() local
633 serializer.setOutput(bos, "utf-8"); in writeUserLocked()
709 final BufferedOutputStream bos = new BufferedOutputStream(fos); in writeUserListLocked() local
713 serializer.setOutput(bos, "utf-8"); in writeUserListLocked()
1375 final BufferedOutputStream bos = new BufferedOutputStream(fos); in writeApplicationRestrictionsLocked() local
1379 serializer.setOutput(bos, "utf-8"); in writeApplicationRestrictionsLocked()