summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/bluetooth/BluetoothPairingRequest.java
Commit message (Collapse)AuthorAgeFilesLines
* Save changed name from CachedBluetoothDevice to native storageMatthew Xie2011-07-271-1/+1
| | | | | | | The change preserves the friendly name change over power cycle. bug 5081605 Change-Id: I2b2cce5a789c72d52439511c42df369639eb0b4b
* Refactor Bluetooth settings for readability and performance.Jake Hamby2011-03-011-21/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Add new pairing dialog for keyboard pairings.Jaikumar Ganesh2011-01-061-3/+5
| | | | Change-Id: I672a3d874a7876fca6bd38091444dc9c5fb3a2f1
* Implement BT settings functionality for new UI.Jake Hamby2010-12-091-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | - 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
* BT: The Phone doesn't "wake up" when trying to pair with it.Erik Ljungberg2010-09-011-2/+8
| | | | | | | | | To improve the pairing request usability: - In the case where a notification shall be used the standard notification sound is added - When the screen is off notification is always used. Change-Id: I751a7913517c64de5d7ba06d7c17358197d002c5
* b/2226832 Showing Pairing Dialog in the foregroundMichael Chan2009-11-101-2/+2
| | | | | | | 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.
* Modify settings for 2.1Jaikumar Ganesh2009-09-111-1/+2
| | | | | | | 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.
* Update application for Bluetooth API changes.Nick Pelly2009-09-101-11/+11
| | | | Change-Id: I8351611f0f0c5eda3e423dbe7e7b53e52d75ac36
* Bluetooth: Update Settings.apk to match BT API change.Nick Pelly2009-08-171-3/+4
| | | | | | | | | 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).
* Initial 2.1 bluetooth support.Jaikumar Ganesh2009-07-201-0/+103
Need to work with Strings and UI person to fix and later test everything.