Home
last modified time | relevance | path

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

/packages/apps/Bluetooth/tests/robotests/src/com/android/bluetooth/opp/
DOppSendFileInfoTest.java66 BluetoothOppSendFileInfo sendFileInfo = BluetoothOppSendFileInfo.generateFileInfo( in testFileOpen()
68 assertThat(sendFileInfo).isNotEqualTo(BluetoothOppSendFileInfo.SEND_FILE_INFO_ERROR); in testFileOpen()
83 BluetoothOppSendFileInfo sendFileInfo = BluetoothOppSendFileInfo.generateFileInfo( in testInvalidUriScheme()
85 assertThat(sendFileInfo).isEqualTo(BluetoothOppSendFileInfo.SEND_FILE_INFO_ERROR); in testInvalidUriScheme()
100 BluetoothOppSendFileInfo sendFileInfo = BluetoothOppSendFileInfo.generateFileInfo( in testBigFileOpen()
102 assertThat(sendFileInfo).isEqualTo(BluetoothOppSendFileInfo.SEND_FILE_INFO_ERROR); in testBigFileOpen()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppSendFileInfo.java56 public class BluetoothOppSendFileInfo { class
63 static final BluetoothOppSendFileInfo SEND_FILE_INFO_ERROR =
64 new BluetoothOppSendFileInfo(null, null, 0, null, BluetoothShare.STATUS_FILE_ERROR);
82 public BluetoothOppSendFileInfo(String fileName, String type, long length, in BluetoothOppSendFileInfo() method in BluetoothOppSendFileInfo
93 public BluetoothOppSendFileInfo(String data, String type, long length, int status) { in BluetoothOppSendFileInfo() method in BluetoothOppSendFileInfo
102 public static BluetoothOppSendFileInfo generateFileInfo(Context context, Uri uri, String type, in generateFileInfo()
241 return new BluetoothOppSendFileInfo(fileName, contentType, length, is, 0); in generateFileInfo()
DBluetoothOppUtility.java73 private static final ConcurrentHashMap<Uri, BluetoothOppSendFileInfo> sSendFileMap =
74 new ConcurrentHashMap<Uri, BluetoothOppSendFileInfo>();
397 static Uri generateUri(Uri uri, BluetoothOppSendFileInfo sendFileInfo) { in generateUri()
406 static void putSendFileInfo(Uri uri, BluetoothOppSendFileInfo sendFileInfo) { in putSendFileInfo()
410 if (sendFileInfo == BluetoothOppSendFileInfo.SEND_FILE_INFO_ERROR) { in putSendFileInfo()
416 static BluetoothOppSendFileInfo getSendFileInfo(Uri uri) { in getSendFileInfo()
420 BluetoothOppSendFileInfo info = sSendFileMap.get(uri); in getSendFileInfo()
421 return (info != null) ? info : BluetoothOppSendFileInfo.SEND_FILE_INFO_ERROR; in getSendFileInfo()
428 BluetoothOppSendFileInfo info = sSendFileMap.remove(uri); in closeSendFileInfo()
DBluetoothOppManager.java271 BluetoothOppSendFileInfo sendFileInfo = in saveSendingFileInfo()
272 BluetoothOppSendFileInfo.generateFileInfo(mContext, uri, mimeType, in saveSendingFileInfo()
289 BluetoothOppSendFileInfo sendFileInfo = in saveSendingFileInfo()
290 BluetoothOppSendFileInfo.generateFileInfo(mContext, uri, mimeType, in saveSendingFileInfo()
DBluetoothOppObexClientSession.java158 private BluetoothOppSendFileInfo mFileInfo = null;
346 private BluetoothOppSendFileInfo processShareInfo() { in processShareInfo()
351 BluetoothOppSendFileInfo fileInfo = BluetoothOppUtility.getSendFileInfo(mInfo.mUri); in processShareInfo()
379 private int sendFile(BluetoothOppSendFileInfo fileInfo) { in sendFile()
DBluetoothOppTransfer.java422 BluetoothOppSendFileInfo fileInfo = in markBatchFailed()
DBluetoothOppService.java777 BluetoothOppSendFileInfo sendFileInfo = in insertShare()