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.java426 private int receiveFile(BluetoothOppReceiveFileInfo fileInfo, Operation op) { in receiveFile() argument
446 updateValues.put(BluetoothShare._DATA, fileInfo.mFileName); in receiveFile()
456 os = mContext.getContentResolver().openOutputStream(fileInfo.mInsertUri); in receiveFile()
471 while ((!mInterrupted) && (position != fileInfo.mLength)) { in receiveFile()
488 percent = position * 100 / fileInfo.mLength; in receiveFile()
526 if (position == fileInfo.mLength) { in receiveFile()
528 Log.d(TAG, "Receiving file completed for " + fileInfo.mFileName); in receiveFile()
533 Log.d(TAG, "Reading file failed at " + position + " of " + fileInfo.mLength); in receiveFile()
557 BluetoothOppReceiveFileInfo fileInfo = in processShareInfo() local
561 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.java428 BluetoothOppSendFileInfo fileInfo = in markBatchFailed() local
431 if (fileInfo.mFileName != null) { in markBatchFailed()
432 updateValues.put(BluetoothShare.FILENAME_HINT, fileInfo.mFileName); in markBatchFailed()
433 updateValues.put(BluetoothShare.TOTAL_BYTES, fileInfo.mLength); in markBatchFailed()
434 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()