History log of /packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothPairingDialog.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2a67cf046511865107f78104b4296b8967d1cd5b 25-Apr-2017 Jack He <siyuanh@google.com> Bluetooth: Dismiss pairing dialog on user click

* Existing pairing dialog should be dismissed when user clicks on Yes/No
* In a pairing session with multiple pairing dialogs, this is necessary
as otherwise the second pairing dialog will not be shown
* Modified unit test to test this behavior
* Launch pairing dialog as UserHandle.CURRENT to avoid Context warnings

Bug: 35833536
Test: make, unit test, pair with Bluetooth devices
Change-Id: I1823b78d287134505f59eab7caca2329ecc3a36f
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothPairingDialog.java
d98d0837d85d11b29967c924638a1f0af6e08e24 04-Oct-2016 Salvador Martinez <dehboxturtle@google.com> Refactoring for bluetooth dialogs

Dialogs displayed when attempting to connect
to a bluetooth device have been refactored so
that they use a proper dialog fragment. Hardware
dependencies have also been refactored into a
controller class to make it possible to test
these dialogs as well as the controller
independently of one another.

Test: RoboTests
Bug: 32180625
Change-Id: I5447f8299bc13e139052635fc63546cbfc997f33
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothPairingDialog.java
71ab9605a30dbc04b5a8c3a895e98197552ca657 06-Oct-2016 Fan Zhang <zhfan@google.com> Use a Digit TtsSpan for pairing pins for talkback.

Fixes: 31539689
Test: manually enabled talkback and focused on bt pairing pin. Verified
read-out is digits instead of a big number.

Change-Id: I71c53094762a71459e70485470684c515053b600
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothPairingDialog.java
4d279a56f5b63d16081b4d9aa889e7ec6e744d59 30-Sep-2016 Salvador Martinez <dehboxturtle@google.com> BluetoothDialog view fixed for no pair code case

BluetoothPairingDialog no longer asks for a
pair code when the user only needs to
confirm that they would like to connect
to a device. Also, the layout padding
was updated a bit to make it look nicer.

Test: RunSettingsRoboTests
Bug: 31340598
Change-Id: I9394fcd53dffcff9a17fbafabdce0e94ae88fba2
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothPairingDialog.java
56c1b61e794cd20f01f4a20c1e4d7094eca8bfb8 01-Aug-2016 Erik Wolsheimer <ewol@google.com> Fix potential NPE in BluetoothPairingDialog#onDestroy

BUG: 21478473
Change-Id: I8b2b7222f6f17d27cd18a35f83f8d48125ec4091
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothPairingDialog.java
ac470131540d2d6737e9f980e3c6c0c592128e79 23-Jun-2016 Christine Hallstrom <hallstrom@google.com> Log whether BT pairing dialog is accepted or canceled

Change-Id: I584cef273f16e27cd7e569b53abccedfe0bd0af7
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothPairingDialog.java
e6de78375fe1beeb0a5a734629cbde43e76245cd 29-Mar-2016 Joseph Pirozzo <pirozzoj@google.com> PBAP Pairing Permission

Remove the always there checkbox for phonebook permission when pairing
from a device that supports the client side of PBAP rather than the
server side. A device should not support both PBAP PSE and PCE.

Bug: 25933871
Change-Id: I9535bbb9d5fcdfeaa13a2fec3461f47bb5518e28
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothPairingDialog.java
1b4ab5f05f1818324d059f1249f64a3f8a8d0a30 13-Nov-2015 Sanket Padawe <sanketpadawe@google.com> Uncheck checkbox for contact sharing by default for non carkit devices. am: dbc47fb262 am: 0ad16831ee am: df5b8c5b65
am: f20ba4b797

* commit 'f20ba4b797b0b11208aa72d822c17d7ab972a32e':
Uncheck checkbox for contact sharing by default for non carkit devices.
dbc47fb262a4273417d99dabab757854aa3b0eaf 12-Nov-2015 Sanket Padawe <sanketpadawe@google.com> Uncheck checkbox for contact sharing by default for non carkit devices.

+ In BT pairing dialog, uncheck checkbox for contact sharing by default
for devices not recognized as carkits at pair time.

Bug: 23607427
Change-Id: I7f1d40d86e713e248d3c225459be4895c4f75d76
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothPairingDialog.java
39b467482d1bf256a111c757e9b7621c6f523271 10-Sep-2015 Jason Monk <jmonk@google.com> Depend on support lib preferences

Bug: 24576551
Change-Id: Ic6190bacd3f7582c9bbc8de972da4612bd92421e
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothPairingDialog.java
a7a4a5a2cf500259c7eea68ad6d8f3af8fe300fd 01-Aug-2015 Sanket Padawe <sanketpadawe@google.com> Allow Contact sharing by default while connecting Car Kit.

Bug: 22556703
Change-Id: I335115bd1f6a2b043fb2ac8eeb1f9512b542e030
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothPairingDialog.java
2ef44c5e5def598d07f599675982e1a8b3aefc73 13-Jun-2015 Sanket Padawe <sanketpadawe@google.com> Add PBAP checkbox for BT pairing consent dialog.

Bug: 20488109
Change-Id: Ib6c98c27e6d2b8e59fa4b640df15214a6b197853
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothPairingDialog.java
e278a208bc8298963080dfb5352acedc65aad083 08-May-2015 Casper Bonde <c.bonde@samsung.com> SAP: Make it possible to enforce a 16-digit pin code (5/5)

This change enable the posibility to enforce using a
16-digit pin or MITM for a RFCOMM or L2CAP connection.

This is needed for the SIM access profile.

Change-Id: I6bb2b0dff1ebf4b4f1d8faad97aa7c480000d3ea
Signed-off-by: Casper Bonde <c.bonde@samsung.com>
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothPairingDialog.java
9a23adf69dc53126c9858b19760eab5b67c23b97 18-Mar-2015 John Spurlock <jspurlock@google.com> Settings: Remove all unused imports.

Change-Id: Iebfa52cb849d69974c94902b0b020893cf5618a3
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothPairingDialog.java
f2982a9ba19340b474bafb6b0bf5832673984e0d 04-Feb-2015 Jason Monk <jmonk@google.com> Move isolatable bluetooth code to SettingsLib

Move the non-ui bluetooth control/tracking code to SettingsLib so
that it can be shared with others.

Mostly just move classes to frameworks/base/packages/SettingsLib,
however a few things had to move around.
- Dock handling had to move back to code still in settings
- Local preference related code had to be moved back to settings
- Added an error flow from SettingsLib to Settings

Depends on I69fd888362c6dbb325f6113b32c4b15cc6a23a41
Bug: 19180466
Change-Id: Ie57fe26a27bbb0adc2ef69e042a05c7290c6a52a
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothPairingDialog.java
63e0f16c63617440ce864908344af1c8ce41fbec 09-Jan-2015 Andre Eisenbach <eisenbach@google.com> Do not perform SDP during pairing

As a result of commit 7de119c (ag/591931), SDP is performed when the
pairing dialog pops up. There are multiple problems with this. On badly
behaved devices an SDP request might trigger pairing from the remote
side, other devices (like Logitech keyboards) will close the connection
once SDP disconnects, causing the pairing to fail.

Further more, fetchUuidsWithSdk() is an asynchronous call. The code that
was added does not wait for SDP to complete. Thus the check for the PBAP
UUID will always fail and cause the permission check to still be
displayed.

With this change, SDP is not performed when the dialog is popped up and
PBAP permission is granted after bonding and subsequent service
discovery in accordance with final consensus in bug 16964116.

Bug: 18948640
Change-Id: I149afa8ae59b63f59ba579c12f97c3ea3d70112c
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothPairingDialog.java
7de119ca694ad9c8eaa8d161a878b24007f1c72a 21-Nov-2014 Matthew Xie <mattx@google.com> Check remote device uuids for phone book access permission

Only give phone book access permission for remote devices that
handle PBAP.
Bug: 18140961

Change-Id: I128f15460b151d7e0a47cd9b4b15dae10ec586c5
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothPairingDialog.java
10773b4d4d7d11c1d4197de0277e57f4f6848e3a 16-Sep-2014 PauloftheWest <paulofthewest@google.com> Removed an extraneous messge when pairing.

+ When two devices are executing Bluetooth simply pairing, which does
not need keyboard input, the message "Type the pairing code then press
Return or Enter." has been removed.
+ Note that in legacy pairing the message to type in the pairing key
should remain even if the user is only verifying the key. The reason is
that we are not able to guarantee the other device does not have to input
the key.
+ Also updated pin entry to Material/Quantum specification.

Bug: 17400402
Change-Id: I7853fa13835f7f60d0e71102de9a079708f3544e
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothPairingDialog.java
a539716a94cbfe33e32229549b70d7cb418d8840 05-Sep-2014 Edward Jee <edjee@google.com> Do not show phonebook access permission dialog if pairing dialog has already been shown.

Bug: 16964116, 13886947, 16345619

Change-Id: I9cf2622b49c3812771d57432fed030affaa5ba48
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothPairingDialog.java
e49c30e533be90280b4a6e9cb0065adb1b43b104 15-Aug-2014 PauloftheWest <paulofthewest@google.com> Applied Material Spec to Bluetooth pairing dialog.

Bug: 17018290
Change-Id: I621164245e6ad8213a689ea4919c619a9ee4f189
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothPairingDialog.java
54ccaf6f77f02fe64dce98d72b184176e3fc50d8 23-Jul-2014 Alan Viverette <alanv@google.com> Remove dialog icons

BUG: 16493564
Change-Id: I35ec0a8fc6ce3148b5bf469bfd2b56d0ae6d95ee
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothPairingDialog.java
7b0686af2f63f63a1a7b703f7414d5f60ab04449 25-Feb-2014 Rob Fletcher <rfletch.vol@gmail.com> HTML injection fix for bluetooth pairing, issue 65946

During bluetooth pairing, HTML injection is possible via the device name displayed to the user. This escapes the device name, before creating HTML from it, so it will preserve things like < and > but will not affect rendering of HTML

Bug: 12976386
Change-Id: I8a02d3be8c1a779dc9ed1c9ef8083a1159ab3f2b
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothPairingDialog.java
ae8d5bdc5bfabb457135dbe9c30084bffdc16a7c 19-Apr-2013 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #8665924 Native arabic numerals in the bluetooth pairing ui

- force LATIN digits for passkey

Change-Id: Ifc7fc746677df4c1e9013ecfe6e9f4887f2d4f1d
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothPairingDialog.java
aaf8ffff79a73c71d3fb77a31950e344f4c7eab5 21-Jul-2011 jhtop.kim <jhtop.kim@samsung.com> Bluetooth : fix for handling back key during pair dialog display

- Pressing back key when pairing dialog appears infront , device shows "Pairing..."
if we don't have any bonded device in device list.
- when press back key will perform onCancel() operation.

Change-Id: Iacd654efad455f17a5c3bb09f822d9af5a7aed7d
Signed-off-by: jhtop.kim <jhtop.kim@samsung.com>
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothPairingDialog.java
2affa6b28ddacc87f0f95f2ddd124b256ff61850 18-Jul-2011 jhtop.kim <jhtop.kim@samsung.com> Bluetooth : UI bug fix : Pairing dialog box takes space as character

- In pairing dialog box even if PIN was removed in text box, still the OK button is enabled
- When length is zero , disable the OK button in pairing dialog
- update fix to prevent error while mOkButton is not ceated.

Change-Id: I38ff3029cff2e7c4e87b7f9c93fa262125e91d44
Signed-off-by: jhtop.kim <jhtop.kim@samsung.com>
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothPairingDialog.java
ca9812a8521fcc483e821fd5a88ec421de0b8f66 12-Jul-2011 Jake Hamby <jhamby@google.com> Upgrade Bluetooth pairing dialogs for ICS.

* Change Bluetooth pairing dialogs to match ICS wireframes.
* Default to numeric soft keyboard for PIN entry, and add checkbox
to allow user to switch to alphanumeric keyboard if necessary.
* Move all Bluetooth advanced settings into action bar menu.
* Toggle visibility by touching "My device" entry in devices list.

Change-Id: Ic2377eb4364f41d215181cb1e3933997c9db9106
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothPairingDialog.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/BluetoothPairingDialog.java
da23ae88d110dce585b19581a180feefbb0be4c8 05-Jan-2011 Jaikumar Ganesh <jaikumar@google.com> Add new pairing dialog for keyboard pairings.

Change-Id: I672a3d874a7876fca6bd38091444dc9c5fb3a2f1
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothPairingDialog.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/BluetoothPairingDialog.java
a197eea30739f88be2d292ed4b7da99ec82ea315 09-Sep-2010 Jaikumar Ganesh <jaikumar@google.com> OutOfband pairing user dialog.

Change-Id: I2f996067b983ad4678814040eb0773fa3968be13
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothPairingDialog.java
435ad270b5f4e31e94a2bba204769660bbd4b3ca 16-Sep-2009 Jaikumar Ganesh <jaikumar@google.com> resolved conflicts for merge of 1b7ffcf4 to master
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothPairingDialog.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/BluetoothPairingDialog.java
67efa271bbff6f7ab355f8a0f121eca29a4dbec2 09-Sep-2009 Jaikumar Ganesh <jaikumar@google.com> Fix display strings and enter passkey handling.
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothPairingDialog.java
77395cc39c88af0bb20ea18af532c87e934fb187 02-Sep-2009 Michael Chan <mchan@android.com> b/2050798 Bluetooth Passkeys should always be 6 digits so show leading zeros if needed.
Removed extra new lines in the passkey and pin dialogs because the string didn't fit in landscape mode. (scrollbars to appeared)
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothPairingDialog.java
cb6a3b3d9e39d63bbf10d947579989e44bcc0b98 21-Aug-2009 Jaikumar Ganesh <jaikumar@google.com> Show error messages when Authentication fails.

Call Canceled when user presses "Don't Pair".
Thus for Authentication Failed cases we can show the message to the
user.
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothPairingDialog.java
8c08bcd2ab2149e99b9e757be107bc8dc5b584be 21-Aug-2009 Jaikumar Ganesh <jaikumar@google.com> Call the correct function for canceling a pairing request.
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothPairingDialog.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/BluetoothPairingDialog.java
e41a4ca695db12308006fe1a6d061642b7d3f1a1 05-Aug-2009 Michael Chan <mchan@android.com> Modified the Bluetooth 2.1 Passkey confirmation dialog

- Changed the Passkey confirmation to show Pair/Don't Pair.
- Fixed the problem where the Ok button was showing up as Pair for the error dialog box.
- Disable the toasts when pairing failed in this case. Will need to check if this causes regression in other cases.
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothPairingDialog.java
3a76bcaa83c15f96832f934e67e6f0190e72a3dc 17-Jul-2009 Jaikumar Ganesh <jaikumar@google.com> Initial 2.1 bluetooth support.

Need to work with Strings and UI person to fix and later test everything.
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothPairingDialog.java