Home
last modified time | relevance | path

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

123

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/obex/
DFakeObexServer.java142 outStream = op.openOutputStream(); in sendResponse()
197 return new DataOutputStream(openOutputStream()); in openDataOutputStream()
206 public OutputStream openOutputStream() throws IOException { in openOutputStream() method in FakeObexServer.TestObexTransport
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/pbapclient/obex/
DPbapClientObexTransport.java55 return new DataOutputStream(openOutputStream()); in openDataOutputStream()
64 public OutputStream openOutputStream() throws IOException { in openOutputStream() method in PbapClientObexTransport
/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.java88 doReturn(output).when(mTransport).openOutputStream(); in setUp()
135 doThrow(new IOException()).when(mTransport).openOutputStream(); in startThenStop_startsAndStopsClientThread()
205 doReturn(os).when(mTransport).openOutputStream(); in clientThreadSendFile_clientSessionDisconnected_returnsObexDataError()
DTestActivity.java664 return new DataOutputStream(openOutputStream()); in openDataOutputStream()
673 public OutputStream openOutputStream() throws IOException { in openOutputStream() method in TestTcpTransport
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbap/
DHandlerForStringBufferTest.java56 when(mOperation.openOutputStream()).thenReturn(mOutputStream); in setUp()
79 doThrow(new IOException()).when(mOperation).openOutputStream(); in init_withIOExceptionWhenOpeningOutputStream_returnsFalse()
DBluetoothPbapObexServerTest.java461 when(operation.openOutputStream()).thenReturn(outputStream); in testOnGet_whenNameIsNotSet_andTypeIsListing_success()
493 when(operation.openOutputStream()).thenReturn(outputStream); in testOnGet_whenNameIsNotSet_andTypeIsPb_success()
559 when(operation.openOutputStream()).thenReturn(outputStream); in testOnGet_whenNameIsSet_andTypeIsListing_success()
591 when(operation.openOutputStream()).thenReturn(outputStream); in testOnGet_whenNameIsSet_andTypeIsPb_success()
747 when(op.openOutputStream()).thenReturn(os); in pushHeader_returnsObexHttpOk()
759 when(op.openOutputStream()).thenThrow(new IOException()); in pushHeader_withExceptionWhenOpeningOutputStream_returnsObexHttpInternalError()
771 when(op.openOutputStream()).thenReturn(os); in pushHeader_withExceptionWhenClosingOutputStream_returnsObexHttpInternalError()
DBluetoothPbapSimVcardManagerTest.java474 when(operation.openOutputStream()).thenReturn(outputStream); in testComposeAndSendSIMPhonebookVcards_success()
517 when(operation.openOutputStream()).thenReturn(outputStream); in testComposeAndSendSIMPhonebookOneVcard_success()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mapclient/
DRequestTest.java196 outputStream = op.openOutputStream(); in onGet()
206 outputStream = op.openOutputStream(); in onGet()
/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/AvatarPicker/src/main/java/com/android/avatarpicker/ui/details/items/media/
DPhotoPickerIcon.kt59 contentResolver.openOutputStream(contentUri)?.use { outputStream -> in <lambda>()
/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/providers/MediaProvider/tests/client/src/com/android/providers/media/client/
DPublicVolumeTest.java82 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()
/packages/apps/TvFeedbackConsent/src/com/android/tv/feedbackconsent/
DTvFeedbackBugreportHelper.java145 .openOutputStream(bugreportUri, "w")) { in copyBugreportToUri()
/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DPhotoPickerUtils.kt128 session.openOutputStream().use { target -> FileUtils.copy(source, target) } in <lambda>()
/packages/apps/PrivateSpace/src/com/android/privatespace/filetransfer/
DFileTransferManagerImpl.kt163 contentResolver.openOutputStream(destinationUri)?.use { outputStream -> in <lambda>()
/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()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbapclient/
DPbapClientObexTransportTest.java110 OutputStream out = transport.openOutputStream(); in testOpenOutputStream_containsSocketStream()

123