/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/ |
D | DiskBasedLogger.java | 151 FileOutputStream outputStream; in e() local 154 outputStream = context.openFileOutput(logs.getName(), Context.MODE_APPEND); in e() 155 outputStream.write(log.getBytes(UTF_8)); in e() 156 outputStream.close(); in e() 202 FileOutputStream outputStream; in clearOldLogs() local 205 outputStream = context.openFileOutput(TEMP_LOGS_FILE_PATH, Context.MODE_APPEND); in clearOldLogs() 211 copyLogsNewerThanDate(bufferedReader, outputStream, sevenDaysAgo); in clearOldLogs() 215 closeStream(outputStream, "couldn't close output stream for temp log file"); in clearOldLogs() 260 private static void copyLogsNewerThanDate(BufferedReader reader, OutputStream outputStream, in copyLogsNewerThanDate() argument 277 outputStream.write(line.getBytes(UTF_8)); in copyLogsNewerThanDate() [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/utility/ |
D | CountingOutputStream.java | 27 private final OutputStream outputStream; field in CountingOutputStream 29 public CountingOutputStream(OutputStream outputStream) { in CountingOutputStream() argument 30 this.outputStream = outputStream; in CountingOutputStream() 39 outputStream.write(buffer, offset, count); in write() 45 outputStream.write(oneByte); in write()
|
/packages/apps/Dialer/java/com/android/dialer/persistentlog/ |
D | PersistentLogFileHandler.java | 113 try (DataOutputStream outputStream = in writeLogs() argument 116 outputStream.write(ENTRY_PREFIX); in writeLogs() 117 outputStream.writeInt(log.length); in writeLogs() 118 outputStream.write(log); in writeLogs() 119 outputStream.write(ENTRY_POSTFIX); in writeLogs() 121 outputStream.close(); in writeLogs() 133 try (DataOutputStream outputStream = in writeRawLogsForTest() argument 135 outputStream.write(data); in writeRawLogsForTest() 136 outputStream.close(); in writeRawLogsForTest()
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
D | ImagePersistTask.java | 74 OutputStream outputStream = null; in doInBackgroundTimed() local 78 outputStream = in doInBackgroundTimed() 127 exifInterface.writeExif(clippedBitmap, outputStream); in doInBackgroundTimed() 129 outputStream.write(mBytes); in doInBackgroundTimed() 144 if (outputStream != null) { in doInBackgroundTimed() 146 outputStream.flush(); in doInBackgroundTimed() 153 outputStream.close(); in doInBackgroundTimed()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/analytics/ |
D | DeferredMetricsWriter.java | 58 final OutputStream outputStream = new FileOutputStream(mFile, true); in write() local 59 new WriteDeferredMetricsAsyncTask(outputStream).execute(loggers); in write() 87 List<DevicePolicyEvent> events, OutputStream outputStream) { in writeDevicePolicyEventsToStream() argument 90 event.writeDelimitedTo(outputStream); in writeDevicePolicyEventsToStream() 96 outputStream.flush(); in writeDevicePolicyEventsToStream() 101 outputStream.close(); in writeDevicePolicyEventsToStream()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/ |
D | TestUtils.java | 67 final FileOutputStream outputStream = in getSeekableDescriptor() argument 77 outputStream.write(buffer, 0, bytes); in getSeekableDescriptor() 79 outputStream.flush(); in getSeekableDescriptor() 106 final ParcelFileDescriptor.AutoCloseOutputStream outputStream = in getNonSeekableDescriptor() 115 outputStream.write(buffer, 0, bytes); in getNonSeekableDescriptor()
|
/packages/apps/Camera2/src/com/android/camera/captureintent/state/ |
D | StateSavingPicture.java | 82 OutputStream outputStream = null; in onEnter() local 84 outputStream = mResourceConstructed.get().getContext().getContentResolver() in onEnter() 86 outputStream.write(mPictureData); in onEnter() 87 outputStream.close(); in onEnter() 95 CameraUtil.closeSilently(outputStream); in onEnter()
|
/packages/apps/Car/Dialer/src/com/android/car/dialer/storage/ |
D | CipherConverter.java | 133 ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in encrypt() local 134 outputStream.write(iv.length); in encrypt() 135 outputStream.write(iv); in encrypt() 138 outputStream.write(encryptionResult); in encrypt() 139 return outputStream.toByteArray(); in encrypt()
|
/packages/apps/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/util/ |
D | ByteUtils.java | 146 ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in concatByteArrays() local 149 outputStream.write(a); in concatByteArrays() 152 outputStream.write(b); in concatByteArrays() 157 return outputStream.toByteArray(); in concatByteArrays()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | UriUtil.java | 296 OutputStream outputStream = null; in copyContent() local 298 outputStream = context.getContentResolver().openOutputStream(targetUri); in copyContent() 299 ByteStreams.copy(inputStream, outputStream); in copyContent() 304 if (outputStream != null) { in copyContent() 306 outputStream.flush(); in copyContent() 312 outputStream.close(); in copyContent()
|
/packages/apps/Contacts/tests/src/com/android/contacts/util/ |
D | BitmapUtilTests.java | 115 ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in createRawData() local 116 b.compress(format, 50, outputStream); in createRawData() 117 final byte[] data = outputStream.toByteArray(); in createRawData() 118 outputStream.close(); in createRawData()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppObexClientSession.java | 388 OutputStream outputStream = null; in sendFile() local 433 outputStream = putOperation.openOutputStream(); in sendFile() 472 outputStream.write(buffer, 0, readLength); in sendFile() 479 outputStream.close(); in sendFile() 480 outputStream = null; in sendFile() 513 outputStream.write(buffer, 0, readLength); in sendFile() 576 if (outputStream != null) { in sendFile() 577 outputStream.close(); in sendFile()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/fetch/ |
D | VoicemailFetchedCallback.java | 78 OutputStream outputStream = null; in setVoicemailContent() local 81 outputStream = contentResolver.openOutputStream(uri); in setVoicemailContent() 84 outputStream.write(inputBytes); in setVoicemailContent() 90 IOUtils.closeQuietly(outputStream); in setVoicemailContent()
|
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/imagedistributor/ |
D | ImageDistributorImpl.java | 186 for (BufferQueueController<ImageProxy> outputStream : streamsToReceiveImage) { in distributeImage() 191 outputStream.update(singleCloseImage); in distributeImage() 210 BufferQueueController<ImageProxy> outputStream) { in addRoute() argument 212 mDispatchTable.add(new DispatchRecord(inputTimestampBufferQueue, outputStream)); in addRoute()
|
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/ |
D | BlockedNumberBackupAgent.java | 132 ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in addToBackup() local 133 DataOutputStream dataOutputStream = new DataOutputStream(outputStream); in addToBackup() 139 output.writeEntityHeader(Integer.toString(blockedNumber.id), outputStream.size()); in addToBackup() 140 output.writeEntityData(outputStream.toByteArray(), outputStream.size()); in addToBackup()
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/ |
D | ImagePersistWorker.java | 92 try (OutputStream outputStream = new FileOutputStream(outputFile)) { in doInBackground() argument 93 writeClippedBitmap(outputStream); in doInBackground() 105 private void writeClippedBitmap(OutputStream outputStream) throws IOException { in writeClippedBitmap() argument 145 exifInterface.writeExif(clippedBitmap, outputStream); in writeClippedBitmap()
|
/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/ |
D | IoUtils.java | 61 public static void writeToStream(@NonNull OutputStream outputStream, @NonNull byte[] buffer) in writeToStream() argument 63 outputStream.write(buffer); in writeToStream() 64 outputStream.flush(); in writeToStream()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpCoverArtStorage.java | 106 FileOutputStream outputStream = new FileOutputStream(path); in addImage() local 107 image.compress(Bitmap.CompressFormat.PNG, 100, outputStream); in addImage() 108 outputStream.flush(); in addImage() 109 outputStream.close(); in addImage()
|
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/ |
D | ReadWriteDraftMessageActionTest.java | 344 OutputStream outputStream = null; in testBugleDatabaseDraftOperations() local 346 outputStream = mContext.getContentResolver().openOutputStream(mOutputUri); in testBugleDatabaseDraftOperations() 347 outputStream.write(text.getBytes()); in testBugleDatabaseDraftOperations() 390 outputStream = null; in testBugleDatabaseDraftOperations() 392 outputStream = mContext.getContentResolver().openOutputStream(mAnotherUri); in testBugleDatabaseDraftOperations() 393 outputStream.write(moreText.getBytes()); in testBugleDatabaseDraftOperations()
|
/packages/services/Car/service/src/com/android/car/ |
D | Utils.java | 267 ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in concatByteArrays() local 270 outputStream.write(a); in concatByteArrays() 273 outputStream.write(b); in concatByteArrays() 278 return outputStream.toByteArray(); in concatByteArrays()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMnsObexClient.java | 453 OutputStream outputStream = null; in sendEventHandler() local 489 outputStream = putOperation.openOutputStream(); in sendEventHandler() 502 outputStream.write(eventBytes, bytesWritten, bytesToWrite); in sendEventHandler() 522 if (outputStream != null) { in sendEventHandler() 523 outputStream.close(); in sendEventHandler()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/bip/ |
D | BipRequest.java | 104 DataOutputStream outputStream = mOperation.openDataOutputStream(); in executePut() local 105 outputStream.write(body); in executePut() 106 outputStream.close(); in executePut()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | ImageManager.java | 205 OutputStream outputStream = null; in addImage() local 211 outputStream = new FileOutputStream(file); in addImage() 213 source.compress(CompressFormat.JPEG, 75, outputStream); in addImage() 216 outputStream.write(jpegData); in addImage() 226 Util.closeSilently(outputStream); in addImage()
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | XmpUtil.java | 187 public static boolean writeXMPMeta(InputStream inputStream, OutputStream outputStream, in writeXMPMeta() argument 196 writeJpegFile(outputStream, sections); in writeXMPMeta() 201 if (outputStream != null) { in writeXMPMeta() 203 outputStream.close(); in writeXMPMeta()
|
/packages/apps/Car/libs/EncryptionRunner/src/android/car/encryptionrunner/ |
D | Ukey2EncryptionRunner.java | 388 ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in concatByteArrays() local 390 outputStream.write(a); in concatByteArrays() 391 outputStream.write(b); in concatByteArrays() 395 return outputStream.toByteArray(); in concatByteArrays()
|