summaryrefslogtreecommitdiffstats
path: root/src/com/android/bluetooth/opp/BluetoothOppObexClientSession.java
diff options
context:
space:
mode:
authorJuffin Alex Varghese <jalex@codeaurora.org>2014-11-13 14:38:09 +0530
committerJuffin Alex Varghese <jalex@codeaurora.org>2014-11-17 15:23:16 +0530
commit782646d2cddc03f58738459282e3c377af7e0396 (patch)
tree419ed26fae2c30cd9e9066bd84432ac1f3819522 /src/com/android/bluetooth/opp/BluetoothOppObexClientSession.java
parent087a6cf7a9bf66d7789c9901cc111451b466d57b (diff)
downloadandroid_packages_apps_Bluetooth-782646d2cddc03f58738459282e3c377af7e0396.tar.gz
android_packages_apps_Bluetooth-782646d2cddc03f58738459282e3c377af7e0396.tar.bz2
android_packages_apps_Bluetooth-782646d2cddc03f58738459282e3c377af7e0396.zip
Bluetooth-OPP: Use long data type to contain receiving file size
If receiving file size is in GBs int type will not be able to contain actual size and will lead to failure. So change to long instead of int. CRs-Fixed: 756089 Change-Id: Idc069eb59311d4e56013454ae10b0ecd37314ddd
Diffstat (limited to 'src/com/android/bluetooth/opp/BluetoothOppObexClientSession.java')
-rw-r--r--src/com/android/bluetooth/opp/BluetoothOppObexClientSession.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/bluetooth/opp/BluetoothOppObexClientSession.java b/src/com/android/bluetooth/opp/BluetoothOppObexClientSession.java
index 6ec315ed9..159bb097e 100644
--- a/src/com/android/bluetooth/opp/BluetoothOppObexClientSession.java
+++ b/src/com/android/bluetooth/opp/BluetoothOppObexClientSession.java
@@ -667,8 +667,10 @@ public class BluetoothOppObexClientSession implements BluetoothOppObexSession {
} else if (!mInterrupted && position == fileInfo.mLength) {
long endTime = System.currentTimeMillis();
Log.i(TAG, "SendFile finished sending file " + fileInfo.mFileName
- + " length " + fileInfo.mLength
- + "Bytes in " + (endTime - beginTime) + "ms" );
+ + " length " + fileInfo.mLength + " Bytes. Approx. throughput is "
+ + BluetoothShare.throughputInKbps(fileInfo.mLength,
+ (endTime - beginTime))
+ + " Kbps");
status = BluetoothShare.STATUS_SUCCESS;
outputStream.close();
} else {