History log of /packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothManager.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b707255a440e53ec2865c4b34c7ea07d16d471bd 09-Aug-2011 Matthew Xie <mattx@google.com> Remember user choice for phone book access permission dialog

Change the always-allowed checkbox to be don't-ask-again checkbox to remember
user's decision so that user will not be bothered agian if he/she checks
the don't-ask-again checkbox
bug 5099661

Change-Id: If32ab8e93313bbd33ff040553083f0cf9359b69e
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothManager.java
e96f04c1ffaa99992f9ed4c2687db0b955ae0450 20-Jul-2011 jhtop.kim <jhtop.kim@samsung.com> Bluetooth : fix for Settings crashes while rotating the screen.

- Add some codes preventing setting crash when rotating the screen
when the Rename device or Visibility timeout dialogs are visible.

Change-Id: I5e142a5d869a0d5c91c6ace80093d09178d79558
Signed-off-by: jhtop.kim <jhtop.kim@samsung.com>
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothManager.java
bb16e15de32f14c25728db39494c0cff9b80d186 19-Jul-2011 jhtop.kim <jhtop.kim@samsung.com> Bluetooth : fix for crashing alertDialogbox

- changes for crashing of alertDialogbox while displaying message
- in showError function, this fix code shoud be added in case of showing error pop up

Bug: 5068089
Change-Id: I40e8a699461832b7bd47080b40f467572632d412
Signed-off-by: jhtop.kim <jhtop.kim@samsung.com>
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothManager.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/LocalBluetoothManager.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/LocalBluetoothManager.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/LocalBluetoothManager.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/LocalBluetoothManager.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/LocalBluetoothManager.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/LocalBluetoothManager.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/LocalBluetoothManager.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/LocalBluetoothManager.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/LocalBluetoothManager.java
dd79a33ba53fec530094f4d2fe37f0538530d9f8 24-Sep-2010 Jake Hamby <jhamby@google.com> Auto-connect Bluetooth device only when user initiates pairing.

Fix bug 2271901: do not auto-connect to services on a BT device
when pairing was initiated by the device (e.g. for OPP file transfer).

Also corrected some typos and removed an unneeded lock object in
LocalBluetoothManager (synchronize on .class object instead, like
android.bluetooth.BluetoothDevice.getService() does).

Change-Id: I121105c6eee2658129f6094786754bbc7932d324
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothManager.java
c5c8dad0afb84bda9495a0aa1f7d6a3db28de5cb 14-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> Use new apply() instead of commit().

apply() starts an async disk write and doesn't have a return
value but is otherwise identical in observable effects.

Change-Id: I0f528607319d7eb5136bb11fce0b24d8741ccdf9
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothManager.java
76098b7f7ac4f19af776fcad8413b582904bfdc2 03-Mar-2010 Michael Chan <mchan@android.com> b/2310373 Show pairing dialogs if the device has been scanning for bt devices recently.

Change-Id: Iec9eb37a5e79b63cc3cf226e2ead6d9ed06d56a6
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothManager.java
20b0ae927ef82f8dd31a1c7a1b3784caaf88bfa0 11-Dec-2009 Michael Chan <mchan@android.com> am 488a80a7: Merge change Id587a517 into eclair

Merge commit '488a80a7b111f5906bf51101785a95a6c640d265' into eclair-mr2

* commit '488a80a7b111f5906bf51101785a95a6c640d265':
b/2314560 Prevent PIN dialog from showing up on undocked docks
d617a0781cd1a39ed0f726545ed23d5b00ca31c2 10-Dec-2009 Michael Chan <mchan@android.com> b/2314560 Prevent PIN dialog from showing up on undocked docks

If unpaired while undocked, device will be removed from the BT device list.
If unpaired while docked, the user can do pair and connect. No PIN dialog will pop up.
If undocked after unpaired, device will be removed from the BT device list.

Change-Id: Id587a517999e08641451f78dec8696a06028cf16
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothManager.java
4fcf94c47b5526e1ee64854d7e25bfcac171885b 10-Nov-2009 Michael Chan <mchan@android.com> am 5469ff8b: b/2226832 Showing Pairing Dialog in the foreground

Merge commit '5469ff8b3f9966c6f141078b37da5f178b7825e4' into eclair-mr2

* commit '5469ff8b3f9966c6f141078b37da5f178b7825e4':
b/2226832 Showing Pairing Dialog in the foreground
5469ff8b3f9966c6f141078b37da5f178b7825e4 09-Nov-2009 Michael Chan <mchan@android.com> b/2226832 Showing Pairing Dialog in the foreground

Pairing Dialogs notifications (in the window shade) were not visible in full
screen apps e.g. gallery. Showing Pairing Dialog in the foreground:
1) if the remote device was picked in the device picker in the last minute or
2) if the device was in discoverable mode in the last minute.
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothManager.java
81cdaff7b5aed3ea2b987b23e2e9a6c0213b0aa5 08-Oct-2009 Michael Chan <mchan@android.com> b/2173596 Cancel Bluetooth scanning when the user leaves Bluetooth Settings.

Change-Id: Ib4dd6254c90da619e853b1be22fba3ff1365258e
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothManager.java
d1a04291c537e271999c7e7c5c72f1f61632aacf 08-Oct-2009 Nick Pelly <npelly@google.com> Update application code for BluetoothAdapter.getDefaultAdapter().

Change-Id: Ic8f2188a28631f55ceb048daff545ca5e6053f92
DrNo: eastham
Bug: 2158765
Joke: When is a car not a car? When it turns into a driveway.
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothManager.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/LocalBluetoothManager.java
363bd5554e83c29ecdf2ec762f719dea29ffa430 16-Sep-2009 Jaikumar Ganesh <jaikumar@google.com> Fix string name for bluetooth pairing and fix NPE

Change-Id: Ibfd0e1e1ed3e1a1e5939d0bdffd17e2e929317b1
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothManager.java
3eb43fe7a4a508e8cd476525fd68ec8d900f06b8 15-Sep-2009 Jaikumar Ganesh <jaikumar@google.com> Show name for incoming pairing requests.

Settings apps invalidates its cache whenever a new scan is started.
When there is a new incoming pairing request, we will not get a DeviceFound
signal, because its not due to a inquiry scan. Thus when the pairing request
is displayed, the settings app doesn't have it in cache and hence will
just display the address. Make it query the framework when it doesn't have the name.
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothManager.java
5f23cb39a1bd9c319383108c209fca7f0256894b 11-Sep-2009 Jaikumar Ganesh <jaikumar@google.com> Modify settings for 2.1

Add incoming pairing dialog
Add DisplayPasskey handling of pairing keyboards with 2.1 devices.
Modify code path to show errors when bonding request fails.
Misc fixes like string changes.
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothManager.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/LocalBluetoothManager.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/LocalBluetoothManager.java
ca564d6bdaa56fba60f499e092e1024fff5d1aba 09-Sep-2009 Nick Pelly <npelly@google.com> Update application for Bluetooth API change.
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothManager.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/LocalBluetoothManager.java
91b33f14620519e15507e62192701abed29179a1 06-May-2009 Jaikumar Ganesh <jaikumar@google.com> Settings app changes for Bluez4.
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothManager.java
5ffbb91013a3d464af6e2afe8fdb92f56baba1d8 01-May-2009 Michael Chan <mchan@android.com> Reenable verbose logging for post-donut
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothManager.java
f25063aee3d8eeaf3767b3a4bf43e1895f2deb2d 29-Apr-2009 Michael Chan <mchan@android.com> Fixed the Bluetooth On/Off Checkbox in settings so it is enabled/disable properly.

In the BroadcastReceiver, pickup the new bluetooth status from the intent instead
of calling back to LocalBluetoothManager. There could be race condition since
LocalBluetoothManager itself gets the same info via the BroadcastReceiver mechanism.
Also cleaned up logs.
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothManager.java
1739bfb3336b64e645e8ed06d201e65fffccf9eb 30-Mar-2009 Michael Chan <> AI 143480: Fixed the problem where Settings would crash if you enable airplane mode, go
Home, go back to Wireless Settings. This only happens in emulator. Bluetooth
isn't supported in emulator but the crash was fixed so users can
enable/disable Airplane Mode.
BUG=1741119

Automated import of CL 143480
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothManager.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/LocalBluetoothManager.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/LocalBluetoothManager.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/LocalBluetoothManager.java
a578a6c4ad2924236a8882e3eb794474d57ca450 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@132589
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothManager.java
8a156091eff22a360f802332daf2fe00b4267ad7 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@137055
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothManager.java
1feaa85791b3b5cc66a16142afc2259a2356bc9e 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothManager.java
590c0a97ff3b7665306e14da9a999212da5f06b9 22-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@127436
/packages/apps/Settings/src/com/android/settings/bluetooth/LocalBluetoothManager.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/LocalBluetoothManager.java