Home
last modified time | relevance | path

Searched refs:openOutputStream (Results 1 – 25 of 54) sorted by relevance

123

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/obex/
DFakeObexTransport.java70 return new DataOutputStream(openOutputStream()); in openDataOutputStream()
79 public OutputStream openOutputStream() throws IOException { in openOutputStream() method in FakeObexTransport.BiDirectionalTransport
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/
DBluetoothObexTransport.java63 return new DataOutputStream(openOutputStream()); in openDataOutputStream()
72 public OutputStream openOutputStream() throws IOException { in openOutputStream() method in BluetoothObexTransport
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/opp/
DBluetoothOppObexClientSessionTest.java80 doReturn(output).when(mTransport).openOutputStream(); in setUp()
127 doThrow(new IOException()).when(mTransport).openOutputStream(); in startThenStop_startsAndStopsClientThread()
199 doReturn(os).when(mTransport).openOutputStream(); in clientThreadSendFile_clientSessionDisconnected_returnsObexDataError()
DTestActivity.java667 return new DataOutputStream(openOutputStream()); in openDataOutputStream()
676 public OutputStream openOutputStream() throws IOException { in openOutputStream() method in TestTcpTransport
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbap/
DHandlerForStringBufferTest.java55 when(mOperation.openOutputStream()).thenReturn(mOutputStream); in setUp()
78 doThrow(new IOException()).when(mOperation).openOutputStream(); in init_withIOExceptionWhenOpeningOutputStream_returnsFalse()
DBluetoothPbapObexServerTest.java462 when(operation.openOutputStream()).thenReturn(outputStream); in testOnGet_whenNameIsNotSet_andTypeIsListing_success()
494 when(operation.openOutputStream()).thenReturn(outputStream); in testOnGet_whenNameIsNotSet_andTypeIsPb_success()
560 when(operation.openOutputStream()).thenReturn(outputStream); in testOnGet_whenNameIsSet_andTypeIsListing_success()
592 when(operation.openOutputStream()).thenReturn(outputStream); in testOnGet_whenNameIsSet_andTypeIsPb_success()
748 when(op.openOutputStream()).thenReturn(os); in pushHeader_returnsObexHttpOk()
760 when(op.openOutputStream()).thenThrow(new IOException()); in pushHeader_withExceptionWhenOpeningOutputStream_returnsObexHttpInternalError()
772 when(op.openOutputStream()).thenReturn(os); in pushHeader_withExceptionWhenClosingOutputStream_returnsObexHttpInternalError()
DBluetoothPbapSimVcardManagerTest.java473 when(operation.openOutputStream()).thenReturn(outputStream); in testComposeAndSendSIMPhonebookVcards_success()
516 when(operation.openOutputStream()).thenReturn(outputStream); in testComposeAndSendSIMPhonebookOneVcard_success()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mapclient/
DRequestTest.java191 outputStream = op.openOutputStream(); in onGetValidator()
201 outputStream = op.openOutputStream(); in onGetValidator()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/pbap/
DHandlerForStringBuffer.java48 mOutputStream = mOperation.openOutputStream(); in init()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/soap/
DHttpsServiceConnection.java106 public OutputStream openOutputStream() throws IOException { in openOutputStream() method in HttpsServiceConnection
/packages/apps/Dialer/java/com/android/voicemail/impl/fetch/
DVoicemailFetchedCallback.java81 outputStream = contentResolver.openOutputStream(uri); in setVoicemailContent()
/packages/apps/Camera2/src/com/android/camera/captureintent/state/
DStateSavingPicture.java85 .openOutputStream(saveUri.get()); in onEnter()
/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DPhotoPickerUtils.kt123 session.openOutputStream().use { target -> FileUtils.copy(source, target) } in <lambda>()
/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/
DBugStorageUtils.java123 return r.openOutputStream(BugStorageProvider.buildUriWithSegment( in openBugReportFileToWrite()
132 return r.openOutputStream(BugStorageProvider.buildUriWithSegment( in openAudioMessageFileToWrite()
/packages/apps/TvFeedbackConsent/src/com/android/tv/feedbackconsent/
DTvFeedbackBugreportHelper.java145 .openOutputStream(bugreportUri, "w")) { in copyBugreportToUri()
DTvFeedbackConsentService.java172 .getContentResolver().openOutputStream(mSystemLogsUri, "w");
/packages/providers/MediaProvider/tests/client/src/com/android/providers/media/client/
DPublicVolumeTest.java83 try (OutputStream out = contentResolver.openOutputStream(targetUri)) { in testIncludeRecentlyUnmountedVolumes()
DDelegatorTest.java122 try (OutputStream out = mResolver.openOutputStream(uri)) { in createAudio()
DPublicVolumePlaylistTest.java102 try (OutputStream out = contentResolver.openOutputStream(audioUri)) { in testEjectedVolume()
DPlaylistPerformanceTest.java150 try (OutputStream ignore = mContentResolver.openOutputStream(uri)) { in createAudio()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/exportimport/
DExportManager.java170 mDatabaseContext.getContentResolver().openOutputStream(destination)) { in exportToUri()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DImagePersistTask.java79 mContext.getContentResolver().openOutputStream(mOutputUri); in doInBackgroundTimed()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/soap/
DHttpsServiceConnectionTest.java163 assertEquals(testOutputStream, mHttpsServiceConnection.openOutputStream()); in verifyOpenOutputStream()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
DReadWriteDraftMessageActionTest.java347 outputStream = mContext.getContentResolver().openOutputStream(mOutputUri); in testBugleDatabaseDraftOperations()
393 outputStream = mContext.getContentResolver().openOutputStream(mAnotherUri); in testBugleDatabaseDraftOperations()
/packages/apps/TV/src/com/android/tv/data/
DChannelLogoFetcher.java157 try (OutputStream os = mContext.getContentResolver().openOutputStream(dstLogoUri)) { in doInBackground()

123