History log of /packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c777ee29c856e1d1a2a61ccd799b6e18b50febdc 05-Mar-2011 Jake Hamby <jhamby@google.com> Improve Bluetooth tethering UI usability.

- Updated hint text for BT tethering checkbox to
"[Sharing|not sharing] this [tablet|phone]'s mobile data connection".
- Show correct hint text when user enters tethering screen.
- Show correct status after user enables tethering when Bluetooth is off.
When BluetoothPan.setBluetoothTethering(true) is called with BT off,
BluetoothPanProfileHandler will add a broadcast receiver to enable
tethering after BT turns on. This happens too late to show the correct
status when TetherSettings gets the adapter state changed event, so set
a flag (mBluetoothEnableForTether) instead, and call setBluetoothTethering
ourselves after the state changes to ON. Also, clear the flag if the
adapter state changes to OFF or ERROR.
- Show correct status when user enables tethering, then disables Bluetooth,
then returns to the tethering screen. Previously it would show
Bluetooth tethering enabled, even though adapter state was OFF.
- Show the number of connected devices in tethering preference screen.
- Distinguish between PANU and NAP in device profiles screen, and show
appropriate text to clarify the direction of tethering.
- Remove profiles from device profiles list when the device removes the UUID
(e.g. Mac OS X turning NAP on/off) and after a NAP disconnection when the
remote device only supports PANU.

Bug: 3414575
Change-Id: I2c0830876d5b9bddb293e57c4d3ca74f105911b8
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
6eb84ac6de9eeacc1e199d74310cf91f5a98daf2 04-Mar-2011 Jaikumar Ganesh <jaikumar@google.com> Settings app: Run Bluetooth Event receiver when not in fg.

Also fix connection indication issues.
Fixes bugs 3510336 and 3513352

Change-Id: Iaa47c9d7fd04fa5dd2700f55993ba2fd1a78fd70
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
436b29e68e6608bed9e8e7d54385b8f62d89208e 08-Feb-2011 Jake Hamby <jhamby@google.com> Refactor Bluetooth settings for readability and performance.

Major refactoring of Bluetooth settings classes.
- Moved all functionality from LocalBluetoothManager into new
LocalBluetoothAdapter and LocalBluetoothPreferences, and into
existing classes.
- Refactored functionality from BluetoothEventRedirector into new
BluetoothEventManager class, deleting the original version. New
version uses a HashMap from action Strings to implementers of the
BluetoothEventManager.Handler interface.
- Created new BluetoothDiscoveryReceiver to update shared preferences
timestamp for Bluetooth discovery start/finish. This is the only event
handling we need to do when the settings app is not visible, so it has
its own receiver entry in AndroidManifest.xml. Edits are written using
QueuedWork.singleThreadExecutor(), which BroadcastReceiver knows about
and will wait for completion, eliminating the need for PendingResult.
- Miscellaneous cleanups to code style and logic for readability.
- Pulled some large switch statement code blocks into new methods.
- Changed all Bluetooth state references to the new BluetoothProfile
constants.
- Changed use of deprecated Notification constructor in
BluetoothPairingRequest to use Notification.Builder.
- Moved Utf8ByteLengthFilter helper function from BluetoothNamePreference
into its own class, and moved test cases into the same package.
- Moved all LocalBluetoothProfileManager functionality related to
specific profiles into new top-level classes (A2dpProfile, etc.), all
implementing the LocalBluetoothProfile interface.
- Moved all UI-related methods from CachedBluetoothDevice into the class
that uses the method, or into the static Utils class for shared methods.

Change-Id: I6d49b7f4ae0c7d7dcf62551ee40b51ecb5fe4f47
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
9ad703cdb9a8d0972c123b041d18aa7bbeb391a4 23-Feb-2011 Jaikumar Ganesh <jaikumar@google.com> Make BluetoothPan implement BluetoothProfile.

This makes it consistent across all other profiles.

Change-Id: I4c0694d042d7ed1b78c92ca3be38c8d543886769
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
77bcd7e80718b3964cc91b1d941563b6023ccc3c 18-Feb-2011 Jaikumar Ganesh <jaikumar@google.com> Update code for making BluetoothInputProfile implement BluetoothProfile.

Change-Id: Ib04abc590429eaa40c0ea1bd24fa728d41306fe8
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
a6d9fce2e16a536220d1180d6bd3916d87ffea11 28-Jan-2011 Jake Hamby <jhamby@google.com> Don't display extra A2DP profile icon for OPP.

The getDrawableResource() method for OppProfileManager was returning
the resource ID for the A2DP icon. This was causing an extra headset
icon to be drawn for devices supporting OPP, when no icon should be
shown for this profile. Changed to return 0.

Bug: 3368197
Change-Id: Idcadaf59fe53301544cda215ca24f15608b2d727
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
632a10f470d5086d18fab3eec89cef1d03e899c6 27-Jan-2011 Jake Hamby <jhamby@google.com> Fix settings NPE crash on launch.

Sometimes when the settings app is resumed, HeadsetProfileManager's
getConnectedDevices() method is called before the onServiceConnected()
callback gives us the proxy object, causing an NPE. Check that we
have the proxy object, and return an empty list otherwise. The
correct states will be shown in the UI because the
onServiceConnected() callback makes its own call to getConnectedDevices()
to set the correct headset profile state.

Bug: 3378431
Change-Id: I364ade0804fb2090378438c8721afef6cac2b0b8
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
8140d9c9166990236e9b15cdefc96d348ba69a53 19-Jan-2011 Jake Hamby <jhamby@google.com> Add icons for Bluetooth HID and PAN profiles.

Add icon resources for Bluetooth keyboard/mouse (HID profile)
and reverse tethering (PAN profile).

Bug: 3137982
Change-Id: Id6c4a9f2b4bee2fdf43626592e32070b49e49d73
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
a0d39a39c2f53ebe858685c75c756b51dfac49da 11-Jan-2011 Jake Hamby <jhamby@google.com> Allow multiple simultaneous connections for BT input devices.

Move responsibility for disconnecting devices before connecting a new
profile from CachedBluetoothDevice to LocalBluetoothProfileManager.

The ProfileManager subclasses of LocalBluetoothProfileManager will
handle disconnecting the previously connected device, if necessary,
as part of connect(). The HID profile allows multiple simultaneous
connected devices, while the other supported profiles do not.

Bug: 3333975
Change-Id: Id51b26e64f7c3ee7d54af3a03ca82a669f305b52
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
39ef225e7c44a48aa9cfdf5c56ecd4ddfb95ae89 17-Dec-2010 Jake Hamby <jhamby@google.com> Enable reverse tethering in BT settings screen.

- Enable support for reverse tethering in BT settings.
- Add string resource for "Auto connect" preference.
- Remove unused imports and other minor cleanups.
- Add isConnectable() and isAutoConnectable() methods to Profile
enum type and remove isConnectableProfile() method.

Change-Id: Ie606db04028a8278e98231f0671a388671f2f067
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
498d12bac0df509a4f74a4df8a8c69ec22583a1a 11-Dec-2010 Jaikumar Ganesh <jaikumar@google.com> Add ability to connect to only headset profile.

Fix some SDP records issues.

Change-Id: I42816527b1ae0749b4b59b7947f1acb9d2e6f001
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
c090feb64f674d9840993736a24f9667f8b0e0d5 08-Dec-2010 Jake Hamby <jhamby@google.com> Implement BT settings functionality for new UI.

- Removed context menu logic for long press (no longer used).
- Converted device picker to run in its own Activity, using a dialog
theme on large screen devices and full-screen on phones.
- Removed unused resources.
- Add device to "Paired devices" list when pairing is initiated by the
remote device.
- Return to Bluetooth settings pane after successfully pairing a new
device from the "Find nearby device" pane.
- Add support for renaming devices (TODO: persist the custom name and
update the "bread crumb" in the action bar to the new device name).
- Add support for incoming file transfer and auto connect checkboxes
in DeviceProfilesSettings.
- Show available and connected device profiles as icons instead of
summary text. Available but disconnected profiles are drawn in gray.
- Fixed bluetooth_notif_message to include the device name as a parameter
instead of appending the name to the end of the localized string.
- Changed some fields from private to package scope for more efficient
access from inner classes.

Bug: 3137982

Change-Id: Ic2d6ee5be60c9c5b3f3a8a58846d58efedfa5c93
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
8c04b90cc95b16f8d7e99a61d8e2c940ed83b0c4 24-Nov-2010 Jaikumar Ganesh <jaikumar@google.com> Update supported profiles for voice capability.

Change-Id: If12f97ccc5d7d54d8d3e470dd4bc91fe9119b9cd
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
e79f990490de49b39097433707c2bae6d8238330 03-Nov-2010 Jake Hamby <jhamby@google.com> Implement individual Bluetooth profile connect/disconnect.

Allow individual Bluetooth profiles to be connected/disconnected from
the device's settings pane.

Bug: 3137982
Change-Id: I21512c5bf965fc523f3dc1e83d029b16b5e22440
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
48e90002839e662eb1667471aebeb0483e9fb7db 26-Oct-2010 Amith Yamasani <yamasani@google.com> Bluetooth settings revamp

Added a separate scanning screen.
UI changes to not require long-press options.
Needs TODOs to be filled by BT team.

Bug: 3038327
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
659b39abf8580a49bd77f194c9ac30359f610709 19-Oct-2010 Jaikumar Ganesh <jaikumar@google.com> Update BT APIs for change in return type.

Change-Id: Ic85b47da50876fd6bdc6e223af4248a8586d82bc
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
5809d33296d60f54c7e93de2f45bd84579f70449 19-Aug-2010 Jaikumar Ganesh <jaikumar@google.com> Update code for public Bluetooth APIs

Change-Id: Iab22e4ae3206f9085b2d53b8b18dc2abd6197226
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
32711b6752eb73324e1b10db975ac956888eda96 11-Aug-2010 Danica Chang <danicachang@google.com> bluetooth tethering

Change-Id: I8dfb1c85bb8b963d2937b8bc4a4c9f0cf641785d
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
792d2132e408ded2b2d56646ba263808dd51fc31 08-Jun-2010 Adam Powell <adamp@google.com> Add keyboard support to bluetooth settings.

Change-Id: I8fe41056acd074374cd249bfd0be6034f2614d37
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
8038834f8e768f6a62b4c7d5498160eb2c8b4895 02-Jun-2010 Jaikumar Ganesh <jaikumar@google.com> Changing disconnectHeadset calls.

Change-Id: I2f058f28a09e983cd42e5a74bb4ffea19f07b880
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
57d5585595810044e7727d4303214f69ff2d77d4 15-May-2010 Michael Chan <mchan@android.com> b/2680057 Fixed a bug where bt won't connect when the phone is docked (if Settings wasn't running).

The fix was to wait for the Bluetooth Headset service to come up before grabbing the settings and connecting.

Change-Id: I57affca2fe7d571c96cfeaf9ffe5439a0b02af45
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
845e740fc63657438b9085376c8e7d60d8334a72 14-Jan-2010 Michael Chan <mchan@android.com> b/2367861 Auto connect if the user turns on BT while docked.

Change-Id: I855d0448af9c9c665fb8288c83cd13ae9c3d6050
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
6e3ee10a99b4d71ffe8f2473dcb8c6dbf4da0ed5 10-Dec-2009 Jaikumar Ganesh <jaikumar@google.com> Fix auto connection of A2DP profile.

When the user selects profiles from the UI, set priority to ON.

Dr No: Eastham
Bug: 2317323
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
55dc6cb99db1f9f6677dfec5a25a34e933807be5 08-Dec-2009 Jaikumar Ganesh <jaikumar@google.com> Disconnect even Sinks in Connecting state while connecting another sink.

We can hit this more when using a Car Dock

Bug: 2133530
Dr No: Eastham
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
0bd445b974292dc3910b6bb85dcee7e7c378968f 03-Dec-2009 Michael Chan <mchan@android.com> b/2296110 New Dialog which appears when phone is place on dock.

Change-Id: I58b216ee9b4ca9ce16210309358c0512271e128e
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
3327f7887328c55ef2d837a8e2a07cea2070c744 03-Dec-2009 Michael Chan <mchan@android.com> b/2293042 Fixed the problem where A2DP connections may fail if there's an existing connection to another device.

Change-Id: I1b4963a167b633c0905e2719ab3f651ff8be9f2c
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
9a1ed7e4e648c5be77c3cbaae4988c54c9b1c6fe 24-Nov-2009 Jaikumar Ganesh <jaikumar@google.com> Update to reflect new priorities for A2DP profile. DO NOT MERGE.

1. PRIORITY_OFF is when it is unchecked.
2. PRIORITY_ON is when it is checked.
3. PRIORITY_AUTO_CONNECT is when we want to auto connect.

When the box is checked, we want to auto connect,
so set the priority to AUTO_CONNECT.
When the user disconnects, we set the priority back
to PRIORITY_ON.

Change priority for Headset profile on the same lines as A2DP profile.

AUTO_CONNECT => we auto_connect.
ON => Settings app box is checked and we allow incoming connections.
OFF => Settings app check box is unchecked.

Dr no: Eastham
Bug: 2133530
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
079ee952bdfae560c36df1f1dcd3f1177e4afa47 28-Sep-2009 Nick Pelly <npelly@google.com> Update application for android.bluetooth.ParcelUuid -> android.os.ParcelUuid

Change-Id: Iebf2b3ea9cac224e3e6c67e503b1063491dce5bb
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
f2f3ceebbdf724e8904712a2a21cb0e677b7ea0d 24-Sep-2009 Michael Chan <mchan@android.com> b/2138890 Pre-initilize Bluetooth profile managers

Change-Id: I633202457ca445308ec35b99260e603a85451042
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
1bfe73d0b1d338f3c16a8177eb8de509e44a5c01 23-Sep-2009 Jaikumar Ganesh <jaikumar@google.com> Filter devices by UUID and then class.

The settings app has been updated to use UUIDs.
When there is a filter type set for device picket UI, use the
UUIDs first and then the class bits.

Change-Id: Ifde5dbc3a1cf25babce4c686002315aa3933de59
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
2aef1f3c814b1f8aa00aeefff35caf293c738702 21-Sep-2009 Michael Chan <mchan@android.com> b/2126036 Improve remote device capability identification by switching to use UUIDs instead of class bits.

Change-Id: Ie60d1c579e40027c2174215c1989887a3250c9bc
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
16cc86315d7a8e1f6a0f3083d0a810a7cb097832 10-Sep-2009 Nick Pelly <npelly@google.com> Update application for Bluetooth API changes.

Change-Id: I8351611f0f0c5eda3e423dbe7e7b53e52d75ac36
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
f4779354b39353a48d0bec6cc5c71fd73e3f369a 09-Sep-2009 Nick Pelly <npelly@google.com> Update application for Bluetooth API change: deprecation of BluetoothError.
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
a41e2f94b792e44872be87f40fce182e6b39f4ba 09-Jul-2009 Yue Lixin <a5206c@motorola.com> Implement Bluetooth device picker

Add Bluetooth device picker in Settings
- add resource to support device picker
- show different UI accroding to start Intent
- add OPP profile manager
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
d63c0112251ab4e4e977545368dd703d875012a4 15-Aug-2009 Nick Pelly <npelly@google.com> Bluetooth: Update Settings.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/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
6c97742c88303c65e68fe08257a7ccf841f03866 07-May-2009 Michael Chan <mchan@android.com> Always add the bt profile to profile list on the arrive of a connect event

Always add the bt profile to profile list on the arrive of a connect event. Previously,
the connect event is ignored if it is a profile that's not known ahead of time.
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
e6dd1fa1851302710ac7845d25d8ad8a5b6ee438 19-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@140373
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
648bf5fd9e099cd677f7609afde831ac446deef0 09-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@137197
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
afc4ab2ffbb8327ddce9907961295a32cbf49d0f 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
4e14e5ccbf1ef27220419849133d482a546d5c04 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
01f172366c86623cc45a1b9a810dda86c595eb19 20-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@127101
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
1152aff9d0767e528aa4a40cc8acb51b9c21d2e7 16-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@126645
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java
abc48f80d8747b4fc051b7dd364355ee667a9bac 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java