/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/ |
D | CdmaSmsCbTest.java | 88 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/ |
D | UiAutomatorBridge.java | 113 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/ |
D | RebootEscrowData.java | 119 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in fromSyntheticPassword() local 120 DataOutputStream dos = new DataOutputStream(bos); in fromSyntheticPassword() 126 return new RebootEscrowData(spVersion, syntheticPassword, bos.toByteArray(), ks); in fromSyntheticPassword()
|
D | AesEncryptionUtil.java | 87 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in encrypt() local 88 DataOutputStream dos = new DataOutputStream(bos); in encrypt() 107 return bos.toByteArray(); in encrypt()
|
/frameworks/base/apct-tests/perftests/core/src/com/android/internal/util/ |
D | FastDataPerfTest.java | 54 final BufferedOutputStream bos = new BufferedOutputStream(os, BUFFER_SIZE); in timeWrite_Upstream() local 55 final DataOutput out = new DataOutputStream(bos); in timeWrite_Upstream() 57 bos.flush(); in timeWrite_Upstream()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | RebootEscrowDataTest.java | 117 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in fromEncryptedData_legacyVersion_success() local 118 DataOutputStream dos = new DataOutputStream(bos); in fromEncryptedData_legacyVersion_success() 122 byte[] legacyBlob = bos.toByteArray(); in fromEncryptedData_legacyVersion_success()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | FileRotator.java | 381 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/graphics/java/android/graphics/ |
D | Typeface.java | 1286 private static void writeString(ByteArrayOutputStream bos, String value) throws IOException { 1288 writeInt(bos, bytes.length); 1289 bos.write(bytes); 1292 private static void writeInt(ByteArrayOutputStream bos, int value) { 1294 bos.write((value >> 24) & 0xFF); 1295 bos.write((value >> 16) & 0xFF); 1296 bos.write((value >> 8) & 0xFF); 1297 bos.write(value & 0xFF);
|
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/ |
D | TestDocumentsProvider.java | 332 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/ |
D | AsmGeneratorTest.java | 308 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in getByteArray() local 312 bos.write(buffer, 0, read); in getByteArray() 314 return bos.toByteArray(); in getByteArray()
|
/frameworks/base/packages/Shell/tests/src/com/android/shell/ |
D | BugreportReceiverTest.java | 804 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in assertZipContent() local 805 Streams.copy(zis, bos); in assertZipContent() 806 String actualContent = new String(bos.toByteArray(), "UTF-8"); in assertZipContent() 807 bos.close(); in assertZipContent()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/usage/ |
D | AppIdleHistory.java | 694 final BufferedOutputStream bos = new BufferedOutputStream(fos); in writeAppIdleTimes() local 697 xml.setOutput(bos, StandardCharsets.UTF_8.name()); in writeAppIdleTimes()
|
/frameworks/base/telephony/java/android/telephony/ |
D | SubscriptionManager.java | 2464 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in serializeUriLists() local 2465 ObjectOutputStream oos = new ObjectOutputStream(bos); in serializeUriLists() 2468 return Base64.encodeToString(bos.toByteArray(), Base64.DEFAULT); in serializeUriLists()
|
/frameworks/base/services/core/java/com/android/server/wallpaper/ |
D | WallpaperManagerService.java | 671 BufferedOutputStream bos = null; in generateCrop() local 747 bos = new BufferedOutputStream(f, 32*1024); in generateCrop() 748 finalCrop.compress(Bitmap.CompressFormat.PNG, 100, bos); in generateCrop() 749 … bos.flush(); // don't rely on the implicit flush-at-close when noting success in generateCrop() 757 IoUtils.closeQuietly(bos); in generateCrop()
|
/frameworks/base/media/java/android/media/ |
D | MediaPlayer.java | 3106 final ByteArrayOutputStream bos = new ByteArrayOutputStream(); in addTimedTextSource() 3116 bos.write(buffer, 0, bytes); in addTimedTextSource() 3126 Pair.create(track, bos.toByteArray()); in addTimedTextSource()
|