diff options
author | Sravan Kumar V <sravankumar@codeaurora.org> | 2016-04-28 19:13:45 +0530 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2016-08-24 08:16:57 -0600 |
commit | dc7e3c1cd888f67cabb39f4afa3bf93804e95ec9 (patch) | |
tree | 8d5e0216eb76ee84e1f9402d452a43210dbc0203 /src/com/android/bluetooth/opp/BluetoothOppObexClientSession.java | |
parent | acc89a974dd58af2170cabbd475ce3e5d3ae6442 (diff) | |
download | android_packages_apps_Bluetooth-dc7e3c1cd888f67cabb39f4afa3bf93804e95ec9.tar.gz android_packages_apps_Bluetooth-dc7e3c1cd888f67cabb39f4afa3bf93804e95ec9.tar.bz2 android_packages_apps_Bluetooth-dc7e3c1cd888f67cabb39f4afa3bf93804e95ec9.zip |
OPP: proper share status of file was not sent once transfer is complete
Use Case:
1. Select >15 files from DUT and try to transfer it to
already paired device. Some file are of very small size.
2. Check whether all files received or not
Failure:
File transfer fails in between.
Fix:
Share status of the file will be sent with MSG_SHARE_COMPLETE to
avoid sending the file again during batch transfer. Otherwise, if
DUT is sending batch containing small files transfer will be completed
immediately and status may not be updated to correct state. This will
lead to sending of same file again and transfer will fail because file
info is already removed from the hashmap of pending shares.
Change-Id: Ibbb0d44b72796af4844ae6289ba8182b4bbd4445
Diffstat (limited to 'src/com/android/bluetooth/opp/BluetoothOppObexClientSession.java')
-rw-r--r-- | src/com/android/bluetooth/opp/BluetoothOppObexClientSession.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/bluetooth/opp/BluetoothOppObexClientSession.java b/src/com/android/bluetooth/opp/BluetoothOppObexClientSession.java index 1688c7063..8437561e3 100644 --- a/src/com/android/bluetooth/opp/BluetoothOppObexClientSession.java +++ b/src/com/android/bluetooth/opp/BluetoothOppObexClientSession.java @@ -292,6 +292,7 @@ public class BluetoothOppObexClientSession implements BluetoothOppObexSession { Message msg = Message.obtain(mCallback); msg.what = BluetoothOppObexSession.MSG_SHARE_COMPLETE; msg.obj = mInfo; + mInfo.mStatus = status; msg.sendToTarget(); } else { Message msg = Message.obtain(mCallback); |