Home
last modified time | relevance | path

Searched refs:fileInfo (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppObexClientSession.java351 BluetoothOppSendFileInfo fileInfo = BluetoothOppUtility.getSendFileInfo(mInfo.mUri); in processShareInfo() local
352 if (fileInfo.mFileName == null || fileInfo.mLength == 0) { in processShareInfo()
356 Constants.updateShareStatus(mContext1, mInfo.mId, fileInfo.mStatus); in processShareInfo()
361 Log.v(TAG, "filename :" + fileInfo.mFileName); in processShareInfo()
362 Log.v(TAG, "length :" + fileInfo.mLength); in processShareInfo()
363 Log.v(TAG, "mimetype :" + fileInfo.mMimetype); in processShareInfo()
369 updateValues.put(BluetoothShare.FILENAME_HINT, fileInfo.mFileName); in processShareInfo()
370 updateValues.put(BluetoothShare.TOTAL_BYTES, fileInfo.mLength); in processShareInfo()
371 updateValues.put(BluetoothShare.MIMETYPE, fileInfo.mMimetype); in processShareInfo()
376 return fileInfo; in processShareInfo()
[all …]
DBluetoothOppObexServerSession.java425 private int receiveFile(BluetoothOppReceiveFileInfo fileInfo, Operation op) { in receiveFile() argument
445 updateValues.put(BluetoothShare._DATA, fileInfo.mFileName); in receiveFile()
455 os = mContext.getContentResolver().openOutputStream(fileInfo.mInsertUri); in receiveFile()
470 while ((!mInterrupted) && (position != fileInfo.mLength)) { in receiveFile()
487 percent = position * 100 / fileInfo.mLength; in receiveFile()
525 if (position == fileInfo.mLength) { in receiveFile()
527 Log.d(TAG, "Receiving file completed for " + fileInfo.mFileName); in receiveFile()
532 Log.d(TAG, "Reading file failed at " + position + " of " + fileInfo.mLength); in receiveFile()
556 BluetoothOppReceiveFileInfo fileInfo = in processShareInfo() local
560 Log.v(TAG, "filename :" + fileInfo.mFileName); in processShareInfo()
[all …]
DBluetoothOppUtility.java398 String fileInfo = sendFileInfo.toString(); in generateUri() local
399 int atIndex = fileInfo.lastIndexOf("@"); in generateUri()
400 fileInfo = fileInfo.substring(atIndex); in generateUri()
401 uri = Uri.parse(uri + fileInfo); in generateUri()
DBluetoothOppTransfer.java422 BluetoothOppSendFileInfo fileInfo = in markBatchFailed() local
425 if (fileInfo.mFileName != null) { in markBatchFailed()
426 updateValues.put(BluetoothShare.FILENAME_HINT, fileInfo.mFileName); in markBatchFailed()
427 updateValues.put(BluetoothShare.TOTAL_BYTES, fileInfo.mLength); in markBatchFailed()
428 updateValues.put(BluetoothShare.MIMETYPE, fileInfo.mMimetype); in markBatchFailed()
/packages/services/Telephony/testapps/EmbmsTestDownloadApp/src/com/android/phone/testapps/embmsdownload/
DEmbmsTestDownloadApp.java314 public void onProgressUpdated(DownloadRequest request, FileInfo fileInfo, in onCreate()
318 "Progress Updated (" + fileInfo + ") cd: " + currentDecodedSize in onCreate()
342 public void onStatusUpdated(DownloadRequest request, FileInfo fileInfo, in onCreate()
345 "State Updated (" + fileInfo + ") state: " + state, in onCreate()
369 public void onStatusUpdated(DownloadRequest request, FileInfo fileInfo, in onCreate()
372 "State Updated (" + fileInfo + ") state: " + state, in onCreate()
380 public void onProgressUpdated(DownloadRequest request, FileInfo fileInfo, in onCreate()
384 "Progress Updated (" + fileInfo + ") cd: " + currentDecodedSize in onCreate()