History log of /packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppTransferHistory.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
54ba08e04553d9fc600846bd653cf3d83480a18c 15-Nov-2017 Hemant Gupta <hemantg@codeauora.org> OPP: Handle Stale Data Exception

Use case:
1. Share numerous files
2. Wait for complete
3. View completed transfers
4. Before opening the transfer history click on home button
5. Repeat above steps numerous times

Failure:
Crash in com.android.bluetooth
Msg: StaleDataException, Attempting to access a
closed Cursor Window

Root cause:
Some rare cases after pausing activity also cursor
is trying to fetch values from OPP DB.

Fix:
Catch Cursor Exception to avoid crash in opp profile
and break loop If we get at least one finished transfer
from DB to avoid UN necessary iterations.

Test: Stale Data Exception not observed as per above usecase.
Fixes: 35013626
Change-Id: I9c76638c162e9433b0aa17b99711557ba8f9ef07
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppTransferHistory.java
c4fbd756e2645147470c486ae96f2253f5e13a52 12-Oct-2017 Jack He <siyuanh@google.com> [Script] Fix checkstyle errors (1/2)

Format code using Intellij to conform to CheckStyle requirements

Bug: 63597465
Test: make checkbuild, no manual changes, no functional changes
Change-Id: I70cd2ab8e5e6d5428ab1556658735b0d83f4fb15
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppTransferHistory.java
2fbb1d97d08d5d72fe824e543c714e56cd7be236 10-Oct-2017 Jack He <siyuanh@google.com> [Script] Add @Override annotations to overriden methods

* Run "Missing @Override annotation" inspection in Intellij and perform
automatic fixes

Bug: 63597465
Test: make checkbuild, no manual changes, no functional changes
Change-Id: I3607581a0538ecce382dbb68742f40662bca6cad
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppTransferHistory.java
ee124ba31cd435ea000e544edc273756133ffef9 22-Aug-2017 ilbeom.kim <ilbeom.kim@lge.com> Fix Bluetooth crash when open the opp transfer history on the lock screen

BluetoothOppTransferHistory was using the deprecated managedQuery
to get the cursor. The managedQuery was deprecated in API level 11.
Changed managedQuery to contentResolver.query() to resolve the issue.

Test: The following procedure:
1. Enable pattern lock on DUT (receiver phone)
2. Send an image file via Bluetooth from another phone
3. Accept the file transfer on DUT
4. Wait until file transfer is completed
5. Open the received file history from the lock screen (double-tap)

Bug: 63747089
Change-Id: I6def857579ec96c10f3d22260ccba30f9ef4a57e
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppTransferHistory.java
d808638cd1715e39c4dcd5a12ed4371a8eb709d0 10-Aug-2015 Hemant Gupta <hemantg@codeaurora.org> OPP: Don't reopen finished transfer list.

Prevent opening selected file from transfer history
list after it's cleared from notification to avoid crash.

Step by Step procedure:
=======================
1. Pair remote phone with DUT.
2. Receive a file to DUT and accept.
3. Now Drag the notification bar and select history.
4. Long press any file to select.
5. Again drag notification bar and press clear to clear notifications.
6. Press clear file on popup which observed in step 3.

Expected Result:
================
Should not crash Bluetooth.

Actual Result:
===========
Bluetooth crashing by selecting clear list

Change-Id: Ib5f4d3edbd32af298cfe439389b8e77864cb5462
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppTransferHistory.java
eb7b90f5b93db1230a5b64caa3d8d05a642e33a6 10-May-2016 Marie Janssen <jamuraa@google.com> Cleanup unused requires in java files

Change-Id: I7b055c1d3d3f6a69e9f49c077853ab45fcad7106
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppTransferHistory.java
1a39ecdeaad346e86ca95f802519c8c58edfc4b9 07-Feb-2014 Hemant Gupta <hemantg@codeaurora.org> Bluetooth-OPP: Handle HID mouse right click event

This change will handle mouse right click event to display only
context menu with options Open and Clear. Otherwise, during HID mouse
right click two popup will be displayed context menu and Open option
while selecting context menu, option app crash is observed.

Change-Id: I8328f87f9c4bc007cd46a5567268621499e35343
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppTransferHistory.java
3911cfeb7c5e2242dcce91e3b66d9449dec0bd05 11-Oct-2012 Zhihai Xu <zhihaixu@google.com> Bluetooth OPP should sanitize Uri data and MIME types before calling startActivity

bug 5842045

Change-Id: I00a80fc7dc6c6031ab35113539ff6cdf4cf230a6
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppTransferHistory.java
1ed96d522298e8f48690a4f4cbf2e0c6b402e3a0 26-Jan-2011 Jake Hamby <jhamby@google.com> Implement "show received files" intent for Settings.

Add a handler for a new intent (sent from the Settings app) to
show all files received via Bluetooth. This is equivalent to the
now deprecated live folder view of received files.

Bug: 3167219
Change-Id: Ibb8d3738d62301af5b012489a69ac078e554b66d
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppTransferHistory.java
e7f887dab2591a46ecf80616e00f33bb5d847935 07-Dec-2010 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of 55936599 to stage-korg-master

Change-Id: I5f04a3ae2f0246853f16b0fdb209e67df95e6ca8
a930b6831d0c70b6c5d34e548e6b1dceaa6529a0 01-Nov-2010 Mohammad Shamsi <m.h.shams@gmail.com> code cleanup.
unused imports, local variabls and static constans removed from
com.android.bluetooth.opp package.

Change-Id: I0fd682a190221e216fac71723c05d3828b9fa42d
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppTransferHistory.java
eb77c4b1d9aa71d7dd8dd934e9d1971583f9c0e2 03-Aug-2010 Liejun Tao <L.J.Tao@motorola.com> Optimize Opp Notification

Current Opp notification is running too frequently. When file transfer
speed is fast, it could update notification 7-8 times in 1 second.
Use a timer to limit the notification to once per second.

Change-Id: I162033d9e12148260515c8ed318928e4de9a4392
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppTransferHistory.java
de773e60fed15a4ad13325089a5609c9bc6ede59 15-Mar-2010 Lixin Yue <L.X.YUE@motorola.com> Update notification in Transfer history manually when BT if off
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppTransferHistory.java
5cc617943765df27844e459362c4bc1821305216 26-Feb-2010 Lixin Yue <L.X.YUE@motorola.com> Add opp Transfer history to avoid cluster of notificatoins To reduce the cluster of Opp nofications, we introduce the concept of Opp transfer history. Only 2 notifications exist for finished opp transfers, one is for outbound transfers, and another is for inbound transfers. User can see all detailed items in corresponding screen when click the notification.

Change-Id: Iffed353ea6b0d7c958c71fe8d3996937058ced30
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppTransferHistory.java