History log of /packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppService.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
750fd64e9e3724902190f74ebb2538a966a3e11e 04-Mar-2014 Juffin Alex Varghese <jalex@codeaurora.org> Bluetooth-OPP: Avoid IndexOutOfBoundsException if share is zero

This change will avoid IndexOutOfBoundsException if number of sharing
files are zero. Otherwise, Bluetooth application will force close itself
when exception encountered.

Change-Id: I42473c8ca2d9116c6d57707ab8f3c452d7027e67
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppService.java
275aaa55584ba62ab176a30cdabc432a6ff875d2 03-Oct-2013 Ashwini Munigala <AshwiniM@codeaurora.org> OPP: Handle intent receiver leak for BT TURN OFF.

Mark INBOUND and OUTBOUND active transfer as cancelled
on BT TURN OFF.

Change-Id: I52e6d59ba56e004af2dc25b85975dfeb6c19320a
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppService.java
0f4ef70f0bc246b224f7b6da524128db89fcc8a7 30-Nov-2012 Matthew Xie <mattx@google.com> Clean up debug messages

bug 7626174

Change-Id: I0161d54dd325a7a1afcf8926ef54cd483e7503fb
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppService.java
ee52ddf33a0ce2cf89cc028136f60ae600c45de5 27-Jul-2012 Jake Hamby <jhamby@google.com> Enable Bluetooth sharing of downloaded files.

Change BT OPP to open the InputStreams of files to share in the
BluetoothOppLauncherActivity (or BluetoothOppHandoverReceiver
for NFC shares), while the process has grantUriPermission() on
the URI's to share.

InputStreams are saved inside the existing BluetoothOppSendFileInfo
objects, which no longer include the mDestination field because
this isn't known at the time the SendFileInfo object is now created
(before the user has chosen the destination BT device). These
objects are stored in a static ConcurrentHashMap in BluetoothOppUtility
and are removed when the file is closed (on success or failure).

If the user tries to share thousands of files in one batch, we may
not be able to open InputStreams for all of the files in the batch.
In this case, the open should fail gracefully.

Bug: 6808783
Change-Id: I3f3f86d2dc1a78a837aeb6a888f90b26434ba499
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppService.java
15d36984a79d6e35c659edb0efdf929f0b526bd5 01-Aug-2012 Fred <fredc@broadcom.com> Fix for BT turn on/off issues: NPE, FD/thread leaks, ANR.

This fix addresses numerous BT on/off issues found from the CTS test.
Fixed fD/pipe leak in various state machine Looper objects by calling quit() function.
Fixed cursor leak in AtPhonebook.
Change Pbap to stop the RFCOMM listener on the STATE_TURNING_OFF instead of STATE_OFF.
Removed several cleanup() methods causing NPE.
Reduced RFCOMM listener timeout from 3 seconds to 300ms between retry.
bug 6834336

Change-Id: I52423343d8f52f65294af0143f373871a9874d77
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppService.java
4852c5686229f1014e9851f4e9a3a19547581b45 10-May-2012 fredc <fredc@broadcom.com> Moved BluetoothAdapter.ACTION_STATE_CHANGED broadcast from AdapterService to BluetoothManagerService

Change-Id: Ic9911359c1d9e04a5d803807ea7cf4ad39616960
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppService.java
31ba132491053bc86d419a7d51fc04af3299c076 26-Apr-2012 fredc <fredc@broadcom.com> Fixed Bluetooth on/off issues. Removed singleton instances causing issues when services reload. Updated adapter state machine

Change-Id: Ie1ff4284f507c7da102569f3c0acfd55612a5f6b
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppService.java
3fafe61ef25c1899fdc817c52163aec16c31055c 19-Apr-2012 Ravi Nagarajan <nravi@broadcom.com> Memory profiling changes : Updated the Bluetooth code to handle cleaning up of object references (context, handlers, and collection objects ) during service cleanup.Memory profiling changes : Updated the Bluetooth code to handle cleaning up of object references (context, handlers, and collection objects ) during service cleanup.

Change-Id: I2b0235f71c1feaf32215b2aaf89a2e06d8fa7d73
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppService.java
d5e1472188b7e21123a02339ed8766256aa8f630 15-May-2012 Martijn Coenen <maco@google.com> Don't MediaScan files received through handover.

Handover providers such as NFC may move the file in the filesystem
(out of /bluetooth), hence it's better not to scan them here.

Change-Id: Ic374c5ae880cb65e2d8a9ce615115b51fdc29353
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppService.java
ef697b0b9a74e15b5003e134307e72b20b48de12 02-Aug-2011 jhtop.kim <jhtop.kim@samsung.com> Bluetooth : fix for the OPP service bug while BT on/off

Update patch set for removing BOOT_COMPLETED.

BluetoothOppService.java : use sendMSG instead of sendMSGdelayed
BluetoothOppReceiver.java : delete boot-complete line
AndroidManifest : delete boot-complete line

Change-Id: Icf9a2f48a70ba519cb3caf93a0b33e13472d1f54
Author: jhtop.kim <jhtop.kim@samsung.com>
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppService.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/BluetoothOppService.java
0a79bdbbfa3b79b808cbbe7490731e5aae4489e9 28-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> Trim the Bluetooth database off the main thread.

This looks to be most if not all of the remaining StrictMode
violations in this process. Not a huge deal, but cleaning up noise
will make bigger problems stand out easier in the future.

Change-Id: I262194c12114114fbe059d73475afb1bbb5654ab
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppService.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/BluetoothOppService.java
75fc857d22de0ec22e082bddb720d8465c9e3552 12-Mar-2010 Lixin Yue <L.X.YUE@motorola.com> optimize deleting operation in trimDatabase()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppService.java
389f6dd45f7a45b12af847a510086125777e1198 03-Mar-2010 Lixin Yue <L.X.YUE@motorola.com> Trim Opp database when service restarts.

When Opp service restart, we will trim the database.
a) No visible case is deleted.
b) Invisible complete outbound (failed and successful) are deleted.
c) Invisible complete failed inbound are deleted.
d) Invisible complete success inbound are deleted if needed to keep records max
to 1000.

Live folder only has received files, so the above makes sense.

Change-Id: If27080721d9abed025162ff805f661fde01564d3
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppService.java
03f598bafa0fc0cbde0c5ab8fed89e07a67d482e 25-Nov-2009 Jaikumar Ganesh <jaikumar@google.com> Catch all exceptions while trying to send a file.

While trying to share pictures, some applications might
not have given the adequate permissions.

DrNo:Jsh
Bug:2284822
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppService.java
3a88b20fcd71e42451e402d27374b19eeb2ff0da 08-Oct-2009 Nick Pelly <npelly@google.com> Update application code for BluetoothAdapter.getDefaultAdapter().

Change-Id: I7baafb909b74783da4e51d48f2465e7aacf07eb5
DrNo: eastham
Bug: 2158765
Joke: What goes 99-thump, 99-thump? A centipede with a wooden leg.
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppService.java
8222c7902a2281929fd31e840f6012038e6fa44a 29-Sep-2009 Lixin Yue <L.X.YUE@motorola.com> Update OPP/PBAP service to use onStartCommand()
Adjust function call seqence in PBAP closeService
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppService.java
9d9e511fe7425fb3105ece227ecedb43d6333333 21-Sep-2009 Tao Liejun <L.J.Tao@motorola.com> Use new SDP API for OPP

Use new API BluetoothDevice.fetchUuidsWithSdp() to query SDP for un-paired device, and request SDP
update when Opp is not in cache.
Handle a concurrent case when incoming connection and file share happens together
Some other minor changes

Change-Id: I7ebf34801518867553551d8f7bba7ac62e22667e
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppService.java
f2c447b81c6c03cb1c8a3e64a10381e23934834a 10-Sep-2009 Nick Pelly <npelly@google.com> Update application for Bluetooth API changes.

Change-Id: I618553f2aa4e8705e3dff1247752e5fc357ef94d
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppService.java
613bae227d65f61903e196944a9c718b4394f25a 09-Sep-2009 Nick Pelly <npelly@google.com> Update application for Bluetooth API change: deprecation of BluetoothError.
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppService.java
f4a286ee2aba5a75abe41881334bbdb5d0080105 09-Sep-2009 Nick Pelly <npelly@google.com> Update application for Bluetooth API change.
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppService.java
888485a3f5fe991116c5536bb6d6903d47b63a70 31-Aug-2009 Tao Liejun <L.J.Tao@motorola.com> Cleanup Opp debug code

Stop Rfcomm polling
Delete a few unused functions
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppService.java
ce4d93666275df294cb073fe41de5b85932570a8 28-Aug-2009 Nick Pelly <npelly@google.com> Clean up Logging.

Use the pattern if (V) Log.v(...); for logging. The Android style prefers curly braces, but for log lines it is ok to use a one-liner to keep the code manageable.

Remove spaces from some log tags, and rename TAG BluetoothShareProvider to BluetoothOpp.

Rename LOGVV to V, and LOGV to D.

Just before ship we will change Constants.DEBUG and Constants.VERBOSE to false to compile out all the logging code.
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppService.java
1ac5507790a87810061a19dadec36eb328a222ea 07-Aug-2009 Tao Liejun <L.J.Tao@motorola.com> OPP update

Rewrite provider permission to allow LiveFolders work
Support file:// uri to share file
Support multiple share from gallery
Fully support sending file queue
Hold incoming connection for a while when OPP is busy instead of reject directly
Move notification update to a thread
Handle many error cases to display correct error messages
Improve server/client timeout
Delete empty file after reject incoming file
Support upper case incoming file extension
Avoid multiple mediascanner connections
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppService.java
41ef8d494511c040451f2f887cb31c3100746b61 07-Aug-2009 Nick Pelly <npelly@google.com> Bluetooth: Update Bluetooth.apk to match BT API change.

Split BluetoothDevice into BluetoothDevice and BluetoothAdapter.

BluetoothAdapter: Represents the local BT adapter. Operations on the local
adapter (start a scan, etc).
BluetoothDevice: Represents a remote BT device. Operations on remote devices
(pair, connect, etc).
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppService.java
52236de777c23788df8147de15912a57e8bc36dd 04-Aug-2009 Tao Liejun <L.J.Tao@motorola.com> Fix a few OPP issues

Grab wakelock for server session
Fix send small file bug
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppService.java
df7415da0e510ab8e4b73831a5ade38306982fe1 16-Jul-2009 Tao Liejun <L.J.Tao@motorola.com> Fix OPP receive bug

Fix the bug that second receving would fail
Show display name instead of full name in notification
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppService.java
6769b59d715ea98bd72eafcfea9acd2714a887da 15-Jul-2009 Tao Liejun <L.J.Tao@motorola.com> Make opp compile

Modify to make opp application compliable in new git
-change package name
-change manifest
-modify a few comments
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppService.java
09e9cba205af60b3f42e7a4d891a7d1392e1f2a5 11-Jul-2009 Nick Pelly <npelly@google.com> Initial drop of Motorola Bluetooth OPP code.

Minor changes from Moto code:
- Added Motorola BSD license
- Moved com.motorola.bluetoothshare to com.android.bluetooth.opp
- Updated com.motorola.obex to javax.obex
- Moved Android.mk to Android.mk.hide: does not yet compile due to changes in
Obex library.
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppService.java