Home
last modified time | relevance | path

Searched refs:BluetoothOppSendFileInfo (Results 1 – 9 of 9) sorted by relevance

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/opp/
DBluetoothOppSendFileInfoTest.java78 BluetoothOppSendFileInfo info = in createInstance_withFileInputStream()
79 new BluetoothOppSendFileInfo(fileName, type, length, inputStream, status); in createInstance_withFileInputStream()
94 BluetoothOppSendFileInfo info = new BluetoothOppSendFileInfo(data, type, length, status); in createInstance_withoutFileInputStream()
107 BluetoothOppSendFileInfo info = in generateFileInfo_withUnsupportedScheme_returnsSendFileInfoError()
108 BluetoothOppSendFileInfo.generateFileInfo(mContext, uri, type, true); in generateFileInfo_withUnsupportedScheme_returnsSendFileInfoError()
109 assertThat(info).isEqualTo(BluetoothOppSendFileInfo.SEND_FILE_INFO_ERROR); in generateFileInfo_withUnsupportedScheme_returnsSendFileInfoError()
117 BluetoothOppSendFileInfo info = in generateFileInfo_withForbiddenExternalUri_returnsSendFileInfoError()
118 BluetoothOppSendFileInfo.generateFileInfo(mContext, uri, type, true); in generateFileInfo_withForbiddenExternalUri_returnsSendFileInfoError()
119 assertThat(info).isEqualTo(BluetoothOppSendFileInfo.SEND_FILE_INFO_ERROR); in generateFileInfo_withForbiddenExternalUri_returnsSendFileInfoError()
131 BluetoothOppSendFileInfo info = in generateFileInfo_withoutPermissionForAccessingUri_returnsSendFileInfoError()
[all …]
DBluetoothOppObexClientSessionTest.java121 BluetoothOppSendFileInfo sendFileInfo = in startThenStop_startsAndStopsClientThread()
122 new BluetoothOppSendFileInfo(filename, mimetype, totalBytes, null, status); in startThenStop_startsAndStopsClientThread()
189 BluetoothOppSendFileInfo sendFileInfo = in clientThreadSendFile_clientSessionDisconnected_returnsObexDataError()
190 new BluetoothOppSendFileInfo(filename, mimetype, totalBytes, null, status); in clientThreadSendFile_clientSessionDisconnected_returnsObexDataError()
DBluetoothOppUtilityTest.java426 .isEqualTo(BluetoothOppSendFileInfo.SEND_FILE_INFO_ERROR); in fileInfo_testFileInfoFunctions()
430 BluetoothOppSendFileInfo.SEND_FILE_INFO_ERROR) in fileInfo_testFileInfoFunctions()
436 BluetoothOppSendFileInfo.SEND_FILE_INFO_ERROR); in fileInfo_testFileInfoFunctions()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/opp/
DBluetoothOppSendFileInfo.java62 public class BluetoothOppSendFileInfo { class
66 static final BluetoothOppSendFileInfo SEND_FILE_INFO_ERROR =
67 new BluetoothOppSendFileInfo(null, null, 0, null, BluetoothShare.STATUS_FILE_ERROR);
85 public BluetoothOppSendFileInfo( in BluetoothOppSendFileInfo() method in BluetoothOppSendFileInfo
96 public BluetoothOppSendFileInfo(String data, String type, long length, int status) { in BluetoothOppSendFileInfo() method in BluetoothOppSendFileInfo
105 public static BluetoothOppSendFileInfo generateFileInfo( in generateFileInfo()
353 return new BluetoothOppSendFileInfo(fileName, contentType, length, is, 0); in generateFileInfo()
DBluetoothOppUtility.java84 static final ConcurrentHashMap<Uri, BluetoothOppSendFileInfo> sSendFileMap =
85 new ConcurrentHashMap<Uri, BluetoothOppSendFileInfo>();
445 static Uri generateUri(Uri uri, BluetoothOppSendFileInfo sendFileInfo) { in generateUri()
454 static void putSendFileInfo(Uri uri, BluetoothOppSendFileInfo sendFileInfo) { in putSendFileInfo()
456 if (sendFileInfo == BluetoothOppSendFileInfo.SEND_FILE_INFO_ERROR) { in putSendFileInfo()
467 static BluetoothOppSendFileInfo getSendFileInfo(Uri uri) { in getSendFileInfo()
469 BluetoothOppSendFileInfo info = sSendFileMap.get(uri); in getSendFileInfo()
470 return (info != null) ? info : BluetoothOppSendFileInfo.SEND_FILE_INFO_ERROR; in getSendFileInfo()
475 BluetoothOppSendFileInfo info = sSendFileMap.remove(uri); in closeSendFileInfo()
DBluetoothOppManager.java272 BluetoothOppSendFileInfo sendFileInfo = in saveSendingFileInfo()
273 BluetoothOppSendFileInfo.generateFileInfo( in saveSendingFileInfo()
291 BluetoothOppSendFileInfo sendFileInfo = in saveSendingFileInfo()
292 BluetoothOppSendFileInfo.generateFileInfo( in saveSendingFileInfo()
DBluetoothOppObexClientSession.java146 private BluetoothOppSendFileInfo mFileInfo = null;
360 private BluetoothOppSendFileInfo processShareInfo() { in processShareInfo()
363 BluetoothOppSendFileInfo fileInfo = BluetoothOppUtility.getSendFileInfo(mInfo.mUri); in processShareInfo()
392 int sendFile(BluetoothOppSendFileInfo fileInfo) { in sendFile()
DBluetoothOppTransfer.java487 BluetoothOppSendFileInfo fileInfo = in markBatchFailed()
DBluetoothOppService.java903 BluetoothOppSendFileInfo sendFileInfo = in insertShare()